[postgis-users] GEOS pointonsurface() threw an error!

Andrea Peri 2007 aperi2007 at gmail.com
Tue Aug 17 22:56:28 PDT 2010


>My version is: "POSTGIS="1.5.0" GEOS="3.2.0-CAPI-1.6.0" PROJ="Rel. 4.6.1, 21
>August 2008" LIBXML="2.7.6" USE_STATS"
>PostgreSQL 8.4 running on a WINXP
>
>I was playing with the ST_IsValid() function and the ST_IsValidReason().
>
>What I notice is the geometry, of course, is not valid.
>Reason: "Self-intersection[-6.4825e+006 -3.15411e+006]"


With the trunk version there (postgis 2.0.0) you can try the
ST_MakeValid(..)

that turn the self-intersction in multi-polygon.

Regards,

Andrea.





More information about the postgis-users mailing list