Hi friends,<br><br>I would like to transform a shape with multilinestring in a shape with polygons using ogr2ogr.<br><br>Polygon to multilinestring, I use:<br>ogr2ogr -f "ESRI Shapefile" -overwrite "C:/Users/Alisson/Basins3.shp" "C:/Users/Alisson/Basins2.shp" -sql "SELECT * FROM Basins2" -skipfailures -nlt MULTILINESTRING<br>
<br>This works.<br><br>Multilinestring to multipolygon, I use:<br>ogr2ogr -f "ESRI Shapefile" -overwrite "C:/Users/Alisson/polygon.shp" "C:/Users/AlissonContorno30.shp" -sql "SELECT * FROM Contorno30" -skipfailures -nlt MULTIPOLYGON<br>
<br>But, this error appears:<br>ERROR 1: Attempt to write non-polygon (LINESTRING) geometry to POLYGON type shapefile.<br><br>Can you help me?<br clear="all"><br>Best regards,<br>-- <br>Alisson Barbosa<div>Systems Analyst - FUNCEME<div>
<span lang="en"><span title="Clique para mostrar traduções alternativas">M.Sc. in Computer Science</span><span title="Clique para mostrar traduções alternativas"> - MACC</span></span><div><div>Graduate in Computer Science - UECE</div>
</div></div><br></div><br>