[mapserver-commits] r11007 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Feb 24 23:48:39 EST 2011
Author: sdlime
Date: 2011-02-24 20:48:39 -0800 (Thu, 24 Feb 2011)
New Revision: 11007
Modified:
trunk/mapserver/mapwcs20.c
Log:
Applied patch for #3685...
Modified: trunk/mapserver/mapwcs20.c
===================================================================
--- trunk/mapserver/mapwcs20.c 2011-02-25 04:46:16 UTC (rev 11006)
+++ trunk/mapserver/mapwcs20.c 2011-02-25 04:48:39 UTC (rev 11007)
@@ -1428,7 +1428,6 @@
xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_OGC_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_OGC_NAMESPACE_PREFIX );
xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_W3C_XSI_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_W3C_XSI_NAMESPACE_PREFIX);
xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_W3C_XLINK_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_W3C_XLINK_NAMESPACE_PREFIX);
- xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_W3C_XSI_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_W3C_XSI_NAMESPACE_PREFIX);
xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_WCS_20_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_WCS_NAMESPACE_PREFIX);
xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_GML_32_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_GML_NAMESPACE_PREFIX);
xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_GMLCOV_10_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_GMLCOV_NAMESPACE_PREFIX);
@@ -1707,12 +1706,8 @@
}
if(cm->bands[i].description != NULL)
{
- xmlNewChild(psQuantity, psGmlNs, BAD_CAST "description", BAD_CAST cm->bands[i].description);
+ xmlNewChild(psQuantity, psSweNs, BAD_CAST "description", BAD_CAST cm->bands[i].description);
}
- if(cm->bands[i].name != NULL)
- {
- xmlNewChild(psQuantity, psGmlNs, BAD_CAST "name", BAD_CAST cm->bands[i].name);
- }
psUom = xmlNewChild(psQuantity, psSweNs, BAD_CAST "uom", NULL);
if(cm->bands[i].uom != NULL)
@@ -1721,7 +1716,7 @@
}
else
{
- xmlNewProp(psUom, BAD_CAST "code", BAD_CAST "W/cm2");
+ xmlNewProp(psUom, BAD_CAST "code", BAD_CAST "W.m-2.Sr-1");
}
/* add constraint */
@@ -1729,10 +1724,7 @@
{
char interval[100];
- char id[100];
psAllowedValues = xmlNewChild(psConstraint, psSweNs, BAD_CAST "AllowedValues", NULL);
- snprintf(id, sizeof(id), "VALUE_SPACE_%d", i);
- xmlNewNsProp(psAllowedValues, psGmlNs, BAD_CAST "id", BAD_CAST id);
switch(cm->imagemode)
{
case MS_IMAGEMODE_BYTE:
More information about the mapserver-commits
mailing list