[mapserver-commits] r9767 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Jan 29 13:50:15 EST 2010
Author: assefa
Date: 2010-01-29 13:50:11 -0500 (Fri, 29 Jan 2010)
New Revision: 9767
Modified:
trunk/mapserver/mapwfs.c
Log:
Correct issues with maxfeatures and startindex #2799
Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c 2010-01-29 18:31:29 UTC (rev 9766)
+++ trunk/mapserver/mapwfs.c 2010-01-29 18:50:11 UTC (rev 9767)
@@ -1766,6 +1766,8 @@
iNumberOfFeatures += GET_LAYER(map, j)->resultcache->numresults;
}
}
+ if(maxfeatures > 0 && maxfeatures < iNumberOfFeatures)
+ iNumberOfFeatures = maxfeatures;
/*
** GetFeature response
@@ -1885,8 +1887,6 @@
msFree(encoded_typename);
- if(maxfeatures > 0 && maxfeatures < iNumberOfFeatures)
- iNumberOfFeatures = maxfeatures;
More information about the mapserver-commits
mailing list