I am trying to create a DXF from a Polygon Shapefile using ogr2ogr:
ogr2ogr -f DXF parcels.dxf parcels.shp
The problem is that the polygons are written as hatch elements.
How do I specify that ogr2ogr should create LWPOLYLINE elements (Or any other supported type)?
I have tried this from command line and from QGIS 'save as' option with the same result. I don't remember this being an issue in the past, but seems like it started with GDAL version 1.10.x.
Best Answer
You can use
-nlt
option to force type of object. You can test-nlt MULTILINESTRING
or-nlt LINESTRING
with your command. I think it can work.In the documentation your can read: