TransWikia.com

Reading text-anchor and text-angle from DXF using geopandas -> fiona -> gdal

Geographic Information Systems Asked by Bart den Ouden on February 22, 2021

I am working on a Pyhton desktop app that publishes CAD-files (dxf) to Postgresql/ GeoServer. It uses geopandas to import the dxf-file. The resulting geodataframe doesn’t contain the anchorpoint and angle of the texts in the dxf-file, which I need to correctly display the texts in the GeoServer layers. I find very little information about this subject on the internet.

Geopandas uses Fiona to import the data and Fiona uses Gdal to import a dxf-file.

Does anybody know a way to read text-angles and text-anchorpoints from a dxf file using geopandas?

As an alternative route I am looking at using the python lib ‘ezdxf’. I’m sure it’s possible to solve the problem using this library, but if it is possible using geopandas the solution is likely to be much simpler.

Any tips?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP