We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ad12fd commit ad3c0b6Copy full SHA for ad3c0b6
apps/ogr2ogr.cpp
@@ -3664,13 +3664,7 @@ int LayerTranslator::Translate( TargetLayerInfo* psInfo,
3664
OGRFeature *poDstFeature = NULL;
3665
3666
if( nFIDToFetch != OGRNullFID )
3667
- {
3668
- // Only fetch feature on first pass.
3669
- if( nFeaturesInTransaction == 0 )
3670
- poFeature = poSrcLayer->GetFeature(nFIDToFetch);
3671
- else
3672
- poFeature = NULL;
3673
- }
+ poFeature = poSrcLayer->GetFeature(nFIDToFetch);
3674
else
3675
poFeature = poSrcLayer->GetNextFeature();
3676
@@ -3987,6 +3981,9 @@ int LayerTranslator::Translate( TargetLayerInfo* psInfo,
3987
3981
3988
3982
if (pnReadFeatureCount)
3989
3983
*pnReadFeatureCount = nCount;
3984
+
3985
+ if( nFIDToFetch != OGRNullFID )
3986
+ break;
3990
}
3991
3992
if( nGroupTransactions )
0 commit comments