Permalink
Browse files

WFS paging parameter startIndex changed to base on 0 (0 is the first …

…feature). See #4180 for external references.
  • Loading branch information...
1 parent dc3915d commit 3edd5fde69a0da790ce0c6bee0913bc49d53b6cc @mkofahl mkofahl committed Jun 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapwfs.c
View
@@ -1957,8 +1957,8 @@ int msWFSGetFeature(mapObj *map, wfsParamsObj *paramsObj, cgiRequestObj *req, ow
}
}
- if (paramsObj->nStartIndex > 0) {
- startindex = paramsObj->nStartIndex;
+ if (paramsObj->nStartIndex > -1) {
+ startindex = 1 + paramsObj->nStartIndex;
map->query.startindex = startindex;
}

0 comments on commit 3edd5fd

Please sign in to comment.