Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5806 closed defect (fixed)

misssing field width information when getting OGRLayer form filegdb

Reported by: wxx114 Owned by: warmerdam
Priority: normal Milestone: 2.0.0
Component: OGR_SF Version: 1.11.1
Severity: normal Keywords: filegdb openfilegdb
Cc:

Description

After got ogrlayer from fielgdb ,then try to get the field information such as field name, field width, field type, I found the field name and field type is right , but field width is zero when the field type is OFTString. however the width of field is not zero when displayed in arcgis software.

filegdb lost the field width information in gdal-filegdb

OGRDataSource *pOGRDS... OGRLayer *pLayer=pOGRDS->GetLayerByName(filename.c_str()); for(int i=0;i<pLayer->GetLayerDefn()->GetFieldCount();i++) {

OGRFieldDefn *pDef=pLayer->GetLayerDefn()->GetFieldDefn(i); std::string name=pDef->GetNameRef(); int width=pDef->GetWidth(); width =0

}

Change History (2)

comment:1 by Even Rouault, 9 years ago

Component: defaultOGR_SF
Keywords: filegdb openfilegdb added
Milestone: 2.0
Resolution: fixed
Status: newclosed

trunk r28509 "FileGDB/OpenFileGDB: report width of string fields (#5806)"

comment:2 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.