[mapguide-commits] r8853 - in sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src: TestCommon TestMapGuideApi TestRunner
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Dec 3 08:20:58 PST 2015
Author: jng
Date: 2015-12-03 08:20:58 -0800 (Thu, 03 Dec 2015)
New Revision: 8853
Added:
sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestCommon/PlatformResources.cs
sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestMapGuideApi/MapGuideResources.cs
Modified:
sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestRunner/
Log:
Forgot to check in the replacement "resource" files
Added: sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestCommon/PlatformResources.cs
===================================================================
--- sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestCommon/PlatformResources.cs (rev 0)
+++ sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestCommon/PlatformResources.cs 2015-12-03 16:20:58 UTC (rev 8853)
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace OSGeo.MapGuide.Test.Common
+{
+ public static class PlatformResources
+ {
+ public const string TestLayer = @"<?xml version=""1.0"" encoding=""utf-8""?>
+<LayerDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" version=""1.0.0"" xsi:noNamespaceSchemaLocation=""LayerDefinition-1.0.0.xsd"">
+ <VectorLayerDefinition>
+ <ResourceId>{0}</ResourceId>
+ <FeatureName>{1}</FeatureName>
+ <FeatureNameType>FeatureClass</FeatureNameType>
+ <Geometry>{2}</Geometry>
+ <VectorScaleRange>
+ <PointTypeStyle>
+ <DisplayAsText>false</DisplayAsText>
+ <AllowOverpost>false</AllowOverpost>
+ <PointRule>
+ <LegendLabel />
+ <PointSymbolization2D>
+ <Mark>
+ <Unit>Points</Unit>
+ <SizeContext>DeviceUnits</SizeContext>
+ <SizeX>10</SizeX>
+ <SizeY>10</SizeY>
+ <Rotation>0</Rotation>
+ <Shape>Square</Shape>
+ <Fill>
+ <FillPattern>Solid</FillPattern>
+ <ForegroundColor>ffffffff</ForegroundColor>
+ <BackgroundColor>ffffffff</BackgroundColor>
+ </Fill>
+ <Edge>
+ <LineStyle>Solid</LineStyle>
+ <Thickness>1</Thickness>
+ <Color>ff000000</Color>
+ <Unit>Points</Unit>
+ </Edge>
+ </Mark>
+ </PointSymbolization2D>
+ </PointRule>
+ </PointTypeStyle>
+ <LineTypeStyle>
+ <LineRule>
+ <LegendLabel />
+ <LineSymbolization2D>
+ <LineStyle>Solid</LineStyle>
+ <Thickness>1</Thickness>
+ <Color>ff000000</Color>
+ <Unit>Points</Unit>
+ </LineSymbolization2D>
+ </LineRule>
+ </LineTypeStyle>
+ <AreaTypeStyle>
+ <AreaRule>
+ <LegendLabel />
+ <AreaSymbolization2D>
+ <Fill>
+ <FillPattern>Solid</FillPattern>
+ <ForegroundColor>ffffffff</ForegroundColor>
+ <BackgroundColor>ffffffff</BackgroundColor>
+ </Fill>
+ <Stroke>
+ <LineStyle>Solid</LineStyle>
+ <Thickness>1</Thickness>
+ <Color>ff000000</Color>
+ <Unit>Points</Unit>
+ </Stroke>
+ </AreaSymbolization2D>
+ </AreaRule>
+ </AreaTypeStyle>
+ </VectorScaleRange>
+ </VectorLayerDefinition>
+</LayerDefinition>";
+
+ public const string TestMapDef = @"<?xml version=""1.0"" encoding=""utf-8""?>
+<MapDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" version=""2.4.0"" xsi:noNamespaceSchemaLocation=""MapDefinition-2.4.0.xsd"">
+ <Name>Test Map</Name>
+ <CoordinateSystem>{0}</CoordinateSystem>
+ <Extents>
+ <MinX>{1}</MinX>
+ <MaxX>{2}</MaxX>
+ <MinY>{3}</MinY>
+ <MaxY>{4}</MaxY>
+ </Extents>
+ <BackgroundColor>ffffffff</BackgroundColor>
+</MapDefinition>";
+ }
+}
Added: sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestMapGuideApi/MapGuideResources.cs
===================================================================
--- sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestMapGuideApi/MapGuideResources.cs (rev 0)
+++ sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestMapGuideApi/MapGuideResources.cs 2015-12-03 16:20:58 UTC (rev 8853)
@@ -0,0 +1,161 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace OSGeo.MapGuide.Test
+{
+ public static class MapGuideResources
+ {
+ public const string ResourceHeaderTemplate = @"<?xml version=""1.0""?>
+<ResourceDocumentHeader xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xsi:noNamespaceSchemaLocation=""ResourceDocumentHeader-1.0.0.xsd"">
+ <Security>
+ <Inherited>true</Inherited>
+ </Security>
+ <Metadata>
+ <Simple>
+ <Property>
+ <Name>{0}</Name>
+ <Value>{1}</Value>
+ </Property>
+ </Simple>
+ </Metadata>
+</ResourceDocumentHeader>";
+
+ public const string UT_BaseMap = @"<?xml version=""1.0"" encoding=""UTF-8""?>
+<MapDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""MapDefinition-3.0.0.xsd"" version=""3.0.0"">
+ <Name>Base Map</Name>
+ <CoordinateSystem>GEOGCS[" LL84",DATUM["WGS 84",SPHEROID["WGS 84",6378137,298.25722293287],TOWGS84[0, 0, 0, 0, 0, 0, 0]],PRIMEM["Greenwich",0],UNIT["Degrees",0.01745329252]]</CoordinateSystem>
+ <Extents>
+ <MinX>-87.79786601383196</MinX>
+ <MaxX>-87.66452777186925</MaxX>
+ <MinY>43.6868578621819</MinY>
+ <MaxY>43.8037962206133</MaxY>
+ </Extents>
+ <BackgroundColor>FFF7E1D2</BackgroundColor>
+ <TileSetSource>
+ <ResourceId>{0}</ResourceId>
+ </TileSetSource>
+</MapDefinition>";
+
+ public const string UT_BaseMap_TSD = @"<?xml version=""1.0"" encoding=""UTF-8""?>
+<TileSetDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""TileSetDefinition-3.0.0.xsd"">
+ <TileStoreParameters>
+ <TileProvider>Default</TileProvider>
+ <Parameter>
+ <Name>TilePath</Name>
+ <Value>%MG_TILE_CACHE_PATH%</Value>
+ </Parameter>
+ <Parameter>
+ <Name>TileWidth</Name>
+ <Value>256</Value>
+ </Parameter>
+ <Parameter>
+ <Name>TileHeight</Name>
+ <Value>256</Value>
+ </Parameter>
+ <Parameter>
+ <Name>TileFormat</Name>
+ <Value>PNG</Value>
+ </Parameter>
+ <Parameter>
+ <Name>FiniteScaleList</Name>
+ <Value>200000,100000,50000,25000,12500,6250,3125,1562.5,781.25,390.625</Value>
+ </Parameter>
+ <Parameter>
+ <Name>CoordinateSystem</Name>
+ <Value>{0}</Value>
+ </Parameter>
+ </TileStoreParameters>
+ <Extents>
+ <MinX>{1}</MinX>
+ <MaxX>{3}</MaxX>
+ <MinY>{2}</MinY>
+ <MaxY>{4}</MaxY>
+ </Extents>
+ <BaseMapLayerGroup>
+ <Name>BaseLayers</Name>
+ <Visible>true</Visible>
+ <ShowInLegend>true</ShowInLegend>
+ <ExpandInLegend>true</ExpandInLegend>
+ <LegendLabel>Base Layers</LegendLabel>
+ <BaseMapLayer>
+ <Name>Parcels</Name>
+ <ResourceId>Library://UnitTests/Layers/Parcels.LayerDefinition</ResourceId>
+ <Selectable>true</Selectable>
+ <ShowInLegend>true</ShowInLegend>
+ <LegendLabel>Parcels</LegendLabel>
+ <ExpandInLegend>false</ExpandInLegend>
+ </BaseMapLayer>
+ <BaseMapLayer>
+ <Name>VotingDistricts</Name>
+ <ResourceId>Library://UnitTests/Layers/VotingDistricts.LayerDefinition</ResourceId>
+ <Selectable>true</Selectable>
+ <ShowInLegend>true</ShowInLegend>
+ <LegendLabel>Voting Districts</LegendLabel>
+ <ExpandInLegend>false</ExpandInLegend>
+ </BaseMapLayer>
+ </BaseMapLayerGroup>
+</TileSetDefinition>";
+
+ public const string UT_LinkedTileSet = @"<?xml version=""1.0"" encoding=""UTF-8""?>
+<MapDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""MapDefinition-3.0.0.xsd"" version=""3.0.0"">
+ <Name>Base Map linked to Tile Set</Name>
+ <CoordinateSystem>{0}</CoordinateSystem>
+ <Extents>
+ <MinX>{1}</MinX>
+ <MaxX>{3}</MaxX>
+ <MinY>{2}</MinY>
+ <MaxY>{4}</MaxY>
+ </Extents>
+ <BackgroundColor>FFF7E1D2</BackgroundColor>
+ <TileSetSource>
+ <ResourceId>{5}</ResourceId>
+ </TileSetSource>
+</MapDefinition>";
+
+ public const string UT_XYZ = @"<?xml version=""1.0"" encoding=""UTF-8""?>
+<TileSetDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""TileSetDefinition-3.0.0.xsd"">
+ <TileStoreParameters>
+ <TileProvider>XYZ</TileProvider>
+ <Parameter>
+ <Name>TilePath</Name>
+ <Value>%MG_TILE_CACHE_PATH%</Value>
+ </Parameter>
+ <Parameter>
+ <Name>TileFormat</Name>
+ <Value>PNG</Value>
+ </Parameter>
+ </TileStoreParameters>
+ <Extents>
+ <MinX>-87.79786601383196</MinX>
+ <MaxX>-87.66452777186925</MaxX>
+ <MinY>43.6868578621819</MinY>
+ <MaxY>43.8037962206133</MaxY>
+ </Extents>
+ <BaseMapLayerGroup>
+ <Name>BaseLayers</Name>
+ <Visible>true</Visible>
+ <ShowInLegend>true</ShowInLegend>
+ <ExpandInLegend>true</ExpandInLegend>
+ <LegendLabel>Base Layers</LegendLabel>
+ <BaseMapLayer>
+ <Name>Parcels</Name>
+ <ResourceId>Library://UnitTests/Layers/Parcels.LayerDefinition</ResourceId>
+ <Selectable>true</Selectable>
+ <ShowInLegend>true</ShowInLegend>
+ <LegendLabel>Parcels</LegendLabel>
+ <ExpandInLegend>false</ExpandInLegend>
+ </BaseMapLayer>
+ <BaseMapLayer>
+ <Name>VotingDistricts</Name>
+ <ResourceId>Library://UnitTests/Layers/VotingDistricts.LayerDefinition</ResourceId>
+ <Selectable>true</Selectable>
+ <ShowInLegend>true</ShowInLegend>
+ <LegendLabel>Voting Districts</LegendLabel>
+ <ExpandInLegend>false</ExpandInLegend>
+ </BaseMapLayer>
+ </BaseMapLayerGroup>
+</TileSetDefinition>";
+ }
+}
Property changes on: sandbox/jng/aspnet50/UnitTest/WebTier/Dnx/src/TestRunner
___________________________________________________________________
Modified: svn:ignore
- Logs
metadata.txt
TestRunner.xproj.user
UnitTests.log
+ *.bin
Logs
TestRunner.xproj.user
UnitTests.log
metadata.txt
metadata2.txt
More information about the mapguide-commits
mailing list