[Gdal-dev] Shape Polygon to Line

Julien Demaria dem at acri-st.fr
Wed Aug 17 05:32:15 EDT 2005


Hi,

I try to translate a polygon shapefile to a line shapefile with ogr2ogr ; 
I've tried
ogr2ogr -nlt LINESTRING -lco SHPT=ARC Austrialine.shp Austria.shp
but it returns this error :
ERROR 1: Attempt to write non-linestring (POLYGON) geometry to ARC type 
shapefile.
ERROR 1: Terminating translation prematurely after failed translation of 
layer Austria

Is it possible to translate polygon to line using ogr2ogr ?


thanks in advance,

Julien




More information about the Gdal-dev mailing list