[mapserver-commits] r7796 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jul 8 21:23:45 EDT 2008


Author: tomkralidis
Date: 2008-07-08 21:23:45 -0400 (Tue, 08 Jul 2008)
New Revision: 7796

Modified:
   trunk/mapserver/mapowscommon.c
Log:
support for all MapServer WxS namespaces


Modified: trunk/mapserver/mapowscommon.c
===================================================================
--- trunk/mapserver/mapowscommon.c	2008-07-09 01:03:46 UTC (rev 7795)
+++ trunk/mapserver/mapowscommon.c	2008-07-09 01:23:45 UTC (rev 7796)
@@ -106,7 +106,7 @@
 
   /* add child elements */
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "title");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "title");
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "Title", BAD_CAST value);
 
@@ -114,7 +114,7 @@
     xmlAddSibling(psNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_title\" missing for ows:Title"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "abstract");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "abstract");
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "Abstract", BAD_CAST value);
 
@@ -122,7 +122,7 @@
     xmlAddSibling(psNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_abstract\" was missing for ows:Abstract"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "keywordlist");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "keywordlist");
 
   if (value) {
     char **tokens = NULL;
@@ -151,7 +151,7 @@
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "ServiceTypeVersion", BAD_CAST version);
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "fees");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "fees");
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "Fees", BAD_CAST value);
 
@@ -159,7 +159,7 @@
     xmlAddSibling(psNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_fees\" was missing for ows:Fees"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "accessconstraints");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "accessconstraints");
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "AccessConstraints", BAD_CAST value);
 
@@ -202,7 +202,7 @@
 
   /* add child elements */
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactorganization");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "contactorganization");
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "ProviderName", BAD_CAST value);
 
@@ -214,7 +214,7 @@
 
   xmlNewNsProp(psNode, psNsXLink, BAD_CAST "type", BAD_CAST "simple");
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "service_onlineresource");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFSCO", "service_onlineresource");
 
   xmlNewNsProp(psNode, psNsXLink, BAD_CAST "href", BAD_CAST value);
 
@@ -224,7 +224,7 @@
 
   psNode = xmlNewChild(psRootNode, psNsOws, BAD_CAST "ServiceContact", NULL);
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactperson");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "contactperson");
 
   psSubNode = xmlNewChild(psNode, psNsOws, BAD_CAST "IndividualName", BAD_CAST  value);
 
@@ -232,7 +232,7 @@
     xmlAddSibling(psSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_contactperson\" was missing for ows:IndividualName"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactposition");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "contactposition");
 
   psSubNode = xmlNewChild(psNode, psNsOws, BAD_CAST "PositionName", BAD_CAST value); 
 
@@ -244,7 +244,7 @@
 
   psSubSubNode = xmlNewChild(psSubNode, psNsOws, BAD_CAST "Phone", NULL);
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactvoicetelephone");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "contactvoicetelephone");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "Voice", BAD_CAST value);
 
@@ -252,7 +252,7 @@
     xmlAddSibling(psSubSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_contactvoicetelephone\" was missing for ows:Voice"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactfacsimiletelephone");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "contactfacsimiletelephone");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "Facsimile", BAD_CAST value);
 
@@ -262,7 +262,7 @@
 
   psSubSubNode = xmlNewChild(psSubNode, psNsOws, BAD_CAST "Address", NULL);
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "address");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "address");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "DeliveryPoint", BAD_CAST value);
 
@@ -270,7 +270,7 @@
     xmlAddSibling(psSubSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_address\" was missing for ows:DeliveryPoint"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "city");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "city");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "City", BAD_CAST value);
 
@@ -278,7 +278,7 @@
     xmlAddSibling(psSubSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_city\" was missing for ows:City"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "stateorprovince");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "stateorprovince");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "AdministrativeArea", BAD_CAST value);
 
@@ -286,7 +286,7 @@
     xmlAddSibling(psSubSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_stateorprovince\" was missing for ows:AdministrativeArea"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "postcode");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "postcode");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "PostalCode", BAD_CAST value);
 
@@ -294,7 +294,7 @@
     xmlAddSibling(psSubSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_postcode\" was missing for ows:PostalCode"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "country");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "country");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "Country", BAD_CAST value);
 
@@ -302,7 +302,7 @@
     xmlAddSibling(psSubSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_country\" was missing for ows:Country"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactelectronicmailaddress");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFSCO", "contactelectronicmailaddress");
 
   psSubSubSubNode = xmlNewChild(psSubSubNode, psNsOws, BAD_CAST "ElectronicMailAddress", BAD_CAST value);
 
@@ -314,7 +314,7 @@
 
   xmlNewNsProp(psSubSubNode, psNsXLink, BAD_CAST "type", BAD_CAST "simple");
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "service_onlineresource");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "service_onlineresource");
 
   xmlNewNsProp(psSubSubNode, psNsXLink, BAD_CAST "href", BAD_CAST value);
 
@@ -322,7 +322,7 @@
     xmlAddSibling(psSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_service_onlineresource\" was missing for ows:OnlineResource/@xlink:href"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "hoursofservice");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "hoursofservice");
 
   psSubSubNode = xmlNewChild(psSubNode, psNsOws, BAD_CAST "HoursOfService", BAD_CAST value);
 
@@ -330,7 +330,7 @@
     xmlAddSibling(psSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_hoursofservice\" was missing for ows:HoursOfService"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "contactinstructions");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "contactinstructions");
 
   psSubSubNode = xmlNewChild(psSubNode, psNsOws, BAD_CAST "ContactInstructions", BAD_CAST value);
 
@@ -338,7 +338,7 @@
     xmlAddSibling(psSubSubNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"ows_contactinstructions\" was missing for ows:ContactInstructions"));
   }
 
-  value = msOWSLookupMetadata(&(map->web.metadata), "O", "role");
+  value = msOWSLookupMetadata(&(map->web.metadata), "MFCSO", "role");
 
   psSubNode = xmlNewChild(psNode, psNsOws, BAD_CAST "Role", BAD_CAST value);
 



More information about the mapserver-commits mailing list