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 ac3fd1e commit 6ec9c44a2b326a6bd2ca21645388382457ca1f1c
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 6ec9c44

Please sign in to comment.