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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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);
opts.Add("COPY_WHOLE_SEED_FILE=YES");

// Prepare
Initialization.PrepareGDAL();

// 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

 
discard

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

Browse other questions tagged or ask your own question.