<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I have PostGIS table with multipolygon geometry column of ~2000 features with valid geometries. Most are single polygons.<br></div>These were originally in 900914 projection.<br><br></div>I tried to re-project to 4326, first with org2ogr then with PostGIS's ST_Transform() function.<br><br></div>In both cases I get results with couple of invalid geometries in a manner of:<br><br>  segment [#] of ring [#] of polygon [#] intersects segment [#] of ring [#] of polygon [#] at [x], [y]<br><br></div>reported by QGIS "Check geometry validy" function, or same as a result from PostGIS's ST_IsValid() function.<br><br></div>Interestingly table reprojected with ogr2ogr shows errors on different features then errors generated by PostGIS's ST_Transform() function.<br><br></div>I wonder if there are some steps I can take before re-projecting or afterward, that will produce valid transformation, without need of correcting erroneous geometries by hand after re-projecting data?<br><br><br></div>Thanks<br></div>