[mapguide-commits] r8149 - in trunk/MgDev: . Server/src/UnitTesting UnitTest UnitTest/TestData UnitTest/TestData/FeatureService UnitTest/WebTier/DotNet UnitTest/WebTier/DotNet/MgTestRunner UnitTest/WebTier/DotNet/TestCommon UnitTest/WebTier/DotNet/TestMapGuideApi UnitTest/WebTier/Php

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri May 23 04:11:26 PDT 2014


Author: jng
Date: 2014-05-23 04:11:26 -0700 (Fri, 23 May 2014)
New Revision: 8149

Added:
   trunk/MgDev/UnitTest/TestData/Samples/
   trunk/MgDev/UnitTest/WebTier/DotNet/prebuild.bat
   trunk/MgDev/UnitTest/WebTier/Php/MapAgentShim/
   trunk/MgDev/UnitTest/prepare.php
   trunk/MgDev/run_tests.bat
Modified:
   trunk/MgDev/Server/src/UnitTesting/TestFeatureService.cpp
   trunk/MgDev/UnitTest/TestData/FeatureService/FeatureServiceTest.dump
   trunk/MgDev/UnitTest/WebTier/DotNet/MgTestRunner/MgTestRunner.csproj
   trunk/MgDev/UnitTest/WebTier/DotNet/TestCommon/TestCommon.csproj
   trunk/MgDev/UnitTest/WebTier/DotNet/TestMapGuideApi/TestMapGuideApi.csproj
   trunk/MgDev/build.bat
Log:
Merged revision(s) 8143-8147 from branches/2.6/MgDev:
Improve the build set up for the DotNet test runner
........
Suppress any messages boxes due to loading dlls with unmet dependencies (ie. A FDO provider) when running Feature Service tests.
........
This submission includes the following changes:
 - #2031: Check in the Sheboygan dataset. To avoid extra footprint due to redundant files, only data files not already present in the tree is checked in. A build.bat file is included which will "compile" the Sheboygan.mgp file
 - Streamline the test process:
   - Add a new PHP-based mapagent shim that can be used with PHP's built-in web server to act as a http mapagent endpoint for the PHP mapagent test suite
   - Add a prepare.php script that generates a webconfig.ini free of relative paths for key settings
   - Update the GetSpatialContexts responses in the Feature Service tests (TODO: Probably should find a way to strip the FDO version from this response so it won't break with FDO version bumps)
   - Add a new run_tests.bat that does the following:
      - Run the mgserver tests
      - Start the mgserver process and the PHP-based mapagent shim
      - Run the PHP test runner (API and http tests)
      - Run the DotNet test runner
      - Tear down the mgserver and PHP-based mapagent
........
#2031: Sheboygan dataset updates:
 - Add soils and trees layers
 - Add soils and trees layers to the untiled maps
........
#2031: Add an Advanced Stylization version of the Sheboygan map, where all the layers are using Advanced Stylization
........


Modified: trunk/MgDev/Server/src/UnitTesting/TestFeatureService.cpp
===================================================================
--- trunk/MgDev/Server/src/UnitTesting/TestFeatureService.cpp	2014-05-23 10:40:58 UTC (rev 8148)
+++ trunk/MgDev/Server/src/UnitTesting/TestFeatureService.cpp	2014-05-23 11:11:26 UTC (rev 8149)
@@ -44,6 +44,19 @@
 {
     ACE_DEBUG((LM_INFO, ACE_TEXT("\nRunning Feature Service tests.\n")));
 
+#ifdef _WIN32
+    //If the FDO we're using has a full providers.xml and we haven't met the dependencies
+    //of some providers (eg. OCI.dll for King.Oracle), then it's going to show a message box
+    //in our face about this that has to be manually dismissed. Not something you want to have 
+    //happen when trying to run tests in an automated fashion. This test suite only covers the
+    //SDF, SHP and SQLite providers so having such message boxes show up is intrusive.
+    //
+    //This call will suppress such message boxes when loading dlls with unmet depdendencies. It's
+    //okay to do this here because mgserver.exe would not be running as a service or long-running process
+    //when running its test suite, so this will only take effect for the duration of the test run
+    SetErrorMode(SEM_FAILCRITICALERRORS);
+#endif
+
     try
     {
         #ifdef _DEBUG

Modified: trunk/MgDev/UnitTest/TestData/FeatureService/FeatureServiceTest.dump
===================================================================
--- trunk/MgDev/UnitTest/TestData/FeatureService/FeatureServiceTest.dump	2014-05-23 10:40:58 UTC (rev 8148)
+++ trunk/MgDev/UnitTest/TestData/FeatureService/FeatureServiceTest.dump	2014-05-23 11:11:26 UTC (rev 8149)
@@ -519,8 +519,52 @@
 INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on Oracle resource when ACTIVEONLY  is 1', 8007, 'text/xml; charset=utf-8', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4175746F6465736B2E4F7261636C652E332E303C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E44656661756C74204461746162617365205370617469616C20436F6E746578743C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E2D31303030303030303C2F583E0A202020202020202020203C593E2D31303030303030303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174
 653E0A202020202020202020203C583E31303030303030303C2F583E0A202020202020202020203C593E31303030303030303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E5374617469633C2F457874656E74547970653E0A2020202020203C4E616D653E53435F303C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030313030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');
 INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on a SDF resource when resource data is not set yet', 8009, 'text/plain', 'MgResourceTagNotFoundException
 ');
-INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on a SDF resource', 8010, 'text/xml; charset=utf-8', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4F5347656F2E5344462E332E383C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E30313734353332393235325D5D3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E3031373435333239323
 5325D5D3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E574753383420646174756D2C204C617469747564652D4C6F6E6769747564652C20446567726565733C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E31303C2F583E0A202020202020202020203C593E31303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A202020202020202020203C583E34303C2F583E0A202020202020202020203C593E34303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E44796E616D69633C2F457874656E74547970653E0A2020202020203C4E616D653E4C4C38343C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030303030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C43
 6F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');
-INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on a SDF resource', 8011, 'text/xml; charset=utf-8', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4F5347656F2E5344462E332E383C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E30313734353332393235325D5D3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E3031373435333239323
 5325D5D3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E574753383420646174756D2C204C617469747564652D4C6F6E6769747564652C20446567726565733C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E31303C2F583E0A202020202020202020203C593E31303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A202020202020202020203C583E34303C2F583E0A202020202020202020203C593E34303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E44796E616D69633C2F457874656E74547970653E0A2020202020203C4E616D653E4C4C38343C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030303030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C43
 6F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');
+INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on a SDF resource', 8010, 'text/xml; charset=utf-8', '
+  <FdoSpatialContextList>
+    <ProviderName>OSGeo.SDF.3.9</ProviderName>
+    <SpatialContext>
+      <CoordinateSystemName>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemName>
+      <CoordinateSystemWkt>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemWkt>
+      <Description>WGS84 datum, Latitude-Longitude, Degrees</Description>
+      <Extent>
+        <LowerLeftCoordinate>
+          <X>10</X>
+          <Y>10</Y>
+        </LowerLeftCoordinate>
+        <UpperRightCoordinate>
+          <X>40</X>
+          <Y>40</Y>
+        </UpperRightCoordinate>
+      </Extent>
+      <ExtentType>Dynamic</ExtentType>
+      <Name>LL84</Name>
+      <XYTolerance>0.000000</XYTolerance>
+      <ZTolerance>0.000000</ZTolerance>
+    </SpatialContext>
+  </FdoSpatialContextList>');
+INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on a SDF resource', 8011, 'text/xml; charset=utf-8', '
+  <FdoSpatialContextList>
+    <ProviderName>OSGeo.SDF.3.9</ProviderName>
+    <SpatialContext>
+      <CoordinateSystemName>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemName>
+      <CoordinateSystemWkt>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemWkt>
+      <Description>WGS84 datum, Latitude-Longitude, Degrees</Description>
+      <Extent>
+        <LowerLeftCoordinate>
+          <X>10</X>
+          <Y>10</Y>
+        </LowerLeftCoordinate>
+        <UpperRightCoordinate>
+          <X>40</X>
+          <Y>40</Y>
+        </UpperRightCoordinate>
+      </Extent>
+      <ExtentType>Dynamic</ExtentType>
+      <Name>LL84</Name>
+      <XYTolerance>0.000000</XYTolerance>
+      <ZTolerance>0.000000</ZTolerance>
+    </SpatialContext>
+  </FdoSpatialContextList>');
 INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on an RFP resource when resource data is not set yet', 8012, 'text/plain', X'4D675265736F75726365446174614E6F74466F756E64457863657074696F6E0D0A');
 INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on an RFP resource when resource data is not set yet', 8013, 'text/plain', X'4D675265736F75726365446174614E6F74466F756E64457863657074696F6E0D0A');
 INSERT INTO "HttpTestResults" VALUES('GetSpatialContexts on an RFP resource', 8014, 'text/xml; charset=utf-8', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4175746F6465736B2E5261737465722E332E303C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E75746D5F7A6F6E65313C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E5370617469616C20636F6E7465787420666F72204172656120313C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E3230303030303C2F583E0A202020202020202020203C593E313030303030303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A20202020202020202020
 3C583E3330303030303C2F583E0A202020202020202020203C593E313130303030303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E5374617469633C2F457874656E74547970653E0A2020202020203C4E616D653E61726561313C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030303030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');
@@ -1452,8 +1496,8 @@
   </FeatureProviderCapabilities>');
 INSERT INTO "ApiTestResults" VALUES('GetCapabilities for ArcSDE provider', 2007, 'text/xml', '<?xml version="1.0" encoding="UTF-8" standalone="no" ?><FeatureProviderCapabilities><Provider Name="OSGeo.ArcSDE.3.2"/><Connection><ThreadCapability>PerConnectionThreaded</ThreadCapability><SpatialContextExtent><Type>Static</Type></SpatialContextExtent><SupportsLocking>true</SupportsLocking><SupportsTimeout>false</SupportsTimeout><SupportsTransactions>true</SupportsTransactions><SupportsLongTransactions>true</SupportsLongTransactions><SupportsSQL>true</SupportsSQL><SupportsConfiguration>false</SupportsConfiguration></Connection><Schema><Class><Type>Class</Type><Type>FeatureClass</Type></Class><Data><Type>DateTime</Type><Type>Double</Type><Type>Int16</Type><Type>Int32</Type><Type>Single</Type><Type>String</Type><Type>BLOB</Type></Data><SupportsInheritance>false</SupportsInheritance><SupportsMultipleSchemas>true</SupportsMultipleSchemas><SupportsObjectProperties>false</SupportsObjectP
 roperties><SupportsAssociationProperties>false</SupportsAssociationProperties><SupportsSchemaOverrides>false</SupportsSchemaOverrides><SupportsNetworkModel>false</SupportsNetworkModel></Schema><Command><SupportedCommands><Name>Select</Name><Name></Name><Name>Insert</Name><Name>Delete</Name><Name>Update</Name><Name>DescribeSchema</Name><Name>ActivateSpatialContext</Name><Name>CreateSpatialContext</Name><Name>DestroySpatialContext</Name><Name>GetSpatialContexts</Name><Name>SQLCommand</Name><Name>AcquireLock</Name><Name>GetLockInfo</Name><Name>GetLockedObjects</Name><Name>GetLockOwners</Name><Name>ReleaseLock</Name><Name>ActivateLongTransaction</Name><Name>DeactivateLongTransaction</Name><Name>CommitLongTransaction</Name><Name>CreateLongTransaction</Name><Name>GetLongTransactions</Name><Name>RollbackLongTransaction</Name></SupportedCommands><SupportsParameters>true</SupportsParameters><SupportsTimeout>false</SupportsTimeout></Command><Filter><Condition><Type>Comparison</Type><T
 ype>Like</Type><Type>In</Type><Type>Null</Type><Type>Spatial</Type><Type>Distance</Type></Condition><Spatial><Operation>Contains</Operation><Operation>Crosses</Operation><Operation>Disjoint</Operation><Operation>Equals</Operation><Operation>Intersects</Operation><Operation>Overlaps</Operation><Operation>Touches</Operation><Operation>Within</Operation><Operation>CoveredBy</Operation><Operation>Inside</Operation><Operation>EnvelopeIntersects</Operation></Spatial><Distance><Operation>Beyond</Operation><Operation>Within</Operation></Distance><SupportsGeodesicDistance>false</SupportsGeodesicDistance><SupportsNonLiteralGeometricOperations>false</SupportsNonLiteralGeometricOperations></Filter><Expression><Type><Name>Basic</Name><Name>Function</Name></Type><FunctionDefinitionCollection><FunctionDefinition><Name>Count</Name><Description>Returns the number of objects in the query </Description><ReturnType>Int64</ReturnType><ArgumentDefinitionCollection><ArgumentDefinition><Name>intVal
 ue</Name><Description>Argument that represents an integer </Description><ReturnType>Int64</ReturnType></ArgumentDefinition></ArgumentDefinitionCollection></FunctionDefinition><FunctionDefinition><Name>Min</Name><Description>Returns the minimum value of an expression </Description><ReturnType>Double</ReturnType><ArgumentDefinitionCollection><ArgumentDefinition><Name>dblValue</Name><Description>Argument that represents a double </Description><ReturnType>Double</ReturnType></ArgumentDefinition></ArgumentDefinitionCollection></FunctionDefinition><FunctionDefinition><Name>Avg</Name><Description>Returns the average value of an expression </Description><ReturnType>Double</ReturnType><ArgumentDefinitionCollection><ArgumentDefinition><Name>dblValue</Name><Description>Argument that represents a double </Description><ReturnType>Double</ReturnType></ArgumentDefinition></ArgumentDefinitionCollection></FunctionDefinition><FunctionDefinition><Name>Max</Name><Description>Returns the maximum
  value of an expression </Description><ReturnType>Double</ReturnType><ArgumentDefinitionCollection><ArgumentDefinition><Name>dblValue</Name><Description>Argument that represents a double </Description><ReturnType>Double</ReturnType></ArgumentDefinition></ArgumentDefinitionCollection></FunctionDefinition><FunctionDefinition><Name>Sum</Name><Description>Returns the sum of values of an expression </Description><ReturnType>Double</ReturnType><ArgumentDefinitionCollection><ArgumentDefinition><Name>dblValue</Name><Description>Argument that represents a double </Description><ReturnType>Double</ReturnType></ArgumentDefinition></ArgumentDefinitionCollection></FunctionDefinition><FunctionDefinition><Name>StdDev</Name><Description>Returns the standard deviation of an expression.</Description><ReturnType>Double</ReturnType><ArgumentDefinitionCollection><ArgumentDefinition><Name>dblValue</Name><Description>An argument that accepts any expression that evaluates to a double value.</Descrip
 tion><ReturnType>Double</ReturnType></ArgumentDefinition></ArgumentDefinitionCollection></FunctionDefinition></FunctionDefinitionCollection></Expression><Raster><SupportsRaster>false</SupportsRaster><SupportsStitching>false</SupportsStitching><SupportsSubsampling>false</SupportsSubsampling></Raster><Topology><SupportsTopology>false</SupportsTopology><SupportsTopologicalHierarchy>false</SupportsTopologicalHierarchy><BreaksCurveCrossingsAutomatically>false</BreaksCurveCrossingsAutomatically><ActivatesTopologyByArea>false</ActivatesTopologyByArea><ConstrainsFeatureMovements>false</ConstrainsFeatureMovements></Topology></FeatureProviderCapabilities>');
 INSERT INTO "ApiTestResults" VALUES('GetCapabilities for raster provider', 2009, 'text/xml', X'0A20203C4665617475726550726F76696465724361706162696C69746965733E0A202020203C436F6D6D616E643E0A2020202020203C537570706F72746564436F6D6D616E64733E0A20202020202020203C4E616D653E4465736372696265536368656D613C2F4E616D653E0A20202020202020203C4E616D653E4465736372696265536368656D614D617070696E673C2F4E616D653E0A20202020202020203C4E616D653E4765744D656173757265556E6974733C2F4E616D653E0A20202020202020203C4E616D653E4765745370617469616C436F6E74657874733C2F4E616D653E0A20202020202020203C4E616D653E53656C6563743C2F4E616D653E0A20202020202020203C4E616D653E53656C656374416767726567617465733C2F4E616D653E0A2020202020203C2F537570706F72746564436F6D6D616E64733E0A2020202020203C537570706F727473506172616D65746572733E66616C73653C2F537570706F727473506172616D65746572733E0A2020202020203C537570706F72747353656C65637444697374696E63743E66616C73653C2F537570706F72747353656C65637444697374696E63743E0A2020202020203C53757070
 6F72747353656C65637445787072657373696F6E733E66616C73653C2F537570706F72747353656C65637445787072657373696F6E733E0A2020202020203C537570706F72747353656C65637446756E6374696F6E733E66616C73653C2F537570706F72747353656C65637446756E6374696F6E733E0A2020202020203C537570706F72747353656C65637447726F7570696E673E66616C73653C2F537570706F72747353656C65637447726F7570696E673E0A2020202020203C537570706F72747353656C6563744F72646572696E673E66616C73653C2F537570706F72747353656C6563744F72646572696E673E0A2020202020203C537570706F72747354696D656F75743E66616C73653C2F537570706F72747354696D656F75743E0A202020203C2F436F6D6D616E643E0A202020203C436F6E6E656374696F6E3E0A2020202020203C5370617469616C436F6E74657874457874656E743E0A20202020202020203C547970653E5374617469633C2F547970653E3C2F5370617469616C436F6E74657874457874656E743E0A2020202020203C537570706F727473436F6E66696775726174696F6E3E747275653C2F537570706F727473436F6E66696775726174696F6E3E0A2020202020203C537570706F7274734C6F636B696E673E66616C73653C2F537570706F727
 4734C6F636B696E673E0A2020202020203C537570706F7274734C6F6E675472616E73616374696F6E733E66616C73653C2F537570706F7274734C6F6E675472616E73616374696F6E733E0A2020202020203C537570706F72747353514C3E66616C73653C2F537570706F72747353514C3E0A2020202020203C537570706F72747354696D656F75743E66616C73653C2F537570706F72747354696D656F75743E0A2020202020203C537570706F7274735472616E73616374696F6E733E66616C73653C2F537570706F7274735472616E73616374696F6E733E0A2020202020203C5468726561644361706162696C6974793E53696E676C6554687265616465643C2F5468726561644361706162696C6974793E0A202020203C2F436F6E6E656374696F6E3E0A202020203C45787072657373696F6E3E0A2020202020203C46756E6374696F6E446566696E6974696F6E436F6C6C656374696F6E3E0A20202020202020203C46756E6374696F6E446566696E6974696F6E3E0A202020202020202020203C417267756D656E74446566696E6974696F6E436F6C6C656374696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E742074686174
 2061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6D6178583C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6D6178593C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A202
 02020202020202020202020203C4E616D653E6D696E583C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6D696E593C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120756E7369676E656420696E74656765722076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6865696768743C2F4E616D65
 3E0A20202020202020202020202020203C52657475726E547970653E496E7433323C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120756E7369676E656420696E74656765722076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E77696474683C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E496E7433323C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E742074686174206163636570747320616E792065787072657373696F6E2074686174206576616C756174657320746F2061207261737465722E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E7261737465723C2F4E616D653E0A2
 0202020202020202020202020203C52657475726E547970653E424C4F423C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A202020202020202020203C2F417267756D656E74446566696E6974696F6E436F6C6C656374696F6E3E0A202020202020202020203C4465736372697074696F6E3E526573616D706C6520737562736574206F662074686520676976656E207261737465722E3C2F4465736372697074696F6E3E0A202020202020202020203C4E616D653E524553414D504C453C2F4E616D653E0A202020202020202020203C52657475726E547970653E424C4F423C2F52657475726E547970653E0A20202020202020203C2F46756E6374696F6E446566696E6974696F6E3E0A20202020202020203C46756E6374696F6E446566696E6974696F6E3E0A202020202020202020203C417267756D656E74446566696E6974696F6E436F6C6C656374696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A2020202020202020202020202020
 3C4E616D653E6D6178583C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6D6178593C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6D696E583C2F4E616D653E0A20202020202020202020202020203C52657475726E547
 970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E7420746861742061636365707473206120646F75626C652076616C75652E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E6D696E593C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E446F75626C653C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E742074686174206163636570747320616E792065787072657373696F6E2074686174206576616C756174657320746F2061207261737465722E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E7261737465723C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E424C4F423C2F5265
 7475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E0A202020202020202020203C2F417267756D656E74446566696E6974696F6E436F6C6C656374696F6E3E0A202020202020202020203C4465736372697074696F6E3E52657475726E7320737562736574206F662074686520676976656E207261737465722E3C2F4465736372697074696F6E3E0A202020202020202020203C4E616D653E434C49503C2F4E616D653E0A202020202020202020203C52657475726E547970653E424C4F423C2F52657475726E547970653E0A20202020202020203C2F46756E6374696F6E446566696E6974696F6E3E0A20202020202020203C46756E6374696F6E446566696E6974696F6E3E0A202020202020202020203C417267756D656E74446566696E6974696F6E436F6C6C656374696F6E3E0A2020202020202020202020203C417267756D656E74446566696E6974696F6E3E0A20202020202020202020202020203C4465736372697074696F6E3E416E20617267756D656E742074686174206163636570747320616E792065787072657373696F6E2074686174206576616C756174657320746F2061207261737465722E3C2F4465736372697074696F6E3E0A20202020202020202020202020203C4E616D653E72617374657
 23C2F4E616D653E0A20202020202020202020202020203C52657475726E547970653E424C4F423C2F52657475726E547970653E0A2020202020202020202020203C2F417267756D656E74446566696E6974696F6E3E3C2F417267756D656E74446566696E6974696F6E436F6C6C656374696F6E3E0A202020202020202020203C4465736372697074696F6E3E52657475726E732074686520737469746368656420726173746572206F66206120736572696573206F6620726173746572732E3C2F4465736372697074696F6E3E0A202020202020202020203C4E616D653E4D4F534149433C2F4E616D653E0A202020202020202020203C52657475726E547970653E424C4F423C2F52657475726E547970653E0A20202020202020203C2F46756E6374696F6E446566696E6974696F6E3E0A2020202020203C2F46756E6374696F6E446566696E6974696F6E436F6C6C656374696F6E3E0A2020202020203C547970653E0A20202020202020203C4E616D653E46756E6374696F6E3C2F4E616D653E3C2F547970653E0A202020203C2F45787072657373696F6E3E0A202020203C46696C7465723E0A2020202020203C436F6E646974696F6E3E0A20202020202020203C547970653E496E3C2F547970653E0A20202020202020203C547970653E5370617469616C3C2F54797065
 3E0A2020202020203C2F436F6E646974696F6E3E0A2020202020203C5370617469616C3E0A20202020202020203C4F7065726174696F6E3E456E76656C6F7065496E74657273656374733C2F4F7065726174696F6E3E0A20202020202020203C4F7065726174696F6E3E496E736964653C2F4F7065726174696F6E3E0A20202020202020203C4F7065726174696F6E3E496E74657273656374733C2F4F7065726174696F6E3E0A20202020202020203C4F7065726174696F6E3E57697468696E3C2F4F7065726174696F6E3E0A2020202020203C2F5370617469616C3E0A2020202020203C537570706F72747347656F646573696344697374616E63653E66616C73653C2F537570706F72747347656F646573696344697374616E63653E0A2020202020203C537570706F7274734E6F6E4C69746572616C47656F6D65747269634F7065726174696F6E733E66616C73653C2F537570706F7274734E6F6E4C69746572616C47656F6D65747269634F7065726174696F6E733E0A202020203C2F46696C7465723E0A202020203C47656F6D657472793E0A2020202020203C44696D656E73696F6E616C6974793E303C2F44696D656E73696F6E616C6974793E3C2F47656F6D657472793E0A202020203C50726F76696465723E3C2F50726F76696465723E0A202020203C526173746
 5723E0A2020202020203C537570706F7274735261737465723E747275653C2F537570706F7274735261737465723E0A2020202020203C537570706F727473537469746368696E673E747275653C2F537570706F727473537469746368696E673E0A2020202020203C537570706F72747353756273616D706C696E673E747275653C2F537570706F72747353756273616D706C696E673E0A202020203C2F5261737465723E0A202020203C536368656D613E0A2020202020203C436C6173733E0A20202020202020203C547970653E46656174757265436C6173733C2F547970653E3C2F436C6173733E0A2020202020203C446174613E0A20202020202020203C547970653E424C4F423C2F547970653E0A20202020202020203C547970653E537472696E673C2F547970653E0A2020202020203C2F446174613E0A2020202020203C537570706F7274734173736F63696174696F6E50726F706572746965733E66616C73653C2F537570706F7274734173736F63696174696F6E50726F706572746965733E0A2020202020203C537570706F7274734175746F496447656E65726174696F6E3E66616C73653C2F537570706F7274734175746F496447656E65726174696F6E3E0A2020202020203C537570706F7274734461746153746F726553636F7065556E6971756549644765
 6E65726174696F6E3E66616C73653C2F537570706F7274734461746153746F726553636F7065556E69717565496447656E65726174696F6E3E0A2020202020203C537570706F727473496E6865726974616E63653E747275653C2F537570706F727473496E6865726974616E63653E0A2020202020203C537570706F7274734D756C7469706C65536368656D61733E747275653C2F537570706F7274734D756C7469706C65536368656D61733E0A2020202020203C537570706F7274734E6574776F726B4D6F64656C3E66616C73653C2F537570706F7274734E6574776F726B4D6F64656C3E0A2020202020203C537570706F7274734F626A65637450726F706572746965733E66616C73653C2F537570706F7274734F626A65637450726F706572746965733E0A2020202020203C537570706F727473536368656D614D6F64696669636174696F6E3E66616C73653C2F537570706F727473536368656D614D6F64696669636174696F6E3E0A2020202020203C537570706F727473536368656D614F76657272696465733E747275653C2F537570706F727473536368656D614F76657272696465733E0A202020203C2F536368656D613E0A202020203C546F706F6C6F67793E0A2020202020203C416374697661746573546F706F6C6F67794279417265613E66616C73653C2F4
 16374697661746573546F706F6C6F67794279417265613E0A2020202020203C427265616B73437572766543726F7373696E67734175746F6D61746963616C6C793E66616C73653C2F427265616B73437572766543726F7373696E67734175746F6D61746963616C6C793E0A2020202020203C436F6E73747261696E73466561747572654D6F76656D656E74733E66616C73653C2F436F6E73747261696E73466561747572654D6F76656D656E74733E0A2020202020203C537570706F727473546F706F6C6F676963616C4869657261726368793E66616C73653C2F537570706F727473546F706F6C6F676963616C4869657261726368793E0A2020202020203C537570706F727473546F706F6C6F67793E66616C73653C2F537570706F727473546F706F6C6F67793E0A202020203C2F546F706F6C6F67793E0A20203C2F4665617475726550726F76696465724361706162696C69746965733E');
-INSERT INTO "ApiTestResults" VALUES('Adds SDF resource', 4, '', X'');
-INSERT INTO "ApiTestResults" VALUES('Sets resource data for the SDF resource', 5, '', X'');
+INSERT INTO "ApiTestResults" VALUES('Adds SDF resource', 4, '', '');
+INSERT INTO "ApiTestResults" VALUES('Sets resource data for the SDF resource', 5, '', '');
 INSERT INTO "ApiTestResults" VALUES('Adds ArcSDE feature source', 6, '', '');
 INSERT INTO "ApiTestResults" VALUES('Adds Oracle resource', 7, '', X'');
 INSERT INTO "ApiTestResults" VALUES('Adds raster feature source', 8, '', X'');
@@ -1800,13 +1844,57 @@
 INSERT INTO "ApiTestResults" VALUES('Clean up operation', 8001, '', '');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on ArcSDE resroure when ACITVEONLY is 0', 8002, 'text/xml', '<?xml version="1.0" encoding="UTF-8" ?><FdoSpatialContextList><ProviderName>OSGeo.ArcSDE.3.2</ProviderName><SpatialContext IsActive="false"><Name>1</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-180.0</X><Y>-90.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>249.49672900000002</X><Y>339.49672900000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>2</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-171.0</X><Y>-15.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>186.91394083333336</X><Y>34
 2.91394083333336</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="true"><Name>3</Name><Description></Description><CoordinateSystemName>4326</CoordinateSystemName><CoordinateSystemWkt>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>96.0</X><Y>-44.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>167.58278816666666</X><Y>27.58278816666666</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>5</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>1033302.0</X><Y>1876267.0</Y></LowerLeftCoordinate><
 UpperRightCoordinate><X>1060145.5455624999</X><Y>1903110.5455624999</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>6</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-166.0</X><Y>-52.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>191.91394083333336</X><Y>305.91394083333336</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>7</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-169.0</X><Y>-56.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>188.91394083333336</X><Y>301.91394083333336</Y></UpperRightCoordinate></Exten
 t><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>8</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2147483645.0</X><Y>2147483645.0</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>21</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Australian_UTM_Zone_54",GEOGCS["GCS_Australian",DATUM["D_Australian",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",-10000000.0],PARAMETER["Central_Meridian",141.0],PARAMETER["Scale_Factor"
 ,0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>275586.68065650499</X><Y>6127482.4433970302</Y></LowerLeftCoordinate><UpperRightCoordinate><X>285586.91308418236</X><Y>6137482.6758247074</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>22</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Australian_UTM_Zone_54",GEOGCS["GCS_Australian",DATUM["D_Australian",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",-10000000.0],PARAMETER["Central_Meridian",141.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</Ext
 entType><Extent><LowerLeftCoordinate><X>275586.68065650499</X><Y>6127482.4433970302</Y></LowerLeftCoordinate><UpperRightCoordinate><X>285586.91308418236</X><Y>6137482.6758247074</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>38</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-180.0</X><Y>-90.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>678.99345800000003</X><Y>768.99345800000003</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>59</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>976174.25110047904</X><Y>1819997.0
 485967</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1113613.204508479</X><Y>1957436.0020046998</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>47</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2.0</X><Y>11.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>32.00000342261086</X><Y>41.00000342261086</Y></UpperRightCoordinate></Extent><XYTolerance>484966433</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1n</Name><Description>A spatial context</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0
 174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000005.00093133</X><Y>-1000005.00093133</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1000004.9990686716</X><Y>1000004.9990686716</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1o</Name><Description>A spatial context</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["Fals
 e_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000058.00093138</X><Y>-1000058.00093138</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1000057.9990686256</X><Y>1000057.9990686256</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1q</Name><Description>A spatial context</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMET
 ER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000060.00093138</X><Y>-1000060.00093138</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1000059.9990686172</X><Y>1000059.9990686172</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>4</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>1034404.0</X><Y>1875155.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1065082.3377857143</X><Y>1905833.3377857143</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>13</Name><Description></Description><Coordinate
 SystemName>26911</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>361344.84351789003</X><Y>3642995.62477186</Y></LowerLeftCoordinate><UpperRightCoordinate><X>611344.84374934225</X><Y>3892995.6250033122</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>30</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>St
 atic</ExtentType><Extent><LowerLeftCoordinate><X>2301368.7827019999</X><Y>731938.720202</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2309958.7172900001</X><Y>740528.65479000018</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>31</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2301368.7827019999</X><Y>731938.720202</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2309958.7172900001</X><Y>740528.65479000018</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>32</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>
 2100000.0</X><Y>500000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2600000.0</X><Y>1000000.0</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>33</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2100000.0</X><Y>500000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2600000.0</X><Y>1000000.0</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>DummyCartesian</Name><Description>A rectangualr spatial context.</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],U
 NIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>63</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-200.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1947.4836449999998</X><Y>2147.4836449999998</Y></UpperRightCoordinate></Extent><XYTolerance>0<
 /XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>60</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>1000000.0</X><Y>1000000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>3147483.645</X><Y>3147483.645</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>62</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>-85.525163550000002</X><Y>28.474836450000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>64</Name><De
 scription></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>107.74836450000001</X><Y>221.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>65</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2040.4836449999998</X><Y>2154.4836449999998</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>66</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateS
 ystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-200.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>14.748364500000008</X><Y>214.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>67</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-110.0</X><Y>4.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>-88.525163550000002</X><Y>25.474836450000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>68</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-117.0</X><Y>-3.0</Y></LowerLe
 ftCoordinate><UpperRightCoordinate><X>-95.525163550000002</X><Y>18.474836450000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>69</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-117.0</X><Y>-3.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>97.748364500000008</X><Y>211.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>70</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-130.0</X><Y>-30.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>84.748364500000008</X><Y>184.74836450000001</Y></UpperRightCo
 ordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>71</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-150.0</X><Y>-50.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>64.748364500000008</X><Y>164.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>72</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-150.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>64.748364500000008</X><Y>214.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialCont
 ext IsActive="false"><Name>73</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2147483.645</X><Y>2147483.645</Y></UpperRightCoordinate></Extent><XYTolerance>-755914244</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest2r</Name><Description>something descriptiveeeeeeeeeÿÿtµ</Description><CoordinateSystemName>20251</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_51",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",123.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["La
 titude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-5000061.0046566697</X><Y>-3000061.0046566701</Y></LowerLeftCoordinate><UpperRightCoordinate><X>5000060.9953433247</X><Y>7000060.9953433238</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>9</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-10000.0</X><Y>-10000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>11474.836449999999</X><Y>11474.836449999999</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>10</Name><Description></Description><CoordinateSystemName>26711</CoordinateSystemName><CoordinateSystemWkt>PRO
 JCS["NAD_1927_UTM_Zone_11N",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>449735.63240863598</X><Y>4712674.0663228203</Y></LowerLeftCoordinate><UpperRightCoordinate><X>587174.58581663587</X><Y>4850113.0197308203</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>11</Name><Description></Description><CoordinateSystemName>4269</CoordinateSystemName><CoordinateSystemWkt>GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0
 ,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1196.33525919918</X><Y>-1028.5763159237099</Y></LowerLeftCoordinate><UpperRightCoordinate><X>951.14838780082096</X><Y>1118.907331076291</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>12</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-10000.0</X><Y>-10000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>11474.836449999999</X><Y>11474.836449999999</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>14</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSyste
 mWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>214748.3645</X><Y>214748.3645</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>15</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>361344.84351789003</X><Y>3642995.62477186</Y></LowerLeftCoordinate><UpperRightCoordinate><X>611344.84374934225</X><Y>3892995.6250033122</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>16</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</
 X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>7158278.8166666664</X><Y>7158278.8166666664</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>17</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>21474836.449999999</X><Y>21474836.449999999</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>24</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-370.36414417431598</X><Y>-244.799777833679</Y></LowerLeftCoordinate><UpperRightCoordinate><X>166.50676757568391</
 X><Y>292.07113391632089</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>25</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-370.36414417431598</X><Y>-244.799777833679</Y></LowerLeftCoordinate><UpperRightCoordinate><X>166.50676757568391</X><Y>292.07113391632089</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>34</Name><Description></Description><CoordinateSystemName>4283</CoordinateSystemName><CoordinateSystemWkt>GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2100
 000.0</X><Y>500000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2600000.0</X><Y>1000000.0</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1f</Name><Description>A spatial context</Description><CoordinateSystemName>2041</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Abidjan_1987_UTM_Zone_30N",GEOGCS["GCS_Abidjan_1987",DATUM["D_Abidjan_1987",SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-3.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>
 999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>61</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>-104.85251635500001</X><Y>9.1474836449999994</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>18</Name><Description></Description><CoordinateSystemName>26911</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000
 .0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>451985.10536603106</X><Y>3733635.88662</Y></LowerLeftCoordinate><UpperRightCoordinate><X>520704.58207003097</X><Y>3802355.363324</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>19</Name><Description></Description><CoordinateSystemName>26911</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scal
 e_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>451985.10536603106</X><Y>3733635.88662</Y></LowerLeftCoordinate><UpperRightCoordinate><X>520704.58207003097</X><Y>3802355.363324</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>20</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Clarke_1866_Albers",GEOGCS["GCS_Clarke_1866",DATUM["D_Clarke_1866",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-96.0],PARAMETER["Standard_Parallel_1",29.5],PARAMETER["Standard_Parallel_2",45.5],PARAMETER["Latitude_Of_Origin",23.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><
 ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-8845371.0263039991</X><Y>-7057448.0888040001</Y></LowerLeftCoordinate><UpperRightCoordinate><X>8746815.0099200234</X><Y>10534737.947420023</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>23</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>236748.201550581</X><Y>190565.80623808102</Y></LowerLeftCoordinate><UpperRightCoordinate><X>262343.51717558102</X><Y>216161.12186308103</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>26</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftC
 oordinate><X>180826.38260700001</X><Y>132681.74198200001</Y></LowerLeftCoordinate><UpperRightCoordinate><X>318265.33601499989</X><Y>270120.69538999989</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>27</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>180826.38260700001</X><Y>132681.74198200001</Y></LowerLeftCoordinate><UpperRightCoordinate><X>318265.33601499989</X><Y>270120.69538999989</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>28</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_Transverse_Mercator",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID[
 "GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",-1000.0],PARAMETER["False_Northing",-1000.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-16.777216007812498</X><Y>-16.777216007812498</Y></LowerLeftCoordinate><UpperRightCoordinate><X>16.777215976562481</X><Y>16.777215976562481</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>29</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_Transverse_Mercator",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.
 0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",-1000.0],PARAMETER["False_Northing",-1000.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-16.777216007812498</X><Y>-16.777216007812498</Y></LowerLeftCoordinate><UpperRightCoordinate><X>16.777215976562481</X><Y>16.777215976562481</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SC_Test1</Name><Description>A spatial context</Description><CoordinateSystemName>102001</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Canada_Albers_Equal_Area_Conic",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_
 Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-96.0],PARAMETER["Standard_Parallel_1",50.0],PARAMETER["Standard_Parallel_2",70.0],PARAMETER["Latitude_Of_Origin",40.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>49</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2.0</X><Y>11.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>38.000002095475921</X><Y>47.000002095475921</Y></UpperRightCoordinate></Extent><XYTolerance>975175793</XYTolerance><ZTolerance>0</ZTolerance></Spatia
 lContext><SpatialContext IsActive="false"><Name>46</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-180.0</X><Y>-90.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>678.99345800000003</X><Y>768.99345800000003</Y></UpperRightCoordinate></Extent><XYTolerance>-1698910392</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1g</Name><Description>A spatial context</Description><CoordinateSystemName>2137</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Accra_TM_1_NW",GEOGCS["GCS_Accra",DATUM["D_Accra",SPHEROID["War_Office",6378300.0,296.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-1.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin"
 ,0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1h</Name><Description>A spatial context</Description><CoordinateSystemName>20138</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Adindan_UTM_Zone_38N",GEOGCS["GCS_Adindan",DATUM["D_Adindan",SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",45.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Exten
 t><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1i</Name><Description>A spatial context</Description><CoordinateSystemName>102011</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Africa_Sinusoidal",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Sinusoidal"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></Up
 perRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1j</Name><Description>A spatial context</Description><CoordinateSystemName>20248</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_48",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",105.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><Z
 Tolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>57</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Clarke_1866_Albers",GEOGCS["GCS_Clarke_1866",DATUM["D_Clarke_1866",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-96.0],PARAMETER["Standard_Parallel_1",29.5],PARAMETER["Standard_Parallel_2",45.5],PARAMETER["Latitude_Of_Origin",23.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-2585463.02736201</X><Y>169081.26638799402</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2486907.0226379926</X><Y>5241451.316387997</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext></FdoSpatialContextList>');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on ArcSDE resroure when ACITVEONLY is 1', 8003, 'text/xml', '<?xml version="1.0" encoding="UTF-8" ?><FdoSpatialContextList><ProviderName>OSGeo.ArcSDE.3.2</ProviderName><SpatialContext IsActive="false"><Name>1</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-180.0</X><Y>-90.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>249.49672900000002</X><Y>339.49672900000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>2</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-171.0</X><Y>-15.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>186.91394083333336</X><Y>34
 2.91394083333336</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="true"><Name>3</Name><Description></Description><CoordinateSystemName>4326</CoordinateSystemName><CoordinateSystemWkt>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>96.0</X><Y>-44.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>167.58278816666666</X><Y>27.58278816666666</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>5</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>1033302.0</X><Y>1876267.0</Y></LowerLeftCoordinate><
 UpperRightCoordinate><X>1060145.5455624999</X><Y>1903110.5455624999</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>6</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-166.0</X><Y>-52.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>191.91394083333336</X><Y>305.91394083333336</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>7</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-169.0</X><Y>-56.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>188.91394083333336</X><Y>301.91394083333336</Y></UpperRightCoordinate></Exten
 t><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>8</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2147483645.0</X><Y>2147483645.0</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>21</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Australian_UTM_Zone_54",GEOGCS["GCS_Australian",DATUM["D_Australian",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",-10000000.0],PARAMETER["Central_Meridian",141.0],PARAMETER["Scale_Factor"
 ,0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>275586.68065650499</X><Y>6127482.4433970302</Y></LowerLeftCoordinate><UpperRightCoordinate><X>285586.91308418236</X><Y>6137482.6758247074</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>22</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Australian_UTM_Zone_54",GEOGCS["GCS_Australian",DATUM["D_Australian",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",-10000000.0],PARAMETER["Central_Meridian",141.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</Ext
 entType><Extent><LowerLeftCoordinate><X>275586.68065650499</X><Y>6127482.4433970302</Y></LowerLeftCoordinate><UpperRightCoordinate><X>285586.91308418236</X><Y>6137482.6758247074</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>38</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-180.0</X><Y>-90.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>678.99345800000003</X><Y>768.99345800000003</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>59</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>976174.25110047904</X><Y>1819997.0
 485967</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1113613.204508479</X><Y>1957436.0020046998</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>47</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2.0</X><Y>11.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>32.00000342261086</X><Y>41.00000342261086</Y></UpperRightCoordinate></Extent><XYTolerance>484966433</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1n</Name><Description>A spatial context</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0
 174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000005.00093133</X><Y>-1000005.00093133</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1000004.9990686716</X><Y>1000004.9990686716</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1o</Name><Description>A spatial context</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["Fals
 e_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000058.00093138</X><Y>-1000058.00093138</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1000057.9990686256</X><Y>1000057.9990686256</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1q</Name><Description>A spatial context</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMET
 ER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000060.00093138</X><Y>-1000060.00093138</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1000059.9990686172</X><Y>1000059.9990686172</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>4</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>1034404.0</X><Y>1875155.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1065082.3377857143</X><Y>1905833.3377857143</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>13</Name><Description></Description><Coordinate
 SystemName>26911</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>361344.84351789003</X><Y>3642995.62477186</Y></LowerLeftCoordinate><UpperRightCoordinate><X>611344.84374934225</X><Y>3892995.6250033122</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>30</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>St
 atic</ExtentType><Extent><LowerLeftCoordinate><X>2301368.7827019999</X><Y>731938.720202</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2309958.7172900001</X><Y>740528.65479000018</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>31</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2301368.7827019999</X><Y>731938.720202</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2309958.7172900001</X><Y>740528.65479000018</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>32</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>
 2100000.0</X><Y>500000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2600000.0</X><Y>1000000.0</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>33</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2100000.0</X><Y>500000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2600000.0</X><Y>1000000.0</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>DummyCartesian</Name><Description>A rectangualr spatial context.</Description><CoordinateSystemName>20250</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_50",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],U
 NIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>63</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-200.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>1947.4836449999998</X><Y>2147.4836449999998</Y></UpperRightCoordinate></Extent><XYTolerance>0<
 /XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>60</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>1000000.0</X><Y>1000000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>3147483.645</X><Y>3147483.645</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>62</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>-85.525163550000002</X><Y>28.474836450000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>64</Name><De
 scription></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>107.74836450000001</X><Y>221.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>65</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2040.4836449999998</X><Y>2154.4836449999998</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>66</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateS
 ystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-200.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>14.748364500000008</X><Y>214.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>67</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-110.0</X><Y>4.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>-88.525163550000002</X><Y>25.474836450000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>68</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-117.0</X><Y>-3.0</Y></LowerLe
 ftCoordinate><UpperRightCoordinate><X>-95.525163550000002</X><Y>18.474836450000002</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>69</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-117.0</X><Y>-3.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>97.748364500000008</X><Y>211.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>70</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-130.0</X><Y>-30.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>84.748364500000008</X><Y>184.74836450000001</Y></UpperRightCo
 ordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>71</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-150.0</X><Y>-50.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>64.748364500000008</X><Y>164.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>72</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-150.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>64.748364500000008</X><Y>214.74836450000001</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialCont
 ext IsActive="false"><Name>73</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2147483.645</X><Y>2147483.645</Y></UpperRightCoordinate></Extent><XYTolerance>-755914244</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest2r</Name><Description>something descriptiveeeeeeeeeÿÿtµ</Description><CoordinateSystemName>20251</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_51",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",123.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["La
 titude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-5000061.0046566697</X><Y>-3000061.0046566701</Y></LowerLeftCoordinate><UpperRightCoordinate><X>5000060.9953433247</X><Y>7000060.9953433238</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>9</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-10000.0</X><Y>-10000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>11474.836449999999</X><Y>11474.836449999999</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>10</Name><Description></Description><CoordinateSystemName>26711</CoordinateSystemName><CoordinateSystemWkt>PRO
 JCS["NAD_1927_UTM_Zone_11N",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>449735.63240863598</X><Y>4712674.0663228203</Y></LowerLeftCoordinate><UpperRightCoordinate><X>587174.58581663587</X><Y>4850113.0197308203</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>11</Name><Description></Description><CoordinateSystemName>4269</CoordinateSystemName><CoordinateSystemWkt>GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0
 ,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1196.33525919918</X><Y>-1028.5763159237099</Y></LowerLeftCoordinate><UpperRightCoordinate><X>951.14838780082096</X><Y>1118.907331076291</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>12</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-10000.0</X><Y>-10000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>11474.836449999999</X><Y>11474.836449999999</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>14</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSyste
 mWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>214748.3645</X><Y>214748.3645</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>15</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>361344.84351789003</X><Y>3642995.62477186</Y></LowerLeftCoordinate><UpperRightCoordinate><X>611344.84374934225</X><Y>3892995.6250033122</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>16</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</
 X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>7158278.8166666664</X><Y>7158278.8166666664</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>17</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>0.0</X><Y>0.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>21474836.449999999</X><Y>21474836.449999999</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>24</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-370.36414417431598</X><Y>-244.799777833679</Y></LowerLeftCoordinate><UpperRightCoordinate><X>166.50676757568391</
 X><Y>292.07113391632089</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>25</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-370.36414417431598</X><Y>-244.799777833679</Y></LowerLeftCoordinate><UpperRightCoordinate><X>166.50676757568391</X><Y>292.07113391632089</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>34</Name><Description></Description><CoordinateSystemName>4283</CoordinateSystemName><CoordinateSystemWkt>GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2100
 000.0</X><Y>500000.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2600000.0</X><Y>1000000.0</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1f</Name><Description>A spatial context</Description><CoordinateSystemName>2041</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Abidjan_1987_UTM_Zone_30N",GEOGCS["GCS_Abidjan_1987",DATUM["D_Abidjan_1987",SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-3.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>
 999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>61</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-107.0</X><Y>7.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>-104.85251635500001</X><Y>9.1474836449999994</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>18</Name><Description></Description><CoordinateSystemName>26911</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000
 .0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>451985.10536603106</X><Y>3733635.88662</Y></LowerLeftCoordinate><UpperRightCoordinate><X>520704.58207003097</X><Y>3802355.363324</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>19</Name><Description></Description><CoordinateSystemName>26911</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scal
 e_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>451985.10536603106</X><Y>3733635.88662</Y></LowerLeftCoordinate><UpperRightCoordinate><X>520704.58207003097</X><Y>3802355.363324</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>20</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Clarke_1866_Albers",GEOGCS["GCS_Clarke_1866",DATUM["D_Clarke_1866",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-96.0],PARAMETER["Standard_Parallel_1",29.5],PARAMETER["Standard_Parallel_2",45.5],PARAMETER["Latitude_Of_Origin",23.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><
 ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-8845371.0263039991</X><Y>-7057448.0888040001</Y></LowerLeftCoordinate><UpperRightCoordinate><X>8746815.0099200234</X><Y>10534737.947420023</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>23</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>236748.201550581</X><Y>190565.80623808102</Y></LowerLeftCoordinate><UpperRightCoordinate><X>262343.51717558102</X><Y>216161.12186308103</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>26</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftC
 oordinate><X>180826.38260700001</X><Y>132681.74198200001</Y></LowerLeftCoordinate><UpperRightCoordinate><X>318265.33601499989</X><Y>270120.69538999989</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>27</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>180826.38260700001</X><Y>132681.74198200001</Y></LowerLeftCoordinate><UpperRightCoordinate><X>318265.33601499989</X><Y>270120.69538999989</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>28</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_Transverse_Mercator",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID[
 "GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",-1000.0],PARAMETER["False_Northing",-1000.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-16.777216007812498</X><Y>-16.777216007812498</Y></LowerLeftCoordinate><UpperRightCoordinate><X>16.777215976562481</X><Y>16.777215976562481</Y></UpperRightCoordinate></Extent><XYTolerance>-1998362383</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>29</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["NAD_1983_Transverse_Mercator",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.
 0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",-1000.0],PARAMETER["False_Northing",-1000.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-16.777216007812498</X><Y>-16.777216007812498</Y></LowerLeftCoordinate><UpperRightCoordinate><X>16.777215976562481</X><Y>16.777215976562481</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SC_Test1</Name><Description>A spatial context</Description><CoordinateSystemName>102001</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Canada_Albers_Equal_Area_Conic",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_
 Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-96.0],PARAMETER["Standard_Parallel_1",50.0],PARAMETER["Standard_Parallel_2",70.0],PARAMETER["Latitude_Of_Origin",40.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>49</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>2.0</X><Y>11.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>38.000002095475921</X><Y>47.000002095475921</Y></UpperRightCoordinate></Extent><XYTolerance>975175793</XYTolerance><ZTolerance>0</ZTolerance></Spatia
 lContext><SpatialContext IsActive="false"><Name>46</Name><Description></Description><CoordinateSystemName></CoordinateSystemName><CoordinateSystemWkt></CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-180.0</X><Y>-90.0</Y></LowerLeftCoordinate><UpperRightCoordinate><X>678.99345800000003</X><Y>768.99345800000003</Y></UpperRightCoordinate></Extent><XYTolerance>-1698910392</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1g</Name><Description>A spatial context</Description><CoordinateSystemName>2137</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Accra_TM_1_NW",GEOGCS["GCS_Accra",DATUM["D_Accra",SPHEROID["War_Office",6378300.0,296.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-1.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin"
 ,0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1h</Name><Description>A spatial context</Description><CoordinateSystemName>20138</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Adindan_UTM_Zone_38N",GEOGCS["GCS_Adindan",DATUM["D_Adindan",SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",45.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Exten
 t><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1i</Name><Description>A spatial context</Description><CoordinateSystemName>102011</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Africa_Sinusoidal",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Sinusoidal"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></Up
 perRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>SCTest1j</Name><Description>A spatial context</Description><CoordinateSystemName>20248</CoordinateSystemName><CoordinateSystemWkt>PROJCS["AGD_1966_AMG_Zone_48",GEOGCS["GCS_Australian_1966",DATUM["D_Australian_1966",SPHEROID["Australian",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",105.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-1000000.00093132</X><Y>-1000000.00093132</Y></LowerLeftCoordinate><UpperRightCoordinate><X>999999.99906868022</X><Y>999999.99906868022</Y></UpperRightCoordinate></Extent><XYTolerance>1202590843</XYTolerance><Z
 Tolerance>0</ZTolerance></SpatialContext><SpatialContext IsActive="false"><Name>57</Name><Description></Description><CoordinateSystemName>0</CoordinateSystemName><CoordinateSystemWkt>PROJCS["Clarke_1866_Albers",GEOGCS["GCS_Clarke_1866",DATUM["D_Clarke_1866",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-96.0],PARAMETER["Standard_Parallel_1",29.5],PARAMETER["Standard_Parallel_2",45.5],PARAMETER["Latitude_Of_Origin",23.0],UNIT["Meter",1.0]]</CoordinateSystemWkt><ExtentType>Static</ExtentType><Extent><LowerLeftCoordinate><X>-2585463.02736201</X><Y>169081.26638799402</Y></LowerLeftCoordinate><UpperRightCoordinate><X>2486907.0226379926</X><Y>5241451.316387997</Y></UpperRightCoordinate></Extent><XYTolerance>0</XYTolerance><ZTolerance>0</ZTolerance></SpatialContext></FdoSpatialContextList>');
-INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts with blank resource', 8004, 'text/plain', X'6D67696E76616C69647265706F7369746F727974797065657863657074696F6E');
+INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts with blank resource', 8004, 'text/plain', 'mginvalidrepositorytypeexception');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts when the resource does not exist', 8005, 'text/plain', 'mgresourcenotfoundexception');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on Oracle resource when ACTIVEONLY  is 0', 8006, 'text/xml', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4175746F6465736B2E4F7261636C652E332E303C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E44656661756C74204461746162617365205370617469616C20436F6E746578743C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E2D31303030303030303C2F583E0A202020202020202020203C593E2D31303030303030303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A2020202020
 20202020203C583E31303030303030303C2F583E0A202020202020202020203C593E31303030303030303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E5374617469633C2F457874656E74547970653E0A2020202020203C4E616D653E53435F303C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030313030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on Oracle resource when ACTIVEONLY  is 1', 8007, 'text/xml', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4175746F6465736B2E4F7261636C652E332E303C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E44656661756C74204461746162617365205370617469616C20436F6E746578743C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E2D31303030303030303C2F583E0A202020202020202020203C593E2D31303030303030303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A2020202020
 20202020203C583E31303030303030303C2F583E0A202020202020202020203C593E31303030303030303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E5374617469633C2F457874656E74547970653E0A2020202020203C4E616D653E53435F303C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030313030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');
-INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on a SDF resource when resource data is not set yet', 8009, 'text/plain', X'6D676170706C69636174696F6E657863657074696F6E');
-INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on a SDF resource', 8010, 'text/xml', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4F5347656F2E5344462E332E383C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E30313734353332393235325D5D3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E30313734353332393235325D5D3C2F436F6
 F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E574753383420646174756D2C204C617469747564652D4C6F6E6769747564652C20446567726565733C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E31303C2F583E0A202020202020202020203C593E31303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A202020202020202020203C583E34303C2F583E0A202020202020202020203C593E34303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E44796E616D69633C2F457874656E74547970653E0A2020202020203C4E616D653E4C4C38343C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030303030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A
 20203C2F46646F5370617469616C436F6E746578744C6973743E');
-INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on a SDF resource', 8011, 'text/xml', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4F5347656F2E5344462E332E383C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E30313734353332393235325D5D3C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E47454F4743535B224C4C3834222C444154554D5B22574753203834222C53504845524F49445B22574753203834222C363337383133372C305D2C544F57475338345B302C302C302C302C302C302C305D5D2C5052494D454D5B22477265656E77696368222C305D2C554E49545B2244656772656573222C302E30313734353332393235325D5D3C2F436F6
 F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E574753383420646174756D2C204C617469747564652D4C6F6E6769747564652C20446567726565733C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E31303C2F583E0A202020202020202020203C593E31303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A202020202020202020203C583E34303C2F583E0A202020202020202020203C593E34303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E44796E616D69633C2F457874656E74547970653E0A2020202020203C4E616D653E4C4C38343C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030303030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A
 20203C2F46646F5370617469616C436F6E746578744C6973743E');
+INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on a SDF resource when resource data is not set yet', 8009, 'text/plain', 'mgapplicationexception');
+INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on a SDF resource', 8010, 'text/xml', '
+  <FdoSpatialContextList>
+    <ProviderName>OSGeo.SDF.3.9</ProviderName>
+    <SpatialContext>
+      <CoordinateSystemName>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemName>
+      <CoordinateSystemWkt>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemWkt>
+      <Description>WGS84 datum, Latitude-Longitude, Degrees</Description>
+      <Extent>
+        <LowerLeftCoordinate>
+          <X>10</X>
+          <Y>10</Y>
+        </LowerLeftCoordinate>
+        <UpperRightCoordinate>
+          <X>40</X>
+          <Y>40</Y>
+        </UpperRightCoordinate>
+      </Extent>
+      <ExtentType>Dynamic</ExtentType>
+      <Name>LL84</Name>
+      <XYTolerance>0.000000</XYTolerance>
+      <ZTolerance>0.000000</ZTolerance>
+    </SpatialContext>
+  </FdoSpatialContextList>');
+INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on a SDF resource', 8011, 'text/xml', '
+  <FdoSpatialContextList>
+    <ProviderName>OSGeo.SDF.3.9</ProviderName>
+    <SpatialContext>
+      <CoordinateSystemName>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemName>
+      <CoordinateSystemWkt>GEOGCS["LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,0],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystemWkt>
+      <Description>WGS84 datum, Latitude-Longitude, Degrees</Description>
+      <Extent>
+        <LowerLeftCoordinate>
+          <X>10</X>
+          <Y>10</Y>
+        </LowerLeftCoordinate>
+        <UpperRightCoordinate>
+          <X>40</X>
+          <Y>40</Y>
+        </UpperRightCoordinate>
+      </Extent>
+      <ExtentType>Dynamic</ExtentType>
+      <Name>LL84</Name>
+      <XYTolerance>0.000000</XYTolerance>
+      <ZTolerance>0.000000</ZTolerance>
+    </SpatialContext>
+  </FdoSpatialContextList>');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on an RFP resource when resource data is not set yet', 8012, 'text/plain', X'6D677265736F75726365646174616E6F74666F756E64657863657074696F6E');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on an RFP resource when resource data is not set yet', 8013, 'text/plain', X'6D677265736F75726365646174616E6F74666F756E64657863657074696F6E');
 INSERT INTO "ApiTestResults" VALUES('GetSpatialContexts on an RFP resource', 8014, 'text/xml', X'0A20203C46646F5370617469616C436F6E746578744C6973743E0A202020203C50726F76696465724E616D653E4175746F6465736B2E5261737465722E332E303C2F50726F76696465724E616D653E0A202020203C5370617469616C436F6E746578743E0A2020202020203C436F6F7264696E61746553797374656D4E616D653E75746D5F7A6F6E65313C2F436F6F7264696E61746553797374656D4E616D653E0A2020202020203C436F6F7264696E61746553797374656D576B743E3C2F436F6F7264696E61746553797374656D576B743E0A2020202020203C4465736372697074696F6E3E5370617469616C20636F6E7465787420666F72204172656120313C2F4465736372697074696F6E3E0A2020202020203C457874656E743E0A20202020202020203C4C6F7765724C656674436F6F7264696E6174653E0A202020202020202020203C583E3230303030303C2F583E0A202020202020202020203C593E313030303030303C2F593E0A20202020202020203C2F4C6F7765724C656674436F6F7264696E6174653E0A20202020202020203C55707065725269676874436F6F7264696E6174653E0A202020202020202020203C583E3330303030
 303C2F583E0A202020202020202020203C593E313130303030303C2F593E0A20202020202020203C2F55707065725269676874436F6F7264696E6174653E0A2020202020203C2F457874656E743E0A2020202020203C457874656E74547970653E5374617469633C2F457874656E74547970653E0A2020202020203C4E616D653E61726561313C2F4E616D653E0A2020202020203C5859546F6C6572616E63653E302E3030303030303C2F5859546F6C6572616E63653E0A2020202020203C5A546F6C6572616E63653E302E3030303030303C2F5A546F6C6572616E63653E0A202020203C2F5370617469616C436F6E746578743E0A20203C2F46646F5370617469616C436F6E746578744C6973743E');

Modified: trunk/MgDev/UnitTest/WebTier/DotNet/MgTestRunner/MgTestRunner.csproj
===================================================================
--- trunk/MgDev/UnitTest/WebTier/DotNet/MgTestRunner/MgTestRunner.csproj	2014-05-23 10:40:58 UTC (rev 8148)
+++ trunk/MgDev/UnitTest/WebTier/DotNet/MgTestRunner/MgTestRunner.csproj	2014-05-23 11:11:26 UTC (rev 8149)
@@ -23,7 +23,7 @@
     <Prefer32Bit>true</Prefer32Bit>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
-    <OutputPath>bin\x64\Release\</OutputPath>
+    <OutputPath>..\..\DotNet_x64\</OutputPath>
     <DefineConstants>TRACE</DefineConstants>
     <Optimize>true</Optimize>
     <DebugType>pdbonly</DebugType>
@@ -45,7 +45,7 @@
     <UseVSHostingProcess>false</UseVSHostingProcess>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
-    <OutputPath>bin\x86\Release\</OutputPath>
+    <OutputPath>..\..\DotNet_x86\</OutputPath>
     <DefineConstants>TRACE</DefineConstants>
     <Optimize>true</Optimize>
     <DebugType>pdbonly</DebugType>
@@ -53,6 +53,7 @@
     <ErrorReport>prompt</ErrorReport>
     <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
     <Prefer32Bit>true</Prefer32Bit>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="OSGeo.MapGuide.Foundation">
@@ -98,8 +99,11 @@
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
     <PostBuildEvent>copy /Y "$(SolutionDir)Libs\*.*" "$(TargetDir)"
-xcopy /S /Y /I ..\..\..\Web\src\mapagent\Resources "$(TargetDir)\Resources"</PostBuildEvent>
+xcopy /S /Y /I $(SolutionDir)..\..\..\Web\src\mapagent\Resources "$(TargetDir)\Resources"</PostBuildEvent>
   </PropertyGroup>
+  <PropertyGroup>
+    <PreBuildEvent>call "$(SolutionDir)prebuild.bat" "$(ConfigurationName)" "$(PlatformName)"</PreBuildEvent>
+  </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">

Modified: trunk/MgDev/UnitTest/WebTier/DotNet/TestCommon/TestCommon.csproj
===================================================================
--- trunk/MgDev/UnitTest/WebTier/DotNet/TestCommon/TestCommon.csproj	2014-05-23 10:40:58 UTC (rev 8148)
+++ trunk/MgDev/UnitTest/WebTier/DotNet/TestCommon/TestCommon.csproj	2014-05-23 11:11:26 UTC (rev 8149)
@@ -47,6 +47,7 @@
     <PlatformTarget>x86</PlatformTarget>
     <ErrorReport>prompt</ErrorReport>
     <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="OSGeo.MapGuide.Foundation">
@@ -91,6 +92,9 @@
   </ItemGroup>
   <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PreBuildEvent>call "$(SolutionDir)prebuild.bat" "$(ConfigurationName)" "$(PlatformName)"</PreBuildEvent>
+  </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">

Modified: trunk/MgDev/UnitTest/WebTier/DotNet/TestMapGuideApi/TestMapGuideApi.csproj
===================================================================
--- trunk/MgDev/UnitTest/WebTier/DotNet/TestMapGuideApi/TestMapGuideApi.csproj	2014-05-23 10:40:58 UTC (rev 8148)
+++ trunk/MgDev/UnitTest/WebTier/DotNet/TestMapGuideApi/TestMapGuideApi.csproj	2014-05-23 11:11:26 UTC (rev 8149)
@@ -47,6 +47,7 @@
     <PlatformTarget>x86</PlatformTarget>
     <ErrorReport>prompt</ErrorReport>
     <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="OSGeo.MapGuide.Foundation">
@@ -97,6 +98,9 @@
   </ItemGroup>
   <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PreBuildEvent>call "$(SolutionDir)prebuild.bat" "$(ConfigurationName)" "$(PlatformName)"</PreBuildEvent>
+  </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">

Copied: trunk/MgDev/UnitTest/WebTier/DotNet/prebuild.bat (from rev 8147, branches/2.6/MgDev/UnitTest/WebTier/DotNet/prebuild.bat)
===================================================================
--- trunk/MgDev/UnitTest/WebTier/DotNet/prebuild.bat	                        (rev 0)
+++ trunk/MgDev/UnitTest/WebTier/DotNet/prebuild.bat	2014-05-23 11:11:26 UTC (rev 8149)
@@ -0,0 +1,36 @@
+ at echo off
+SET SLN_DIR=%~dp0
+SET CFG=%1
+SET PLAT=%2
+echo Solution Dir: %SLN_DIR%
+echo Configuration: %CFG%
+echo Platform: %PLAT%
+if not exist "%SLN_DIR%Libs\" (
+    echo Libs dir does not exist. Creating it
+    pushd %SLN_DIR%
+    mkdir Libs
+    popd
+    goto copy
+)
+if not exist "%SLN_DIR%Libs\SqliteDotNet.dll" goto copy
+if not exist "%SLN_DIR%Libs\OSGeo.MapGuide.Foundation.dll" goto copy
+if not exist "%SLN_DIR%Libs\OSGeo.MapGuide.Geometry.dll" goto copy
+if not exist "%SLN_DIR%Libs\OSGeo.MapGuide.PlatformBase.dll" goto copy
+if not exist "%SLN_DIR%Libs\OSGeo.MapGuide.MapGuideCommon.dll" goto copy
+if not exist "%SLN_DIR%Libs\OSGeo.MapGuide.Web.dll" goto copy
+echo Files already exist. Nothing to do
+goto done
+
+:copy
+if "%PLAT%"=="x64" (
+    echo Copying x64 binaries from %SLN_DIR%..\..\..\Web\bin\%CFG%64
+    copy /Y %SLN_DIR%..\..\..\Web\bin\%CFG%64\*.* "%SLN_DIR%Libs\"
+    echo Copying x64 SqliteDotNet.dll
+    copy /Y %SLN_DIR%..\..\..\Oem\SQLite\bin\%CFG%64\SqliteDotNet.dll "%SLN_DIR%Libs\"
+) else (
+    echo Copying x86 binaries from %SLN_DIR%..\..\..\Web\bin\%CFG%
+    copy /Y %SLN_DIR%..\..\..\Web\bin\%CFG%\*.* "%SLN_DIR%Libs\"
+    echo Copying x86 SqliteDotNet.dll
+    copy /Y %SLN_DIR%..\..\..\Oem\SQLite\bin\%CFG%\SqliteDotNet.dll "%SLN_DIR%Libs\"
+)
+:done
\ No newline at end of file

Copied: trunk/MgDev/UnitTest/prepare.php (from rev 8147, branches/2.6/MgDev/UnitTest/prepare.php)
===================================================================
--- trunk/MgDev/UnitTest/prepare.php	                        (rev 0)
+++ trunk/MgDev/UnitTest/prepare.php	2014-05-23 11:11:26 UTC (rev 8149)
@@ -0,0 +1,49 @@
+<?php
+
+require_once dirname(__FILE__)."/../Web/src/mapadmin/constants.php";
+
+$file = dirname(__FILE__)."/webconfig.ini";
+$mgp = dirname(__FILE__)."/TestData/Samples/Sheboygan/Sheboygan.mgp";
+if (!file_exists($mgp)) {
+    echo "Sheboygan.mgp not found. Please put this file in this directory before running this script\n";
+    exit(255);
+}
+if (!file_exists($file)) {
+    $src = dirname(__FILE__)."/../Web/src/webconfig.ini";
+    $csMapDir = realpath(dirname(__FILE__)."/../Oem/CsMap/Dictionaries");
+    $resDir = realpath(dirname(__FILE__)."/../Web/src/mapagent/Resources");
+    
+    $ini = file($src);
+    $newlines = array();
+    foreach ($ini as $lineNum => $line) {
+        $write = "";
+        if (strpos($line, 'MentorDictionaryPath') !== FALSE)
+            $write = "MentorDictionaryPath = $csMapDir";
+        else if (strpos($line, 'ResourcesPath') !== FALSE)
+            $write = "ResourcesPath = $resDir";
+        else
+            $write = $line;
+        array_push($newlines, $write);
+    }
+    
+    file_put_contents($file, implode("\n", $newlines));
+    echo "Saved: $file\n";
+}
+try {
+    MgInitializeWebTier($file);
+    $siteConn = new MgSiteConnection();
+    $userInfo = new MgUserInformation("Administrator", "admin");
+    $siteConn->Open($userInfo);
+    $src = new MgByteSource($mgp);
+    $rdr = $src->GetReader();
+    $resSvc = $siteConn->CreateService(MgServiceType::ResourceService);
+    echo "Loading Sheboygan.mgp\n";
+    $resSvc->ApplyResourcePackage($rdr);
+    echo "Sheboygan.mgp loaded\n";
+    exit(0);
+} catch (MgException $ex) {
+    echo $ex->GetDetails();
+    exit(255);
+}
+
+?>
\ No newline at end of file

Modified: trunk/MgDev/build.bat
===================================================================
--- trunk/MgDev/build.bat	2014-05-23 10:40:58 UTC (rev 8148)
+++ trunk/MgDev/build.bat	2014-05-23 11:11:26 UTC (rev 8149)
@@ -223,6 +223,10 @@
 pushd %MG_DOC%\devguide
 call make.bat html
 popd
+echo [build]: Sheboygan Sample data set
+pushd %MG_DEV%\UnitTest\TestData\Samples\Sheboygan
+call build.bat
+popd
 goto quit
 
 rem =======================================================
@@ -351,6 +355,13 @@
 echo [install]: Copy dlls into .net samples
 %XCOPY% "%MG_OUTPUT_WEB%\www\mapviewernet\bin\*.dll" "%MG_OUTPUT_WEB%\www\dotnetsamples\bin" /EXCLUDE:svn_excludes.txt+%TYPEBUILD%_excludes.txt
 %XCOPY% "%MG_OUTPUT_WEB%\www\mapviewernet\bin\*.dll" "%MG_OUTPUT_WEB%\www\dotnetviewersample\bin" /EXCLUDE:svn_excludes.txt+%TYPEBUILD%_excludes.txt
+if not exist "%MG_DEV%\UnitTest\TestData\Samples\Sheboygan\Sheboygan.mgp" (
+    echo [build]: Sheboygan Sample data set
+    pushd %MG_DEV%\UnitTest\TestData\Samples\Sheboygan
+    call build.bat
+    popd
+)
+copy /Y "%MG_DEV%\UnitTest\TestData\Samples\Sheboygan\Sheboygan.mgp" "%MG_OUTPUT%"
 goto quit
 
 :error

Copied: trunk/MgDev/run_tests.bat (from rev 8147, branches/2.6/MgDev/run_tests.bat)
===================================================================
--- trunk/MgDev/run_tests.bat	                        (rev 0)
+++ trunk/MgDev/run_tests.bat	2014-05-23 11:11:26 UTC (rev 8149)
@@ -0,0 +1,108 @@
+ at echo off
+SET PLAT=x86
+SET CONFIG=Release
+SET CONF=Release
+SET TEST_COMPONENT=
+IF NOT "%1"=="" SET PLAT=%1
+IF "%PLAT%"=="x64" SET CONF=Release64
+REM Time to wait for mgserver.exe to startup in seconds
+SET MGSERVER_WAIT=15
+REM Vars to inject into $_SERVER in PHP CLI
+SET SERVER_ADDR=localhost
+SET WEBCONFIGINI=%CD%\UnitTest\webconfig.ini
+SET SERVER_PORT=8018
+REM SET WEBCONFIGINI=C:\Program Files\OSGeo\MapGuide\Web\www\webconfig.ini
+REM SET SERVER_PORT=80
+SET PHP_TEST_CWD=%CD%\Web\src\mapagent
+SET PHP_EXT_DIR=C:\Program Files\OSGeo\MapGuide\Web\Php\ext
+
+SET START_MGSERVER=1
+SET START_WEBSERVER=1
+SET RUN_SERVER_TESTS=1
+SET RUN_PHP_TESTS=1
+SET RUN_DOTNET_TESTS=1
+
+echo *************** TEST SUMMARY ******************
+echo Platform: %PLAT%
+echo Configuration: %CONF%
+echo ***********************************************
+:test_server
+if "%RUN_SERVER_TESTS%" == "1" (
+    echo [test]: MapGuide Server
+    SET TEST_COMPONENT=MapGuide Server Tests
+    pushd Server\bin\%CONF%
+    rem Before we run, nuke the Repositories/ directory to ensure a clean slate
+    rd /S /Q Repositories
+    mgserver.exe test
+    if %ERRORLEVEL% neq 0 echo [test]: MapGuide Server tests had one or more failures. Check UnitTestResults.xml for more information
+    rem Nuke again for future tests
+    rd /S /Q Repositories
+    popd
+)
+:build_tests
+if "%RUN_DOTNET_TESTS%" == "1" (
+    echo [build]: DotNet test runner
+    SET TEST_COMPONENT=Build DotNet test runner
+    pushd UnitTest\WebTier\DotNet
+    msbuild /p:Configuration=%CONFIG%;Platform=%PLAT% DotNet.sln
+    if %ERRORLEVEL% neq 0 goto error
+    popd
+)
+:start_mgserver
+if "%START_MGSERVER%" == "1" (
+    echo [test]: Starting MapGuide Server. Waiting %MGSERVER_WAIT%s
+    pushd Server\bin\%CONF%
+    rem Before we run, nuke the Repositories/ directory to ensure a clean slate
+    rd /S /Q Repositories
+    start mgserver run
+    REM An elegant hack to pause this script allowing mgserver to start up
+    echo Waiting %MGSERVER_WAIT%s for mgserver.exe to start up
+    ping -n %MGSERVER_WAIT% 127.0.0.1 > NUL
+    popd
+)
+:prepare_webconfig
+pushd UnitTest
+SET TEST_COMPONENT=Prepare webtier test suites
+php -n -d display_errors=Off -d extension_dir="%PHP_EXT_DIR%" -d extension=php_mbstring.dll -d extension=php_curl.dll -d extension=php_MapGuideApi.dll -d extension=php_SQLitePhpApi.dll prepare.php
+if %ERRORLEVEL% neq 0 goto error
+popd
+:start_php_webserver
+if "%START_WEBSERVER%" == "1" (
+    echo [test]: Starting PHP web server. Waiting %MGSERVER_WAIT%s
+    start php -n -d display_errors=Off -d upload_max_filesize=20M -d extension_dir="%PHP_EXT_DIR%" -d extension=php_mbstring.dll -d extension=php_curl.dll -d extension=php_MapGuideApi.dll -d extension=php_SQLitePhpApi.dll -S %SERVER_ADDR%:%SERVER_PORT% -t %CD%\UnitTest\WebTier\MapAgent\MapAgentForms %CD%\UnitTest\WebTier\Php\MapAgentShim\index.php
+    ping -n %MGSERVER_WAIT% 127.0.0.1 > NUL
+)
+:test_php
+if "%RUN_PHP_TESTS%" == "1" (
+    echo [test]: PHP tests
+    pushd UnitTest\WebTier\Php
+    php.exe -n -d display_errors=Off -d extension_dir="%PHP_EXT_DIR%" -d extension=php_mbstring.dll -d extension=php_curl.dll -d extension=php_MapGuideApi.dll -d extension=php_SQLitePhpApi.dll RunTests.php
+    popd
+)
+:test_dotnet
+if "%RUN_DOTNET_TESTS%" == "1" (
+    echo [test]: .net tests
+    pushd UnitTest\WebTier\DotNet_%PLAT%
+    MgTestRunner.exe "%WEBCONFIGINI%" "../../../Oem/CsMap/Dictionaries"
+    if %ERRORLEVEL% neq 0 echo [test]: .net test runner had one or more test failures. Check log files for more information
+    popd
+)
+:stop_mgserver
+if "%START_MGSERVER%" == "1" (
+    echo [test]: Terminating mgserver.exe
+    REM We're naturally assuming the only mgserver.exe that is running is the one this script started
+    taskkill /im mgserver.exe
+)
+:stop_php_webserver
+if "%START_WEBSERVER%" == "1" (
+    echo [test]: Terminating php.exe
+    REM We're naturally assuming the only php.exe that is running is the one this script started
+    taskkill /im php.exe
+)
+goto done
+:error
+echo [error]: An error occured with %TEST_COMPONENT%
+goto quit
+:done
+
+:quit
\ No newline at end of file



More information about the mapguide-commits mailing list