mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Added map version 1.1 xsd & documentation
This commit is contained in:
parent
af9c4ffbfa
commit
a76e4c5806
6
doc.html
6
doc.html
@ -127,6 +127,10 @@
|
|||||||
default zoom range is <0, 19> and the default bounds are
|
default zoom range is <0, 19> and the default bounds are
|
||||||
<-85.0511, 85.0511> and <-180, 180>.</p>
|
<-85.0511, 85.0511> and <-180, 180>.</p>
|
||||||
|
|
||||||
|
<p>Since version 5.17, GPXSee supports HiDPI map tiles. To specify, that a map
|
||||||
|
uses HiDPI tiles, use the <i>tilePixelRatio</i> tag. For the most common 512x512px
|
||||||
|
tiles (that shall be rendered as 256x256px) tiles, set the value to 2.</p>
|
||||||
|
|
||||||
<h4 id="WMTS">WMTS</h4>
|
<h4 id="WMTS">WMTS</h4>
|
||||||
<p>WMTS maps are distinguished by setting the <i>type</i> attribute of the
|
<p>WMTS maps are distinguished by setting the <i>type</i> attribute of the
|
||||||
<i>map</i> element to <code>WMTS</code>. Both the KVP and REST access methods
|
<i>map</i> element to <code>WMTS</code>. Both the KVP and REST access methods
|
||||||
@ -173,6 +177,8 @@
|
|||||||
<p>Finally, one can define additional dimensions like <code>Time</code> using
|
<p>Finally, one can define additional dimensions like <code>Time</code> using
|
||||||
the <i>dimension</i> element. Use a separate entry for every additional dimension.</p>
|
the <i>dimension</i> element. Use a separate entry for every additional dimension.</p>
|
||||||
|
|
||||||
|
<p>HiDPI WMTS tiles are supported too.</p>
|
||||||
|
|
||||||
<h4 id="WMS">WMS</h4>
|
<h4 id="WMS">WMS</h4>
|
||||||
<p>WMS maps are distinguished by setting the <i>type</i> attribute of the
|
<p>WMS maps are distinguished by setting the <i>type</i> attribute of the
|
||||||
<i>map</i> element to <code>WMS</code>. WMS map definitions are very similar to
|
<i>map</i> element to <code>WMS</code>. WMS map definitions are very similar to
|
||||||
|
21
map/1.1/index.html
Normal file
21
map/1.1/index.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Map version 1.1 XML file format</title>
|
||||||
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>Map version 1.1 XML file format</h1>
|
||||||
|
<p>For human-readable Map format description, see the
|
||||||
|
<a href="http://www.gpxsee.org/doc#online">GPXSee documentation page</a>, for
|
||||||
|
XML validation use the <a href="http://www.gpxsee.org/map/1.1/map.xsd">XSD
|
||||||
|
file</a>.
|
||||||
|
|
||||||
|
<p>Changes since 1.0:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Added <b>tilePixelRatio</b>.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
100
map/1.1/map.xsd
Normal file
100
map/1.1/map.xsd
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||||
|
targetNamespace="http://www.gpxsee.org/map/1"
|
||||||
|
xmlns="http://www.gpxsee.org/map/1"
|
||||||
|
elementFormDefault="qualified">
|
||||||
|
|
||||||
|
<xs:simpleType name="mapType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="OSM"/>
|
||||||
|
<xs:enumeration value="WMTS"/>
|
||||||
|
<xs:enumeration value="WMS"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
|
||||||
|
<xs:simpleType name="urlType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="REST"/>
|
||||||
|
<xs:enumeration value="KVP"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
|
||||||
|
<xs:simpleType name="axisOrder">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="xy"/>
|
||||||
|
<xs:enumeration value="yx"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
|
||||||
|
<xs:element name="map">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
|
||||||
|
<xs:element name="url" minOccurs="1" maxOccurs="1">
|
||||||
|
<xs:complexType mixed="true">
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="type" type="urlType"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="tilePixelRatio" type="xs:float" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="zoom" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:attribute name="min" type="xs:nonNegativeInteger"/>
|
||||||
|
<xs:attribute name="max" type="xs:nonNegativeInteger"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="bounds" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:attribute name="top" type="xs:decimal"/>
|
||||||
|
<xs:attribute name="bottom" type="xs:decimal"/>
|
||||||
|
<xs:attribute name="left" type="xs:decimal"/>
|
||||||
|
<xs:attribute name="right" type="xs:decimal"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="copyright" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="format" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="layer" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="style" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="crs" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:complexType mixed="true">
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="axis" type="axisOrder"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="set" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:complexType mixed="true">
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="axis" type="axisOrder"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="dimension" minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:complexType mixed="true">
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="id" type="xs:string" use="required"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="authorization" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:attribute name="username" type="xs:string" use="required"/>
|
||||||
|
<xs:attribute name="password" type="xs:string" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
|
||||||
|
<xs:attribute name="type" type="mapType" use="optional"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
</xs:schema>
|
@ -1,12 +1,12 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Map v.1 XML file format</title>
|
<title>Map version 1.0 XML file format</title>
|
||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>Map v.1 XML file format</h1>
|
<h1>Map version 1.0 XML file format</h1>
|
||||||
<p>For human-readable Map format description, see the
|
<p>For human-readable Map format description, see the
|
||||||
<a href="http://www.gpxsee.org/doc#online">GPXSee documentation page</a>, for
|
<a href="http://www.gpxsee.org/doc#online">GPXSee documentation page</a>, for
|
||||||
XML validation use the <a href="http://www.gpxsee.org/map/1/map.xsd">XSD
|
XML validation use the <a href="http://www.gpxsee.org/map/1/map.xsd">XSD
|
||||||
|
Loading…
Reference in New Issue
Block a user