r-spatial / sf

Simple Features for R
https://r-spatial.github.io/sf/
Other
1.35k stars 299 forks source link

Read DXF units #2390

Closed asadow closed 6 months ago

asadow commented 6 months ago

Is it possible to extract the $INSUNITS header variable from a .dxf file?

I know Python can do so with ezdxf:

import ezdxf
from ezdxf import units

doc = ezdxf.readfile(file_path)
doc.units

Reticulate:

library(reticulate)
ezdxf <- import("ezdxf")
doc = ezdxf$readfile(file_path)
doc$units
edzer commented 6 months ago

Please provide a .dxf file that has such a header variable.

asadow commented 6 months ago

Here

edzer commented 6 months ago

I believe not; see here for the DXF driver docs; please reopen if you think this driver should give you access to units somehow.