Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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=" + seedfile);

// Prepare

// Initialize output DGN
using (var dgnDriver = Ogr.GetDriverByName("DGN"))
    _dgnDataSource = dgnDriver.CreateDataSource(filename, opts.ToArray());
    _dgnLayer = _dgnDataSource.CreateLayer("", null, wkbGeometryType.wkbUnknown, null);
    _dgnFeatureDefinition = _dgnLayer.GetLayerDefn();
    _dgnFeatureDefinition.AddFieldDefn(new FieldDefn("ErrorTest", FieldType.OFTString));

Regards Lars

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.