forked from NASAWorldWind/WorldWindJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWMSLayerTemplate.xml
More file actions
85 lines (84 loc) · 5.39 KB
/
WMSLayerTemplate.xml
File metadata and controls
85 lines (84 loc) · 5.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2006-2009, 2017, 2020 United States Government, as represented by the
~ Administrator of the National Aeronautics and Space Administration.
~ All rights reserved.
~
~ The NASA World Wind Java (WWJ) platform is licensed under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software distributed
~ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
~ CONDITIONS OF ANY KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations under the License.
~
~ NASA World Wind Java (WWJ) also contains the following 3rd party Open Source
~ software:
~
~ Jackson Parser – Licensed under Apache 2.0
~ GDAL – Licensed under MIT
~ JOGL – Licensed under Berkeley Software Distribution (BSD)
~ Gluegen – Licensed under Berkeley Software Distribution (BSD)
~
~ A complete listing of 3rd Party software notices and licenses included in
~ NASA World Wind Java (WWJ) can be found in the WorldWindJava-v2.2 3rd-party
~ notices and licenses PDF found in code directory.
-->
<!--$Id: WMSLayerTemplate.xml 1171 2013-02-11 21:45:02Z dcollins $-->
<!--Example configuration file for a WMS image layer. This file contains instructions on how to configure a WMS image-->
<!--layer by defining only the necessary configuration parameters.-->
<!--The root element defines the configuration file's version and the layer type it represents. As of March 2011, the-->
<!--version should always be "1", and the layerType should be "TiledImageLayer" to define a WMS image layer.-->
<Layer version="1" layerType="TiledImageLayer">
<!--The name displayed in the layer list. Replace this to provide a description of your layer.-->
<DisplayName>YOUR LAYER NAME</DisplayName>
<!--The WMS URL, WMS service parameters, and WMS layer parameters. The LayerNames element must contain either a-->
<!--single name, or a comma delimited list of names. Replace the serviceName and version as appropriate for your-->
<!--WMS server. Replace the GetCapabilitiesURL and GetMapURL to reference your WMS server's URL. Replace-->
<!--LayerNames with a list of the WMS layers you want to display.-->
<Service serviceName="OGC:WMS" version="1.3">
<GetCapabilitiesURL>https://YOUR_SERVER_URL</GetCapabilitiesURL>
<GetMapURL>https://YOUR_SERVER_URL</GetMapURL>
<LayerNames>LAYER_NAME_1,LAYER_NAME_2,LAYER_NAME_3</LayerNames>
</Service>
<!--The location to store downloaded tiles in the WorldWind data cache. This path must be unique, and may contain-->
<!--any of the following characters: a-z, A-Z, 0-9, "_", and "/". Replace this with a cache path describing your-->
<!--WMS server and layers.-->
<DataCacheName>YOUR_CACHE_PATH</DataCacheName>
<!--The image format used by tiles in the WorldWind data cache. Storing downloaded tiles in the PNG image format-->
<!--is necessary to support the layer's image composition feature when the network is disconnected, or when the-->
<!--WMS server is not available.-->
<FormatSuffix>.png</FormatSuffix>
<!--The image format to use when requesting image tiles from the WMS. Tiles are downloaded in this format, but-->
<!--their format in the WorldWind data cache is specified by the FormatSuffix element. Replace this with an image-->
<!--format accepted by your WMS, if necessary.-->
<ImageFormat>image/png</ImageFormat>
<!--The list of image formats supported by your WMS, ordered by decreasing preference (the preferred format is on-->
<!--top). This list is used by the layer's image composition feature to determine the image format to use when-->
<!--composing an image from one or more WMS layers. Replace this with a list of image formats supported by your-->
<!--WMS, ordered by decreasing preference.-->
<AvailableImageFormats>
<ImageFormat>image/png</ImageFormat>
<ImageFormat>image/jpg</ImageFormat>
</AvailableImageFormats>
<!--The number of subdivision levels in this layer. This value corresponds to the layer's maximum resolution. 19-->
<!--levels is approximately 0.1 meters per pixel. Replace this with a larger or smaller integer value to increase-->
<!--or decrease resolution, respectively.-->
<NumLevels count="19" numEmpty="0"/>
<!--The bounding sector of the WMS layers. Replace this with a sector that bounds the layers in your WMS server.-->
<!--If the sector contains regions in which the WMS layer does not provide coverage, the empty regions are-->
<!--represented as transparent pixels in the downloaded tiles. The UseTransparentTextures element's value must be-->
<!--'true' for the transparent pixels to display correctly.-->
<Sector>
<SouthWest>
<LatLon units="degrees" latitude="YOUR_MIN_LAT" longitude="YOUR_MIN_LON"/>
</SouthWest>
<NorthEast>
<LatLon units="degrees" latitude="YOUR_MAX_LAT" longitude="YOUR_MAX_LON"/>
</NorthEast>
</Sector>
<!--Transparent textures must be enabled if any of the layers contain transparent regions in the above Sector.-->
<UseTransparentTextures>true</UseTransparentTextures>
</Layer>