Has anyone else encountered a similar issue? What might be the cause of the error? Could you please provide some guidance?(ValueError: Vector geometry type must be Polygon or MultiPolygon)
Hello @baixiaobai and welcome to the forums!
So, this message is saying that the vector it’s referring to has a feature that isn’t a Polygon or a MultiPolygon. Practically speaking, I sometimes encounter this issue when I accidentally have a feature that doesn’t have any geometry. You might also encounter this issue if your vector has a LineString or MultiLineString geometry. I would suggest that you use your GIS to check to make sure that all features have a geometry and that they are all polygons or multipolygons as a good first step.
Let us know how this goes!
James
Along with the suggestions from James, it could be possible that you have a 3D Polygon, or some other special polygon geometry that could be exported to a simple Polygon instead.
@baixiaobai Please always upload your invest logfile so we can better assist you. Thanks,
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.