#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 , 9 years ago
Component: | default → OGR_SF |
---|---|
Keywords: | filegdb openfilegdb added |
Milestone: | → 2.0 |
Resolution: | → fixed |
Status: | new → closed |
trunk r28509 "FileGDB/OpenFileGDB: report width of string fields (#5806)"