From 14f1fc6e7d869d89743d08b1f8c0c2fad390ec8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20T=C5=AFma?=
GPXSee supports most tile server based online maps out there, but the list of maps distributed with the official packages is limited to those @@ -125,6 +126,52 @@ default zoom range is <0, 19> and the default bounds are <-85.0511, 85.0511> and <-180, 180>.
+WMTS maps are distinguished by setting the type attribute of the
+ map element to WMTS
. Both the KVP and REST access methods
+ are supported.
For KVP, the url element represents the WMTS base URL and three
+ additional elements are required - layer, style and set
+ (TileMatrixSet in WMTS). An optional format element may be specified
+ defining the desired image format. If not set, image/png
is
+ used.
+<?xml version="1.0" encoding="UTF-8"?> +<map type="WMTS"> + <name>CUZK</name> + <url>http://geoportal.cuzk.cz/WMTS_ZM_900913/WMTService.aspx</url> + <format>image/png</format> + <layer>zm</layer> + <style>default</style> + <set axis="yx">ogc:1.0:globalcrs84pixel</set> +</map> ++ +
For REST access, the url element's type attribute must be set
+ to REST
. The URL then represents the URL of the capabilities XML
+ document. The three mandatory elements - layer, style and
+ set - must be present like in the KVP case. Defining the format has no
+ relevance for the REST access method.
+<?xml version="1.0" encoding="UTF-8"?> +<map type="WMTS"> + <name>Wien - Ortho</name> + <url type="REST">http://maps1.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml</url> + <layer>lb</layer> + <style>farbe</style> + <set>google3857</set> +</map> ++
There is one more important attribute - the axis attribute of the
+ set element. It specifies the axis order for the CRS used for the
+ tile matrix set. Technically the order should be obtainable from the CRS definition,
+ but in praxis many servers use the wrong order. This is why GPXSee uses x,y
+ (lon,lat) as default and if the set uses the reverse order, the axis
+ attribute must be set to yx
in the map definition.
OziExplorer maps, TrekBuddy maps/atlases and GeoTIFF images are supported by GPXSee. Supported map projections are Web Mercator, Transverse Mercator, UTM, diff --git a/index.html b/index.html index f7856f3f..b9f7d215 100644 --- a/index.html +++ b/index.html @@ -86,7 +86,7 @@