[mapguide-commits] r8202 - in sandbox/jng/tiling: Common/Schema Server/src/Services/Tile

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Jun 13 17:58:00 PDT 2014


Author: jng
Date: 2014-06-13 17:58:00 -0700 (Fri, 13 Jun 2014)
New Revision: 8202

Added:
   sandbox/jng/tiling/Common/Schema/TileProviderList-3.0.0.xsd
Modified:
   sandbox/jng/tiling/Server/src/Services/Tile/ServerTileService.cpp
Log:
Add XML schema for TileProviderList.

Added: sandbox/jng/tiling/Common/Schema/TileProviderList-3.0.0.xsd
===================================================================
--- sandbox/jng/tiling/Common/Schema/TileProviderList-3.0.0.xsd	                        (rev 0)
+++ sandbox/jng/tiling/Common/Schema/TileProviderList-3.0.0.xsd	2014-06-14 00:58:00 UTC (rev 8202)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+  <xs:element name="TileProviderList" type="TileProviderList">
+    <xs:annotation>
+      <xs:documentation>Root element that contains a collection of TileProvider elements.</xs:documentation>
+    </xs:annotation>
+  </xs:element>
+  <xs:complexType name="TileProviderList">
+    <xs:sequence>
+      <xs:element name="TileProvider" minOccurs="0" maxOccurs="unbounded">
+        <xs:annotation>
+          <xs:documentation>Describes an installed tile provider.</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+          <xs:sequence>
+            <xs:element name="Name" type="xs:string">
+              <xs:annotation>
+                <xs:documentation>Unique name of the feature provider. This name should be of the form <Company>.<Provider>.lt;Version>.</xs:documentation>
+              </xs:annotation>
+            </xs:element>
+            <xs:element name="DisplayName" type="xs:string">
+              <xs:annotation>
+                <xs:documentation>A user friendly display name of the feature provider.</xs:documentation>
+              </xs:annotation>
+            </xs:element>
+            <xs:element name="Description" type="xs:string">
+              <xs:annotation>
+                <xs:documentation>A brief description of the feature provider.</xs:documentation>
+              </xs:annotation>
+            </xs:element>
+            <xs:element name="ConnectionProperties">
+              <xs:annotation>
+                <xs:documentation>Connection properties for each provider with default values will be listed here.</xs:documentation>
+              </xs:annotation>
+              <xs:complexType>
+                <xs:sequence minOccurs="0" maxOccurs="unbounded">
+                  <xs:element name="ConnectionProperty" minOccurs="0" maxOccurs="unbounded">
+                    <xs:complexType>
+                      <xs:sequence>
+                        <xs:element name="Name" type="xs:string">
+                          <xs:annotation>
+                            <xs:documentation>Name of the property retrieved from Fdo Provider</xs:documentation>
+                          </xs:annotation>
+                        </xs:element>
+                        <xs:element name="LocalizedName" type="xs:string" minOccurs="0">
+                          <xs:annotation>
+                            <xs:documentation>Properties can have localized names for displaying them in UI. Provider will inform us what that string should be.</xs:documentation>
+                          </xs:annotation>
+                        </xs:element>
+                        <xs:element name="DefaultValue" type="xs:string" minOccurs="0">
+                          <xs:annotation>
+                            <xs:documentation>This is a default value. This will be one of the values listed in  Value element</xs:documentation>
+                          </xs:annotation>
+                        </xs:element>
+                        <xs:element name="Value" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+                          <xs:annotation>
+                            <xs:documentation>A property can have more than one alternative values to choose from. All possible values will be listed here.</xs:documentation>
+                          </xs:annotation>
+                        </xs:element>
+                      </xs:sequence>
+                      <xs:attribute name="Required" type="xs:boolean" use="required"/>
+                      <xs:attribute name="Protected" type="xs:boolean" use="required"/>
+                      <xs:attribute name="Enumerable" type="xs:boolean" use="required"/>
+                    </xs:complexType>
+                  </xs:element>
+                </xs:sequence>
+              </xs:complexType>
+            </xs:element>
+          </xs:sequence>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:complexType>
+</xs:schema>

Modified: sandbox/jng/tiling/Server/src/Services/Tile/ServerTileService.cpp
===================================================================
--- sandbox/jng/tiling/Server/src/Services/Tile/ServerTileService.cpp	2014-06-14 00:09:48 UTC (rev 8201)
+++ sandbox/jng/tiling/Server/src/Services/Tile/ServerTileService.cpp	2014-06-14 00:58:00 UTC (rev 8202)
@@ -165,7 +165,7 @@
     //we obviously should revisit this.
 
     std::string xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
-    xml.append("<TileProviderList>\n");
+    xml.append("<TileProviderList xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"TileProviderList-3.0.0.xsd\">\n");
 
     //Default Tile Provider
     {



More information about the mapguide-commits mailing list