[mapserver-commits] r7319 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Jan 28 12:13:47 EST 2008
Author: Assefa
Date: 2008-01-28 12:13:47 -0500 (Mon, 28 Jan 2008)
New Revision: 7319
Modified:
trunk/mapserver/mapogcsos.c
Log:
Fix componenets not displayed in the get capabilities (#2477)
Modified: trunk/mapserver/mapogcsos.c
===================================================================
--- trunk/mapserver/mapogcsos.c 2008-01-28 17:12:42 UTC (rev 7318)
+++ trunk/mapserver/mapogcsos.c 2008-01-28 17:13:47 UTC (rev 7319)
@@ -981,7 +981,7 @@
/************************************************************************/
/* msSOSAddMemberNodeObservation */
/* */
-/* Add a member node used gor getObservation request using */
+/* Add a member node used for getObservation request using */
/* Observation as the result format. */
/************************************************************************/
xmlNodePtr msSOSAddMemberNodeObservation(xmlNsPtr psNsGml, xmlNsPtr psNsSos, xmlNsPtr psNsSwe, xmlNsPtr psNsXLink, xmlNodePtr psParent, mapObj *map,
@@ -1574,8 +1574,13 @@
{
papszProperties[nProperties] = strdup(value);
nProperties++;
- msSOSAddPropertyNode(psNsSwe, psNsXLink, psOfferingNode,
- (GET_LAYER(map, j)), psNsGml);
+ lpTmp = GET_LAYER(map, j);
+ if (msLayerOpen(lpTmp) == MS_SUCCESS && msLayerGetItems(lpTmp) == MS_SUCCESS)
+ {
+ msSOSAddPropertyNode(psNsSwe, psNsXLink, psOfferingNode,
+ lpTmp, psNsGml);
+ msLayerClose(lpTmp);
+ }
}
}
}
More information about the mapserver-commits
mailing list