Bad shapefile features aren't that uncommon. We should call GeoTools makeValid on upload.
Consider the case of a feature like this:
What is the centroid of that? It's probably somewhere on the right, but since the direction of the rings is more or less undefined, who's to say that the space on the right isn't negative space? Maybe the centroid is to the left.
Bad shapefile features aren't that uncommon. We should call GeoTools makeValid on upload.
Consider the case of a feature like this:
What is the centroid of that? It's probably somewhere on the right, but since the direction of the rings is more or less undefined, who's to say that the space on the right isn't negative space? Maybe the centroid is to the left.