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
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
