Enhancing geosop with an option for printing the reason behind each TopologyValidationError
#1301
swiss-knight
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
It would be of great help if one can check TopologyValidationError reason messages using the
geosopCLI tool.I'm thinking of these messages.
Indeed, currently it only has those abilities regarding validation (from
geosop --help):I'd love seeing a new option which can print the reason why a geometry is valid or invalid, e.g.
isValidReason:Of course, one can also imagine exposing the location where the validity issue was met.
This is especially "frustrating" because such underlying messages are shown by GDAL/OGR when meeting an invalid geometry using the SQLITE
ST_IsValid()function:ogrinfo :memory: -sql "SELECT ST_IsValid(GeomFromText(\"POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0), (2 2, 3 2, 3 3, 2 3, 2 2))\")) AS Err" -dialect SQLITE -q GEOS warning: Hole lies outside shell at or near point 2 2 Layer name: SELECT OGRFeature(SELECT):0 Err (Integer) = 0and I would very much like to receive these messages, independently of GDAL, with
geosopas well.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions