Skip to content
Permalink
Browse files
Added -1 to the OFFSET in the query generated for OGR
  • Loading branch information
gerdos82 committed Oct 1, 2019
1 parent 7506203 commit 9b2e7e8de819823baae27dfd100ca59d9e585d28
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2475,7 +2475,7 @@ static int msOGRFileWhichShapes(layerObj *layer, rectObj rect, msOGRFileInfo *ps

if ( !bOffsetAlreadyAdded && psInfo->bPaging && layer->startindex > 0 ) {
char szOffset[50];
snprintf(szOffset, sizeof(szOffset), " OFFSET %d", layer->startindex);
snprintf(szOffset, sizeof(szOffset), " OFFSET %d", layer->startindex-1);
select = msStringConcatenate(select, szOffset);
}

0 comments on commit 9b2e7e8

Please sign in to comment.