Hi,<br><br>I needed to test a shapefile to find eventually wrong geometries.<br><br>My first idea was to use postgis to do a<br>select *from table_from_shapefile where ST_IsValid(geom)=false;<br><br>So I load the shapefile with shp2pgsql in postgis (1.5.1)<br>
and do this query.<br>The results was 1 only geometry wrong.<br><br>After some days I repeat the same test with Grass.<br><br>Grass with my big surprise report me more geometry wrong.<br>Infact in the shapefile was detected many geometries with wrong orientation.<br>
<br>Now my question is why this was not detected from postgis ?<br>I don't know why, <br>but my idea is that perhaps shp2pgsql, when find a geometry wrong oriented correct it automatically .<br><br>Is this correct ?<br>
<br>Thx,<br><br>Andrea Peri.<br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty אטלעש<br>-----------------<br><br>