Skip to content

Commit

Permalink
Seting FID correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelPau committed Apr 5, 2024
1 parent 9a3fee7 commit d47a2ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ogr/ogrsf_frmts/miramon/ogrmiramonlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,9 @@ OGRFeature *OGRMiraMonLayer::GetFeature(GIntBig nFeatureId)
}
}

poFeature->SetFID(nIElem);
// Even in case of polygons, where the first feature is jumped
// the ID of the first feature has to be 0, the second, 1,...
poFeature->SetFID(nFeatureId);

// Perhaps there are features without geometry.
m_nFeaturesRead++;
Expand Down

0 comments on commit d47a2ae

Please sign in to comment.