[gdal-dev] Feature styles units in dxf export

Marco Hugentobler marco at sourcepole.ch
Fri Dec 21 01:56:31 PST 2012


Hi Jürgen

 >It might assume running
 >with the DXF header shipped with GDAL (assuming there is one) and you 
are using
 >another one?

I'm using the header that comes with OGR. Don't know if there is a 
possibility to change the header via OGR (but my dxf knowledge is very 
limited, so I'd prefer to go with the default).

Regards,
Marco


On 21.12.2012 09:55, Jürgen E. Fischer wrote:
> Hi Marco,
>
> On Fri, 21. Dec 2012 at 09:16:13 +0100, Marco Hugentobler wrote:
>> Setting a style string in mm (e.g.  'PEN(c:#0000ff,w:5mm'), the dxf
>> driver converts the 5 mm to 0.005 ground units, then multiplies that by
>> 100 (most likely because in dxf, one width unit is 1/100 mm). This seems
>> strange to me, shouldn't the driver treat mm as paper units (instead as
>> ground units) and just multiply the mm by 100?
> Didn't look at any code - but the units in DXF are configurable.  So the driver
> should do that only if it knowns the current units.  It might assume running
> with the DXF header shipped with GDAL (assuming there is one) and you are using
> another one?
>
>
> Jürgen
>


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the gdal-dev mailing list