[gdal-dev] Geometry validation

Mateusz Loskot mateusz at loskot.net
Tue Feb 9 01:41:24 PST 2021


On Tue, 9 Feb 2021 at 08:02, Илья Нецветаев <notequal90 at gmail.com> wrote:
> 1. What does exactly "valid geometry" mean?

You will find it in the OGC SFS specification

> What does IsValid check?

Read https://postgis.net/docs/ST_IsValid.html  and
https://postgis.net/docs/postgis_usage.html#OGC_Validity
Read the GEOS library source code to learn the details.
Ask https://lists.osgeo.org/mailman/listinfo/geos-devel

> As it is written in docs: Returns true if geometry has no points". I'm not sure, that I understand it correctly.

Empty geometry is a valid geometry. See OGC SFS.

> 2. Is there a proper way to replace MakeValid with something in order to keep my app functional?

Read the GEOS library source code to learn the details.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list