Opened 21 years ago
Last modified 21 years ago
#356 closed defect (invalid)
OGR_L_GetFeature (OGRLayerH, i) i>=1 with MapInfo files ?
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Maybe I'm wrong, but It seems that with OGR_L_GetFeature (OGRLayerH, iFeature) with a MapInfo file (.dat, .id, .map, .tab) the iFeature must start by 1 (and ends at nFeatures+1, if nFeatures is respect to 0) i.e. if I convert a shapefile with ogr2ogr to a MapInfo file, I have the same output from my functions if I have for (iFeature = 0; iFeature < nFeatures; iFeature++) { hFeature = OGR_L_GetFeature (hLayer, iFeature) with the shapefile and for (iFeature = 0; iFeature < nFeatures; iFeature++) { hFeature = OGR_L_GetFeature (hLayer, iFeature +1 ) with the MapInfo file. I have to start by 1, also with other (not converted) MapInfo files.
Note:
See TracTickets
for help on using tickets.