Project: QGIS

Version: 3.12

Feature: is_valid expression

  • is_valid(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2, 0 0)')) → true Returns true if a geometry is valid; if it is well-formed in 2D according to the OGC rules

Add an is_valid function to the expressions, which reuses GEOS is valid and returns true if a geometry is valid; if it is well-formed in 2D according to the OGC rules.

Based of @NathanW2 workshop at FOSS4g Oceania. I have tested the function manually and confirmed the tests pass, however I can't get my build to produce the help files to check if this or correct. I"m not sure if "Uses GEOS" is needed in the help file.

I'm a python dev not C++ so any help will definitely be appreciated Thanks

This feature was developed by Pete King