[mapserver-commits] r9471 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Oct 16 13:04:05 EDT 2009
Author: assefa
Date: 2009-10-16 13:04:04 -0400 (Fri, 16 Oct 2009)
New Revision: 9471
Modified:
trunk/mapserver/mapwfslayer.c
Log:
correct build error when flag USE_WMS_LYR is not set
Modified: trunk/mapserver/mapwfslayer.c
===================================================================
--- trunk/mapserver/mapwfslayer.c 2009-10-16 16:09:31 UTC (rev 9470)
+++ trunk/mapserver/mapwfslayer.c 2009-10-16 17:04:04 UTC (rev 9471)
@@ -915,6 +915,7 @@
int msWFSLayerGetShape(layerObj *layer, shapeObj *shape, int tile,
long record)
{
+#ifdef USE_WFS_LYR
msWFSLayerInfo* psInfo = NULL;
if(layer != NULL && layer->wfslayerinfo != NULL)
@@ -934,6 +935,15 @@
shape->type = MS_SHAPE_NULL;
return MS_FAILURE;
}
+#else
+/* ------------------------------------------------------------------
+ * WFS CONNECTION Support not included...
+ * ------------------------------------------------------------------ */
+ msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
+ "msWFSLayerGetShape()");
+ return(MS_FAILURE);
+#endif /* USE_WFS_LYR */
+
}
@@ -945,6 +955,7 @@
**********************************************************************/
int msWFSLayerNextShape(layerObj *layer, shapeObj *shape)
{
+#ifdef USE_WFS_LYR
msWFSLayerInfo* psInfo = NULL;
if(layer != NULL && layer->wfslayerinfo != NULL)
@@ -964,6 +975,15 @@
shape->type = MS_SHAPE_NULL;
return MS_FAILURE;
}
+#else
+/* ------------------------------------------------------------------
+ * WFS CONNECTION Support not included...
+ * ------------------------------------------------------------------ */
+ msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
+ "msWFSLayerNextShape()");
+ return(MS_FAILURE);
+#endif /* USE_WFS_LYR */
+
}
/**********************************************************************
@@ -972,6 +992,7 @@
**********************************************************************/
int msWFSLayerGetExtent(layerObj *layer, rectObj *extent)
{
+#ifdef USE_WFS_LYR
msWFSLayerInfo* psInfo = NULL;
if(layer != NULL && layer->wfslayerinfo != NULL)
@@ -990,6 +1011,15 @@
msSetError(MS_WFSERR, "Unable to get extents for this layer.", "msWFSLayerGetExtent()");
return MS_FAILURE;
}
+#else
+/* ------------------------------------------------------------------
+ * WFS CONNECTION Support not included...
+ * ------------------------------------------------------------------ */
+ msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
+ "msWFSLayerGetExtent()");
+ return(MS_FAILURE);
+#endif /* USE_WFS_LYR */
+
}
/**********************************************************************
@@ -999,6 +1029,7 @@
int msWFSLayerGetItems(layerObj *layer)
{
+#ifdef USE_WFS_LYR
/* For now this method simply lets OGR parse the GML and figure the */
/* schema itself. */
/* It could also be implemented to call DescribeFeatureType for */
@@ -1023,6 +1054,15 @@
layer->items = NULL;
return MS_SUCCESS;
}
+#else
+/* ------------------------------------------------------------------
+ * WFS CONNECTION Support not included...
+ * ------------------------------------------------------------------ */
+ msSetError(MS_WFSCONNERR, "WFS CLIENT CONNECTION support is not available.",
+ "msWFSLayerGetItems()");
+ return(MS_FAILURE);
+#endif /* USE_WFS_LYR */
+
}
/**********************************************************************
More information about the mapserver-commits
mailing list