Opened 12 years ago

Closed 12 years ago

#4551 closed defect (invalid)

Extra fields missing from shapefiles

Reported by: rhaden Owned by: warmerdam
Priority: highest Milestone:
Component: default Version: 1.8.0
Severity: blocker Keywords:
Cc:

Description

An application I've been developing requires the capability to write "flagged" features out to a shapefile. However, when the shapefile is successfully written (see tickets #4549 and #4550), the required extra fields are missing from it. That is, only the FID and Shape fields are present for features within the new shapefile.

I'm honestly not sure whether this is an issue with the C# bindings to GDAL or with the underlying C/C++ GDAL code.

Change History (1)

comment:1 by rhaden, 12 years ago

Resolution: invalid
Status: newclosed

Turns out I was doing things the wrong way. I was using calls to OGRFeatureDefn::AddFieldDefn() to add the extra feature fields. Using OGRLayer::CreateField() is the right way to do it. Very sorry for the false alarm!

Note: See TracTickets for help on using tickets.