[mapserver-commits] r7274 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Jan 17 19:57:52 EST 2008


Author: tomkralidis
Date: 2008-01-17 19:57:52 -0500 (Thu, 17 Jan 2008)
New Revision: 7274

Modified:
   trunk/mapserver/mapwcs11.c
Log:
update call to msOWSCommonOperationsMetadataDomainType so that
OWS_1_0_0 is passed as well, since mapowscommon.c supports multiple
versions of the standard (#2071)


Modified: trunk/mapserver/mapwcs11.c
===================================================================
--- trunk/mapserver/mapwcs11.c	2008-01-18 00:53:58 UTC (rev 7273)
+++ trunk/mapserver/mapwcs11.c	2008-01-18 00:57:52 UTC (rev 7274)
@@ -312,6 +312,8 @@
     int size = 0, i;
     msIOContext *context = NULL;
 
+    int ows_version = OWS_1_0_0;
+
 /* -------------------------------------------------------------------- */
 /*      Build list of layer identifiers available.                      */
 /* -------------------------------------------------------------------- */
@@ -386,9 +388,9 @@
 
     xmlAddChild(psMainNode, psNode);
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "service", "WCS"));
+                    ows_version, psOwsNs, "Parameter", "service", "WCS"));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "version", (char *)params->version));
+                    ows_version, psOwsNs, "Parameter", "version", (char *)params->version));
 
 /* -------------------------------------------------------------------- */
 /*      DescribeCoverage                                                */
@@ -399,11 +401,11 @@
 
     xmlAddChild(psMainNode, psNode);
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "service", "WCS"));
+                    ows_version, psOwsNs, "Parameter", "service", "WCS"));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "version", (char *)params->version));
+                    ows_version, psOwsNs, "Parameter", "version", (char *)params->version));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "identifiers", identifier_list ));
+                    ows_version, psOwsNs, "Parameter", "identifiers", identifier_list ));
 
 /* -------------------------------------------------------------------- */
 /*      GetCoverage                                                     */
@@ -416,20 +418,20 @@
     
     xmlAddChild(psMainNode, psNode);
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "service", "WCS"));
+                    ows_version, psOwsNs, "Parameter", "service", "WCS"));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "version", (char *)params->version));
+                    ows_version, psOwsNs, "Parameter", "version", (char *)params->version));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "Identifier", identifier_list ));
+                    ows_version, psOwsNs, "Parameter", "Identifier", identifier_list ));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "InterpolationType", 
+                    ows_version, psOwsNs, "Parameter", "InterpolationType", 
                     "NEAREST_NEIGHBOUR,BILINEAR" ));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "format", format_list ));
+                    ows_version, psOwsNs, "Parameter", "format", format_list ));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "store", "false" ));
+                    ows_version, psOwsNs, "Parameter", "store", "false" ));
     xmlAddChild(psNode, msOWSCommonOperationsMetadataDomainType(
-                    psOwsNs, "Parameter", "GridBaseCRS", 
+                    ows_version, psOwsNs, "Parameter", "GridBaseCRS", 
                     "urn:ogc:def:crs:epsg::4326" ));
 
     msFree( format_list );



More information about the mapserver-commits mailing list