Tagged Questions
2
votes
1answer
202 views
How to create new layer within a DXF file?
Using OGR in Python, I'd like to create some geometries within a DXF file, but not in the "0" layer, but in new ones.
I tried with:
import ogr, os, osr, sys
ds = ...
2
votes
1answer
507 views
OGR and DXF files: Is it possible to handle layer names? (only “entities”)
I'm using Python and OGR to extract the layers of a DXF file and convert them into SHP.
I began with:
import ogr, os, sys
driver = ogr.GetDriverByName('DXF')
datasource = driver.Open('test1.dxf', 0)
...