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.
我不明白什么是错的。任何帮助?