[mapserver-commits] r8765 - sandbox/single-pass/mapserver

svn at osgeo.org svn at osgeo.org
Tue Mar 10 09:48:27 EDT 2009


Author: sdlime
Date: 2009-03-10 09:48:27 -0400 (Tue, 10 Mar 2009)
New Revision: 8765

Modified:
   sandbox/single-pass/mapserver/mapgml.c
Log:
More changes for GML...

Modified: sandbox/single-pass/mapserver/mapgml.c
===================================================================
--- sandbox/single-pass/mapserver/mapgml.c	2009-03-10 13:45:57 UTC (rev 8764)
+++ sandbox/single-pass/mapserver/mapgml.c	2009-03-10 13:48:27 UTC (rev 8765)
@@ -1410,11 +1410,11 @@
       int featureIdIndex=-1; /* no feature id */
 
       /* actually open the layer */
-      status = msLayerOpen(lp);
-      if(status != MS_SUCCESS) return(status);
+      // status = msLayerOpen(lp);
+      // if(status != MS_SUCCESS) return(status);
 
       /* retrieve all the item names. (Note : there might be no attributes) */
-      status = msLayerGetItems(lp);
+      // status = msLayerGetItems(lp);
       /* if(status != MS_SUCCESS) return(status); */
 
       /* setup namespace, a layer can override the default */
@@ -1448,6 +1448,7 @@
         layerName = strdup(lp->name);
       }
 
+      msLayerRewind(lp);
       for(j=0; j<lp->resultcache->numresults; j++) {
         status = msLayerGetShape(lp, &shape, lp->resultcache->results[j].tileindex, lp->resultcache->results[j].shapeindex);
         if(status != MS_SUCCESS) 



More information about the mapserver-commits mailing list