0
我剛剛開始使用shapefiles。我有一個shapefile,其中每個對象都是一個多邊形。我想要生成一個新的shapefile,其中每個多邊形的幾何圖形都由其質心替換。有我的代碼。在生成具有geopandas的形狀文件時引發ValueError
當我運行該腳本,我結束了raise ValueError("Geometry column cannot contain mutiple " ValueError: Geometry column cannot contain mutiple geometry types when writing to file.
我不明白什麼是錯的。任何幫助?