[mapserver-commits] r9415 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Oct 8 12:50:31 EDT 2009
Author: sdlime
Date: 2009-10-08 12:50:29 -0400 (Thu, 08 Oct 2009)
New Revision: 9415
Modified:
trunk/mapserver/maplayer.c
Log:
Force SDE to retrieve all items from within msLayerWhichItems(). I think that can be improved on later with more study of the SDE driver wrt item management.
Modified: trunk/mapserver/maplayer.c
===================================================================
--- trunk/mapserver/maplayer.c 2009-10-08 15:20:48 UTC (rev 9414)
+++ trunk/mapserver/maplayer.c 2009-10-08 16:50:29 UTC (rev 9415)
@@ -372,7 +372,7 @@
}
/* force get_all=MS_TRUE in some cases */
- if(layer->connectiontype == MS_INLINE)
+ if(layer->connectiontype == MS_INLINE || layer->connectiontype == MS_SDE)
get_all=MS_TRUE;
/*
@@ -394,7 +394,7 @@
** reset things (if necessary)
** note: if we don't reset then the items array is fully populated will ALL items
*/
- if(!get_all) {
+ if(!get_all) {
layer->items = (char **) calloc(numitems, sizeof(char *)); /* should be more than enough space */
if(!layer->items) {
msSetError(MS_MEMERR, NULL, "msLayerWhichItems()");
More information about the mapserver-commits
mailing list