Skip to content

Commit 9b2e7e8

Browse files
committed
Added -1 to the OFFSET in the query generated for OGR
1 parent 7506203 commit 9b2e7e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mapogr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,7 @@ static int msOGRFileWhichShapes(layerObj *layer, rectObj rect, msOGRFileInfo *ps
24752475

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

0 commit comments

Comments
 (0)