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@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to