[gdal-dev] Feature styles units in dxf export

Jürgen E. Fischer jef at norbit.de
Fri Dec 21 00:55:30 PST 2012


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

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-31
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de
committ(ed|ing) to Quantum GIS                         IRC: jef on FreeNode                         

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the gdal-dev mailing list