Re: [gdal-dev] Problems converting polygons to DXF with ogr2ogr

2012-06-05 Thread Colin Wright
Steve, Thanks for your suggestion. I tried opening the file in the Teigha Viewer but it was giving an error as well. The error in this case was: ODA Warning: Syntax error or premature end of file on line/offset 1748. Error: Loading of file "C:\Temp\cwpolytest.dxf" was failed. In this case the li

Re: [gdal-dev] Problems converting polygons to DXF with ogr2ogr

2012-06-04 Thread Stephen Woodbridge
Colin, You might want to try reading the dxf file the the Teigha File Convertor. This is a Windows utility that converts between dwg abd dxf and the various versions of both. Its a free download and I just used it to convert about 60K dwg files to dxf and it works great. You can specify what

[gdal-dev] Problems converting polygons to DXF with ogr2ogr

2012-06-04 Thread Colin Wright
With gdal 1.8 and 1.9 I am unable to convert any polygon datasets to DXF in a format where they can be read by AutoCad. Every time I try to open a DXF created with these versions I get the error: The following error was encountered while reading in HATCH starting at line 1546: Error: expected g