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

Paul Ramsey pramsey at opengeo.org
Wed Mar 17 08:57:08 PDT 2010


Very reasonable... ticket that as an enhancement please!

http://trac.osgeo.org/postgis

p

On Wed, Mar 17, 2010 at 8:54 AM, Jerry Carter <jerry at jerrycarter.org> wrote:
> Thanks.  I've already started down that path.
>
> The real issue in my mind is the error text.  If GEOS throws an error, couldn't PostGIS internally run the equivalent of ST_IsValidReason() on the geometry before writing a message?  Seeing 'GEOS intersects() threw an error due do an invalid geometry (self-intersection)' seems much more helpful than the current message.
>
> -=- Jerry
>
>
> On Mar 17, 2010, at 11:51 AM, Mike Toews wrote:
>
>> Typically, this type of geometry error is fixed using
>> ST_Buffer(the_geom,0). So just wrap your geometry in that zero buffer,
>> and you should get a valid geometry (in ST_IsValid) and a correct
>> ST_Intersects result.
>>
>> -Mike
>>
>> On 17 March 2010 08:23, Jerry Carter <jerry at jerrycarter.org> wrote:
>>> I am aware that this geometry reports a Self-intersection according to ST_IsValidReason().
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list