id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
2035,Using OGR writing DGN files,bjorn,warmerdam,"When we use OGR to write back data to DGN files, then the ""colorindex"" field is reset (to 0 for our data). Looking at the code it seems that it is set to the value of nGraphicGroup. Is this correct ?
 
The fields ""MSLink"" and ""EntityNum"" is read, but not written back ?

{{{
/* -------------------------------------------------------------------- */
/*      Add other attributes.                                           */
/* -------------------------------------------------------------------- */
    int nLevel = poFeature->GetFieldAsInteger( ""Level"" );
    int nGraphicGroup = poFeature->GetFieldAsInteger( ""GraphicGroup"" );
    int nColor = poFeature->GetFieldAsInteger( ""ColorIndex"" );
    int nWeight = poFeature->GetFieldAsInteger( ""Weight"" );
    int nStyle = poFeature->GetFieldAsInteger( ""Style"" );
 
    nLevel = MAX(0,MIN(63,nLevel));
    nColor = MAX(0,MIN(255,nGraphicGroup));
    nWeight = MAX(0,MIN(31,nWeight));
    nStyle = MAX(0,MIN(7,nStyle));
 
    DGNUpdateElemCore( hDGN, papsGroup[0], nLevel, nGraphicGroup, nColor, 
                       nWeight, nStyle );
}}}
Could anybody adwise ...",defect,closed,normal,1.4.5,OGR_SF,unspecified,normal,fixed,dgn,
