[postgis-users] Error in simple SQL

George R. C. Silva georger.silva at gmail.com
Tue Apr 22 08:18:05 PDT 2008


Hello everyone.

Am i doing something wrong? In pg 8.2 and pgis 1.2 this query worked...

select * from quadras_poligono, bairros_poligono where 
ST_intersects(bairros_poligono.the_geom,st_centroid(quadras_poligono.the_geom)) 
and bairros_poligono.codbairro = 1;

now this doenst work. gives me this error. i dont know if it worked 
before or am i confusing with something else.
heres the error.

NOTICE:  IllegalArgumentException: Number of points must be 0 or >3

ERROR:  POSTGIS2GEOS conversion failed

what can i do for this to work?



More information about the postgis-users mailing list