[gdal-dev] Dxf output wrong in gdal 1.9 and correct in gdal 1.8
Lorenzo Moretti
lorenzo.moretti at enea.it
Sun Jul 8 06:58:36 PDT 2012
Hi
There are some problems in gdal 1.9.1. There are errors in dxf output when I use ogr2ogr.
I have a simple shape file with some polylines. I want to convert it in dxf file.
The same command
GDAL 1.8
ogr2ogr -f "DXF" -t_srs EPSG:3004 "/Volumes/myhd/ustgdal18.dxf" -s_srs EPSG:32633 "/Volumes/myhd/ust.shp"
GDAL 1.9.1
ogr2ogr -f "DXF" -t_srs EPSG:3004 "/Volumes/myhd/ustgdal19.dxf" -s_srs EPSG:32633 "/Volumes/myhd/ust.shp"
creates two different DXF files
The first one, in gdal 1.8, is correct. It create a perfect DXF file. The size is 59kB.
The second one, in gdal 1.9, is wrong: it lost many polylines and the size is 62kB.
I have analyzed the two dxf file.
The correct file in gdal 1.8 has the perfect attribute for polylines:
100
AcDbEntity
100
AcDbPolyline
70
1
90
5
10
2420094.24101526
20
.............
The wrong DXF file in gdal 1.9 changes the attribute for polyline with hatch attribute:
100
AcDbEntity
100
AcDbHatch
2
SOLID
70
1
71
0
91
1
92
2
72
0
73
1
93
7
10
2420032.16360568
20
.............
This is an error.
Is this a bug in gdal 1.9.1 ?
Lorenzo
More information about the gdal-dev
mailing list