Open lbartoletti opened 8 months ago
Would it be possible to have a method to retrieve the version of the DXF file?
if you want to tackle this, the way to go would probably to expose that information in a dedicated "DXF" metadata domain, and you would fech it with dataset.GetMetadataItem("$ACADVER", "DXF")
. (As the GDAL API is potentially usable for all drivers, we can't extend it just for the needs of a single driver)
Feature description
Unless I'm mistaken, it doesn't seem possible to obtain the version of a DXF file opened with GDAL. In my Python context, there's no function like
GetVersion
orGetVariables("ACADVER")
available to retrieve the file version name.I believe this variable is indeed read because it's among the first in the HEADER. However, it's not exposed.
In pure python, one could get this information with this dirty script:
Would it be possible to have a method to retrieve the version of the DXF file?
Thanks,
Additional context
Related issue: https://github.com/Guts/DicoGIS/issues/228