-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msautotest: add some testing of msLoadMapContextLayer()
- Loading branch information
Showing
4 changed files
with
161 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
msautotest/wxs/expected/ows_context_with_layer_list_caps.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
Content-Type: application/vnd.ogc.wms_xml; charset=UTF-8 | ||
|
||
<?xml version='1.0' encoding="UTF-8" standalone="no" ?> | ||
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" | ||
[ | ||
<!ELEMENT VendorSpecificCapabilities EMPTY> | ||
]> <!-- end of DOCTYPE declaration --> | ||
|
||
<WMT_MS_Capabilities version="1.1.1"> | ||
<Service> | ||
<Name>OGC:WMS</Name> | ||
<Title>Map Context demo</Title> | ||
<Abstract>Demo for map context document</Abstract> | ||
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/> | ||
<ContactInformation> | ||
</ContactInformation> | ||
</Service> | ||
|
||
<Capability> | ||
<Request> | ||
<GetCapabilities> | ||
<Format>application/vnd.ogc.wms_xml</Format> | ||
<DCPType> | ||
<HTTP> | ||
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Get> | ||
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Post> | ||
</HTTP> | ||
</DCPType> | ||
</GetCapabilities> | ||
<GetMap> | ||
<Format>image/png</Format> | ||
<Format>image/jpeg</Format> | ||
<Format>image/png; mode=8bit</Format> | ||
<Format>image/vnd.jpeg-png</Format> | ||
<Format>image/vnd.jpeg-png8</Format> | ||
<Format>application/x-pdf</Format> | ||
<Format>image/svg+xml</Format> | ||
<Format>image/tiff</Format> | ||
<Format>application/vnd.google-earth.kml+xml</Format> | ||
<Format>application/vnd.google-earth.kmz</Format> | ||
<Format>application/vnd.mapbox-vector-tile</Format> | ||
<Format>application/x-protobuf</Format> | ||
<Format>application/json</Format> | ||
<DCPType> | ||
<HTTP> | ||
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Get> | ||
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Post> | ||
</HTTP> | ||
</DCPType> | ||
</GetMap> | ||
<GetFeatureInfo> | ||
<Format>text/plain</Format> | ||
<Format>application/vnd.ogc.gml</Format> | ||
<DCPType> | ||
<HTTP> | ||
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Get> | ||
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Post> | ||
</HTTP> | ||
</DCPType> | ||
</GetFeatureInfo> | ||
<DescribeLayer> | ||
<Format>text/xml</Format> | ||
<DCPType> | ||
<HTTP> | ||
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Get> | ||
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Post> | ||
</HTTP> | ||
</DCPType> | ||
</DescribeLayer> | ||
<GetLegendGraphic> | ||
<Format>image/png</Format> | ||
<Format>image/jpeg</Format> | ||
<Format>image/png; mode=8bit</Format> | ||
<Format>image/vnd.jpeg-png</Format> | ||
<Format>image/vnd.jpeg-png8</Format> | ||
<DCPType> | ||
<HTTP> | ||
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Get> | ||
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Post> | ||
</HTTP> | ||
</DCPType> | ||
</GetLegendGraphic> | ||
<GetStyles> | ||
<Format>text/xml</Format> | ||
<DCPType> | ||
<HTTP> | ||
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Get> | ||
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&"/></Post> | ||
</HTTP> | ||
</DCPType> | ||
</GetStyles> | ||
</Request> | ||
<Exception> | ||
<Format>application/vnd.ogc.se_xml</Format> | ||
<Format>application/vnd.ogc.se_inimage</Format> | ||
<Format>application/vnd.ogc.se_blank</Format> | ||
</Exception> | ||
<VendorSpecificCapabilities /> | ||
<UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> | ||
<Layer> | ||
<Name>mapcontext</Name> | ||
<Title>Map Context demo</Title> | ||
<Abstract>Demo for map context document</Abstract> | ||
<SRS>EPSG:4326</SRS> | ||
<LatLonBoundingBox minx="-180.000000" miny="-90.000000" maxx="180.000000" maxy="90.000000" /> | ||
<BoundingBox SRS="EPSG:4326" | ||
minx="-180.000000" miny="-90.000000" maxx="180.000000" maxy="90.000000" /> | ||
<Layer queryable="0" opaque="0" cascaded="0"> | ||
<Name>province</Name> | ||
<Title>province</Title> | ||
<LatLonBoundingBox minx="-66.724329" miny="41.770508" maxx="-57.721680" maxy="48.477314" /> | ||
<MetadataURL type="TC211"> | ||
<Format>text/xml</Format> | ||
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&request=GetMetadata&layer=province"/> | ||
</MetadataURL> | ||
<Style> | ||
<Name>default</Name> | ||
<Title>default</Title> | ||
<LegendURL width="85" height="20"> | ||
<Format>image/png</Format> | ||
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=province&format=image/png&STYLE=default"/> | ||
</LegendURL> | ||
</Style> | ||
</Layer> | ||
<Layer queryable="0" opaque="0" cascaded="1"> | ||
<Name>test</Name> | ||
<Title>test</Title> | ||
<!-- WARNING: Optional LatLonBoundingBox could not be established for this layer. Consider setting the EXTENT in the LAYER object, or wms_extent metadata. Also check that your data exists in the DATA statement --> | ||
<MetadataURL type="TC211"> | ||
<Format>text/xml</Format> | ||
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost/path/to/wfs_simple?myparam=something&request=GetMetadata&layer=test"/> | ||
</MetadataURL> | ||
</Layer> | ||
</Layer> | ||
</Capability> | ||
</WMT_MS_Capabilities> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> | ||
<ViewContext version="1.1.0" id="mapcontext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.opengis.net/context" xmlns:sld="http://www.opengis.net/sld" xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.1.0/context.xsd"> | ||
<General> | ||
<Window width="400" height="300"/> | ||
<!-- Bounding box corners and spatial reference system --> | ||
<BoundingBox SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" maxx="180.000000" maxy="90.000000"/> | ||
<!-- Title of Context --> | ||
<Title>Map Context demo</Title> | ||
<Abstract>Demo for map context document</Abstract> | ||
<ContactInformation> | ||
</ContactInformation> | ||
</General> | ||
<LayerList> | ||
<!-- probably wrong definition below, but at least exercices a bit msLoadMapContextLayer() --> | ||
<Layer queryable="0" hidden="0"> | ||
<Name>test</Name> | ||
<Title>test</Title> | ||
<Server service="OGC:WMS" version="1.3.0"> | ||
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://example.com"/> | ||
</Server> | ||
</Layer> | ||
</LayerList> | ||
</ViewContext> |