[gdal-dev] DXF driver MTEXT objects properties.

Even Rouault even.rouault at spatialys.com
Tue Feb 21 06:57:46 PST 2017


On lundi 20 février 2017 23:37:21 CET Nikolai Bezdna wrote:
> Hello,
> 
> I’d like to know if it’s possible to retrieve some properties for MTEXT
> objects from DXF driver: Are "Text alignment X", "Text alignment Y", "Text
> alignment Z" params being read? I guess they should go to the “dx" and “dy"
> properties of OGR_STYLE. When Justify MTEXT param goes to the “p” style
> property, it really indicates alignment relative to the anchor point, not
> the insertion point of the text. So it really makes sense when dx and dy
> are fetched from DXF. Also Style MTEXT param should go to the “f” style
> property (or any other:)…right now I can’t get an exact font used for a
> label in DXF. “f” style param defaults to Arial, but ignores the values in
> DXF.

Nikolai,

If you want to improve the retrieval of style information, the function to edit is 
OGRDXFLayer::TranslateMTEXT() in ogr/ogrsf_frmts/dxf/ogrdxflayer.cpp
To correlate with
http://www.autodesk.com/techpubs/autocad/acad2000/dxf/mtext_dxf_06.htm

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170221/68e29676/attachment.html>


More information about the gdal-dev mailing list