Tagged Questions
2
votes
0answers
79 views
Ogr: How to add layer description to dgn?
I have created a dgn-file using Ogr, but can't find a way to fill out the description for this layer programatically. (something like _dgnLayer.Description = "Highways")
opts.Add("SEED=" + ...
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
504 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)
...