Paul,

> But at the red asterix, I have an invalid shape. The reason is according to
> GEOS:
> Polygon must be clockwise

I can't see such error emitted by GEOS source code.

even@even-i700:~$ grep -r "must be clockwise" geos/
even@even-i700:~$ 


Are you sure this comes from it ? As far as I know, GDAL and GEOS are pretty 
much 
indifferent regarding the winding order of polygons. Other tools might be more 
sensitive.

You could possibly use the ST_ForceLHR() function of spatialite (through the 
SQL SQLite 
dialect) to post process your result:
http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.2.0.html

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to