1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00
GPXSee/doc.html

336 lines
15 KiB
HTML
Raw Normal View History

2018-02-05 20:38:37 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>GPXSee - Documentation</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="icon" type="image/png" href="css/images/favicon.png"/>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!--[if IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" /><![endif]-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110140219-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-110140219-1');
</script>
</head>
<body>
<!-- START PAGE SOURCE -->
<div class="shell">
<div class="shell-b">
<div id="header">
2020-10-26 12:40:55 +01:00
<img src="css/images/gpxsee.png" alt="" class="logo"/><h1 class="logo"><a href="https://www.gpxsee.org">GPXSee</a></h1>
2018-02-05 20:38:37 +01:00
<div id="navigation">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="gallery.html">Screenshots</a></li>
<li><a href="doc.html" class="active">Documentation</a></li>
<li><a href="index.html#download">Download</a></li>
</ul>
</div>
<div class="cl">&nbsp;</div>
</div>
<div id="main">
<div id="content">
<h2 id="data">Data files</h2>
2020-01-26 22:43:06 +01:00
<p>GPXSee opens GPX, TCX, FIT, KML, NMEA, IGC, CUP, SIGMA SLF, Suunto SML,
LOC, GeoJSON, OziExplorer (PLT, RTE, WPT), Garmin GPI,
2018-02-05 20:38:37 +01:00
<a href="http://www.poi-factory.com/garmin-csv-file-format">Garmin CSV</a>
2019-03-16 20:04:44 +01:00
and geotagged JPEG files, however not all format features are supported
for all formats. Generally, GPXSee supports four kinds of data objects:</p>
2018-02-17 18:04:12 +01:00
2018-02-05 20:38:37 +01:00
<ul>
<li>Tracks</li>
<li>Routes</li>
<li>Waypoints</li>
2019-02-19 00:22:36 +01:00
<li>Areas (polygons)</li>
2018-02-05 20:38:37 +01:00
</ul>
<p>Naturally, if a format supports only a subset of the objects, GPXSee also
supports only this subset. Some formats - especially KML - have support for
2019-02-19 00:22:36 +01:00
other data objects like 3D structures. Those are not supported by GPXSee.</p>
2018-02-17 18:04:12 +01:00
2018-02-05 20:38:37 +01:00
<p>In addition to GPS data, data from the following sensors is supported
by GPXSee:</p>
<ul>
<li>Heart rate</li>
<li>Cadence</li>
<li>Power</li>
<li>Temperature</li>
2018-07-04 19:25:28 +02:00
<li>Gear ratio/shifts (Shimano Di2, SRAM eTap)</li>
2018-02-05 20:38:37 +01:00
</ul>
<h2 id="maps">Maps</h2>
<p>Two kinds of maps are supported by GPXSee - online maps and offline maps.
You may either load them "ad hoc" from the GUI or they can be loaded
automatically at program startup from the following directory:</p>
<table class="config-files">
<tr>
<td class="os">Windows:</td>
<td class="file">C:\Program Files\GPXSee\maps</td>
</tr><tr>
<td class="os">Linux:</td>
<td class="file">/usr/share/gpxsee/maps</td>
</tr><tr>
<td class="os">OS X:</td>
<td class="file">/Applications/GPXSee.app/Contents/Resources/maps</td>
</tr>
</table>
2018-12-09 10:31:48 +01:00
<p>User specific map directories that - when present - override the global
map directory are also supported. The paths are as
2018-12-08 18:07:04 +01:00
follows<sup><a href="#legacyPaths">1</a></sup>:</p>
2018-02-05 20:38:37 +01:00
<table class="config-files">
<tr>
<td class="os">Windows:</td>
2018-12-08 18:07:04 +01:00
<td class="file">%APPDATA%\GPXSee\maps</td>
2018-02-05 20:38:37 +01:00
</tr><tr>
2018-12-08 18:07:04 +01:00
<td class="os">Linux:</td>
<td class="file">~/.local/share/gpxsee/maps</td>
</tr><tr>
<td class="os">OS X:</td>
<td class="file">~/Library/Application Support/GPXSee/maps</td>
2018-02-05 20:38:37 +01:00
</tr>
</table>
<p>The map directory is recursively searched when loading the maps, so it
may contain an arbitrary directory structure.</p>
2018-02-17 18:04:12 +01:00
2018-12-09 10:31:48 +01:00
<p>Supported map projections are Mercator (including Web Mercator),
Transverse Mercator (including UTM), Lambert Conformal Conic, Albers Equal Area,
2020-12-16 00:12:23 +01:00
Lambert Azimuthal Equal Area, Polar Stereographic, Oblique Stereographic, Křovák's,
Polyconic, and Latitude/Longitude (2D geographic). Additionally, the Swiss
and Hungarian Oblique Mercator projections are supported using LCC1 approximation.
For list of supported datums and projected coordinate systems see the
2018-12-09 10:31:48 +01:00
<a href="https://github.com/tumic0/GPXSee/blob/master/pkg/csv/gcs.csv">GCS.csv</a>
and <a href="https://github.com/tumic0/GPXSee/blob/master/pkg/csv/pcs.csv">PCS.csv</a>
configuration files (can be modified or overridden by user files like the map
directory).</p>
2018-02-05 20:38:37 +01:00
<h3 id="online">Online maps</h3>
2018-12-09 10:31:48 +01:00
<p>Online maps are represented by map source definition XML files. For the formal
2019-05-30 01:11:01 +02:00
map source file syntax see the <a href="map/1.4/map.xsd">map source
XSD file</a>. The paragraphs below are a "human-readable" summary of the XSD
syntax/semantics divided by map type.</p>
<h4 id="OSM">OSM/Google tiles</h4>
<p>The root <i>map</i> element contains two mandatory elements - <i>name</i>
2018-02-05 20:38:37 +01:00
and <i>url</i>, and two optional elements - <i>zoom</i> and <i>bounds</i>.
The tile X and Y coordinates are replaced with <code>$x</code> and
<code>$y</code> in the URL and the zoom level is replaced with
<code>$z</code>. An example map source definition file can look like:</p>
2018-02-05 20:38:37 +01:00
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
2019-05-30 01:11:01 +02:00
&lt;map xmlns="http://www.gpxsee.org/map/1.4" type="OSM"&gt;
&lt;name&gt;USGS Imagery&lt;/name&gt;
&lt;url&gt;https://navigator.er.usgs.gov/tiles/aerial_Imagery.cgi/$z/$x/$y&lt;/url&gt;
&lt;zoom min="2" max="15"/&gt;
&lt;bounds bottom="0" top="74"/&gt;
2018-02-05 20:38:37 +01:00
&lt;/map&gt;
</pre>
<p>The bounds are WGS84 latitude/longitude values in degrees. If omitted, the
default zoom range is &lt;0,&nbsp;19&gt; and the default bounds are
&lt;-85.0511,&nbsp;85.0511&gt; and &lt;-180,&nbsp;180&gt;.</p>
2018-12-08 18:07:04 +01:00
<p>GPXSee supports HiDPI map tiles. To specify that a map uses HiDPI tiles
use the pixelRatio attribute of the <i>tile</i> tag. For the most common
512x512px tiles (that shall be rendered as 256x256px tiles), set the value
to 2.</p>
2018-08-19 08:37:36 +02:00
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
2019-05-30 01:11:01 +02:00
&lt;map xmlns="http://www.gpxsee.org/map/1.4"&gt;
2018-08-20 18:48:05 +02:00
&lt;name&gt;OSM - HiDPI&lt;/name&gt;
&lt;url&gt;https://a.osm.rrze.fau.de/osmhd/$z/$x/$y.png&lt;/url&gt;
2018-12-08 18:07:04 +01:00
&lt;tile pixelRatio="2"&gt;
2018-08-19 08:37:36 +02:00
&lt;/map&gt;
2018-12-08 18:32:27 +01:00
</pre>
<p>In case of vector tile images (MVT<sup><a href="#pbf">2</a></sup>),
2018-12-08 22:26:59 +01:00
set the type attribute of the <i>tile</i> tag to "vector". This will
adjust the pixel ratio of the tile to the pixel ratio of the display
device.</p>
2018-12-08 18:32:27 +01:00
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
2019-05-30 01:11:01 +02:00
&lt;map xmlns="http://www.gpxsee.org/map/1.4"&gt;
2018-12-08 18:32:27 +01:00
&lt;name>MapTiler&lt;/name&gt;
&lt;url>https://maps.tilehosting.com/data/v3/$z/$x/$y.pbf?key=apikey&lt;/url>
2019-10-05 19:32:47 +02:00
&lt;tile type="vector" size="512"/&gt;
2018-12-08 18:32:27 +01:00
&lt;zoom max="14"/&gt;
&lt;/map&gt;
2018-08-19 08:37:36 +02:00
</pre>
2018-09-23 23:04:32 +02:00
<p>The map URL can be also a local file URL (<i>file:</i> scheme).</p>
2018-09-23 16:08:25 +02:00
<h4 id="TMS">TMS</h4>
<p>TMS maps with the global-mercator profile are supported by GPXSee in addition
to the OSM/Google tiles maps. The configuration is exactly the same as in the case
of OSM maps, the only difference is that TMS maps must have the <i>map</i>
<i>type</i> attribute set to <code>TMS</code>.</p>
2019-05-30 01:11:01 +02:00
<h4 id="QuadTiles">QuadTiles</h4>
<p>QuadTiles (BING) maps - another variation of the OSM/Google tiles maps - are also
supported by GPXSee. Use <code>QuadTiles</code> as the <i>map</i> <i>type</i>
attribute and <code>$quadkey</code> as the quadkey placeholder in the URL.</p>
2018-02-25 18:56:54 +01:00
<h4 id="WMTS">WMTS</h4>
<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
are supported.</p>
<p>For KVP, the <i>url</i> element represents the WMTS base URL and two
additional elements are required - <i>layer</i> and <i>set</i>
(TileMatrixSet in WMTS). Optional <i>format</i> and <i>style</i> elements may
be specified defining the desired image format and layer style. If not set,
<code>image/png</code> is used for <i>format</i> and the default style for
<i>style</i>.</p>
2018-02-25 18:56:54 +01:00
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
2019-05-30 01:11:01 +02:00
&lt;map xmlns="http://www.gpxsee.org/map/1.4" type="WMTS"&gt;
&lt;name&gt;CUZK&lt;/name&gt;
&lt;url&gt;http://geoportal.cuzk.cz/WMTS_ZM_900913/WMTService.aspx&lt;/url&gt;
&lt;layer&gt;zm&lt;/layer&gt;
&lt;set axis="yx"&gt;ogc:1.0:globalcrs84pixel&lt;/set&gt;
2018-02-25 18:56:54 +01:00
&lt;/map&gt;
</pre>
<p>For REST access, the <i>url</i> element's <i>type</i> attribute must be set
to <code>REST</code>. The URL then represents the URL of the capabilities XML
document. Defining the format has no relevance for the REST access method.</p>
2018-02-25 18:56:54 +01:00
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
2019-05-30 01:11:01 +02:00
&lt;map xmlns="http://www.gpxsee.org/map/1.4" type="WMTS"&gt;
&lt;name&gt;Wien - Ortho&lt;/name&gt;
&lt;url type="REST"&gt;http://maps1.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml&lt;/url&gt;
&lt;layer&gt;lb&lt;/layer&gt;
&lt;style&gt;farbe&lt;/style&gt;
&lt;set&gt;google3857&lt;/set&gt;
2018-02-25 18:56:54 +01:00
&lt;/map&gt;
</pre>
<p>There is one more important attribute - the <i>axis</i> attribute of the
<i>set</i> element. It specifies the axis order of the CRS used for the
tile matrix set. The default order is obtained from the CRS definition like
specified in the standard, but in praxis many servers use a wrong order. This
is why GPXSee enables overriding the default axis order using the <i>axis</i>
attribute. Possible values are <code>xy</code> and <code>yx</code>.</p>
<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>
2018-09-23 23:04:32 +02:00
<p>HiDPI WMTS tiles are supported too. Local (<i>file:</i> scheme) URLs are
supported in the map definition file as well as in the WMTS capabilities file.
This enables a fully local REST WMTS map configuration without the need of a web
server.</p>
<h4 id="WMS">WMS</h4>
<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
WMTS map definitions, the main difference is that you must specify the map
CRS using the <i>crs</i> element instead of specifying the tile set. Like in the
case of the <i>set</i> element, you may specify the <i>axis</i> attribute to
override the default axis order.</p>
2018-02-25 18:56:54 +01:00
2018-04-09 19:52:18 +02:00
<p>It is possible to combine multiple WMS layers together in one map. To do so,
use a comma separated list of WMS layers as the <i>layer</i> element content and
a corresponding comma separated list as the <i>style</i> element content (can be
omitted if all styles are the default style).</p>
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
2019-05-30 01:11:01 +02:00
&lt;map xmlns="http://www.gpxsee.org/map/1.4" type="WMS"&gt;
2018-04-09 19:52:18 +02:00
&lt;name&gt;Katastr nemovitostí&lt;/name&gt;
&lt;url&gt;http://services.cuzk.cz/wms/wms.asp&lt;/url&gt;
&lt;layer&gt;polygony_parcel,polygony_budov,polygony_k_u&lt;/layer&gt;
&lt;crs axis="yx"&gt;EPSG:3034&lt;/crs&gt;
&lt;/map&gt;
</pre>
2018-03-01 20:40:31 +01:00
2018-02-05 20:38:37 +01:00
<h3 id="offline">Offline maps</h3>
2020-10-08 00:32:05 +02:00
<p>OziExplorer maps, TrekBuddy maps/atlases, Garmin JNX &amp; IMG/GMAP maps,
2020-12-29 11:32:00 +01:00
TwoNav RMaps, MBTiles, KMZ maps, BSB charts and GeoTIFF images are supported
by GPXSee.</p>
2018-09-23 16:08:25 +02:00
2020-05-30 17:28:43 +02:00
<p>There is support for IMG maps overlay in GPXSee since version 7.30. If the map
name is <i>mapname.img</i> and there is also a file named <i>mapname.img.1</i>
(.2, .3, ... for additional layers) in the same path, than it will be automatically
loaded as an overlay of <i>mapname.img</i>.</p>
2018-02-05 20:38:37 +01:00
<p>You may easily create offline atlases from online map services by using
<a href="http://mobac.sourceforge.net/">Mobile Atlas Creator (MOBAC)</a>.</p>
2019-05-18 23:22:36 +02:00
<h3 id="styles">Map styles</h3>
<p>MVT(PBF) and Garmin IMG maps can be styled with user defined styles.
To apply a user defined style, place it to the <code>style</code> directory in
one of the configuration paths. The style must be named <i>style.typ</i> (Garmin
IMG) or <i>style.json</i> (MVT) for GPXSee to use it. If a Garmin IMG map
contains a TYP file, it takes precedence over the user TYP file.</p>
2018-02-05 20:38:37 +01:00
<h2 id="poi">POI files</h2>
<p>All of the supported formats with waypoints capability - GPX, KML, TCX, NMEA,
2019-10-28 22:44:36 +01:00
CUP, WPT, LOC, GeoJSON and Garmin GPI &amp; CSV - can be loaded either as data
files or as POI files. When a file is opened as a POI file, only waypoints reasonable
near the tracks/waypoints of the loaded data files are displayed.</p>
2018-02-05 20:38:37 +01:00
<p>To make GPXSee load a POI file automatically on startup, add the file to the
<code>POI</code> directory in one of the configuration paths.</p>
<h2 id="dem">DEM files</h2>
<p>Digital Elevation Model (DEM) files can be used as elevation source
instead of the recorded GPS data. The format of the DEM data is the SRTM HGT
2021-01-02 12:21:44 +01:00
file format (SRTM3 and SRTM1 are both supported). The DEM files must be
put<sup><a href="#unzip">3</a></sup> in the <code>DEM</code> directory in one
of the configuration paths for GPXSee to use them.</p>
<p>The <a href="https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/">SRTM data</a> is
provided for example by the <abbr title="U.S. Geological Survey">USGS</abbr>.</p>
2018-12-08 22:26:59 +01:00
<div id="footnote">
2018-12-08 18:07:04 +01:00
<p id="legacyPaths"><i>[1] The user paths have changed in GPXSee 7.</i></p>
2021-01-02 12:21:44 +01:00
<p id="pbf"><i>[2] To display PBF(MVT) tiles, <a href="https://github.com/tumic0/QtPBFImagePlugin">
QtPBFImagePlugin</a> is required (included in the Windows and OS&nbsp;X builds).</i></p>
<p id="pbf"><i>[3] For versions older than 8.1, you have to unzip them too.</i></p>
2018-12-08 22:26:59 +01:00
</div>
2018-02-05 20:38:37 +01:00
</div>
<div id="sidebar">
<h4><a href="#data">Data files</a></h4>
<h4><a href="#maps">Maps</a></h4>
<h5><a href="#online">Online maps</a></h5>
<h5><a href="#offline">Offline maps</a></h5>
2019-05-18 23:22:36 +02:00
<h5><a href="#styles">Map styles</a></h5>
2018-02-05 20:38:37 +01:00
<h4><a href="#poi">POI files</a></h4>
<h4><a href="#dem">DEM files</a></h4>
2018-02-05 20:38:37 +01:00
</div>
<div class="cl">&nbsp;</div>
</div>
</div>
</div>
<div class="footer">
<div class="shell">
2020-10-26 13:04:26 +01:00
<p class="lf">&copy; 2017-2020 Martin Tůma, CC BY-ND 4.0</p>
2018-02-05 20:38:37 +01:00
<p class="rf">Design by <a href="http://www.websitecsstemplates.com/" target="_blank">WebsiteCSSTemplates</a></p>
<div style="clear:both;"></div>
</div>
</div>
<!-- END PAGE SOURCE -->
</body>
</html>