[postgis-users] Is st_isvalidreason singular for any polygon, or can multiple errors be returned?
Ben Madin
lists at remoteinformation.com.au
Mon Dec 19 07:02:49 PST 2011
Thanks strk,
Either way is fine, but maybe for now we could put a line into the documentation to that effect:
"Note: By design only the first invalidity in a polygon is reported. After correcting errors identified by st_isvalidreason it should be run again to check that there are no further errors."
cheers
Ben
On 19/12/2011, at 9:52 PM, Sandro Santilli wrote:
> On Mon, Dec 19, 2011 at 09:20:09PM +0800, Ben Madin wrote:
>
>> So my question is - when running st_isvalidreason does it just return
>> the first invalid problem it finds, or do I need a more sophisticated
>> query to return all the problem points?
>
> Only the first one. By design. It's being discussed on JTS list if this
> will change in the future. For now it is assumed that first invalidity
> would render later ones hard to detect.
>
> --strk;
>
> ,------o-.
> | __/ | Thank you for PostGIS-2.0 Topology !
> | / 2.0 | http://www.pledgebank.com/postgistopology
> `-o------'
>
> _______________________________________________
> 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