What answers does method "is_valid_reason" from shapely return?
Now I know several types of answers:
But where can I see the full list of answers? Maybe there is another reason for the invalidity?
Shapely uses functions from GEOS (that is derived from JTS, a Java project).
So, the exhaustive list of values returned by is_valid_reason should be the same (or equivalent) as the values of the errors' messages in the TopologyValidationError class (see docs):
public static final String[] errMsg = {
"Topology Validation Error",
"Repeated Point",
"Hole lies outside shell",
"Holes are nested",
"Interior is disconnected",
"Self-intersection",
"Ring Self-intersection",
"Nested shells",
"Duplicate Rings",
"Too few distinct points in geometry component",
"Invalid Coordinate",
"Ring is not closed"
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With