mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-01 13:29:16 +02:00
Compare commits
43 Commits
Author | SHA1 | Date | |
---|---|---|---|
b4cf614f77 | |||
ca710b6a22 | |||
c894e75c17 | |||
259a15332e | |||
c4915891e7 | |||
c5256b25e9 | |||
81b3a517f8 | |||
3aa1ab4b4c | |||
d4fb8ed9c9 | |||
fb16c3f2db | |||
4096d87a6a | |||
68eac5b8cc | |||
88d6904ded | |||
021558b114 | |||
b8815ca9f5 | |||
e845e216bd | |||
60cc869ade | |||
e3e8fdbacf | |||
16f2d7ad34 | |||
aecda0e517 | |||
bf3589812a | |||
8821536419 | |||
bda24d9091 | |||
820e614921 | |||
35703e3363 | |||
a54821863f | |||
5bc3b2ad05 | |||
992fd2c5cd | |||
4b4a1902ef | |||
7d3bc2112a | |||
4ea2f0752a | |||
0bb3b3812c | |||
b23639bef2 | |||
2d8bf2dbb9 | |||
29efa84075 | |||
3d06fe8831 | |||
fe1f6c80b4 | |||
35d1e69d7f | |||
3043128565 | |||
e56a9e33f3 | |||
07aca435d8 | |||
4e4a3d042a | |||
bf5ae22f0d |
@ -1,4 +1,4 @@
|
||||
version: 5.4.{build}
|
||||
version: 5.6.{build}
|
||||
configuration: Release
|
||||
platform: Any CPU
|
||||
environment:
|
||||
|
14
gpxsee.pro
14
gpxsee.pro
@ -1,5 +1,5 @@
|
||||
TARGET = GPXSee
|
||||
VERSION = 5.4
|
||||
VERSION = 5.6
|
||||
QT += core \
|
||||
gui \
|
||||
network
|
||||
@ -119,7 +119,11 @@ HEADERS += src/config.h \
|
||||
src/map/mapsource.h \
|
||||
src/map/tileloader.h \
|
||||
src/map/wmtsmap.h \
|
||||
src/map/wmts.h
|
||||
src/map/wmts.h \
|
||||
src/map/wmsmap.h \
|
||||
src/map/wms.h \
|
||||
src/map/crs.h \
|
||||
src/map/coordinatesystem.h
|
||||
SOURCES += src/main.cpp \
|
||||
src/common/coordinates.cpp \
|
||||
src/common/rectc.cpp \
|
||||
@ -208,7 +212,11 @@ SOURCES += src/main.cpp \
|
||||
src/map/mapsource.cpp \
|
||||
src/map/tileloader.cpp \
|
||||
src/map/wmtsmap.cpp \
|
||||
src/map/wmts.cpp
|
||||
src/map/wmts.cpp \
|
||||
src/map/wmsmap.cpp \
|
||||
src/map/wms.cpp \
|
||||
src/map/crs.cpp \
|
||||
src/map/coordinatesystem.cpp
|
||||
RESOURCES += gpxsee.qrc
|
||||
TRANSLATIONS = lang/gpxsee_cs.ts \
|
||||
lang/gpxsee_sv.ts \
|
||||
|
@ -301,380 +301,380 @@
|
||||
<context>
|
||||
<name>GUI</name>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="592"/>
|
||||
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
|
||||
<translation>Program GPXSee je distribuován pod podmínkami licence GNU General Public License verze 3. Pro více informací navštivte stránky programu na adrese </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="662"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="666"/>
|
||||
<source>Open file</source>
|
||||
<translation>Otevřít soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="751"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="757"/>
|
||||
<source>Open POI file</source>
|
||||
<translation>Otevřít POI soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="195"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="199"/>
|
||||
<source>Quit</source>
|
||||
<translation>Ukončit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="204"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="605"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="606"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="208"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<source>Keyboard controls</source>
|
||||
<translation>Ovládací klávesy</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="229"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="233"/>
|
||||
<source>Close</source>
|
||||
<translation>Zavřít</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="235"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="239"/>
|
||||
<source>Reload</source>
|
||||
<translation>Znovu načíst</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="517"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="521"/>
|
||||
<source>Show</source>
|
||||
<translation>Zobrazit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="511"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="515"/>
|
||||
<source>File</source>
|
||||
<translation>Soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="246"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="250"/>
|
||||
<source>Close POI files</source>
|
||||
<translation>Zavřit POI soubory</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="248"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<source>Overlap POIs</source>
|
||||
<translation>Překrývat POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="256"/>
|
||||
<source>Show POI labels</source>
|
||||
<translation>Zobrazit názvy POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="257"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="261"/>
|
||||
<source>Show POIs</source>
|
||||
<translation>Zobrazit POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="266"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="270"/>
|
||||
<source>Show map</source>
|
||||
<translation>Zobrazit mapu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="276"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<source>Clear tile cache</source>
|
||||
<translation>Vymazat mezipaměť dlaždic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="213"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="217"/>
|
||||
<source>Open...</source>
|
||||
<translation>Otevřít...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="202"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="639"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="640"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="206"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="644"/>
|
||||
<source>Paths</source>
|
||||
<translation>Cesty</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="243"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="247"/>
|
||||
<source>Load POI file...</source>
|
||||
<translation>Nahrát POI soubor...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="274"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="278"/>
|
||||
<source>Load map...</source>
|
||||
<translation>Nahrát mapu...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="284"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="288"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="626"/>
|
||||
<source>Next map</source>
|
||||
<translation>Následující mapa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="294"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<source>Show tracks</source>
|
||||
<translation>Zobrazit cesty</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<source>Show routes</source>
|
||||
<translation>Zobrazit trasy</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<source>Show waypoints</source>
|
||||
<translation>Zobrazit navigační body</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<source>Waypoint labels</source>
|
||||
<translation>Názvy navigačních bodů</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="317"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="321"/>
|
||||
<source>Show graphs</source>
|
||||
<translation>Zobrazit grafy</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="337"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<source>Show grid</source>
|
||||
<translation>Zobrazit mřížku</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="345"/>
|
||||
<source>Show slider info</source>
|
||||
<translation>Zobrazit informace o posuvníku</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="347"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="351"/>
|
||||
<source>Show toolbars</source>
|
||||
<translation>Zobrazovat nástrojové lišty</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="353"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="357"/>
|
||||
<source>Total time</source>
|
||||
<translation>Celkový čas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="358"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="926"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="362"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="934"/>
|
||||
<source>Moving time</source>
|
||||
<translation>Čistý čas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="365"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="369"/>
|
||||
<source>Metric</source>
|
||||
<translation>Metrické</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="370"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="374"/>
|
||||
<source>Imperial</source>
|
||||
<translation>Imperiální</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="375"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="379"/>
|
||||
<source>Nautical</source>
|
||||
<translation>Námořní</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="386"/>
|
||||
<source>Decimal degrees (DD)</source>
|
||||
<translation>Desetinné stupně (DD)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="387"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="391"/>
|
||||
<source>Degrees and decimal minutes (DMM)</source>
|
||||
<translation>Stupně a desetinné minuty (DMM)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="393"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="397"/>
|
||||
<source>Degrees, minutes, seconds (DMS)</source>
|
||||
<translation>Stupně, minuty, vteřiny (DMS)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="398"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="402"/>
|
||||
<source>Fullscreen mode</source>
|
||||
<translation>Celoobrazovkový režim</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="404"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="408"/>
|
||||
<source>Options...</source>
|
||||
<translation>Nastavení...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="410"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="414"/>
|
||||
<source>Next</source>
|
||||
<translation>Následující</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="413"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<source>Previous</source>
|
||||
<translation>Předchozí</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="421"/>
|
||||
<source>Last</source>
|
||||
<translation>Poslední</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="420"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="424"/>
|
||||
<source>First</source>
|
||||
<translation>První</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="460"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="464"/>
|
||||
<source>POI files</source>
|
||||
<translation>POI soubory</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="472"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="476"/>
|
||||
<source>Display</source>
|
||||
<translation>Zobrazit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<source>Units</source>
|
||||
<translation>Jednotky</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="492"/>
|
||||
<source>Coordinates format</source>
|
||||
<translation>Formát souřadnic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="615"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="619"/>
|
||||
<source>Append file</source>
|
||||
<translation>Přidat soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<source>Next/Previous</source>
|
||||
<translation>Následující/Předchozí</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<source>Toggle graph type</source>
|
||||
<translation>Přepnout typ grafu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<source>Toggle time type</source>
|
||||
<translation>Přepnout typ času</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="628"/>
|
||||
<source>Previous map</source>
|
||||
<translation>Předchozí mapa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="625"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<source>Zoom in</source>
|
||||
<translation>Přiblížit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="627"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="631"/>
|
||||
<source>Zoom out</source>
|
||||
<translation>Oddálit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="633"/>
|
||||
<source>Digital zoom</source>
|
||||
<translation>Digitální zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="630"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="634"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1127"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1135"/>
|
||||
<source>Open map file</source>
|
||||
<translation>Otevřít mapový soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1165"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1175"/>
|
||||
<source>No files loaded</source>
|
||||
<translation>Nejsou načteny žádné soubory</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="915"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="920"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="923"/>
|
||||
<source>Date</source>
|
||||
<translation>Datum</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="428"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="432"/>
|
||||
<source>&File</source>
|
||||
<translation>&Soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="442"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="446"/>
|
||||
<source>&Map</source>
|
||||
<translation>&Mapa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="450"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="454"/>
|
||||
<source>&Graph</source>
|
||||
<translation>&Graf</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="463"/>
|
||||
<source>&POI</source>
|
||||
<translation>&POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="471"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="475"/>
|
||||
<source>&Data</source>
|
||||
<translation>&Data</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="480"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<source>&Settings</source>
|
||||
<translation>&Nastavení</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="498"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="502"/>
|
||||
<source>&Help</source>
|
||||
<translation>N&ápověda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<source>Map directory:</source>
|
||||
<translation>Adresář s mapami:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="645"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="649"/>
|
||||
<source>POI directory:</source>
|
||||
<translation>Adresář s POI body:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="651"/>
|
||||
<source>GCS file:</source>
|
||||
<translation>Soubor s GCS daty:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="648"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="652"/>
|
||||
<source>PCS file:</source>
|
||||
<translation>Soubor s PCS daty:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="650"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="654"/>
|
||||
<source>Ellipsoids file:</source>
|
||||
<translation>Soubor s daty elipsoidů:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="657"/>
|
||||
<source>User override directory:</source>
|
||||
<translation>Uživatelský adresář:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="904"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<source>Routes</source>
|
||||
<translation>Trasy</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1154"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1164"/>
|
||||
<source>Error loading map:</source>
|
||||
<translation>Mapu nelze načíst:</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/GUI/gui.cpp" line="1169"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1179"/>
|
||||
<source>%n files</source>
|
||||
<translation>
|
||||
<numerusform>%n soubor</numerusform>
|
||||
@ -683,97 +683,97 @@
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="613"/>
|
||||
<source>Next file</source>
|
||||
<translation>Následující soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="585"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="589"/>
|
||||
<source>Version </source>
|
||||
<translation>Verze </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="218"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="222"/>
|
||||
<source>Print...</source>
|
||||
<translation>Tisknout...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="223"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="227"/>
|
||||
<source>Export to PDF...</source>
|
||||
<translation>Exportovat do PDF...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="914"/>
|
||||
<source>Waypoints</source>
|
||||
<translation>Navigační body</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<source>Previous file</source>
|
||||
<translation>Předchozí soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="314"/>
|
||||
<source>Route waypoints</source>
|
||||
<translation>Body tras</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="612"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<source>First file</source>
|
||||
<translation>První soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<source>Last file</source>
|
||||
<translation>Poslední soubor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="740"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="746"/>
|
||||
<source>Error loading data file:</source>
|
||||
<translation>Datový soubor nelze načíst:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="743"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="768"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="749"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="776"/>
|
||||
<source>Line: %1</source>
|
||||
<translation>Řádka: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="765"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="773"/>
|
||||
<source>Error loading POI file:</source>
|
||||
<translation>Soubor POI nelze načíst:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="898"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<source>Name</source>
|
||||
<translation>Název</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="902"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="910"/>
|
||||
<source>Tracks</source>
|
||||
<translation>Cesty</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="207"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="584"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="211"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<source>About GPXSee</source>
|
||||
<translation>O aplikaci GPXSee</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="522"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="526"/>
|
||||
<source>Navigation</source>
|
||||
<translation>Navigace</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="325"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="922"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="329"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="930"/>
|
||||
<source>Distance</source>
|
||||
<translation>Vzdálenost</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="331"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="481"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="924"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="485"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="932"/>
|
||||
<source>Time</source>
|
||||
<translation>Čas</translation>
|
||||
</message>
|
||||
|
@ -301,334 +301,334 @@
|
||||
<context>
|
||||
<name>GUI</name>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="592"/>
|
||||
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
|
||||
<translation>GPXSee wird unter der GNU General Public License version 3 vertrieben. Mehr Informationen zu GPXSee auf der Homepage </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<source>Map directory:</source>
|
||||
<translation>Kartenverzeichnis:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="645"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="649"/>
|
||||
<source>POI directory:</source>
|
||||
<translation>POI-Verzeichnis:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="651"/>
|
||||
<source>GCS file:</source>
|
||||
<translation>GCS-Datei:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="648"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="652"/>
|
||||
<source>PCS file:</source>
|
||||
<translation>PCS-Datei:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="650"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="654"/>
|
||||
<source>Ellipsoids file:</source>
|
||||
<translation>Ellipsoidendatei:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="657"/>
|
||||
<source>User override directory:</source>
|
||||
<translation>Benutzerverzeichnis:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="662"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="666"/>
|
||||
<source>Open file</source>
|
||||
<translation>Datei öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="751"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="757"/>
|
||||
<source>Open POI file</source>
|
||||
<translation>POI Datei öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="195"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="199"/>
|
||||
<source>Quit</source>
|
||||
<translation>Beenden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="204"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="605"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="606"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="208"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<source>Keyboard controls</source>
|
||||
<translation>Tastaturkürzel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="229"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="233"/>
|
||||
<source>Close</source>
|
||||
<translation>Schließen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="235"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="239"/>
|
||||
<source>Reload</source>
|
||||
<translation>Neu Laden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="517"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="521"/>
|
||||
<source>Show</source>
|
||||
<translation>Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="511"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="515"/>
|
||||
<source>File</source>
|
||||
<translation>Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="246"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="250"/>
|
||||
<source>Close POI files</source>
|
||||
<translation>POI-Datei schließen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="248"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<source>Overlap POIs</source>
|
||||
<translation>POI überlappen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="256"/>
|
||||
<source>Show POI labels</source>
|
||||
<translation>POI-Labels anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="257"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="261"/>
|
||||
<source>Show POIs</source>
|
||||
<translation>POIs anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="266"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="270"/>
|
||||
<source>Show map</source>
|
||||
<translation>Karte anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="276"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<source>Clear tile cache</source>
|
||||
<translation>Tile-Cache bereinigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="213"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="217"/>
|
||||
<source>Open...</source>
|
||||
<translation>Öffnen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="202"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="639"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="640"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="206"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="644"/>
|
||||
<source>Paths</source>
|
||||
<translation>Pfade</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="243"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="247"/>
|
||||
<source>Load POI file...</source>
|
||||
<translation>POI-Datei laden...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="274"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="278"/>
|
||||
<source>Load map...</source>
|
||||
<translation>Karte laden...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="284"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="288"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="626"/>
|
||||
<source>Next map</source>
|
||||
<translation>Nächste Karte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="294"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<source>Show tracks</source>
|
||||
<translation>Strecken anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<source>Show routes</source>
|
||||
<translation>Routen anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<source>Show waypoints</source>
|
||||
<translation>Wegpunkte anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<source>Waypoint labels</source>
|
||||
<translation>Wegpunkt Labels</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="317"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="321"/>
|
||||
<source>Show graphs</source>
|
||||
<translation>Graphen anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="337"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<source>Show grid</source>
|
||||
<translation>Gitter anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="345"/>
|
||||
<source>Show slider info</source>
|
||||
<translation>Schieberinfo anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="347"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="351"/>
|
||||
<source>Show toolbars</source>
|
||||
<translation>Toolbars anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="353"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="357"/>
|
||||
<source>Total time</source>
|
||||
<translation>Gesamtzeit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="358"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="926"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="362"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="934"/>
|
||||
<source>Moving time</source>
|
||||
<translation>Bewegungszeit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="365"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="369"/>
|
||||
<source>Metric</source>
|
||||
<translation>Metrisch</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="370"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="374"/>
|
||||
<source>Imperial</source>
|
||||
<translation>Imperial</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="375"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="379"/>
|
||||
<source>Nautical</source>
|
||||
<translation>Nautisch</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="386"/>
|
||||
<source>Decimal degrees (DD)</source>
|
||||
<translation>Dezimalgrad (DD)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="387"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="391"/>
|
||||
<source>Degrees and decimal minutes (DMM)</source>
|
||||
<translation>Grad und Dezimalminuten (DMM)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="393"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="397"/>
|
||||
<source>Degrees, minutes, seconds (DMS)</source>
|
||||
<translation>Grad, Minuten, Sekunden (DMS)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="398"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="402"/>
|
||||
<source>Fullscreen mode</source>
|
||||
<translation>Vollbildmodus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="404"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="408"/>
|
||||
<source>Options...</source>
|
||||
<translation>Einstellungen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="410"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="414"/>
|
||||
<source>Next</source>
|
||||
<translation>Nächste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="413"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<source>Previous</source>
|
||||
<translation>Vorherige</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="421"/>
|
||||
<source>Last</source>
|
||||
<translation>Letzte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="420"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="424"/>
|
||||
<source>First</source>
|
||||
<translation>Erste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="460"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="464"/>
|
||||
<source>POI files</source>
|
||||
<translation>POI-Dateien</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="472"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="476"/>
|
||||
<source>Display</source>
|
||||
<translation>Anzeige</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<source>Units</source>
|
||||
<translation>Einheiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="492"/>
|
||||
<source>Coordinates format</source>
|
||||
<translation>Koordinatenformate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="615"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="619"/>
|
||||
<source>Append file</source>
|
||||
<translation>An Datei anhängen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<source>Next/Previous</source>
|
||||
<translation>Nächste/Vorherige</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<source>Toggle graph type</source>
|
||||
<translation>Graphtyp umschalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<source>Toggle time type</source>
|
||||
<translation>Zeittyp umschalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="628"/>
|
||||
<source>Previous map</source>
|
||||
<translation>Vorherige Karte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="625"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<source>Zoom in</source>
|
||||
<translation>Hineinzoomen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="627"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="631"/>
|
||||
<source>Zoom out</source>
|
||||
<translation>Herauszoomen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="633"/>
|
||||
<source>Digital zoom</source>
|
||||
<translation>Digitaler Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="630"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="634"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1127"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1135"/>
|
||||
<source>Open map file</source>
|
||||
<translation>Karte Datei öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1154"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1164"/>
|
||||
<source>Error loading map:</source>
|
||||
<translation>Fehler beim Laden der Karte-Datei:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1165"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1175"/>
|
||||
<source>No files loaded</source>
|
||||
<translation>Keine Dateien geladen</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/GUI/gui.cpp" line="1169"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1179"/>
|
||||
<source>%n files</source>
|
||||
<translation>
|
||||
<numerusform>%n Datei</numerusform>
|
||||
@ -636,143 +636,143 @@
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="915"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="920"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="923"/>
|
||||
<source>Date</source>
|
||||
<translation>Datum</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="904"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<source>Routes</source>
|
||||
<translation>Routen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="613"/>
|
||||
<source>Next file</source>
|
||||
<translation>Nächste Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="585"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="589"/>
|
||||
<source>Version </source>
|
||||
<translation>Version </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="218"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="222"/>
|
||||
<source>Print...</source>
|
||||
<translation>Drucken...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="223"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="227"/>
|
||||
<source>Export to PDF...</source>
|
||||
<translation>Als PDF exportieren...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="914"/>
|
||||
<source>Waypoints</source>
|
||||
<translation>Wegpunkte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<source>Previous file</source>
|
||||
<translation>Vorherige Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="314"/>
|
||||
<source>Route waypoints</source>
|
||||
<translation>Routen Wegpunkte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="428"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="432"/>
|
||||
<source>&File</source>
|
||||
<translation>&Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="442"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="446"/>
|
||||
<source>&Map</source>
|
||||
<translation>&Map</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="450"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="454"/>
|
||||
<source>&Graph</source>
|
||||
<translation>&Graph</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="463"/>
|
||||
<source>&POI</source>
|
||||
<translation>&POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="471"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="475"/>
|
||||
<source>&Data</source>
|
||||
<translation>D&ata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="480"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<source>&Settings</source>
|
||||
<translation>&Einstellungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="498"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="502"/>
|
||||
<source>&Help</source>
|
||||
<translation>&Hilfe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="612"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<source>First file</source>
|
||||
<translation>Erste Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<source>Last file</source>
|
||||
<translation>Letzte Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="740"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="746"/>
|
||||
<source>Error loading data file:</source>
|
||||
<translation>Fehler beim Laden der Datei:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="743"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="768"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="749"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="776"/>
|
||||
<source>Line: %1</source>
|
||||
<translation>Linie: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="765"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="773"/>
|
||||
<source>Error loading POI file:</source>
|
||||
<translation>Fehler beim Laden der POI-Datei:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="898"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<source>Name</source>
|
||||
<translation>Name</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="902"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="910"/>
|
||||
<source>Tracks</source>
|
||||
<translation>Strecken</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="207"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="584"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="211"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<source>About GPXSee</source>
|
||||
<translation>Über GPXSee</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="522"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="526"/>
|
||||
<source>Navigation</source>
|
||||
<translation>Navigation</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="325"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="922"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="329"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="930"/>
|
||||
<source>Distance</source>
|
||||
<translation>Distanz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="331"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="481"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="924"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="485"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="932"/>
|
||||
<source>Time</source>
|
||||
<translation>Zeit</translation>
|
||||
</message>
|
||||
@ -1165,7 +1165,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/optionsdialog.cpp" line="331"/>
|
||||
<source>nmi</source>
|
||||
<translation>kn</translation>
|
||||
<translation>nmi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/optionsdialog.cpp" line="334"/>
|
||||
|
@ -301,380 +301,380 @@
|
||||
<context>
|
||||
<name>GUI</name>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="592"/>
|
||||
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
|
||||
<translation>GPXSee levitetään GNU yleisen lisenssin version 3 alaisena. Voit katsoa lisätietoja GPXSee:stä projektin kotisivulla </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="662"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="666"/>
|
||||
<source>Open file</source>
|
||||
<translation>Avaa tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="751"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="757"/>
|
||||
<source>Open POI file</source>
|
||||
<translation>Avaa POI-tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="195"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="199"/>
|
||||
<source>Quit</source>
|
||||
<translation>Lopeta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="204"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="605"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="606"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="208"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<source>Keyboard controls</source>
|
||||
<translation>Näppäimistön säätimet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="229"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="233"/>
|
||||
<source>Close</source>
|
||||
<translation>Sulje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="235"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="239"/>
|
||||
<source>Reload</source>
|
||||
<translation>Lataa uudelleen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="517"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="521"/>
|
||||
<source>Show</source>
|
||||
<translation>Näytä</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="511"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="515"/>
|
||||
<source>File</source>
|
||||
<translation>Tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="246"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="250"/>
|
||||
<source>Close POI files</source>
|
||||
<translation>Sulje POI-tiedostot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="248"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<source>Overlap POIs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="256"/>
|
||||
<source>Show POI labels</source>
|
||||
<translation>Näytä POI:n nimiöt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="257"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="261"/>
|
||||
<source>Show POIs</source>
|
||||
<translation>Näytä POI:t</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="266"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="270"/>
|
||||
<source>Show map</source>
|
||||
<translation>Näytä kartta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="276"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<source>Clear tile cache</source>
|
||||
<translation>Tyhjennä välimuisti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="213"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="217"/>
|
||||
<source>Open...</source>
|
||||
<translation>Avaa...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="202"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="639"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="640"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="206"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="644"/>
|
||||
<source>Paths</source>
|
||||
<translation>Tiedostopolut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="243"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="247"/>
|
||||
<source>Load POI file...</source>
|
||||
<translation>Lataa POI-tiedosto...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="274"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="278"/>
|
||||
<source>Load map...</source>
|
||||
<translation>Lataa kartta...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="284"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="288"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="626"/>
|
||||
<source>Next map</source>
|
||||
<translation>Seuraava kartta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="294"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<source>Show tracks</source>
|
||||
<translation>Näytä jäljet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<source>Show routes</source>
|
||||
<translation>Näytä reitit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<source>Show waypoints</source>
|
||||
<translation>Näytä reittipisteet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<source>Waypoint labels</source>
|
||||
<translation>Reittipisteen nimiöt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="317"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="321"/>
|
||||
<source>Show graphs</source>
|
||||
<translation>Näytä kaaviokuvat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="337"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<source>Show grid</source>
|
||||
<translation>Näytä ruudukko</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="345"/>
|
||||
<source>Show slider info</source>
|
||||
<translation>Näytä liukusäätimen arvo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="347"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="351"/>
|
||||
<source>Show toolbars</source>
|
||||
<translation>Näytä työkalupalkit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="353"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="357"/>
|
||||
<source>Total time</source>
|
||||
<translation>Kokonaisaika</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="358"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="926"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="362"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="934"/>
|
||||
<source>Moving time</source>
|
||||
<translation>Liikkumisaika</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="365"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="369"/>
|
||||
<source>Metric</source>
|
||||
<translation>Metriset</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="370"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="374"/>
|
||||
<source>Imperial</source>
|
||||
<translation>Brittiläiset</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="375"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="379"/>
|
||||
<source>Nautical</source>
|
||||
<translation>Merelliset</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="386"/>
|
||||
<source>Decimal degrees (DD)</source>
|
||||
<translation>Desimaaliasteet (DD)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="387"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="391"/>
|
||||
<source>Degrees and decimal minutes (DMM)</source>
|
||||
<translation>Asteet, desimaaliminuutit (DMM)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="393"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="397"/>
|
||||
<source>Degrees, minutes, seconds (DMS)</source>
|
||||
<translation>Asteet, minuutit, sekunnit (DMS)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="398"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="402"/>
|
||||
<source>Fullscreen mode</source>
|
||||
<translation>Kokoruututila</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="404"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="408"/>
|
||||
<source>Options...</source>
|
||||
<translation>Valinnat...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="410"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="414"/>
|
||||
<source>Next</source>
|
||||
<translation>Seuraava</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="413"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<source>Previous</source>
|
||||
<translation>Edellinen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="421"/>
|
||||
<source>Last</source>
|
||||
<translation>Viimeinen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="420"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="424"/>
|
||||
<source>First</source>
|
||||
<translation>Ensimmäinen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="460"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="464"/>
|
||||
<source>POI files</source>
|
||||
<translation>POI-tiedostot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="472"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="476"/>
|
||||
<source>Display</source>
|
||||
<translation>Näytä</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<source>Units</source>
|
||||
<translation>Yksiköt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="492"/>
|
||||
<source>Coordinates format</source>
|
||||
<translation>Koordinaattien muoto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="615"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="619"/>
|
||||
<source>Append file</source>
|
||||
<translation>Lisää tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<source>Next/Previous</source>
|
||||
<translation>Next/Previous</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<source>Toggle graph type</source>
|
||||
<translation>Vaihda kaaviokuvan tyyppi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<source>Toggle time type</source>
|
||||
<translation>Vaihda ajan tyyppi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="628"/>
|
||||
<source>Previous map</source>
|
||||
<translation>Edellinen kartta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="625"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<source>Zoom in</source>
|
||||
<translation>Lähennä</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="627"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="631"/>
|
||||
<source>Zoom out</source>
|
||||
<translation>Loitonna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="633"/>
|
||||
<source>Digital zoom</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="630"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="634"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1127"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1135"/>
|
||||
<source>Open map file</source>
|
||||
<translation>Avaa karttatiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1165"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1175"/>
|
||||
<source>No files loaded</source>
|
||||
<translation>Yhtään tiedostoja ei ladattu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="915"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="920"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="923"/>
|
||||
<source>Date</source>
|
||||
<translation>Päivämäärä</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="428"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="432"/>
|
||||
<source>&File</source>
|
||||
<translation>&Tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="442"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="446"/>
|
||||
<source>&Map</source>
|
||||
<translation>&Kartat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="450"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="454"/>
|
||||
<source>&Graph</source>
|
||||
<translation>Kaa&viokuva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="463"/>
|
||||
<source>&POI</source>
|
||||
<translation>&POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="471"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="475"/>
|
||||
<source>&Data</source>
|
||||
<translation>Tie&dot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="480"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<source>&Settings</source>
|
||||
<translation>&Asetukset</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="498"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="502"/>
|
||||
<source>&Help</source>
|
||||
<translation>&Ohje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<source>Map directory:</source>
|
||||
<translation>Karttojen hakemisto:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="645"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="649"/>
|
||||
<source>POI directory:</source>
|
||||
<translation>POI:n hakemisto:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="651"/>
|
||||
<source>GCS file:</source>
|
||||
<translation>GCS-tiedosto:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="648"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="652"/>
|
||||
<source>PCS file:</source>
|
||||
<translation>PCS-tiedosto:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="650"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="654"/>
|
||||
<source>Ellipsoids file:</source>
|
||||
<translation>Ellipsoids-tiedosto:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="657"/>
|
||||
<source>User override directory:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="904"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<source>Routes</source>
|
||||
<translation>Reitit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1154"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1164"/>
|
||||
<source>Error loading map:</source>
|
||||
<translation>Virhe ladattaessa karttaa:</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/GUI/gui.cpp" line="1169"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1179"/>
|
||||
<source>%n files</source>
|
||||
<translation>
|
||||
<numerusform>%n tiedosto</numerusform>
|
||||
@ -682,97 +682,97 @@
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="613"/>
|
||||
<source>Next file</source>
|
||||
<translation>Seuraava tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="585"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="589"/>
|
||||
<source>Version </source>
|
||||
<translation>Versio </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="218"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="222"/>
|
||||
<source>Print...</source>
|
||||
<translation>Tulosta...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="223"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="227"/>
|
||||
<source>Export to PDF...</source>
|
||||
<translation>Vie PDF:ksi...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="914"/>
|
||||
<source>Waypoints</source>
|
||||
<translation>Reittipisteet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<source>Previous file</source>
|
||||
<translation>Edellinen tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="314"/>
|
||||
<source>Route waypoints</source>
|
||||
<translation>Reittipisteet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="612"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<source>First file</source>
|
||||
<translation>Ensimmäinen tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<source>Last file</source>
|
||||
<translation>Viimeinen tiedosto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="740"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="746"/>
|
||||
<source>Error loading data file:</source>
|
||||
<translation>Virhe ladattaessa datatiedostoa:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="743"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="768"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="749"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="776"/>
|
||||
<source>Line: %1</source>
|
||||
<translation>Rivi: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="765"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="773"/>
|
||||
<source>Error loading POI file:</source>
|
||||
<translation>Virhe ladattaessa POI-tiedostoa:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="898"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<source>Name</source>
|
||||
<translation>Nimi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="902"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="910"/>
|
||||
<source>Tracks</source>
|
||||
<translation>Jäljet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="207"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="584"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="211"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<source>About GPXSee</source>
|
||||
<translation>Tietoja GPXSee:stä</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="522"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="526"/>
|
||||
<source>Navigation</source>
|
||||
<translation>Navigointi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="325"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="922"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="329"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="930"/>
|
||||
<source>Distance</source>
|
||||
<translation>Etäisyys</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="331"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="481"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="924"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="485"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="932"/>
|
||||
<source>Time</source>
|
||||
<translation>Aika</translation>
|
||||
</message>
|
||||
@ -1401,17 +1401,17 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="25"/>
|
||||
<source>min/km</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="26"/>
|
||||
<source>min/mi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/mi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="26"/>
|
||||
<source>min/nmi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/mpk</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="30"/>
|
||||
@ -1421,7 +1421,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="32"/>
|
||||
<source>Pace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Tahti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="90"/>
|
||||
@ -1454,17 +1454,17 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="26"/>
|
||||
<source>min/km</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="27"/>
|
||||
<source>min/mi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/mi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="27"/>
|
||||
<source>min/nmi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/mpk</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="29"/>
|
||||
@ -1479,7 +1479,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="33"/>
|
||||
<source>Pace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Tahti</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -301,334 +301,334 @@
|
||||
<context>
|
||||
<name>GUI</name>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="592"/>
|
||||
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
|
||||
<translation>GPXSee est distribué selon les termes de la licence publique générale GNU (version 3). Pour plus d'information sur GPXSee, visiter le site du projet sur </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<source>Map directory:</source>
|
||||
<translation>Dossier des cartes :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="645"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="649"/>
|
||||
<source>POI directory:</source>
|
||||
<translation>Dossier des POI:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="651"/>
|
||||
<source>GCS file:</source>
|
||||
<translation>Fichier GCS :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="648"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="652"/>
|
||||
<source>PCS file:</source>
|
||||
<translation>Fichier PCS :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="650"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="654"/>
|
||||
<source>Ellipsoids file:</source>
|
||||
<translation>Fichier des ellipsoïdes :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="657"/>
|
||||
<source>User override directory:</source>
|
||||
<translation>Dossier de l'utilisateur :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="662"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="666"/>
|
||||
<source>Open file</source>
|
||||
<translation>Ouvrir un fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="751"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="757"/>
|
||||
<source>Open POI file</source>
|
||||
<translation>Ouvrir un fichier POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="195"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="199"/>
|
||||
<source>Quit</source>
|
||||
<translation>Quitter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="204"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="605"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="606"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="208"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<source>Keyboard controls</source>
|
||||
<translation>Raccourcis clavier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="229"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="233"/>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="235"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="239"/>
|
||||
<source>Reload</source>
|
||||
<translation>Actualiser</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="517"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="521"/>
|
||||
<source>Show</source>
|
||||
<translation>Afficher</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="511"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="515"/>
|
||||
<source>File</source>
|
||||
<translation>Fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="246"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="250"/>
|
||||
<source>Close POI files</source>
|
||||
<translation>Fermer les fichiers POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="248"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<source>Overlap POIs</source>
|
||||
<translation>Superposer les POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="256"/>
|
||||
<source>Show POI labels</source>
|
||||
<translation>Afficher les notes des POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="257"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="261"/>
|
||||
<source>Show POIs</source>
|
||||
<translation>Afficher les POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="266"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="270"/>
|
||||
<source>Show map</source>
|
||||
<translation>Afficher la carte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="276"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<source>Clear tile cache</source>
|
||||
<translation>Effacer les tuiles en cache</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="213"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="217"/>
|
||||
<source>Open...</source>
|
||||
<translation>Ouvrir...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="202"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="639"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="640"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="206"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="644"/>
|
||||
<source>Paths</source>
|
||||
<translation>Chemin d'accès</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="243"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="247"/>
|
||||
<source>Load POI file...</source>
|
||||
<translation>Charger un fichier POI...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="274"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="278"/>
|
||||
<source>Load map...</source>
|
||||
<translation>Charger une carte...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="284"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="288"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="626"/>
|
||||
<source>Next map</source>
|
||||
<translation>Carte suivante</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="294"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<source>Show tracks</source>
|
||||
<translation>Afficher la trace</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<source>Show routes</source>
|
||||
<translation>Afficher la route</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<source>Show waypoints</source>
|
||||
<translation>Afficher les points de jalonnement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<source>Waypoint labels</source>
|
||||
<translation>Étiquettes des jalons</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="317"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="321"/>
|
||||
<source>Show graphs</source>
|
||||
<translation>Afficher les graphes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="337"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<source>Show grid</source>
|
||||
<translation>Afficher la grille</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="345"/>
|
||||
<source>Show slider info</source>
|
||||
<translation>Afficher les infos du curseur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="347"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="351"/>
|
||||
<source>Show toolbars</source>
|
||||
<translation>Afficher la barre d'outils</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="353"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="357"/>
|
||||
<source>Total time</source>
|
||||
<translation>Durée totale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="358"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="926"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="362"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="934"/>
|
||||
<source>Moving time</source>
|
||||
<translation>Durée en déplacement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="365"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="369"/>
|
||||
<source>Metric</source>
|
||||
<translation>Métrique</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="370"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="374"/>
|
||||
<source>Imperial</source>
|
||||
<translation>Impérial</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="375"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="379"/>
|
||||
<source>Nautical</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="386"/>
|
||||
<source>Decimal degrees (DD)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="387"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="391"/>
|
||||
<source>Degrees and decimal minutes (DMM)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="393"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="397"/>
|
||||
<source>Degrees, minutes, seconds (DMS)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="398"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="402"/>
|
||||
<source>Fullscreen mode</source>
|
||||
<translation>Mode plein écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="404"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="408"/>
|
||||
<source>Options...</source>
|
||||
<translation>Options...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="410"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="414"/>
|
||||
<source>Next</source>
|
||||
<translation>Suivant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="413"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<source>Previous</source>
|
||||
<translation>Précèdant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="421"/>
|
||||
<source>Last</source>
|
||||
<translation>Dernier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="420"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="424"/>
|
||||
<source>First</source>
|
||||
<translation>Premier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="460"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="464"/>
|
||||
<source>POI files</source>
|
||||
<translation>Fichiers POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="472"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="476"/>
|
||||
<source>Display</source>
|
||||
<translation>Affichage</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<source>Units</source>
|
||||
<translation>Système d'unités</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="492"/>
|
||||
<source>Coordinates format</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="615"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="619"/>
|
||||
<source>Append file</source>
|
||||
<translation>Joindre un fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<source>Next/Previous</source>
|
||||
<translation>Suivant/Précèdant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<source>Toggle graph type</source>
|
||||
<translation>Controler le type de graphe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<source>Toggle time type</source>
|
||||
<translation>Controler le type de durée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="628"/>
|
||||
<source>Previous map</source>
|
||||
<translation>Carte précèdente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="625"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<source>Zoom in</source>
|
||||
<translation>Zoomer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="627"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="631"/>
|
||||
<source>Zoom out</source>
|
||||
<translation>Dézoomer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="633"/>
|
||||
<source>Digital zoom</source>
|
||||
<translation>Zoom numérique</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="630"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="634"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1127"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1135"/>
|
||||
<source>Open map file</source>
|
||||
<translation>Ouvrir un fichier de carte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1154"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1164"/>
|
||||
<source>Error loading map:</source>
|
||||
<translation>Erreur lors du chargement de la carte :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1165"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1175"/>
|
||||
<source>No files loaded</source>
|
||||
<translation>Aucun fichier chargé</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/GUI/gui.cpp" line="1169"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1179"/>
|
||||
<source>%n files</source>
|
||||
<translation>
|
||||
<numerusform>%n fichier</numerusform>
|
||||
@ -636,143 +636,143 @@
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="915"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="920"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="923"/>
|
||||
<source>Date</source>
|
||||
<translation>Date</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="904"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<source>Routes</source>
|
||||
<translation>Routes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="613"/>
|
||||
<source>Next file</source>
|
||||
<translation>Fichier suivant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="585"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="589"/>
|
||||
<source>Version </source>
|
||||
<translation>Version </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="218"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="222"/>
|
||||
<source>Print...</source>
|
||||
<translation>Imprimer...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="223"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="227"/>
|
||||
<source>Export to PDF...</source>
|
||||
<translation>Exporter au format PDF...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="914"/>
|
||||
<source>Waypoints</source>
|
||||
<translation>Points de jalonnement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<source>Previous file</source>
|
||||
<translation>Fichier précédent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="314"/>
|
||||
<source>Route waypoints</source>
|
||||
<translation>Jalons de route</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="428"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="432"/>
|
||||
<source>&File</source>
|
||||
<translation>&Fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="442"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="446"/>
|
||||
<source>&Map</source>
|
||||
<translation>&Carte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="450"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="454"/>
|
||||
<source>&Graph</source>
|
||||
<translation>&Graphe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="463"/>
|
||||
<source>&POI</source>
|
||||
<translation>&POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="471"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="475"/>
|
||||
<source>&Data</source>
|
||||
<translation>&Données</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="480"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<source>&Settings</source>
|
||||
<translation>Pa&ramètres</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="498"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="502"/>
|
||||
<source>&Help</source>
|
||||
<translation>&Aide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="612"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<source>First file</source>
|
||||
<translation>Premier fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<source>Last file</source>
|
||||
<translation>Dernier fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="740"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="746"/>
|
||||
<source>Error loading data file:</source>
|
||||
<translation>Erreur lors du chargement des données:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="743"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="768"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="749"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="776"/>
|
||||
<source>Line: %1</source>
|
||||
<translation>Ligne : %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="765"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="773"/>
|
||||
<source>Error loading POI file:</source>
|
||||
<translation>Erreur lors du chargement du fichier POI :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="898"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<source>Name</source>
|
||||
<translation>Nom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="902"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="910"/>
|
||||
<source>Tracks</source>
|
||||
<translation>Traces</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="207"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="584"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="211"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<source>About GPXSee</source>
|
||||
<translation>À propos de GPXSee</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="522"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="526"/>
|
||||
<source>Navigation</source>
|
||||
<translation>Navigation</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="325"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="922"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="329"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="930"/>
|
||||
<source>Distance</source>
|
||||
<translation>Distance</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="331"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="481"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="924"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="485"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="932"/>
|
||||
<source>Time</source>
|
||||
<translation>Temps</translation>
|
||||
</message>
|
||||
|
@ -301,380 +301,380 @@
|
||||
<context>
|
||||
<name>GUI</name>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="592"/>
|
||||
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
|
||||
<translation>GPXSee распространяется в соответствиями с условиями версии 3 Стандартной Общественной Лицензии GNU. Для получения дополнительной информации о GPXSee посетите страницу проекта </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="662"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="666"/>
|
||||
<source>Open file</source>
|
||||
<translation>Открыть файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="751"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="757"/>
|
||||
<source>Open POI file</source>
|
||||
<translation>Открыть файл с точками POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="195"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="199"/>
|
||||
<source>Quit</source>
|
||||
<translation>Выход</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="204"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="605"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="606"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="208"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<source>Keyboard controls</source>
|
||||
<translation>Управление с помощью клавиатуры</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="229"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="233"/>
|
||||
<source>Close</source>
|
||||
<translation>Закрыть</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="235"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="239"/>
|
||||
<source>Reload</source>
|
||||
<translation>Обновить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="517"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="521"/>
|
||||
<source>Show</source>
|
||||
<translation>Показать</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="511"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="515"/>
|
||||
<source>File</source>
|
||||
<translation>Файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="246"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="250"/>
|
||||
<source>Close POI files</source>
|
||||
<translation>Закрыть файлы с точками POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="248"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<source>Overlap POIs</source>
|
||||
<translation>Наложение точек POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="256"/>
|
||||
<source>Show POI labels</source>
|
||||
<translation>Показать подписи к точкам POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="257"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="261"/>
|
||||
<source>Show POIs</source>
|
||||
<translation>Показать точки POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="266"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="270"/>
|
||||
<source>Show map</source>
|
||||
<translation>Показать карту</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="276"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<source>Clear tile cache</source>
|
||||
<translation>Очистить кэш</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="213"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="217"/>
|
||||
<source>Open...</source>
|
||||
<translation>Открыть...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="202"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="639"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="640"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="206"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="644"/>
|
||||
<source>Paths</source>
|
||||
<translation>Пути</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="243"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="247"/>
|
||||
<source>Load POI file...</source>
|
||||
<translation>Загрузить файл с точками POI...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="274"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="278"/>
|
||||
<source>Load map...</source>
|
||||
<translation>Загрузить карту...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="284"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="288"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="626"/>
|
||||
<source>Next map</source>
|
||||
<translation>Следующая карта</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="294"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<source>Show tracks</source>
|
||||
<translation>Показать треки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<source>Show routes</source>
|
||||
<translation>Показать маршруты</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<source>Show waypoints</source>
|
||||
<translation>Показать точки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<source>Waypoint labels</source>
|
||||
<translation>Подписи точек</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="317"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="321"/>
|
||||
<source>Show graphs</source>
|
||||
<translation>Показать графики</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="337"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<source>Show grid</source>
|
||||
<translation>Показать сетку</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="345"/>
|
||||
<source>Show slider info</source>
|
||||
<translation>Показать значение на слайдере</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="347"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="351"/>
|
||||
<source>Show toolbars</source>
|
||||
<translation>Показывать панели инструментов</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="353"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="357"/>
|
||||
<source>Total time</source>
|
||||
<translation>Общее время</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="358"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="926"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="362"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="934"/>
|
||||
<source>Moving time</source>
|
||||
<translation>Время движения</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="365"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="369"/>
|
||||
<source>Metric</source>
|
||||
<translation>Метрические</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="370"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="374"/>
|
||||
<source>Imperial</source>
|
||||
<translation>Британские</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="375"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="379"/>
|
||||
<source>Nautical</source>
|
||||
<translation>Морские</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="386"/>
|
||||
<source>Decimal degrees (DD)</source>
|
||||
<translation>Десятичные градусы (DD)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="387"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="391"/>
|
||||
<source>Degrees and decimal minutes (DMM)</source>
|
||||
<translation>Градусы, десятичные минуты (DMM)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="393"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="397"/>
|
||||
<source>Degrees, minutes, seconds (DMS)</source>
|
||||
<translation>Градусы, минуты, секунды (DMS)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="398"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="402"/>
|
||||
<source>Fullscreen mode</source>
|
||||
<translation>Полноэкранный режим</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="404"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="408"/>
|
||||
<source>Options...</source>
|
||||
<translation>Параметры...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="410"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="414"/>
|
||||
<source>Next</source>
|
||||
<translation>Следующий</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="413"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<source>Previous</source>
|
||||
<translation>Предыдущий</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="421"/>
|
||||
<source>Last</source>
|
||||
<translation>Последний</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="420"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="424"/>
|
||||
<source>First</source>
|
||||
<translation>Первый</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="460"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="464"/>
|
||||
<source>POI files</source>
|
||||
<translation>Файлы с точками POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="472"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="476"/>
|
||||
<source>Display</source>
|
||||
<translation>Отображать</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<source>Units</source>
|
||||
<translation>Единицы</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="492"/>
|
||||
<source>Coordinates format</source>
|
||||
<translation>Формат координат</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="615"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="619"/>
|
||||
<source>Append file</source>
|
||||
<translation>Добавить файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<source>Next/Previous</source>
|
||||
<translation>Next/Previous</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<source>Toggle graph type</source>
|
||||
<translation>Переключить тип графика</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<source>Toggle time type</source>
|
||||
<translation>Переключить тип времени</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="628"/>
|
||||
<source>Previous map</source>
|
||||
<translation>Предыдущая карта</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="625"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<source>Zoom in</source>
|
||||
<translation>Увеличить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="627"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="631"/>
|
||||
<source>Zoom out</source>
|
||||
<translation>Уменьшить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="633"/>
|
||||
<source>Digital zoom</source>
|
||||
<translation>Цифровой зум</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="630"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="634"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1127"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1135"/>
|
||||
<source>Open map file</source>
|
||||
<translation>Открыть файл карты</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1165"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1175"/>
|
||||
<source>No files loaded</source>
|
||||
<translation>Нет загруженных файлов</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="915"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="920"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="923"/>
|
||||
<source>Date</source>
|
||||
<translation>Дата</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="428"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="432"/>
|
||||
<source>&File</source>
|
||||
<translation>&Файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="442"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="446"/>
|
||||
<source>&Map</source>
|
||||
<translation>&Карты</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="450"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="454"/>
|
||||
<source>&Graph</source>
|
||||
<translation>&График</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="463"/>
|
||||
<source>&POI</source>
|
||||
<translation>&Точки POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="471"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="475"/>
|
||||
<source>&Data</source>
|
||||
<translation>&Данные</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="480"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<source>&Settings</source>
|
||||
<translation>&Параметры</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="498"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="502"/>
|
||||
<source>&Help</source>
|
||||
<translation>&Справка</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<source>Map directory:</source>
|
||||
<translation>Директория с картами:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="645"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="649"/>
|
||||
<source>POI directory:</source>
|
||||
<translation>Директория с POI:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="651"/>
|
||||
<source>GCS file:</source>
|
||||
<translation>GCS файл:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="648"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="652"/>
|
||||
<source>PCS file:</source>
|
||||
<translation>PCS файл:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="650"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="654"/>
|
||||
<source>Ellipsoids file:</source>
|
||||
<translation>Ellipsoids файл:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="657"/>
|
||||
<source>User override directory:</source>
|
||||
<translation>Каталог пользовательских настроек:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="904"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<source>Routes</source>
|
||||
<translation>Маршруты</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1154"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1164"/>
|
||||
<source>Error loading map:</source>
|
||||
<translation>Ошибка загрузки карты:</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/GUI/gui.cpp" line="1169"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1179"/>
|
||||
<source>%n files</source>
|
||||
<translation>
|
||||
<numerusform>%n файл</numerusform>
|
||||
@ -683,97 +683,97 @@
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="613"/>
|
||||
<source>Next file</source>
|
||||
<translation>Следующий файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="585"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="589"/>
|
||||
<source>Version </source>
|
||||
<translation>Версия </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="218"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="222"/>
|
||||
<source>Print...</source>
|
||||
<translation>Печать...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="223"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="227"/>
|
||||
<source>Export to PDF...</source>
|
||||
<translation>Экспорт в PDF...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="914"/>
|
||||
<source>Waypoints</source>
|
||||
<translation>Точки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<source>Previous file</source>
|
||||
<translation>Предыдущий файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="314"/>
|
||||
<source>Route waypoints</source>
|
||||
<translation>Маршрутные точки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="612"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<source>First file</source>
|
||||
<translation>Первый файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<source>Last file</source>
|
||||
<translation>Последний файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="740"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="746"/>
|
||||
<source>Error loading data file:</source>
|
||||
<translation>Ошибка загрузки файла данных:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="743"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="768"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="749"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="776"/>
|
||||
<source>Line: %1</source>
|
||||
<translation>Строка: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="765"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="773"/>
|
||||
<source>Error loading POI file:</source>
|
||||
<translation>Ошибка загрузки файла с точками POI:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="898"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<source>Name</source>
|
||||
<translation>Имя</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="902"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="910"/>
|
||||
<source>Tracks</source>
|
||||
<translation>Треки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="207"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="584"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="211"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<source>About GPXSee</source>
|
||||
<translation>О GPXSee</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="522"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="526"/>
|
||||
<source>Navigation</source>
|
||||
<translation>Навигация</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="325"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="922"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="329"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="930"/>
|
||||
<source>Distance</source>
|
||||
<translation>Расстояние</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="331"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="481"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="924"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="485"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="932"/>
|
||||
<source>Time</source>
|
||||
<translation>Время</translation>
|
||||
</message>
|
||||
@ -1402,17 +1402,17 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="25"/>
|
||||
<source>min/km</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>мин/км</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="26"/>
|
||||
<source>min/mi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>мин/мл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="26"/>
|
||||
<source>min/nmi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>мин/мор.мл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="30"/>
|
||||
@ -1422,7 +1422,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="32"/>
|
||||
<source>Pace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Темп</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="90"/>
|
||||
@ -1455,17 +1455,17 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="26"/>
|
||||
<source>min/km</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>мин/км</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="27"/>
|
||||
<source>min/mi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>мин/мл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="27"/>
|
||||
<source>min/nmi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>мин/мор.мл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="29"/>
|
||||
@ -1480,7 +1480,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="33"/>
|
||||
<source>Pace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Темп</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -301,334 +301,334 @@
|
||||
<context>
|
||||
<name>GUI</name>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="592"/>
|
||||
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
|
||||
<translation>GPXSee distribueras under vilkoren för GNU General Public License version 3. För mer info om GPXSee, besök hemsidan på </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<source>Map directory:</source>
|
||||
<translation>Kartmapp:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="645"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="649"/>
|
||||
<source>POI directory:</source>
|
||||
<translation>POI-mapp:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="647"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="651"/>
|
||||
<source>GCS file:</source>
|
||||
<translation>GCS-fil:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="648"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="652"/>
|
||||
<source>PCS file:</source>
|
||||
<translation>PCS-fil:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="650"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="654"/>
|
||||
<source>Ellipsoids file:</source>
|
||||
<translation>Ellipsoids-fil:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="657"/>
|
||||
<source>User override directory:</source>
|
||||
<translation>Användarspecificerad mapp:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="662"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="666"/>
|
||||
<source>Open file</source>
|
||||
<translation>Öppna fil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="751"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="757"/>
|
||||
<source>Open POI file</source>
|
||||
<translation>Öppna POI-fil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="195"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="199"/>
|
||||
<source>Quit</source>
|
||||
<translation>Avsluta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="204"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="605"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="606"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="208"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<source>Keyboard controls</source>
|
||||
<translation>Snabbtangenter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="229"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="233"/>
|
||||
<source>Close</source>
|
||||
<translation>Stäng</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="235"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="239"/>
|
||||
<source>Reload</source>
|
||||
<translation>Uppdatera</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="517"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="521"/>
|
||||
<source>Show</source>
|
||||
<translation>Visa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="511"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="515"/>
|
||||
<source>File</source>
|
||||
<translation>Arkiv</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="246"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="250"/>
|
||||
<source>Close POI files</source>
|
||||
<translation>Stäng POI-filer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="248"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<source>Overlap POIs</source>
|
||||
<translation>Överlappa POI:er</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="252"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="256"/>
|
||||
<source>Show POI labels</source>
|
||||
<translation>Visa POI-namn</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="257"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="261"/>
|
||||
<source>Show POIs</source>
|
||||
<translation>Visa POI:er</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="266"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="270"/>
|
||||
<source>Show map</source>
|
||||
<translation>Visa karta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="276"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<source>Clear tile cache</source>
|
||||
<translation>Rensa kart-cache</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="213"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="217"/>
|
||||
<source>Open...</source>
|
||||
<translation>Öppna...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="202"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="639"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="640"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="206"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="643"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="644"/>
|
||||
<source>Paths</source>
|
||||
<translation>Sökvägar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="243"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="247"/>
|
||||
<source>Load POI file...</source>
|
||||
<translation>Läs in POI-fil...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="274"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="278"/>
|
||||
<source>Load map...</source>
|
||||
<translation>Läs in karta...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="280"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="284"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="288"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="626"/>
|
||||
<source>Next map</source>
|
||||
<translation>Nästa karta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="294"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<source>Show tracks</source>
|
||||
<translation>Visa spår</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="298"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<source>Show routes</source>
|
||||
<translation>Visa rutter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="302"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<source>Show waypoints</source>
|
||||
<translation>Visa vägpunkter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="306"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<source>Waypoint labels</source>
|
||||
<translation>Vägpunktsnamn</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="317"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="321"/>
|
||||
<source>Show graphs</source>
|
||||
<translation>Visa diagram</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="337"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<source>Show grid</source>
|
||||
<translation>Visa stödlinjer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="345"/>
|
||||
<source>Show slider info</source>
|
||||
<translation>Visa reglageinfo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="347"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="351"/>
|
||||
<source>Show toolbars</source>
|
||||
<translation>Visa verktygsfält</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="353"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="357"/>
|
||||
<source>Total time</source>
|
||||
<translation>Total tid</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="358"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="926"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="362"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="934"/>
|
||||
<source>Moving time</source>
|
||||
<translation>Förflyttningstid</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="365"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="369"/>
|
||||
<source>Metric</source>
|
||||
<translation>Meter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="370"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="374"/>
|
||||
<source>Imperial</source>
|
||||
<translation>Imperial</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="375"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="379"/>
|
||||
<source>Nautical</source>
|
||||
<translation>Nautiska</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="386"/>
|
||||
<source>Decimal degrees (DD)</source>
|
||||
<translation>Decimala grader (DD)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="387"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="391"/>
|
||||
<source>Degrees and decimal minutes (DMM)</source>
|
||||
<translation>Grader och decimala minuter (DMM)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="393"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="397"/>
|
||||
<source>Degrees, minutes, seconds (DMS)</source>
|
||||
<translation>Grader, minuter, sekunder (DMS)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="398"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="402"/>
|
||||
<source>Fullscreen mode</source>
|
||||
<translation>Helskärmsläge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="404"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="408"/>
|
||||
<source>Options...</source>
|
||||
<translation>Alternativ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="410"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="414"/>
|
||||
<source>Next</source>
|
||||
<translation>Nästa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="413"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<source>Previous</source>
|
||||
<translation>Föregående</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="417"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="421"/>
|
||||
<source>Last</source>
|
||||
<translation>Sista</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="420"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="424"/>
|
||||
<source>First</source>
|
||||
<translation>Första</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="460"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="464"/>
|
||||
<source>POI files</source>
|
||||
<translation>POI-filer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="472"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="476"/>
|
||||
<source>Display</source>
|
||||
<translation>Visa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<source>Units</source>
|
||||
<translation>Enhet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="488"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="492"/>
|
||||
<source>Coordinates format</source>
|
||||
<translation>Koordinatformat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="615"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="619"/>
|
||||
<source>Append file</source>
|
||||
<translation>Lägg till fil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<source>Next/Previous</source>
|
||||
<translation>Nästa/Föregående</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="622"/>
|
||||
<source>Toggle graph type</source>
|
||||
<translation>Växla diagramtyp</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="620"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<source>Toggle time type</source>
|
||||
<translation>Växla tidstyp</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="624"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="628"/>
|
||||
<source>Previous map</source>
|
||||
<translation>Föregående karta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="625"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<source>Zoom in</source>
|
||||
<translation>Zooma in</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="627"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="631"/>
|
||||
<source>Zoom out</source>
|
||||
<translation>Zooma ut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="629"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="633"/>
|
||||
<source>Digital zoom</source>
|
||||
<translation>Digital zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="630"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="634"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1127"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1135"/>
|
||||
<source>Open map file</source>
|
||||
<translation>Öppna kartfil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1154"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1164"/>
|
||||
<source>Error loading map:</source>
|
||||
<translation>Fel vid inläsning av karta:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1165"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1175"/>
|
||||
<source>No files loaded</source>
|
||||
<translation>Inga filer inlästa</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/GUI/gui.cpp" line="1169"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="1179"/>
|
||||
<source>%n files</source>
|
||||
<translation>
|
||||
<numerusform>%n filer</numerusform>
|
||||
@ -636,143 +636,143 @@
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="915"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="920"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="923"/>
|
||||
<source>Date</source>
|
||||
<translation>Datum</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="904"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="912"/>
|
||||
<source>Routes</source>
|
||||
<translation>Rutter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="609"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="613"/>
|
||||
<source>Next file</source>
|
||||
<translation>Nästa fil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="585"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="589"/>
|
||||
<source>Version </source>
|
||||
<translation>Version </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="218"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="222"/>
|
||||
<source>Print...</source>
|
||||
<translation>Skriv ut...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="223"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="227"/>
|
||||
<source>Export to PDF...</source>
|
||||
<translation>Exportera till PDF...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="914"/>
|
||||
<source>Waypoints</source>
|
||||
<translation>Vägpunkter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="610"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<source>Previous file</source>
|
||||
<translation>Föregående fil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="310"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="314"/>
|
||||
<source>Route waypoints</source>
|
||||
<translation>Ruttvägpunkter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="428"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="432"/>
|
||||
<source>&File</source>
|
||||
<translation>&Arkiv</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="442"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="446"/>
|
||||
<source>&Map</source>
|
||||
<translation>&Karta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="450"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="454"/>
|
||||
<source>&Graph</source>
|
||||
<translation>&Diagram</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="459"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="463"/>
|
||||
<source>&POI</source>
|
||||
<translation>&POI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="471"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="475"/>
|
||||
<source>&Data</source>
|
||||
<translation>Da&ta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="480"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="484"/>
|
||||
<source>&Settings</source>
|
||||
<translation>&Inställningar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="498"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="502"/>
|
||||
<source>&Help</source>
|
||||
<translation>&Hjälp</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="612"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="616"/>
|
||||
<source>First file</source>
|
||||
<translation>Första filen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="614"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="618"/>
|
||||
<source>Last file</source>
|
||||
<translation>Sista filen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="740"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="746"/>
|
||||
<source>Error loading data file:</source>
|
||||
<translation>Fel vid inläsning av datafil:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="743"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="768"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="749"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="776"/>
|
||||
<source>Line: %1</source>
|
||||
<translation>Rad: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="765"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="773"/>
|
||||
<source>Error loading POI file:</source>
|
||||
<translation>Fel vid inläsning av POI-fil:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="898"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="906"/>
|
||||
<source>Name</source>
|
||||
<translation>Namn</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="902"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="910"/>
|
||||
<source>Tracks</source>
|
||||
<translation>Spår</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="207"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="584"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="211"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="588"/>
|
||||
<source>About GPXSee</source>
|
||||
<translation>Om GPXSee</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="522"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="526"/>
|
||||
<source>Navigation</source>
|
||||
<translation>Navigation</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="325"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="922"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="329"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="930"/>
|
||||
<source>Distance</source>
|
||||
<translation>Avstånd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="331"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="481"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="924"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="485"/>
|
||||
<location filename="../src/GUI/gui.cpp" line="932"/>
|
||||
<source>Time</source>
|
||||
<translation>Tid</translation>
|
||||
</message>
|
||||
@ -1401,17 +1401,17 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="25"/>
|
||||
<source>min/km</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="26"/>
|
||||
<source>min/mi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/mi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="26"/>
|
||||
<source>min/nmi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/nmi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="30"/>
|
||||
@ -1421,7 +1421,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="32"/>
|
||||
<source>Pace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Tempo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraph.cpp" line="90"/>
|
||||
@ -1454,17 +1454,17 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="26"/>
|
||||
<source>min/km</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="27"/>
|
||||
<source>min/mi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/mi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="27"/>
|
||||
<source>min/nmi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>min/nmi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="29"/>
|
||||
@ -1479,7 +1479,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/speedgraphitem.cpp" line="33"/>
|
||||
<source>Pace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Tempo</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
3579
pkg/csv/pcs.csv
3579
pkg/csv/pcs.csv
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,7 @@ Comment=GPS log file viewer and analyzer
|
||||
Comment[cz]=Prohlížeč a analyzátor GPS logů
|
||||
Comment[fi]=Ohjelma GPS-lokien katseluun ja analysointiin
|
||||
Comment[ru]=Программа для просмотра и анализа GPS логов
|
||||
Comment[sv]=GPS-loggfilsläsare och analysator
|
||||
Exec=gpxsee %F
|
||||
Icon=gpxsee
|
||||
Terminal=false
|
||||
|
@ -5,7 +5,7 @@
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "5.4"
|
||||
!define VERSION "5.6"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}.exe"
|
||||
|
@ -5,7 +5,7 @@
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "5.4"
|
||||
!define VERSION "5.6"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map>
|
||||
<map xmlns="http://www.gpxsee.org/map/1">
|
||||
<name>4UMaps</name>
|
||||
<url>http://4umaps.eu/$z/$x/$y.png</url>
|
||||
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © 4UMaps.eu</copyright>
|
||||
<zoom min="2" max="15"/>
|
||||
<bounds bottom="-65"/>
|
||||
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © 4UMaps.eu</copyright>
|
||||
</map>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map>
|
||||
<map xmlns="http://www.gpxsee.org/map/1">
|
||||
<name>Open Street Map</name>
|
||||
<url>http://tile.openstreetmap.org/$z/$x/$y.png</url>
|
||||
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © OpenStreetMap (CC-BY-SA)</copyright>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map>
|
||||
<map xmlns="http://www.gpxsee.org/map/1">
|
||||
<name>Open Topo Map</name>
|
||||
<url>https://a.tile.opentopomap.org/$z/$x/$y.png</url>
|
||||
<zoom max="17"/>
|
||||
<copyright>Map data: © OpenStreetMap contributors (ODbL), SRTM | Rendering: © OpenTopoMap (CC-BY-SA)</copyright>
|
||||
<zoom max="17"/>
|
||||
</map>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map>
|
||||
<map xmlns="http://www.gpxsee.org/map/1">
|
||||
<name>USGS Imagery</name>
|
||||
<url>https://navigator.er.usgs.gov/tiles/aerial_Imagery.cgi/$z/$x/$y</url>
|
||||
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
||||
<zoom min="2" max="15"/>
|
||||
<bounds bottom="0" top="74"/>
|
||||
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
||||
</map>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map>
|
||||
<map xmlns="http://www.gpxsee.org/map/1">
|
||||
<name>USGS Topo</name>
|
||||
<url>https://navigator.er.usgs.gov/tiles/tcr.cgi/$z/$x/$y.png</url>
|
||||
<zoom min="2" max="15"/>
|
||||
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
||||
<zoom min="2" max="15"/>
|
||||
</map>
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <QNetworkProxyFactory>
|
||||
#include <QLibraryInfo>
|
||||
#include "map/wmts.h"
|
||||
#include "map/wms.h"
|
||||
#include "map/tileloader.h"
|
||||
#include "map/downloader.h"
|
||||
#include "map/ellipsoid.h"
|
||||
@ -24,12 +25,12 @@ App::App(int &argc, char **argv) : QApplication(argc, argv),
|
||||
installTranslator(gpxsee);
|
||||
|
||||
QTranslator *qt = new QTranslator(this);
|
||||
#if defined(Q_OS_WINDOWS) || defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||
qt->load(QLocale::system(), "qt", "_", TRANSLATIONS_DIR);
|
||||
#else // Q_OS_WINDOWS || Q_OS_MAC
|
||||
#else // Q_OS_WIN32 || Q_OS_MAC
|
||||
qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
||||
QLibraryInfo::TranslationsPath));
|
||||
#endif // Q_OS_WINDOWS || Q_OS_MAC
|
||||
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||
installTranslator(qt);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
@ -40,6 +41,7 @@ App::App(int &argc, char **argv) : QApplication(argc, argv),
|
||||
Downloader *dl = new Downloader(this);
|
||||
TileLoader::setDownloader(dl);
|
||||
WMTS::setDownloader(dl);
|
||||
WMS::setDownloader(dl);
|
||||
OPENGL_SET_SAMPLES(4);
|
||||
loadDatums();
|
||||
loadPCSs();
|
||||
|
@ -73,10 +73,10 @@ QString Format::distance(qreal value, Units units)
|
||||
QString Format::elevation(qreal value, Units units)
|
||||
{
|
||||
if (units == Metric)
|
||||
return QString::number(value, 'f', 0) + UNIT_SPACE
|
||||
return QString::number(qRound(value)) + UNIT_SPACE
|
||||
+ qApp->translate("Format", "m");
|
||||
else
|
||||
return QString::number(value * M2FT, 'f', 0) + UNIT_SPACE
|
||||
return QString::number(qRound(value * M2FT)) + UNIT_SPACE
|
||||
+ qApp->translate("Format", "ft");
|
||||
}
|
||||
|
||||
|
@ -81,12 +81,12 @@ GraphView::~GraphView()
|
||||
|
||||
void GraphView::createXLabel()
|
||||
{
|
||||
_xAxis->setLabel(QString("%1 [%2]").arg(_xLabel).arg(_xUnits));
|
||||
_xAxis->setLabel(QString("%1 [%2]").arg(_xLabel, _xUnits));
|
||||
}
|
||||
|
||||
void GraphView::createYLabel()
|
||||
{
|
||||
_yAxis->setLabel(QString("%1 [%2]").arg(_yLabel).arg(_yUnits));
|
||||
_yAxis->setLabel(QString("%1 [%2]").arg(_yLabel, _yUnits));
|
||||
}
|
||||
|
||||
void GraphView::setYLabel(const QString &label)
|
||||
|
@ -82,6 +82,10 @@ GUI::GUI()
|
||||
|
||||
_sliderPos = 0;
|
||||
|
||||
_dataDir = QDir::homePath();
|
||||
_mapDir = QDir::homePath();
|
||||
_poiDir = QDir::homePath();
|
||||
|
||||
readSettings();
|
||||
|
||||
updateGraphTabs();
|
||||
@ -660,11 +664,13 @@ void GUI::paths()
|
||||
void GUI::openFile()
|
||||
{
|
||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open file"),
|
||||
QString(), Data::formats());
|
||||
_dataDir, Data::formats());
|
||||
QStringList list = files;
|
||||
|
||||
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
||||
openFile(*it);
|
||||
if (!list.isEmpty())
|
||||
_dataDir = QFileInfo(list.first()).path();
|
||||
}
|
||||
|
||||
bool GUI::openFile(const QString &fileName)
|
||||
@ -749,11 +755,13 @@ bool GUI::loadFile(const QString &fileName)
|
||||
void GUI::openPOIFile()
|
||||
{
|
||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open POI file"),
|
||||
QString(), Data::formats());
|
||||
_poiDir, Data::formats());
|
||||
QStringList list = files;
|
||||
|
||||
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
||||
openPOIFile(*it);
|
||||
if (!list.isEmpty())
|
||||
_poiDir = QFileInfo(list.first()).path();
|
||||
}
|
||||
|
||||
bool GUI::openPOIFile(const QString &fileName)
|
||||
@ -1125,11 +1133,13 @@ void GUI::showGraphSliderInfo(bool show)
|
||||
void GUI::loadMap()
|
||||
{
|
||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open map file"),
|
||||
QString(), MapList::formats());
|
||||
_mapDir, MapList::formats());
|
||||
QStringList list = files;
|
||||
|
||||
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
||||
loadMap(*it);
|
||||
if (!list.isEmpty())
|
||||
_mapDir = QFileInfo(list.first()).path();
|
||||
}
|
||||
|
||||
bool GUI::loadMap(const QString &fileName)
|
||||
|
@ -224,6 +224,8 @@ private:
|
||||
|
||||
Export _export;
|
||||
Options _options;
|
||||
|
||||
QString _dataDir, _mapDir, _poiDir;
|
||||
};
|
||||
|
||||
#endif // GUI_H
|
||||
|
@ -23,7 +23,7 @@ void InfoItem::updateBoundingRect()
|
||||
|
||||
for (i = _list.constBegin(); i != _list.constEnd(); i++) {
|
||||
width += fm.width(i->key + ": ");
|
||||
width += fm.width(i->value) + ((i == _list.end() - 1) ? 0 : PADDING);
|
||||
width += fm.width(i->value) + ((i == _list.constEnd() - 1) ? 0 : PADDING);
|
||||
}
|
||||
|
||||
_boundingRect = QRectF(0, 0, width, _list.isEmpty() ? 0 : fm.height());
|
||||
@ -49,8 +49,8 @@ void InfoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||
painter->drawText(width, fm.height() - fm.descent(), i->key + ": ");
|
||||
width += fm.width(i->key + ": ");
|
||||
painter->drawText(width, fm.height() - fm.descent(), i->value);
|
||||
width += fm.width(i->value) + ((i == _list.end() - 1) ? 0 : PADDING);
|
||||
if (i != _list.end() - 1) {
|
||||
width += fm.width(i->value) + ((i == _list.constEnd() - 1) ? 0 : PADDING);
|
||||
if (i != _list.constEnd() - 1) {
|
||||
painter->save();
|
||||
painter->setPen(Qt::gray);
|
||||
painter->drawLine(width - PADDING/2, fm.descent(),
|
||||
|
@ -179,7 +179,7 @@ QList<PathItem *> MapView::loadData(const Data &data)
|
||||
if (_tracks.empty() && _routes.empty() && _waypoints.empty())
|
||||
return paths;
|
||||
|
||||
if (mapZoom() != zoom)
|
||||
if (fitMapZoom() != zoom)
|
||||
rescale();
|
||||
else
|
||||
updatePOIVisibility();
|
||||
@ -189,13 +189,13 @@ QList<PathItem *> MapView::loadData(const Data &data)
|
||||
return paths;
|
||||
}
|
||||
|
||||
int MapView::mapZoom() const
|
||||
int MapView::fitMapZoom() const
|
||||
{
|
||||
RectC br = _tr | _rr | _wr;
|
||||
|
||||
return _map->zoomFit(viewport()->size() - QSize(2*MARGIN, 2*MARGIN),
|
||||
br.isNull() ? RectC(_map->xy2ll(sceneRect().topLeft()),
|
||||
_map->xy2ll(sceneRect().bottomRight())) : br);
|
||||
br.isNull() ? RectC(_map->xy2ll(_map->bounds().topLeft()),
|
||||
_map->xy2ll(_map->bounds().bottomRight())) : br);
|
||||
}
|
||||
|
||||
QPointF MapView::contentCenter() const
|
||||
@ -389,7 +389,10 @@ void MapView::setCoordinatesFormat(CoordinatesFormat format)
|
||||
void MapView::clearMapCache()
|
||||
{
|
||||
_map->clearCache();
|
||||
resetCachedContent();
|
||||
|
||||
fitMapZoom();
|
||||
rescale();
|
||||
centerOn(contentCenter());
|
||||
}
|
||||
|
||||
void MapView::digitalZoom(int zoom)
|
||||
@ -767,7 +770,7 @@ void MapView::resizeEvent(QResizeEvent *event)
|
||||
QGraphicsView::resizeEvent(event);
|
||||
|
||||
int zoom = _map->zoom();
|
||||
if (mapZoom() != zoom)
|
||||
if (fitMapZoom() != zoom)
|
||||
rescale();
|
||||
|
||||
centerOn(contentCenter());
|
||||
|
@ -80,7 +80,7 @@ private:
|
||||
void loadPOI();
|
||||
void clearPOI();
|
||||
|
||||
int mapZoom() const;
|
||||
int fitMapZoom() const;
|
||||
QPointF contentCenter() const;
|
||||
void rescale();
|
||||
void centerOn(const QPointF &pos);
|
||||
|
@ -15,7 +15,6 @@ class Coordinates
|
||||
{
|
||||
public:
|
||||
Coordinates() {_lon = NAN; _lat = NAN;}
|
||||
Coordinates(const Coordinates &c) {_lon = c._lon; _lat = c._lat;}
|
||||
Coordinates(qreal lon, qreal lat) {_lon = lon; _lat = lat;}
|
||||
|
||||
qreal &rlon() {return _lon;}
|
||||
|
@ -8,6 +8,15 @@ void RangeF::resize(qreal size)
|
||||
_max += adj;
|
||||
}
|
||||
|
||||
RangeF RangeF::operator&(const RangeF &r) const
|
||||
{
|
||||
if (isNull() || r.isNull())
|
||||
return RangeF();
|
||||
|
||||
RangeF tmp(qMax(this->_min, r._min), qMin(this->_max, r._max));
|
||||
return tmp.isValid() ? tmp : RangeF();
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug operator<<(QDebug dbg, const Range &range)
|
||||
{
|
||||
|
@ -16,6 +16,9 @@ public:
|
||||
|
||||
bool isValid() const {return size() >= 0;}
|
||||
|
||||
void setMin(int min) {_min = min;}
|
||||
void setMax(int max) {_max = max;}
|
||||
|
||||
private:
|
||||
int _min, _max;
|
||||
};
|
||||
@ -26,12 +29,19 @@ public:
|
||||
RangeF() {_min = 0; _max = 0;}
|
||||
RangeF(qreal min, qreal max) {_min = min, _max = max;}
|
||||
|
||||
RangeF operator&(const RangeF &r) const;
|
||||
RangeF &operator&=(const RangeF &r) {*this = *this & r; return *this;}
|
||||
|
||||
qreal min() const {return _min;}
|
||||
qreal max() const {return _max;}
|
||||
qreal size() const {return (_max - _min);}
|
||||
|
||||
bool isNull() const {return _min == 0 && _max == 0;}
|
||||
bool isValid() const {return size() >= 0;}
|
||||
|
||||
void setMin(qreal min) {_min = min;}
|
||||
void setMax(qreal max) {_max = max;}
|
||||
|
||||
void resize(qreal size);
|
||||
|
||||
private:
|
||||
|
@ -44,6 +44,76 @@ RectC RectC::operator|(const RectC &r) const
|
||||
return tmp;
|
||||
}
|
||||
|
||||
RectC RectC::operator&(const RectC &r) const
|
||||
{
|
||||
if (isNull() || r.isNull())
|
||||
return RectC();
|
||||
|
||||
qreal l1 = _tl.lon();
|
||||
qreal r1 = _tl.lon();
|
||||
if (_br.lon() - _tl.lon() < 0)
|
||||
l1 = _br.lon();
|
||||
else
|
||||
r1 = _br.lon();
|
||||
|
||||
qreal l2 = r._tl.lon();
|
||||
qreal r2 = r._tl.lon();
|
||||
if (r._br.lon() - r._tl.lon() < 0)
|
||||
l2 = r._br.lon();
|
||||
else
|
||||
r2 = r._br.lon();
|
||||
|
||||
if (l1 > r2 || l2 > r1)
|
||||
return RectC();
|
||||
|
||||
qreal t1 = _tl.lat();
|
||||
qreal b1 = _tl.lat();
|
||||
if (_br.lat() - _tl.lat() < 0)
|
||||
t1 = _br.lat();
|
||||
else
|
||||
b1 = _br.lat();
|
||||
|
||||
qreal t2 = r._tl.lat();
|
||||
qreal b2 = r._tl.lat();
|
||||
if (r._br.lat() - r._tl.lat() < 0)
|
||||
t2 = r._br.lat();
|
||||
else
|
||||
b2 = r._br.lat();
|
||||
|
||||
if (t1 > b2 || t2 > b1)
|
||||
return RectC();
|
||||
|
||||
RectC tmp;
|
||||
tmp._tl.setLon(qMax(l1, l2));
|
||||
tmp._br.setLon(qMin(r1, r2));
|
||||
tmp._tl.setLat(qMax(t1, t2));
|
||||
tmp._br.setLat(qMin(b1, b2));
|
||||
|
||||
return tmp;
|
||||
}
|
||||
|
||||
RectC RectC::normalized() const
|
||||
{
|
||||
RectC r;
|
||||
|
||||
if (_br.lon() < _tl.lon()) {
|
||||
r._tl.setLon(_br.lon());
|
||||
r._br.setLon(_tl.lon());
|
||||
} else {
|
||||
r._tl.setLon(_tl.lon());
|
||||
r._br.setLon(_br.lon());
|
||||
}
|
||||
if (_br.lat() < _tl.lat()) {
|
||||
r._tl.setLat(_br.lat());
|
||||
r._br.setLat(_tl.lat());
|
||||
} else {
|
||||
r._tl.setLat(_tl.lat());
|
||||
r._br.setLat(_br.lat());
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
void RectC::unite(const Coordinates &c)
|
||||
{
|
||||
if (isNull()) {
|
||||
|
@ -30,8 +30,11 @@ public:
|
||||
|
||||
RectC operator|(const RectC &r) const;
|
||||
RectC &operator|=(const RectC &r) {*this = *this | r; return *this;}
|
||||
RectC operator&(const RectC &r) const;
|
||||
RectC &operator&=(const RectC &r) {*this = *this & r; return *this;}
|
||||
|
||||
void unite(const Coordinates &c);
|
||||
RectC normalized() const;
|
||||
|
||||
private:
|
||||
Coordinates _tl, _br;
|
||||
|
@ -70,7 +70,6 @@ AlbersEqual::AlbersEqual(const Ellipsoid *ellipsoid, double standardParallel1,
|
||||
double sp1, sp2;
|
||||
|
||||
|
||||
_e = ellipsoid;
|
||||
_latitudeOrigin = deg2rad(latitudeOrigin);
|
||||
_longitudeOrigin = deg2rad(longitudeOrigin);
|
||||
_falseEasting = falseEasting;
|
||||
@ -79,7 +78,9 @@ AlbersEqual::AlbersEqual(const Ellipsoid *ellipsoid, double standardParallel1,
|
||||
sp1 = deg2rad(standardParallel1);
|
||||
sp2 = deg2rad(standardParallel2);
|
||||
|
||||
_es2 = 2 * _e->flattening() - _e->flattening() * _e->flattening();
|
||||
_a2 = ellipsoid->radius() * ellipsoid->radius();
|
||||
_es2 = 2 * ellipsoid->flattening() - ellipsoid->flattening()
|
||||
* ellipsoid->flattening();
|
||||
_es = sqrt(_es2);
|
||||
_one_minus_es2 = 1 - _es2;
|
||||
_two_es = 2 * _es;
|
||||
@ -109,7 +110,7 @@ AlbersEqual::AlbersEqual(const Ellipsoid *ellipsoid, double standardParallel1,
|
||||
_n = sin_lat1;
|
||||
|
||||
_C = sqr_m1 + _n * q1;
|
||||
_a_over_n = _e->radius() / _n;
|
||||
_a_over_n = ellipsoid->radius() / _n;
|
||||
nq0 = _n * q0;
|
||||
_rho0 = (_C < nq0) ? 0 : _a_over_n * sqrt(_C - nq0);
|
||||
}
|
||||
@ -172,7 +173,7 @@ Coordinates AlbersEqual::xy2ll(const QPointF &p) const
|
||||
if (rho != 0.0)
|
||||
theta = atan2(dx, rho0_minus_dy);
|
||||
rho_n = rho * _n;
|
||||
q = (_C - (rho_n * rho_n) / (_e->radius() * _e->radius())) / _n;
|
||||
q = (_C - (rho_n * rho_n) / _a2) / _n;
|
||||
qc = 1 - ((_one_minus_es2) / (_two_es)) * log((1.0 - _es) / (1.0 + _es));
|
||||
if (fabs(fabs(qc) - fabs(q)) > 1.0e-6) {
|
||||
q_over_2 = q / 2.0;
|
||||
|
@ -18,13 +18,12 @@ public:
|
||||
virtual Coordinates xy2ll(const QPointF &p) const;
|
||||
|
||||
private:
|
||||
const Ellipsoid *_e;
|
||||
|
||||
double _latitudeOrigin;
|
||||
double _longitudeOrigin;
|
||||
double _falseEasting;
|
||||
double _falseNorthing;
|
||||
|
||||
double _a2;
|
||||
double _rho0;
|
||||
double _C;
|
||||
double _n;
|
||||
|
56
src/map/coordinatesystem.cpp
Normal file
56
src/map/coordinatesystem.cpp
Normal file
@ -0,0 +1,56 @@
|
||||
#include "coordinatesystem.h"
|
||||
|
||||
CoordinateSystem::CoordinateSystem(int code)
|
||||
{
|
||||
switch (code) {
|
||||
case 1024:
|
||||
case 1035:
|
||||
case 1039:
|
||||
case 4400:
|
||||
case 4409:
|
||||
case 4463:
|
||||
case 4464:
|
||||
case 4465:
|
||||
case 4466:
|
||||
case 4467:
|
||||
case 4469:
|
||||
case 4470:
|
||||
case 4495:
|
||||
case 4496:
|
||||
case 4497:
|
||||
case 4498:
|
||||
case 4499:
|
||||
_axisOrder = XY;
|
||||
break;
|
||||
case 4500:
|
||||
case 4530:
|
||||
case 4531:
|
||||
case 4532:
|
||||
_axisOrder = YX;
|
||||
break;
|
||||
default:
|
||||
_axisOrder = Unknown;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug operator<<(QDebug dbg, const CoordinateSystem &cs)
|
||||
{
|
||||
QString ao;
|
||||
|
||||
switch (cs.axisOrder()) {
|
||||
case CoordinateSystem::XY:
|
||||
ao = "XY";
|
||||
break;
|
||||
case CoordinateSystem::YX:
|
||||
ao = "YX";
|
||||
break;
|
||||
default:
|
||||
ao = "Unknown";
|
||||
}
|
||||
|
||||
dbg.nospace() << "CoordinateSystem(" << ao << ")";
|
||||
return dbg.space();
|
||||
}
|
||||
#endif // QT_NO_DEBUG
|
27
src/map/coordinatesystem.h
Normal file
27
src/map/coordinatesystem.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef COORDINATESYSTEM_H
|
||||
#define COORDINATESYSTEM_H
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
class CoordinateSystem
|
||||
{
|
||||
public:
|
||||
enum AxisOrder {Unknown, XY, YX};
|
||||
|
||||
CoordinateSystem() : _axisOrder(Unknown) {}
|
||||
CoordinateSystem(AxisOrder axisOrder) : _axisOrder(axisOrder) {}
|
||||
CoordinateSystem(int code);
|
||||
|
||||
bool isValid() const {return (_axisOrder != Unknown);}
|
||||
|
||||
AxisOrder axisOrder() const {return _axisOrder;}
|
||||
|
||||
private:
|
||||
AxisOrder _axisOrder;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug operator<<(QDebug dbg, const CoordinateSystem &cs);
|
||||
#endif // QT_NO_DEBUG
|
||||
|
||||
#endif // COORDINATESYSTEM_H
|
45
src/map/crs.cpp
Normal file
45
src/map/crs.cpp
Normal file
@ -0,0 +1,45 @@
|
||||
#include <QStringList>
|
||||
#include "pcs.h"
|
||||
#include "crs.h"
|
||||
|
||||
Projection CRS::projection(const QString &crs)
|
||||
{
|
||||
QStringList list(crs.split(':'));
|
||||
QString authority, code;
|
||||
bool res;
|
||||
int epsg;
|
||||
const PCS *pcs;
|
||||
const GCS *gcs;
|
||||
|
||||
switch (list.size()) {
|
||||
case 2:
|
||||
authority = list.at(0);
|
||||
code = list.at(1);
|
||||
break;
|
||||
case 7:
|
||||
authority = list.at(4);
|
||||
code = list.at(6);
|
||||
break;
|
||||
default:
|
||||
return Projection();
|
||||
}
|
||||
|
||||
if (authority == "EPSG") {
|
||||
epsg = code.toInt(&res);
|
||||
if (!res)
|
||||
return Projection();
|
||||
|
||||
if ((pcs = PCS::pcs(epsg)))
|
||||
return Projection(pcs);
|
||||
else if ((gcs = GCS::gcs(epsg)))
|
||||
return Projection(gcs);
|
||||
else
|
||||
return Projection();
|
||||
} else if (authority == "OGC") {
|
||||
if (code == "CRS84")
|
||||
return Projection(GCS::gcs(4326), CoordinateSystem::XY);
|
||||
else
|
||||
return Projection();
|
||||
} else
|
||||
return Projection();
|
||||
}
|
11
src/map/crs.h
Normal file
11
src/map/crs.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef CRS_H
|
||||
#define CRS_H
|
||||
|
||||
#include "projection.h"
|
||||
|
||||
namespace CRS
|
||||
{
|
||||
Projection projection(const QString &crs);
|
||||
}
|
||||
|
||||
#endif // CRS_H
|
@ -2,6 +2,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
#include <QBasicTimer>
|
||||
#include "config.h"
|
||||
#include "downloader.h"
|
||||
|
||||
@ -25,15 +26,68 @@
|
||||
#define ATTR_LEVEL (QNetworkRequest::Attribute)(QNetworkRequest::User + 2)
|
||||
|
||||
#define MAX_REDIRECT_LEVEL 5
|
||||
#define TIMEOUT 30 /* s */
|
||||
|
||||
|
||||
Authorization::Authorization(const QString &username, const QString &password)
|
||||
{
|
||||
QString concatenated = username + ":" + password;
|
||||
QByteArray data = concatenated.toLocal8Bit().toBase64();
|
||||
_header = "Basic " + data;
|
||||
}
|
||||
|
||||
class Downloader::ReplyTimeout : public QObject
|
||||
{
|
||||
public:
|
||||
static void setTimeout(QNetworkReply *reply, int timeout)
|
||||
{
|
||||
Q_ASSERT(reply);
|
||||
new ReplyTimeout(reply, timeout);
|
||||
}
|
||||
|
||||
private:
|
||||
ReplyTimeout(QNetworkReply *reply, int timeout) : QObject(reply)
|
||||
{
|
||||
_timer.start(timeout * 1000, this);
|
||||
}
|
||||
|
||||
void timerEvent(QTimerEvent *ev)
|
||||
{
|
||||
if (!_timer.isActive() || ev->timerId() != _timer.timerId())
|
||||
return;
|
||||
QNetworkReply *reply = static_cast<QNetworkReply*>(parent());
|
||||
if (reply->isRunning())
|
||||
reply->close();
|
||||
_timer.stop();
|
||||
}
|
||||
|
||||
QBasicTimer _timer;
|
||||
};
|
||||
|
||||
class Downloader::Redirect
|
||||
{
|
||||
public:
|
||||
Redirect() : _level(0) {}
|
||||
Redirect(const QUrl &origin, int level) :
|
||||
_origin(origin), _level(level) {}
|
||||
|
||||
const QUrl &origin() const {return _origin;}
|
||||
int level() const {return _level;}
|
||||
|
||||
private:
|
||||
QUrl _origin;
|
||||
int _level;
|
||||
};
|
||||
|
||||
|
||||
Downloader::Downloader(QObject *parent) : QObject(parent)
|
||||
{
|
||||
connect(&_manager, SIGNAL(finished(QNetworkReply*)),
|
||||
SLOT(downloadFinished(QNetworkReply*)));
|
||||
SLOT(downloadFinished(QNetworkReply*)));
|
||||
}
|
||||
|
||||
bool Downloader::doDownload(const Download &dl, const Redirect &redirect)
|
||||
bool Downloader::doDownload(const Download &dl,
|
||||
const QByteArray &authorization, const Redirect *redirect)
|
||||
{
|
||||
QUrl url(dl.url());
|
||||
|
||||
@ -44,14 +98,20 @@ bool Downloader::doDownload(const Download &dl, const Redirect &redirect)
|
||||
|
||||
QNetworkRequest request(url);
|
||||
request.setAttribute(ATTR_FILE, QVariant(dl.file()));
|
||||
if (!redirect.isNull()) {
|
||||
request.setAttribute(ATTR_ORIGIN, QVariant(redirect.origin()));
|
||||
request.setAttribute(ATTR_LEVEL, QVariant(redirect.level()));
|
||||
if (redirect) {
|
||||
request.setAttribute(ATTR_ORIGIN, QVariant(redirect->origin()));
|
||||
request.setAttribute(ATTR_LEVEL, QVariant(redirect->level()));
|
||||
}
|
||||
request.setRawHeader("User-Agent", USER_AGENT);
|
||||
QNetworkReply *reply = _manager.get(request);
|
||||
if (!authorization.isNull())
|
||||
request.setRawHeader("Authorization", authorization);
|
||||
|
||||
_currentDownloads.insert(url, reply);
|
||||
QNetworkReply *reply = _manager.get(request);
|
||||
if (reply) {
|
||||
_currentDownloads.insert(url);
|
||||
ReplyTimeout::setTimeout(reply, TIMEOUT);
|
||||
} else
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -109,7 +169,8 @@ void Downloader::downloadFinished(QNetworkReply *reply)
|
||||
} else {
|
||||
Redirect redirect(origin.isEmpty() ? url : origin, level + 1);
|
||||
Download dl(location, filename);
|
||||
doDownload(dl, redirect);
|
||||
doDownload(dl, reply->request().rawHeader("Authorization"),
|
||||
&redirect);
|
||||
}
|
||||
} else
|
||||
if (!saveToDisk(filename, reply))
|
||||
@ -123,12 +184,13 @@ void Downloader::downloadFinished(QNetworkReply *reply)
|
||||
emit finished();
|
||||
}
|
||||
|
||||
bool Downloader::get(const QList<Download> &list)
|
||||
bool Downloader::get(const QList<Download> &list,
|
||||
const Authorization &authorization)
|
||||
{
|
||||
bool finishEmitted = false;
|
||||
|
||||
for (int i = 0; i < list.count(); i++)
|
||||
finishEmitted |= doDownload(list.at(i));
|
||||
finishEmitted |= doDownload(list.at(i), authorization.header());
|
||||
|
||||
return finishEmitted;
|
||||
}
|
||||
|
@ -1,20 +1,18 @@
|
||||
#ifndef DOWNLOADER_H
|
||||
#ifndef DOWNLOADER_H
|
||||
#define DOWNLOADER_H
|
||||
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QUrl>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <QSet>
|
||||
|
||||
|
||||
class QNetworkReply;
|
||||
|
||||
class Download
|
||||
{
|
||||
public:
|
||||
Download(const QUrl &url, const QString &file)
|
||||
{_url = url; _file = file;}
|
||||
Download(const QUrl &url, const QString &file) : _url(url), _file(file) {}
|
||||
|
||||
const QUrl& url() const {return _url;}
|
||||
const QString& file() const {return _file;}
|
||||
|
||||
@ -23,6 +21,17 @@ private:
|
||||
QString _file;
|
||||
};
|
||||
|
||||
class Authorization
|
||||
{
|
||||
public:
|
||||
Authorization() {}
|
||||
Authorization(const QString &username, const QString &password);
|
||||
|
||||
const QByteArray &header() const {return _header;}
|
||||
|
||||
private:
|
||||
QByteArray _header;
|
||||
};
|
||||
|
||||
class Downloader : public QObject
|
||||
{
|
||||
@ -31,7 +40,9 @@ class Downloader : public QObject
|
||||
public:
|
||||
Downloader(QObject *parent = 0);
|
||||
|
||||
bool get(const QList<Download> &list);
|
||||
bool get(const QList<Download> &list, const Authorization &authorization
|
||||
= Authorization());
|
||||
void clearErrors() {_errorDownloads.clear();}
|
||||
|
||||
signals:
|
||||
void finished();
|
||||
@ -40,28 +51,15 @@ private slots:
|
||||
void downloadFinished(QNetworkReply *reply);
|
||||
|
||||
private:
|
||||
class Redirect
|
||||
{
|
||||
public:
|
||||
Redirect() : _level(0) {}
|
||||
Redirect(const QUrl &origin, int level) :
|
||||
_origin(origin), _level(level) {}
|
||||
class Redirect;
|
||||
class ReplyTimeout;
|
||||
|
||||
const QUrl &origin() const {return _origin;}
|
||||
int level() const {return _level;}
|
||||
|
||||
bool isNull() const {return (_level == 0);}
|
||||
|
||||
private:
|
||||
QUrl _origin;
|
||||
int _level;
|
||||
};
|
||||
|
||||
bool doDownload(const Download &dl, const Redirect &redirect = Redirect());
|
||||
bool doDownload(const Download &dl, const QByteArray &authorization,
|
||||
const Redirect *redirect = 0);
|
||||
bool saveToDisk(const QString &filename, QIODevice *data);
|
||||
|
||||
QNetworkAccessManager _manager;
|
||||
QMap<QUrl, QNetworkReply *> _currentDownloads;
|
||||
QSet<QUrl> _currentDownloads;
|
||||
QSet<QUrl> _errorDownloads;
|
||||
};
|
||||
|
||||
|
@ -14,9 +14,9 @@ QMap<int, Ellipsoid> Ellipsoid::WGS84()
|
||||
|
||||
const Ellipsoid *Ellipsoid::ellipsoid(int id)
|
||||
{
|
||||
QMap<int, Ellipsoid>::const_iterator it = _ellipsoids.find(id);
|
||||
QMap<int, Ellipsoid>::const_iterator it(_ellipsoids.find(id));
|
||||
|
||||
if (it == _ellipsoids.end())
|
||||
if (it == _ellipsoids.constEnd())
|
||||
return 0;
|
||||
else
|
||||
return &(it.value());
|
||||
|
@ -92,62 +92,62 @@ void GCS::loadList(const QString &path)
|
||||
QByteArray line = file.readLine();
|
||||
QList<QByteArray> list = line.split(',');
|
||||
if (list.size() < 10) {
|
||||
qWarning("%s: %d: Format error", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Format error", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
int id = parameter(list[1], &res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid GCS code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid GCS code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int gd = parameter(list[2], &res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid geodetic datum code", qPrintable(path),
|
||||
qWarning("%s:%d: Invalid geodetic datum code", qPrintable(path),
|
||||
ln);
|
||||
continue;
|
||||
}
|
||||
int au = list[3].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid angular units code", qPrintable(path),
|
||||
qWarning("%s:%d: Invalid angular units code", qPrintable(path),
|
||||
ln);
|
||||
continue;
|
||||
}
|
||||
int el = list[4].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid ellipsoid code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid ellipsoid code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int pm = list[5].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid prime meridian code", qPrintable(path),
|
||||
qWarning("%s:%d: Invalid prime meridian code", qPrintable(path),
|
||||
ln);
|
||||
continue;
|
||||
}
|
||||
int ct = list[6].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid coordinates transformation code",
|
||||
qWarning("%s:%d: Invalid coordinates transformation code",
|
||||
qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
double dx = list[7].trimmed().toDouble(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid dx", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid dx", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
double dy = list[8].trimmed().toDouble(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid dy", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid dy", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
double dz = list[9].trimmed().toDouble(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid dz", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid dz", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(e = Ellipsoid::ellipsoid(el))) {
|
||||
qWarning("%s: %d: Unknown ellipsoid code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Unknown ellipsoid code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -157,7 +157,7 @@ void GCS::loadList(const QString &path)
|
||||
datum = Datum(e, dx, dy, dz);
|
||||
break;
|
||||
default:
|
||||
qWarning("%s: %d: Unknown coordinates transformation method",
|
||||
qWarning("%s:%d: Unknown coordinates transformation method",
|
||||
qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
@ -166,7 +166,7 @@ void GCS::loadList(const QString &path)
|
||||
if (gcs.isValid())
|
||||
_gcss.append(Entry(id, gd, list[0].trimmed(), gcs));
|
||||
else
|
||||
qWarning("%s: %d: Unknown prime meridian/angular units code",
|
||||
qWarning("%s:%d: Unknown prime meridian/angular units code",
|
||||
qPrintable(path), ln);
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,7 @@
|
||||
#define GeogPrimeMeridianGeoKey 2051
|
||||
#define GeogAngularUnitsGeoKey 2054
|
||||
#define GeogEllipsoidGeoKey 2056
|
||||
#define GeogAzimuthUnitsGeoKey 2060
|
||||
#define ProjectedCSTypeGeoKey 3072
|
||||
#define ProjectionGeoKey 3074
|
||||
#define ProjCoordTransGeoKey 3075
|
||||
@ -54,13 +55,7 @@
|
||||
|
||||
#define IS_SET(map, key) \
|
||||
((map).contains(key) && (map).value(key).SHORT != 32767)
|
||||
#define TO_M(lu, val) \
|
||||
(std::isnan(val) ? val : (lu).toMeters(val))
|
||||
#define TO_DEG(au, val) \
|
||||
(std::isnan(val) ? val : (au).toDegrees(val))
|
||||
|
||||
#define ARRAY_SIZE(a) \
|
||||
(sizeof(a) / sizeof(*a))
|
||||
|
||||
typedef struct {
|
||||
quint16 KeyDirectoryVersion;
|
||||
@ -236,6 +231,7 @@ bool GeoTIFF::readKeys(TIFFFile &file, Ctx &ctx, QMap<quint16, Value> &kv) const
|
||||
case GeogGeodeticDatumGeoKey:
|
||||
case GeogPrimeMeridianGeoKey:
|
||||
case GeogAngularUnitsGeoKey:
|
||||
case GeogAzimuthUnitsGeoKey:
|
||||
case ProjectedCSTypeGeoKey:
|
||||
case ProjectionGeoKey:
|
||||
case ProjCoordTransGeoKey:
|
||||
@ -296,14 +292,15 @@ const GCS *GeoTIFF::gcs(QMap<quint16, Value> &kv)
|
||||
_errorString = QString("%1: unknown GCS")
|
||||
.arg(kv.value(GeographicTypeGeoKey).SHORT);
|
||||
} else if (IS_SET(kv, GeogGeodeticDatumGeoKey)
|
||||
|| kv.value(GeogEllipsoidGeoKey).SHORT == 7019) {
|
||||
|| kv.value(GeogEllipsoidGeoKey).SHORT == 7019
|
||||
|| kv.value(GeogEllipsoidGeoKey).SHORT == 7030) {
|
||||
int pm = IS_SET(kv, GeogPrimeMeridianGeoKey)
|
||||
? kv.value(GeogPrimeMeridianGeoKey).SHORT : 8901;
|
||||
int au = IS_SET(kv, GeogAngularUnitsGeoKey)
|
||||
? kv.value(GeogAngularUnitsGeoKey).SHORT : 9102;
|
||||
|
||||
/* If only the ellipsoid is defined and it is GRS80, handle such
|
||||
definition as a WGS84 geodetic datum. */
|
||||
// If only the ellipsoid is defined and it is GRS80 or WGS84, handle
|
||||
// such definition as a WGS84 geodetic datum.
|
||||
int gd = IS_SET(kv, GeogGeodeticDatumGeoKey)
|
||||
? kv.value(GeogGeodeticDatumGeoKey).SHORT : 6326;
|
||||
|
||||
@ -356,8 +353,7 @@ bool GeoTIFF::projectedModel(QMap<quint16, Value> &kv)
|
||||
.arg(kv.value(ProjectedCSTypeGeoKey).SHORT);
|
||||
return false;
|
||||
}
|
||||
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
||||
pcs->units());
|
||||
_projection = Projection(pcs);
|
||||
} else if (IS_SET(kv, ProjectionGeoKey)) {
|
||||
const GCS *g = gcs(kv);
|
||||
if (!g)
|
||||
@ -369,8 +365,7 @@ bool GeoTIFF::projectedModel(QMap<quint16, Value> &kv)
|
||||
.arg(kv.value(ProjectionGeoKey).SHORT);
|
||||
return false;
|
||||
}
|
||||
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
||||
pcs->units());
|
||||
_projection = Projection(pcs);
|
||||
} else {
|
||||
double lat0, lon0, scale, fe, fn, sp1, sp2;
|
||||
|
||||
@ -383,6 +378,8 @@ bool GeoTIFF::projectedModel(QMap<quint16, Value> &kv)
|
||||
|
||||
AngularUnits au(IS_SET(kv, GeogAngularUnitsGeoKey)
|
||||
? kv.value(GeogAngularUnitsGeoKey).SHORT : 9102);
|
||||
AngularUnits zu(IS_SET(kv, GeogAzimuthUnitsGeoKey)
|
||||
? kv.value(GeogAzimuthUnitsGeoKey).SHORT : 9102);
|
||||
LinearUnits lu(IS_SET(kv, ProjLinearUnitsGeoKey)
|
||||
? kv.value(ProjLinearUnitsGeoKey).SHORT : 9001);
|
||||
if (lu.isNull()) {
|
||||
@ -392,15 +389,15 @@ bool GeoTIFF::projectedModel(QMap<quint16, Value> &kv)
|
||||
}
|
||||
|
||||
if (kv.contains(ProjNatOriginLatGeoKey))
|
||||
lat0 = kv.value(ProjNatOriginLatGeoKey).DOUBLE;
|
||||
lat0 = au.toDegrees(kv.value(ProjNatOriginLatGeoKey).DOUBLE);
|
||||
else if (kv.contains(ProjCenterLatGeoKey))
|
||||
lat0 = kv.value(ProjCenterLatGeoKey).DOUBLE;
|
||||
lat0 = au.toDegrees(kv.value(ProjCenterLatGeoKey).DOUBLE);
|
||||
else
|
||||
lat0 = NAN;
|
||||
if (kv.contains(ProjNatOriginLongGeoKey))
|
||||
lon0 = kv.value(ProjNatOriginLongGeoKey).DOUBLE;
|
||||
lon0 = au.toDegrees(kv.value(ProjNatOriginLongGeoKey).DOUBLE);
|
||||
else if (kv.contains(ProjCenterLongGeoKey))
|
||||
lon0 = kv.value(ProjCenterLongGeoKey).DOUBLE;
|
||||
lon0 = au.toDegrees(kv.value(ProjCenterLongGeoKey).DOUBLE);
|
||||
else
|
||||
lon0 = NAN;
|
||||
if (kv.contains(ProjScaleAtNatOriginGeoKey))
|
||||
@ -410,30 +407,29 @@ bool GeoTIFF::projectedModel(QMap<quint16, Value> &kv)
|
||||
else
|
||||
scale = NAN;
|
||||
if (kv.contains(ProjStdParallel1GeoKey))
|
||||
sp1 = kv.value(ProjStdParallel1GeoKey).DOUBLE;
|
||||
sp1 = au.toDegrees(kv.value(ProjStdParallel1GeoKey).DOUBLE);
|
||||
else if (kv.contains(ProjAzimuthAngleGeoKey))
|
||||
sp1 = kv.value(ProjAzimuthAngleGeoKey).DOUBLE;
|
||||
sp1 = zu.toDegrees(kv.value(ProjAzimuthAngleGeoKey).DOUBLE);
|
||||
else
|
||||
sp1 = NAN;
|
||||
if (kv.contains(ProjStdParallel2GeoKey))
|
||||
sp2 = kv.value(ProjStdParallel2GeoKey).DOUBLE;
|
||||
sp2 = au.toDegrees(kv.value(ProjStdParallel2GeoKey).DOUBLE);
|
||||
else if (kv.contains(ProjRectifiedGridAngleGeoKey))
|
||||
sp2 = kv.value(ProjRectifiedGridAngleGeoKey).DOUBLE;
|
||||
sp2 = au.toDegrees(kv.value(ProjRectifiedGridAngleGeoKey).DOUBLE);
|
||||
else
|
||||
sp2 = NAN;
|
||||
if (kv.contains(ProjFalseNorthingGeoKey))
|
||||
fn = kv.value(ProjFalseNorthingGeoKey).DOUBLE;
|
||||
fn = lu.toMeters(kv.value(ProjFalseNorthingGeoKey).DOUBLE);
|
||||
else
|
||||
fn = NAN;
|
||||
if (kv.contains(ProjFalseEastingGeoKey))
|
||||
fe = kv.value(ProjFalseEastingGeoKey).DOUBLE;
|
||||
fe = lu.toMeters(kv.value(ProjFalseEastingGeoKey).DOUBLE);
|
||||
else
|
||||
fe = NAN;
|
||||
|
||||
Projection::Setup setup(TO_DEG(au, lat0), TO_DEG(au, lon0), scale,
|
||||
TO_M(lu, fe), TO_M(lu, fn), TO_DEG(au, sp1), TO_DEG(au, sp2));
|
||||
|
||||
_projection = Projection(g, m, setup, lu);
|
||||
Projection::Setup setup(lat0, lon0, scale, fe, fn, sp1, sp2);
|
||||
PCS pcs(g, m, setup, lu, CoordinateSystem());
|
||||
_projection = Projection(&pcs);
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -450,7 +446,7 @@ bool GeoTIFF::geographicModel(QMap<quint16, Value> &kv)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GeoTIFF::load(const QString &path)
|
||||
GeoTIFF::GeoTIFF(const QString &path)
|
||||
{
|
||||
quint32 ifd;
|
||||
QList<ReferencePoint> points;
|
||||
@ -464,86 +460,76 @@ bool GeoTIFF::load(const QString &path)
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
_errorString = QString("Error opening TIFF file: %1")
|
||||
.arg(file.errorString());
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
if (!file.readHeader(ifd)) {
|
||||
_errorString = "Invalid TIFF header";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
while (ifd) {
|
||||
if (!readIFD(file, ifd, ctx)) {
|
||||
_errorString = "Invalid IFD";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ctx.keys) {
|
||||
_errorString = "Not a GeoTIFF file";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (ctx.scale) {
|
||||
if (!readScale(file, ctx.scale, scale)) {
|
||||
_errorString = "Error reading model pixel scale";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (ctx.tiepoints) {
|
||||
if (!readTiepoints(file, ctx.tiepoints, ctx.tiepointCount, points)) {
|
||||
_errorString = "Error reading raster->model tiepoint pairs";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!readKeys(file, ctx, kv)) {
|
||||
_errorString = "Error reading Geo key/value";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
switch (kv.value(GTModelTypeGeoKey).SHORT) {
|
||||
case ModelTypeProjected:
|
||||
if (!projectedModel(kv))
|
||||
return false;
|
||||
return;
|
||||
break;
|
||||
case ModelTypeGeographic:
|
||||
if (!geographicModel(kv))
|
||||
return false;
|
||||
return;
|
||||
break;
|
||||
case ModelTypeGeocentric:
|
||||
_errorString = "Geocentric models are not supported";
|
||||
return false;
|
||||
return;
|
||||
default:
|
||||
_errorString = "Unknown/missing model type";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (ctx.scale && ctx.tiepoints) {
|
||||
const ReferencePoint &p = points.first();
|
||||
_transform = QTransform(scale.x(), 0, 0, -scale.y(), p.pp.x() - p.xy.x()
|
||||
/ scale.x(), p.pp.y() + p.xy.x() / scale.y()).inverted();
|
||||
} else if (ctx.tiepointCount > 1) {
|
||||
Transform t(points);
|
||||
if (t.isNull()) {
|
||||
_errorString = t.errorString();
|
||||
return false;
|
||||
}
|
||||
_transform = t.transform();
|
||||
} else if (ctx.matrix) {
|
||||
if (ctx.scale && ctx.tiepoints)
|
||||
_transform = Transform(points.first(), scale);
|
||||
else if (ctx.tiepointCount > 1)
|
||||
_transform = Transform(points);
|
||||
else if (ctx.matrix) {
|
||||
double m[16];
|
||||
if (!readMatrix(file, ctx.matrix, m)) {
|
||||
_errorString = "Error reading transformation matrix";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
if (m[2] != 0.0 || m[6] != 0.0 || m[8] != 0.0 || m[9] != 0.0
|
||||
|| m[10] != 0.0 || m[11] != 0.0) {
|
||||
_errorString = "Not a baseline transformation matrix";
|
||||
}
|
||||
_transform = QTransform(m[0], m[1], m[4], m[5], m[3], m[7]).inverted();
|
||||
_transform = Transform(m);
|
||||
} else {
|
||||
_errorString = "Incomplete/missing model transformation info";
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
return true;
|
||||
if (!_transform.isValid())
|
||||
_errorString = _transform.errorString();
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#include <QMap>
|
||||
#include <QList>
|
||||
#include <QTransform>
|
||||
#include "transform.h"
|
||||
#include "projection.h"
|
||||
|
||||
@ -13,11 +12,13 @@ class GCS;
|
||||
class GeoTIFF
|
||||
{
|
||||
public:
|
||||
bool load(const QString &path);
|
||||
GeoTIFF(const QString &path);
|
||||
|
||||
bool isValid() const {return _projection.isValid() && _transform.isValid();}
|
||||
const QString &errorString() const {return _errorString;}
|
||||
|
||||
const Projection &projection() const {return _projection;}
|
||||
const QTransform &transform() const {return _transform;}
|
||||
const Transform &transform() const {return _transform;}
|
||||
|
||||
private:
|
||||
union Value {
|
||||
@ -52,7 +53,7 @@ private:
|
||||
bool geographicModel(QMap<quint16, Value> &kv);
|
||||
bool projectedModel(QMap<quint16, Value> &kv);
|
||||
|
||||
QTransform _transform;
|
||||
Transform _transform;
|
||||
Projection _projection;
|
||||
|
||||
QString _errorString;
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <QIODevice>
|
||||
#include "utm.h"
|
||||
#include "gcs.h"
|
||||
#include "pcs.h"
|
||||
#include "mapfile.h"
|
||||
|
||||
|
||||
@ -128,7 +129,7 @@ int MapFile::parse(QIODevice &device, QList<CalibrationPoint> &points,
|
||||
ln++;
|
||||
}
|
||||
|
||||
return (ln == 1) ? 1 : 0;
|
||||
return (ln < 9) ? ln : 0;
|
||||
}
|
||||
|
||||
bool MapFile::parseMapFile(QIODevice &device, QList<CalibrationPoint> &points,
|
||||
@ -163,18 +164,21 @@ const GCS *MapFile::createGCS(const QString &datum)
|
||||
bool MapFile::createProjection(const GCS *gcs, const QString &name,
|
||||
const Projection::Setup &setup, QList<CalibrationPoint> &points)
|
||||
{
|
||||
PCS pcs;
|
||||
|
||||
if (name == "Mercator")
|
||||
_projection = Projection(gcs, 1024, setup, 9001);
|
||||
pcs = PCS(gcs, 1024, setup, 9001);
|
||||
else if (name == "Transverse Mercator")
|
||||
_projection = Projection(gcs, 9807, setup, 9001);
|
||||
else if (name == "Latitude/Longitude")
|
||||
pcs = PCS(gcs, 9807, setup, 9001);
|
||||
else if (name == "Latitude/Longitude") {
|
||||
_projection = Projection(gcs);
|
||||
else if (name == "Lambert Conformal Conic")
|
||||
_projection = Projection(gcs, 9802, setup, 9001);
|
||||
return true;
|
||||
} else if (name == "Lambert Conformal Conic")
|
||||
pcs = PCS(gcs, 9802, setup, 9001);
|
||||
else if (name == "Albers Equal Area")
|
||||
_projection = Projection(gcs, 9822, setup, 9001);
|
||||
pcs = PCS(gcs, 9822, setup, 9001);
|
||||
else if (name == "(A)Lambert Azimuthual Equal Area")
|
||||
_projection = Projection(gcs, 9820, setup, 9001);
|
||||
pcs = PCS(gcs, 9820, setup, 9001);
|
||||
else if (name == "(UTM) Universal Transverse Mercator") {
|
||||
int zone;
|
||||
if (points.first().zone)
|
||||
@ -185,42 +189,47 @@ bool MapFile::createProjection(const GCS *gcs, const QString &name,
|
||||
_errorString = "Can not determine UTM zone";
|
||||
return false;
|
||||
}
|
||||
_projection = Projection(gcs, 9807, UTM::setup(zone), 9001);
|
||||
pcs = PCS(gcs, 9807, UTM::setup(zone), 9001);
|
||||
} else if (name == "(NZTM2) New Zealand TM 2000")
|
||||
_projection = Projection(gcs, 9807, Projection::Setup(0, 173.0, 0.9996,
|
||||
1600000, 10000000, NAN, NAN), 9001);
|
||||
pcs = PCS(gcs, 9807, Projection::Setup(0, 173.0, 0.9996, 1600000,
|
||||
10000000, NAN, NAN), 9001);
|
||||
else if (name == "(BNG) British National Grid")
|
||||
_projection = Projection(gcs, 9807, Projection::Setup(49, -2, 0.999601,
|
||||
400000, -100000, NAN, NAN), 9001);
|
||||
pcs = PCS(gcs, 9807, Projection::Setup(49, -2, 0.999601, 400000,
|
||||
-100000, NAN, NAN), 9001);
|
||||
else if (name == "(IG) Irish Grid")
|
||||
_projection = Projection(gcs, 9807, Projection::Setup(53.5, -8,
|
||||
1.000035, 200000, 250000, NAN, NAN), 9001);
|
||||
pcs = PCS(gcs, 9807, Projection::Setup(53.5, -8, 1.000035, 200000,
|
||||
250000, NAN, NAN), 9001);
|
||||
else if (name == "(SG) Swedish Grid")
|
||||
_projection = Projection(gcs, 9807, Projection::Setup(0, 15.808278, 1,
|
||||
1500000, 0, NAN, NAN), 9001);
|
||||
pcs = PCS(gcs, 9807, Projection::Setup(0, 15.808278, 1, 1500000, 0, NAN,
|
||||
NAN), 9001);
|
||||
else if (name == "(I) France Zone I")
|
||||
_projection = Projection(gcs, 9802, Projection::Setup(49.5, 2.337229,
|
||||
NAN, 600000, 1200000, 48.598523, 50.395912), 9001);
|
||||
pcs = PCS(gcs, 9802, Projection::Setup(49.5, 2.337229, NAN, 600000,
|
||||
1200000, 48.598523, 50.395912), 9001);
|
||||
else if (name == "(II) France Zone II")
|
||||
_projection = Projection(gcs, 9802, Projection::Setup(46.8, 2.337229,
|
||||
NAN, 600000, 2200000, 45.898919, 47.696014), 9001);
|
||||
pcs = PCS(gcs, 9802, Projection::Setup(46.8, 2.337229, NAN, 600000,
|
||||
2200000, 45.898919, 47.696014), 9001);
|
||||
else if (name == "(III) France Zone III")
|
||||
_projection = Projection(gcs, 9802, Projection::Setup(44.1, 2.337229,
|
||||
NAN, 600000, 3200000, 43.199291, 44.996094), 9001);
|
||||
pcs = PCS(gcs, 9802, Projection::Setup(44.1, 2.337229, NAN, 600000,
|
||||
3200000, 43.199291, 44.996094), 9001);
|
||||
else if (name == "(IV) France Zone IV")
|
||||
_projection = Projection(gcs, 9802, Projection::Setup(42.165, 2.337229,
|
||||
NAN, 234.358, 4185861.369, 41.560388, 42.767663), 9001);
|
||||
pcs = PCS(gcs, 9802, Projection::Setup(42.165, 2.337229, NAN, 234.358,
|
||||
4185861.369, 41.560388, 42.767663), 9001);
|
||||
else if (name == "(VICGRID) Victoria Australia")
|
||||
_projection = Projection(gcs, 9802, Projection::Setup(-37, 145, NAN,
|
||||
2500000, 4500000, -36, -38), 9001);
|
||||
pcs = PCS(gcs, 9802, Projection::Setup(-37, 145, NAN, 2500000, 4500000,
|
||||
-36, -38), 9001);
|
||||
else if (name == "(VG94) VICGRID94 Victoria Australia")
|
||||
_projection = Projection(gcs, 9802, Projection::Setup(-37, 145, NAN,
|
||||
2500000, 2500000, -36, -38), 9001);
|
||||
pcs = PCS(gcs, 9802, Projection::Setup(-37, 145, NAN, 2500000, 2500000,
|
||||
-36, -38), 9001);
|
||||
else if (name == "(SUI) Swiss Grid")
|
||||
pcs = PCS(gcs, 9815, Projection::Setup(46.570866, 7.26225, 1.0, 600000,
|
||||
200000, 90.0, 90.0), 9001);
|
||||
else {
|
||||
_errorString = QString("%1: Unknown map projection").arg(name);
|
||||
return false;
|
||||
}
|
||||
|
||||
_projection = Projection(&pcs);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -235,18 +244,16 @@ bool MapFile::computeTransformation(QList<CalibrationPoint> &points)
|
||||
rp.append(points.at(i).rp);
|
||||
}
|
||||
|
||||
Transform t(rp);
|
||||
if (t.isNull()) {
|
||||
_errorString = t.errorString();
|
||||
_transform = Transform(rp);
|
||||
if (!_transform.isValid()) {
|
||||
_errorString = _transform.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
_transform = t.transform();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MapFile::load(QIODevice &file)
|
||||
MapFile::MapFile(QIODevice &file)
|
||||
{
|
||||
QList<CalibrationPoint> points;
|
||||
QString ct, datum;
|
||||
@ -254,13 +261,11 @@ bool MapFile::load(QIODevice &file)
|
||||
const GCS *gcs;
|
||||
|
||||
if (!parseMapFile(file, points, ct, setup, datum))
|
||||
return false;
|
||||
return;
|
||||
if (!(gcs = createGCS(datum)))
|
||||
return false;
|
||||
return;
|
||||
if (!createProjection(gcs, ct, setup, points))
|
||||
return false;
|
||||
return;
|
||||
if (!computeTransformation(points))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
@ -1,21 +1,23 @@
|
||||
#ifndef MAPFILE_H
|
||||
#define MAPFILE_H
|
||||
|
||||
#include <QTransform>
|
||||
#include "gcs.h"
|
||||
#include "transform.h"
|
||||
#include "projection.h"
|
||||
|
||||
class QIODevice;
|
||||
class GCS;
|
||||
|
||||
class MapFile
|
||||
{
|
||||
public:
|
||||
bool load(QIODevice &file);
|
||||
MapFile(QIODevice &file);
|
||||
|
||||
bool isValid() const
|
||||
{return !_image.isNull() && _projection.isValid() && _transform.isValid();}
|
||||
const QString &errorString() const {return _errorString;}
|
||||
|
||||
const Projection &projection() const {return _projection;}
|
||||
const QTransform &transform() const {return _transform;}
|
||||
const Transform &transform() const {return _transform;}
|
||||
|
||||
const QString &name() const {return _name;}
|
||||
const QString &image() const {return _image;}
|
||||
@ -42,7 +44,7 @@ private:
|
||||
QSize _size;
|
||||
|
||||
Projection _projection;
|
||||
QTransform _transform;
|
||||
Transform _transform;
|
||||
|
||||
QString _errorString;
|
||||
};
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <QXmlStreamReader>
|
||||
#include "onlinemap.h"
|
||||
#include "wmtsmap.h"
|
||||
#include "wmsmap.h"
|
||||
#include "mapsource.h"
|
||||
|
||||
#define ZOOM_MAX 19
|
||||
@ -11,10 +12,22 @@
|
||||
#define BOUNDS_RIGHT 180
|
||||
#define BOUNDS_BOTTOM -85.0511
|
||||
|
||||
MapSource::TMSConfig::TMSConfig()
|
||||
: zooms(ZOOM_MIN, ZOOM_MAX), bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP),
|
||||
Coordinates(BOUNDS_RIGHT, BOUNDS_BOTTOM)) {}
|
||||
|
||||
MapSource::Config::Config() : type(OSM), zooms(ZOOM_MIN, ZOOM_MAX),
|
||||
bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT,
|
||||
BOUNDS_BOTTOM)), format("image/png"), rest(false) {}
|
||||
|
||||
|
||||
static CoordinateSystem coordinateSystem(QXmlStreamReader &reader)
|
||||
{
|
||||
QXmlStreamAttributes attr = reader.attributes();
|
||||
if (attr.value("axis") == "yx")
|
||||
return CoordinateSystem::YX;
|
||||
else if (attr.value("axis") == "xy")
|
||||
return CoordinateSystem::XY;
|
||||
else
|
||||
return CoordinateSystem::Unknown;
|
||||
}
|
||||
|
||||
Range MapSource::zooms(QXmlStreamReader &reader)
|
||||
{
|
||||
@ -23,11 +36,7 @@ Range MapSource::zooms(QXmlStreamReader &reader)
|
||||
bool res;
|
||||
|
||||
if (attr.hasAttribute("min")) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
min = attr.value("min").toString().toInt(&res);
|
||||
#else // QT_VERSION < 5
|
||||
min = attr.value("min").toInt(&res);
|
||||
#endif // QT_VERSION < 5
|
||||
if (!res || (min < ZOOM_MIN || min > ZOOM_MAX)) {
|
||||
reader.raiseError("Invalid minimal zoom level");
|
||||
return Range();
|
||||
@ -36,11 +45,7 @@ Range MapSource::zooms(QXmlStreamReader &reader)
|
||||
min = ZOOM_MIN;
|
||||
|
||||
if (attr.hasAttribute("max")) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
max = attr.value("max").toString().toInt(&res);
|
||||
#else // QT_VERSION < 5
|
||||
max = attr.value("max").toInt(&res);
|
||||
#endif // QT_VERSION < 5
|
||||
if (!res || (max < ZOOM_MIN || max > ZOOM_MAX)) {
|
||||
reader.raiseError("Invalid maximal zoom level");
|
||||
return Range();
|
||||
@ -63,11 +68,7 @@ RectC MapSource::bounds(QXmlStreamReader &reader)
|
||||
bool res;
|
||||
|
||||
if (attr.hasAttribute("top")) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
top = attr.value("top").toString().toDouble(&res);
|
||||
#else // QT_VERSION < 5
|
||||
top = attr.value("top").toDouble(&res);
|
||||
#endif // QT_VERSION < 5
|
||||
if (!res || (top < BOUNDS_BOTTOM || top > BOUNDS_TOP)) {
|
||||
reader.raiseError("Invalid bounds top value");
|
||||
return RectC();
|
||||
@ -76,11 +77,7 @@ RectC MapSource::bounds(QXmlStreamReader &reader)
|
||||
top = BOUNDS_TOP;
|
||||
|
||||
if (attr.hasAttribute("bottom")) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
bottom = attr.value("bottom").toString().toDouble(&res);
|
||||
#else // QT_VERSION < 5
|
||||
bottom = attr.value("bottom").toDouble(&res);
|
||||
#endif // QT_VERSION < 5
|
||||
if (!res || (bottom < BOUNDS_BOTTOM || bottom > BOUNDS_TOP)) {
|
||||
reader.raiseError("Invalid bounds bottom value");
|
||||
return RectC();
|
||||
@ -89,11 +86,7 @@ RectC MapSource::bounds(QXmlStreamReader &reader)
|
||||
bottom = BOUNDS_BOTTOM;
|
||||
|
||||
if (attr.hasAttribute("left")) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
left = attr.value("left").toString().toDouble(&res);
|
||||
#else // QT_VERSION < 5
|
||||
left = attr.value("left").toDouble(&res);
|
||||
#endif // QT_VERSION < 5
|
||||
if (!res || (left < BOUNDS_LEFT || left > BOUNDS_RIGHT)) {
|
||||
reader.raiseError("Invalid bounds left value");
|
||||
return RectC();
|
||||
@ -102,11 +95,7 @@ RectC MapSource::bounds(QXmlStreamReader &reader)
|
||||
left = BOUNDS_LEFT;
|
||||
|
||||
if (attr.hasAttribute("right")) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
right = attr.value("right").toString().toDouble(&res);
|
||||
#else // QT_VERSION < 5
|
||||
right = attr.value("right").toDouble(&res);
|
||||
#endif // QT_VERSION < 5
|
||||
if (!res || (right < BOUNDS_LEFT || right > BOUNDS_RIGHT)) {
|
||||
reader.raiseError("Invalid bounds right value");
|
||||
return RectC();
|
||||
@ -128,38 +117,48 @@ RectC MapSource::bounds(QXmlStreamReader &reader)
|
||||
|
||||
void MapSource::map(QXmlStreamReader &reader, Config &config)
|
||||
{
|
||||
config.type = (reader.attributes().value("type") == "WMTS") ? WMTS : TMS;
|
||||
const QXmlStreamAttributes &attr = reader.attributes();
|
||||
config.type = (attr.value("type") == "WMTS") ? WMTS
|
||||
: (attr.value("type") == "WMS") ? WMS : OSM;
|
||||
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "name")
|
||||
config.name = reader.readElementText();
|
||||
else if (reader.name() == "url") {
|
||||
config.wmts.rest = (reader.attributes().value("type") == "REST")
|
||||
config.rest = (reader.attributes().value("type") == "REST")
|
||||
? true : false;
|
||||
config.url = reader.readElementText();
|
||||
} else if (reader.name() == "zoom") {
|
||||
config.tms.zooms = zooms(reader);
|
||||
config.zooms = zooms(reader);
|
||||
reader.skipCurrentElement();
|
||||
} else if (reader.name() == "bounds") {
|
||||
config.tms.bounds = bounds(reader);
|
||||
config.bounds = bounds(reader);
|
||||
reader.skipCurrentElement();
|
||||
} else if (reader.name() == "format") {
|
||||
config.wmts.format = reader.readElementText();
|
||||
} else if (reader.name() == "layer")
|
||||
config.wmts.layer = reader.readElementText();
|
||||
} else if (reader.name() == "format")
|
||||
config.format = reader.readElementText();
|
||||
else if (reader.name() == "layer")
|
||||
config.layer = reader.readElementText();
|
||||
else if (reader.name() == "style")
|
||||
config.wmts.style = reader.readElementText();
|
||||
config.style = reader.readElementText();
|
||||
else if (reader.name() == "set") {
|
||||
config.wmts.yx = (reader.attributes().value("axis") == "yx")
|
||||
? true : false;
|
||||
config.wmts.set = reader.readElementText();
|
||||
config.coordinateSystem = coordinateSystem(reader);
|
||||
config.set = reader.readElementText();
|
||||
} else if (reader.name() == "dimension") {
|
||||
QXmlStreamAttributes attr = reader.attributes();
|
||||
if (!attr.hasAttribute("id"))
|
||||
reader.raiseError("Missing dimension id");
|
||||
else
|
||||
config.wmts.dimensions.append(QPair<QString, QString>(
|
||||
config.dimensions.append(QPair<QString, QString>(
|
||||
attr.value("id").toString(), reader.readElementText()));
|
||||
} else if (reader.name() == "crs") {
|
||||
config.coordinateSystem = coordinateSystem(reader);
|
||||
config.crs = reader.readElementText();
|
||||
} else if (reader.name() == "authorization") {
|
||||
QXmlStreamAttributes attr = reader.attributes();
|
||||
config.authorization = Authorization(
|
||||
attr.value("username").toString(),
|
||||
attr.value("password").toString());
|
||||
reader.skipCurrentElement();
|
||||
} else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
@ -170,6 +169,8 @@ Map *MapSource::loadFile(const QString &path)
|
||||
QFile file(path);
|
||||
QXmlStreamReader reader;
|
||||
Config config;
|
||||
Map *m;
|
||||
|
||||
|
||||
if (!file.open(QFile::ReadOnly | QFile::Text)) {
|
||||
_errorString = file.errorString();
|
||||
@ -197,33 +198,40 @@ Map *MapSource::loadFile(const QString &path)
|
||||
_errorString = "Missing URL definition";
|
||||
return 0;
|
||||
}
|
||||
if (config.type == WMTS) {
|
||||
if (config.wmts.layer.isEmpty()) {
|
||||
if (config.type == WMTS || config.type == WMS) {
|
||||
if (config.layer.isEmpty()) {
|
||||
_errorString = "Missing layer definition";
|
||||
return 0;
|
||||
}
|
||||
if (config.wmts.style.isEmpty()) {
|
||||
_errorString = "Missing style definiton";
|
||||
return 0;
|
||||
}
|
||||
if (config.wmts.set.isEmpty()) {
|
||||
_errorString = "Missing set definiton";
|
||||
return 0;
|
||||
}
|
||||
if (config.wmts.format.isEmpty()) {
|
||||
if (config.format.isEmpty()) {
|
||||
_errorString = "Missing format definition";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (config.type == WMTS) {
|
||||
if (config.set.isEmpty()) {
|
||||
_errorString = "Missing set definiton";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (config.type == WMS) {
|
||||
if (config.crs.isEmpty()) {
|
||||
_errorString = "Missing CRS definiton";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Map *m;
|
||||
if (config.type == WMTS)
|
||||
m = new WMTSMap(config.name, WMTS::Setup(config.url, config.wmts.layer,
|
||||
config.wmts.set, config.wmts.style, config.wmts.format,
|
||||
config.wmts.rest, config.wmts.yx, config.wmts.dimensions));
|
||||
m = new WMTSMap(config.name, WMTS::Setup(config.url, config.layer,
|
||||
config.set, config.style, config.format, config.rest,
|
||||
config.coordinateSystem, config.dimensions, config.authorization));
|
||||
else if (config.type == WMS)
|
||||
m = new WMSMap(config.name, WMS::Setup(config.url, config.layer,
|
||||
config.style, config.format, config.crs, config.coordinateSystem,
|
||||
config.dimensions, config.authorization));
|
||||
else
|
||||
m = new OnlineMap(config.name, config.url, config.tms.zooms,
|
||||
config.tms.bounds);
|
||||
m = new OnlineMap(config.name, config.url, config.zooms, config.bounds);
|
||||
|
||||
if (!m->isValid()) {
|
||||
_errorString = m->errorString();
|
||||
delete m;
|
||||
|
@ -4,6 +4,8 @@
|
||||
#include <QList>
|
||||
#include "common/range.h"
|
||||
#include "common/rectc.h"
|
||||
#include "downloader.h"
|
||||
#include "coordinatesystem.h"
|
||||
|
||||
class Map;
|
||||
class QXmlStreamReader;
|
||||
@ -16,37 +18,28 @@ public:
|
||||
|
||||
private:
|
||||
enum Type {
|
||||
TMS,
|
||||
WMTS
|
||||
OSM,
|
||||
WMTS,
|
||||
WMS
|
||||
};
|
||||
|
||||
struct TMSConfig {
|
||||
struct Config {
|
||||
Type type;
|
||||
QString name;
|
||||
QString url;
|
||||
Range zooms;
|
||||
RectC bounds;
|
||||
|
||||
TMSConfig();
|
||||
};
|
||||
|
||||
struct WMTSConfig {
|
||||
QString layer;
|
||||
QString style;
|
||||
QString set;
|
||||
QString format;
|
||||
QString crs;
|
||||
CoordinateSystem coordinateSystem;
|
||||
bool rest;
|
||||
bool yx;
|
||||
QList<QPair<QString, QString> > dimensions;
|
||||
Authorization authorization;
|
||||
|
||||
WMTSConfig() : format("image/png"), rest(false), yx(false) {}
|
||||
};
|
||||
|
||||
struct Config {
|
||||
QString name;
|
||||
QString url;
|
||||
Type type;
|
||||
WMTSConfig wmts;
|
||||
TMSConfig tms;
|
||||
|
||||
Config() : type(TMS) {}
|
||||
Config();
|
||||
};
|
||||
|
||||
RectC bounds(QXmlStreamReader &reader);
|
||||
|
@ -113,9 +113,9 @@ OfflineMap::OfflineMap(const QString &fileName, QObject *parent)
|
||||
_errorString = "Map file not found";
|
||||
return;
|
||||
}
|
||||
QBuffer mapFile(&ba);
|
||||
MapFile mf;
|
||||
if (!mf.load(mapFile)) {
|
||||
QBuffer buffer(&ba);
|
||||
MapFile mf(buffer);
|
||||
if (!mf.isValid()) {
|
||||
_errorString = mf.errorString();
|
||||
return;
|
||||
} else {
|
||||
@ -126,9 +126,9 @@ OfflineMap::OfflineMap(const QString &fileName, QObject *parent)
|
||||
_transform = mf.transform();
|
||||
}
|
||||
} else if (suffix == "map") {
|
||||
MapFile mf;
|
||||
QFile mapFile(fileName);
|
||||
if (!mf.load(mapFile)) {
|
||||
QFile file(fileName);
|
||||
MapFile mf(file);
|
||||
if (!mf.isValid()) {
|
||||
_errorString = mf.errorString();
|
||||
return;
|
||||
} else {
|
||||
@ -139,8 +139,8 @@ OfflineMap::OfflineMap(const QString &fileName, QObject *parent)
|
||||
_transform = mf.transform();
|
||||
}
|
||||
} else if (suffix == "tif" || suffix == "tiff") {
|
||||
GeoTIFF gt;
|
||||
if (!gt.load(fileName)) {
|
||||
GeoTIFF gt(fileName);
|
||||
if (!gt.isValid()) {
|
||||
_errorString = gt.errorString();
|
||||
return;
|
||||
} else {
|
||||
@ -168,8 +168,6 @@ OfflineMap::OfflineMap(const QString &fileName, QObject *parent)
|
||||
}
|
||||
}
|
||||
|
||||
_inverted = _transform.inverted();
|
||||
|
||||
_valid = true;
|
||||
}
|
||||
|
||||
@ -177,21 +175,19 @@ OfflineMap::OfflineMap(const QString &fileName, Tar &tar, QObject *parent)
|
||||
: Map(parent), _img(0), _tar(0), _ozf(0), _zoom(0), _valid(false)
|
||||
{
|
||||
QFileInfo fi(fileName);
|
||||
MapFile mf;
|
||||
|
||||
|
||||
QFileInfo map(fi.absolutePath());
|
||||
QFileInfo layer(map.absolutePath());
|
||||
QString mapFile = layer.fileName() + "/" + map.fileName() + "/"
|
||||
+ fi.fileName();
|
||||
|
||||
QByteArray ba = tar.file(mapFile);
|
||||
if (ba.isNull()) {
|
||||
_errorString = "Map file not found";
|
||||
return;
|
||||
}
|
||||
QBuffer buffer(&ba);
|
||||
|
||||
if (!mf.load(buffer)) {
|
||||
MapFile mf(buffer);
|
||||
if (!mf.isValid()) {
|
||||
_errorString = mf.errorString();
|
||||
return;
|
||||
}
|
||||
@ -200,7 +196,6 @@ OfflineMap::OfflineMap(const QString &fileName, Tar &tar, QObject *parent)
|
||||
_map.size = mf.size();
|
||||
_projection = mf.projection();
|
||||
_transform = mf.transform();
|
||||
_inverted = _transform.inverted();
|
||||
_tar = new Tar(fi.absolutePath() + "/" + fi.completeBaseName() + ".tar");
|
||||
|
||||
_valid = true;
|
||||
@ -330,28 +325,23 @@ void OfflineMap::draw(QPainter *painter, const QRectF &rect)
|
||||
|
||||
QPointF OfflineMap::ll2xy(const Coordinates &c) const
|
||||
{
|
||||
if (_ozf) {
|
||||
QPointF p(_transform.map(_projection.ll2xy(c)));
|
||||
return QPointF(p.x() * _scale.x(), p.y() * _scale.y());
|
||||
} else
|
||||
return _transform.map(_projection.ll2xy(c));
|
||||
QPointF p(_transform.proj2img(_projection.ll2xy(c)));
|
||||
return _ozf ? QPointF(p.x() * _scale.x(), p.y() * _scale.y()) : p;
|
||||
}
|
||||
|
||||
Coordinates OfflineMap::xy2ll(const QPointF &p) const
|
||||
{
|
||||
if (_ozf) {
|
||||
return _projection.xy2ll(_inverted.map(QPointF(p.x() / _scale.x(),
|
||||
p.y() / _scale.y())));
|
||||
} else
|
||||
return _projection.xy2ll(_inverted.map(p));
|
||||
return _ozf
|
||||
? _projection.xy2ll(_transform.img2proj(QPointF(p.x() / _scale.x(),
|
||||
p.y() / _scale.y())))
|
||||
: _projection.xy2ll(_transform.img2proj(p));
|
||||
}
|
||||
|
||||
QRectF OfflineMap::bounds() const
|
||||
{
|
||||
if (_ozf)
|
||||
return QRectF(QPointF(0, 0), _ozf->size(_zoom));
|
||||
else
|
||||
return QRectF(QPointF(0, 0), _map.size);
|
||||
return _ozf
|
||||
? QRectF(QPointF(0, 0), _ozf->size(_zoom))
|
||||
: QRectF(QPointF(0, 0), _map.size);
|
||||
}
|
||||
|
||||
qreal OfflineMap::resolution(const QRectF &rect) const
|
||||
@ -365,22 +355,23 @@ qreal OfflineMap::resolution(const QRectF &rect) const
|
||||
return ds/ps;
|
||||
}
|
||||
|
||||
int OfflineMap::zoomFit(const QSize &size, const RectC &br)
|
||||
int OfflineMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
{
|
||||
if (_ozf) {
|
||||
if (!br.isValid())
|
||||
rescale(0);
|
||||
else {
|
||||
QRect sbr(QRectF(_transform.map(_projection.ll2xy(br.topLeft())),
|
||||
_transform.map(_projection.ll2xy(br.bottomRight())))
|
||||
.toRect().normalized());
|
||||
if (!_ozf)
|
||||
return _zoom;
|
||||
|
||||
for (int i = 0; i < _ozf->zooms(); i++) {
|
||||
rescale(i);
|
||||
if (sbr.size().width() * _scale.x() <= size.width()
|
||||
&& sbr.size().height() * _scale.y() <= size.height())
|
||||
break;
|
||||
}
|
||||
if (!rect.isValid())
|
||||
rescale(0);
|
||||
else {
|
||||
QPointF tl(_transform.proj2img(_projection.ll2xy(rect.topLeft())));
|
||||
QPointF br(_transform.proj2img(_projection.ll2xy(rect.bottomRight())));
|
||||
QRect sbr(QRectF(tl, br).toRect().normalized());
|
||||
|
||||
for (int i = 0; i < _ozf->zooms(); i++) {
|
||||
rescale(i);
|
||||
if (sbr.size().width() * _scale.x() <= size.width()
|
||||
&& sbr.size().height() * _scale.y() <= size.height())
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef OFFLINEMAP_H
|
||||
#define OFFLINEMAP_H
|
||||
|
||||
#include <QTransform>
|
||||
#include "transform.h"
|
||||
#include "projection.h"
|
||||
#include "map.h"
|
||||
|
||||
@ -24,7 +24,7 @@ public:
|
||||
qreal resolution(const QRectF &rect) const;
|
||||
|
||||
int zoom() const {return _zoom;}
|
||||
int zoomFit(const QSize &size, const RectC &br);
|
||||
int zoomFit(const QSize &size, const RectC &rect);
|
||||
int zoomIn();
|
||||
int zoomOut();
|
||||
|
||||
@ -44,9 +44,9 @@ public:
|
||||
QPointF ll2pp(const Coordinates &c) const
|
||||
{return _projection.ll2xy(c);}
|
||||
QPointF xy2pp(const QPointF &p) const
|
||||
{return _inverted.map(p);}
|
||||
{return _transform.img2proj(p);}
|
||||
QPointF pp2xy(const QPointF &p) const
|
||||
{return _transform.map(p);}
|
||||
{return _transform.proj2img(p);}
|
||||
|
||||
private:
|
||||
struct ImageInfo {
|
||||
@ -69,15 +69,12 @@ private:
|
||||
void rescale(int zoom);
|
||||
|
||||
QString _name;
|
||||
|
||||
Projection _projection;
|
||||
QTransform _transform, _inverted;
|
||||
|
||||
Transform _transform;
|
||||
QImage *_img;
|
||||
Tar *_tar;
|
||||
OZF *_ozf;
|
||||
ImageInfo _map, _tile;
|
||||
|
||||
int _zoom;
|
||||
QPointF _scale;
|
||||
|
||||
|
@ -223,7 +223,7 @@ QPixmap OZF::tile(int zoom, int x, int y)
|
||||
quint32 bes = qToBigEndian(tileSize().width() * tileSize().height());
|
||||
QByteArray ba;
|
||||
ba.resize(sizeof(bes) + size);
|
||||
*(ba.data()) = bes;
|
||||
memcpy(ba.data(), &bes, sizeof(bes));
|
||||
|
||||
if (!read(ba.data() + sizeof(bes), size, 16))
|
||||
return QPixmap();
|
||||
|
@ -81,7 +81,7 @@ static int projectionSetup(const QList<QByteArray> &list,
|
||||
{
|
||||
bool r1, r2, r3;
|
||||
|
||||
for (int i = 6; i < 27; i += 3) {
|
||||
for (int i = 7; i < 28; i += 3) {
|
||||
QString ks = list[i].trimmed();
|
||||
if (ks.isEmpty())
|
||||
break;
|
||||
@ -90,10 +90,10 @@ static int projectionSetup(const QList<QByteArray> &list,
|
||||
double val = list[i+1].trimmed().toDouble(&r2);
|
||||
int un = list[i+2].trimmed().toInt(&r3);
|
||||
if (!r1 || !r2 || !r3)
|
||||
return (i - 6)/3 + 1;
|
||||
return (i - 7)/3 + 1;
|
||||
|
||||
if (!parameter(key, val, un, setup))
|
||||
return (i - 6)/3 + 1;
|
||||
return (i - 7)/3 + 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -136,49 +136,60 @@ void PCS::loadList(const QString &path)
|
||||
|
||||
QByteArray line = file.readLine();
|
||||
QList<QByteArray> list = line.split(',');
|
||||
if (list.size() != 27) {
|
||||
qWarning("%s: %d: Format error", qPrintable(path), ln);
|
||||
if (list.size() != 28) {
|
||||
qWarning("%s:%d: Format error", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
int id = list[1].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid PCS code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid PCS code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int gcsid = list[2].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid GCS code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid GCS code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int proj = list[3].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid projection code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid projection code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int units = list[4].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid linear units code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Invalid linear units code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int transform = list[5].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s: %d: Invalid coordinate transformation code",
|
||||
qWarning("%s:%d: Invalid coordinate transformation code",
|
||||
qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
int cs = list[6].trimmed().toInt(&res);
|
||||
if (!res) {
|
||||
qWarning("%s:%d: Invalid coordinate system code",
|
||||
qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (LinearUnits(units).isNull()) {
|
||||
qWarning("%s: %d: Unknown linear units code", qPrintable(path), ln);
|
||||
if (!LinearUnits(units).isValid()) {
|
||||
qWarning("%s:%d: Unknown linear units code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
if (Projection::Method(transform).isNull()) {
|
||||
qWarning("%s: %d: Unknown coordinate transformation code",
|
||||
if (!Projection::Method(transform).isValid()) {
|
||||
qWarning("%s:%d: Unknown coordinate transformation code",
|
||||
qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
if (!CoordinateSystem(cs).isValid()) {
|
||||
qWarning("%s:%d: Unknown coordinate system code", qPrintable(path),
|
||||
ln);
|
||||
continue;
|
||||
}
|
||||
if (!(gcs = GCS::gcs(gcsid))) {
|
||||
qWarning("%s: %d: Unknown GCS code", qPrintable(path), ln);
|
||||
qWarning("%s:%d: Unknown GCS code", qPrintable(path), ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -189,7 +200,7 @@ void PCS::loadList(const QString &path)
|
||||
continue;
|
||||
}
|
||||
|
||||
PCS pcs(gcs, transform, setup, units);
|
||||
PCS pcs(gcs, transform, setup, units, cs);
|
||||
_pcss.append(Entry(id, proj, pcs));
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <QList>
|
||||
#include "gcs.h"
|
||||
#include "linearunits.h"
|
||||
#include "coordinatesystem.h"
|
||||
#include "projection.h"
|
||||
|
||||
class PCS
|
||||
@ -12,18 +13,20 @@ class PCS
|
||||
public:
|
||||
PCS() : _gcs(0) {}
|
||||
PCS(const GCS *gcs, const Projection::Method &method,
|
||||
const Projection::Setup &setup, const LinearUnits &units)
|
||||
: _gcs(gcs), _method(method), _setup(setup), _units(units) {}
|
||||
const Projection::Setup &setup, const LinearUnits &units,
|
||||
const CoordinateSystem &cs = CoordinateSystem())
|
||||
: _gcs(gcs), _method(method), _setup(setup), _units(units), _cs(cs) {}
|
||||
PCS(const GCS *gcs, int proj);
|
||||
|
||||
const GCS *gcs() const {return _gcs;}
|
||||
const Projection::Method &method() const {return _method;}
|
||||
const Projection::Setup &setup() const {return _setup;}
|
||||
const LinearUnits &units() const {return _units;}
|
||||
const CoordinateSystem &coordinateSystem() const {return _cs;}
|
||||
|
||||
bool isNull() const
|
||||
{return (_gcs->isNull() && _units.isNull() && _method.isNull()
|
||||
&& _setup.isNull());}
|
||||
&& _setup.isNull());}
|
||||
bool isValid() const
|
||||
{return (_gcs->isValid() && _units.isValid() && _method.isValid());}
|
||||
|
||||
@ -38,6 +41,7 @@ private:
|
||||
Projection::Method _method;
|
||||
Projection::Setup _setup;
|
||||
LinearUnits _units;
|
||||
CoordinateSystem _cs;
|
||||
|
||||
static QList<Entry> _pcss;
|
||||
};
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "lambertazimuthal.h"
|
||||
#include "latlon.h"
|
||||
#include "gcs.h"
|
||||
#include "pcs.h"
|
||||
#include "projection.h"
|
||||
|
||||
|
||||
@ -27,12 +28,13 @@ Projection::Method::Method(int id)
|
||||
}
|
||||
}
|
||||
|
||||
Projection::Projection(const GCS *gcs, const Method &method, const Setup &setup,
|
||||
const LinearUnits &units) : _gcs(gcs), _units(units), _geographic(false)
|
||||
Projection::Projection(const PCS *pcs) : _gcs(pcs->gcs()), _units(pcs->units()),
|
||||
_cs(pcs->coordinateSystem()), _geographic(false)
|
||||
{
|
||||
const Ellipsoid *ellipsoid = _gcs->datum().ellipsoid();
|
||||
const Projection::Setup &setup = pcs->setup();
|
||||
|
||||
switch (method.id()) {
|
||||
switch (pcs->method().id()) {
|
||||
case 1024:
|
||||
case 9841:
|
||||
_ct = new Mercator();
|
||||
@ -70,10 +72,10 @@ Projection::Projection(const GCS *gcs, const Method &method, const Setup &setup,
|
||||
}
|
||||
}
|
||||
|
||||
Projection::Projection(const GCS *gcs) : _gcs(gcs), _geographic(true)
|
||||
Projection::Projection(const GCS *gcs, const CoordinateSystem &cs)
|
||||
: _gcs(gcs), _units(LinearUnits(9001)), _cs(cs), _geographic(true)
|
||||
{
|
||||
_ct = new LatLon(gcs->angularUnits());
|
||||
_units = LinearUnits(9001);
|
||||
}
|
||||
|
||||
Projection::Projection(const Projection &p)
|
||||
@ -82,6 +84,7 @@ Projection::Projection(const Projection &p)
|
||||
_units = p._units;
|
||||
_ct = p._ct ? p._ct->clone() : 0;
|
||||
_geographic = p._geographic;
|
||||
_cs = p._cs;
|
||||
}
|
||||
|
||||
Projection::~Projection()
|
||||
@ -95,6 +98,7 @@ Projection &Projection::operator=(const Projection &p)
|
||||
_units = p._units;
|
||||
_ct = p._ct ? p._ct->clone() : 0;
|
||||
_geographic = p._geographic;
|
||||
_cs = p._cs;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
@ -5,8 +5,10 @@
|
||||
#include <QDebug>
|
||||
#include "common/coordinates.h"
|
||||
#include "linearunits.h"
|
||||
#include "coordinatesystem.h"
|
||||
|
||||
class GCS;
|
||||
class PCS;
|
||||
class CT;
|
||||
class AngularUnits;
|
||||
|
||||
@ -70,9 +72,9 @@ public:
|
||||
|
||||
Projection() : _gcs(0), _ct(0), _geographic(false) {}
|
||||
Projection(const Projection &p);
|
||||
Projection(const GCS *gcs, const Method &method, const Setup &setup,
|
||||
const LinearUnits &units);
|
||||
Projection(const GCS *gcs);
|
||||
Projection(const PCS *pcs);
|
||||
Projection(const GCS *gcs, const CoordinateSystem &cs
|
||||
= CoordinateSystem(CoordinateSystem::YX));
|
||||
~Projection();
|
||||
|
||||
Projection &operator=(const Projection &p);
|
||||
@ -85,11 +87,13 @@ public:
|
||||
Coordinates xy2ll(const QPointF &p) const;
|
||||
|
||||
const LinearUnits &units() const {return _units;}
|
||||
const CoordinateSystem &coordinateSystem() const {return _cs;}
|
||||
|
||||
private:
|
||||
const GCS *_gcs;
|
||||
const CT *_ct;
|
||||
LinearUnits _units;
|
||||
CoordinateSystem _cs;
|
||||
bool _geographic;
|
||||
};
|
||||
|
||||
|
@ -116,8 +116,8 @@ QByteArray Tar::file(const QString &name)
|
||||
struct Header *hdr = (struct Header*)&buffer;
|
||||
quint64 size;
|
||||
|
||||
QMap<QString, quint64>::const_iterator it = _index.find(name);
|
||||
if (it == _index.end())
|
||||
QMap<QString, quint64>::const_iterator it(_index.find(name));
|
||||
if (it == _index.constEnd())
|
||||
return QByteArray();
|
||||
|
||||
Q_ASSERT(_file.isOpen());
|
||||
|
@ -33,8 +33,8 @@ public:
|
||||
val = data;
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
bool _be;
|
||||
|
@ -8,23 +8,26 @@
|
||||
class Tile
|
||||
{
|
||||
public:
|
||||
Tile(const QPoint &xy, const QVariant &zoom)
|
||||
{_xy = xy; _zoom = zoom;}
|
||||
Tile(const QPoint &xy, const QVariant &zoom, const QRectF &bbox = QRectF())
|
||||
{_xy = xy; _zoom = zoom; _bbox = bbox;}
|
||||
|
||||
QVariant zoom() const {return _zoom;}
|
||||
const QPoint& xy() const {return _xy;}
|
||||
const QVariant &zoom() const {return _zoom;}
|
||||
const QPoint &xy() const {return _xy;}
|
||||
const QRectF &bbox() const {return _bbox;}
|
||||
QPixmap& pixmap() {return _pixmap;}
|
||||
|
||||
private:
|
||||
QVariant _zoom;
|
||||
QPoint _xy;
|
||||
QRectF _bbox;
|
||||
QPixmap _pixmap;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
inline QDebug operator<<(QDebug dbg, const Tile &tile)
|
||||
{
|
||||
dbg.nospace() << "Tile(" << tile.zoom() << ", " << tile.xy() << ")";
|
||||
dbg.nospace() << "Tile(" << tile.zoom() << ", " << tile.xy() << ", "
|
||||
<< tile.bbox() << ")";
|
||||
return dbg.space();
|
||||
}
|
||||
#endif // QT_NO_DEBUG
|
||||
|
@ -33,7 +33,7 @@ void TileLoader::loadTilesAsync(QList<Tile> &list)
|
||||
}
|
||||
|
||||
if (!dl.empty())
|
||||
_downloader->get(dl);
|
||||
_downloader->get(dl, _authorization);
|
||||
}
|
||||
|
||||
void TileLoader::loadTilesSync(QList<Tile> &list)
|
||||
@ -56,7 +56,7 @@ void TileLoader::loadTilesSync(QList<Tile> &list)
|
||||
|
||||
QEventLoop wait;
|
||||
QObject::connect(_downloader, SIGNAL(finished()), &wait, SLOT(quit()));
|
||||
if (_downloader->get(dl))
|
||||
if (_downloader->get(dl, _authorization))
|
||||
wait.exec();
|
||||
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
@ -77,15 +77,26 @@ void TileLoader::clearCache()
|
||||
|
||||
for (int i = 0; i < list.count(); i++)
|
||||
dir.remove(list.at(i));
|
||||
|
||||
_downloader->clearErrors();
|
||||
}
|
||||
|
||||
QString TileLoader::tileUrl(const Tile &tile) const
|
||||
{
|
||||
QString url(_url);
|
||||
|
||||
url.replace("$z", tile.zoom().toString());
|
||||
url.replace("$x", QString::number(tile.xy().x()));
|
||||
url.replace("$y", QString::number(tile.xy().y()));
|
||||
if (!tile.bbox().isNull()) {
|
||||
QString bbox = QString("%1,%2,%3,%4").arg(
|
||||
QString::number(tile.bbox().left(), 'f', 6),
|
||||
QString::number(tile.bbox().bottom(), 'f', 6),
|
||||
QString::number(tile.bbox().right(), 'f', 6),
|
||||
QString::number(tile.bbox().top(), 'f', 6));
|
||||
url.replace("$bbox", bbox);
|
||||
} else {
|
||||
url.replace("$z", tile.zoom().toString());
|
||||
url.replace("$x", QString::number(tile.xy().x()));
|
||||
url.replace("$y", QString::number(tile.xy().y()));
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
|
@ -9,8 +9,9 @@ class TileLoader
|
||||
{
|
||||
public:
|
||||
TileLoader() {}
|
||||
TileLoader(const QString &url, const QString &dir)
|
||||
: _url(url), _dir(dir) {}
|
||||
TileLoader(const QString &url, const QString &dir,
|
||||
const Authorization &authorization = Authorization())
|
||||
: _url(url), _dir(dir), _authorization(authorization) {}
|
||||
|
||||
void loadTilesAsync(QList<Tile> &list);
|
||||
void loadTilesSync(QList<Tile> &list);
|
||||
@ -21,12 +22,12 @@ public:
|
||||
{_downloader = downloader;}
|
||||
|
||||
private:
|
||||
void fillTile(Tile &tile);
|
||||
QString tileUrl(const Tile &tile) const;
|
||||
QString tileFile(const Tile &tile) const;
|
||||
|
||||
QString _url;
|
||||
QString _dir;
|
||||
Authorization _authorization;
|
||||
|
||||
static Downloader *_downloader;
|
||||
};
|
||||
|
@ -2,6 +2,9 @@
|
||||
#include "matrix.h"
|
||||
#include "transform.h"
|
||||
|
||||
|
||||
#define NULL_QTRANSFORM 0,0,0,0,0,0,0,0,0
|
||||
|
||||
void Transform::simple(const QList<ReferencePoint> &points)
|
||||
{
|
||||
if (points.at(0).xy.x() == points.at(1).xy.x()
|
||||
@ -18,7 +21,8 @@ void Transform::simple(const QList<ReferencePoint> &points)
|
||||
dX = points.at(1).xy.x() - points.at(1).pp.x() * sX;
|
||||
dY = points.at(0).xy.y() - points.at(0).pp.y() * sY;
|
||||
|
||||
_transform = QTransform(sX, 0, 0, sY, dX, dY);
|
||||
_proj2img = QTransform(sX, 0, 0, sY, dX, dY);
|
||||
_img2proj = _proj2img.inverted();
|
||||
}
|
||||
|
||||
void Transform::affine(const QList<ReferencePoint> &points)
|
||||
@ -59,8 +63,15 @@ void Transform::affine(const QList<ReferencePoint> &points)
|
||||
return;
|
||||
}
|
||||
|
||||
_transform = QTransform(M.m(0,3), M.m(0,4), M.m(1,3), M.m(1,4), M.m(2,3),
|
||||
_proj2img = QTransform(M.m(0,3), M.m(0,4), M.m(1,3), M.m(1,4), M.m(2,3),
|
||||
M.m(2,4));
|
||||
_img2proj = _proj2img.inverted();
|
||||
}
|
||||
|
||||
|
||||
Transform::Transform()
|
||||
: _proj2img(NULL_QTRANSFORM), _img2proj(NULL_QTRANSFORM)
|
||||
{
|
||||
}
|
||||
|
||||
Transform::Transform(const QList<ReferencePoint> &points)
|
||||
@ -73,6 +84,29 @@ Transform::Transform(const QList<ReferencePoint> &points)
|
||||
affine(points);
|
||||
}
|
||||
|
||||
Transform::Transform(const ReferencePoint &p, const QPointF &scale)
|
||||
: _proj2img(NULL_QTRANSFORM), _img2proj(NULL_QTRANSFORM)
|
||||
{
|
||||
if (scale.x() == 0.0 || scale.y() == 0.0) {
|
||||
_errorString = "Invalid scale factor";
|
||||
return;
|
||||
}
|
||||
|
||||
_img2proj = QTransform(scale.x(), 0, 0, -scale.y(), p.pp.x() - p.xy.x()
|
||||
/ scale.x(), p.pp.y() + p.xy.x() / scale.y());
|
||||
_proj2img = _img2proj.inverted();
|
||||
}
|
||||
|
||||
Transform::Transform(double m[16])
|
||||
: _proj2img(NULL_QTRANSFORM), _img2proj(NULL_QTRANSFORM)
|
||||
{
|
||||
_img2proj = QTransform(m[0], m[1], m[4], m[5], m[3], m[7]);
|
||||
if (!_img2proj.isInvertible())
|
||||
_errorString = "Singular transformation matrix";
|
||||
else
|
||||
_proj2img = _img2proj.inverted();
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug operator<<(QDebug dbg, const ReferencePoint &p)
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <QTransform>
|
||||
#include <QList>
|
||||
#include "common/coordinates.h"
|
||||
#include <QDebug>
|
||||
|
||||
struct ReferencePoint {
|
||||
QPoint xy;
|
||||
@ -13,17 +13,23 @@ struct ReferencePoint {
|
||||
class Transform
|
||||
{
|
||||
public:
|
||||
Transform();
|
||||
Transform(const QList<ReferencePoint> &points);
|
||||
Transform(const ReferencePoint &p, const QPointF &scale);
|
||||
Transform(double m[16]);
|
||||
|
||||
bool isNull() {return _transform.type() == QTransform::TxNone;}
|
||||
QPointF proj2img(const QPointF &p) const {return _proj2img.map(p);}
|
||||
QPointF img2proj(const QPointF &p) const {return _img2proj.map(p);}
|
||||
|
||||
bool isValid() const
|
||||
{return _proj2img.isInvertible() && _img2proj.isInvertible();}
|
||||
const QString &errorString() const {return _errorString;}
|
||||
const QTransform &transform() const {return _transform;}
|
||||
|
||||
private:
|
||||
void simple(const QList<ReferencePoint> &points);
|
||||
void affine(const QList<ReferencePoint> &points);
|
||||
|
||||
QTransform _transform;
|
||||
QTransform _proj2img, _img2proj;
|
||||
QString _errorString;
|
||||
};
|
||||
|
||||
|
@ -47,14 +47,14 @@ Defense.
|
||||
|
||||
|
||||
#define SPHSN(lat) \
|
||||
((double)(_e->radius() / sqrt(1.e0 - _es * pow(sin(lat), 2))))
|
||||
((double)(_a / sqrt(1.e0 - _es * pow(sin(lat), 2))))
|
||||
#define SPHTMD(lat) \
|
||||
((double)(_ap * lat - _bp * sin(2.e0 * lat) + _cp * sin(4.e0 * lat) \
|
||||
- _dp * sin(6.e0 * lat) + _ep * sin(8.e0 * lat)))
|
||||
#define DENOM(lat) \
|
||||
((double)(sqrt(1.e0 - _es * pow(sin(lat),2))))
|
||||
#define SPHSR(lat) \
|
||||
((double)(_e->radius() * (1.e0 - _es) / pow(DENOM(lat), 3)))
|
||||
((double)(_a * (1.e0 - _es) / pow(DENOM(lat), 3)))
|
||||
|
||||
|
||||
TransverseMercator::TransverseMercator(const Ellipsoid *ellipsoid,
|
||||
@ -65,31 +65,32 @@ TransverseMercator::TransverseMercator(const Ellipsoid *ellipsoid,
|
||||
double b;
|
||||
|
||||
|
||||
_e = ellipsoid;
|
||||
_a = ellipsoid->radius();
|
||||
_longitudeOrigin = deg2rad(longitudeOrigin);
|
||||
_latitudeOrigin = deg2rad(latitudeOrigin);
|
||||
_scale = scale;
|
||||
_falseEasting = falseEasting;
|
||||
_falseNorthing = falseNorthing;
|
||||
|
||||
_es = 2 * _e->flattening() - _e->flattening() * _e->flattening();
|
||||
_es = 2 * ellipsoid->flattening() - ellipsoid->flattening()
|
||||
* ellipsoid->flattening();
|
||||
_ebs = (1 / (1 - _es)) - 1;
|
||||
|
||||
b = _e->radius() * (1 - _e->flattening());
|
||||
b = _a * (1 - ellipsoid->flattening());
|
||||
|
||||
tn = (_e->radius() - b) / (_e->radius() + b);
|
||||
tn = (_a - b) / (_a + b);
|
||||
tn2 = tn * tn;
|
||||
tn3 = tn2 * tn;
|
||||
tn4 = tn3 * tn;
|
||||
tn5 = tn4 * tn;
|
||||
|
||||
_ap = _e->radius() * (1.e0 - tn + 5.e0 * (tn2 - tn3) / 4.e0 + 81.e0
|
||||
_ap = _a * (1.e0 - tn + 5.e0 * (tn2 - tn3) / 4.e0 + 81.e0
|
||||
* (tn4 - tn5) / 64.e0);
|
||||
_bp = 3.e0 * _e->radius() * (tn - tn2 + 7.e0 * (tn3 - tn4) / 8.e0 + 55.e0
|
||||
_bp = 3.e0 * _a * (tn - tn2 + 7.e0 * (tn3 - tn4) / 8.e0 + 55.e0
|
||||
* tn5 / 64.e0 ) / 2.e0;
|
||||
_cp = 15.e0 * _e->radius() * (tn2 - tn3 + 3.e0 * (tn4 - tn5 ) / 4.e0) / 16.0;
|
||||
_dp = 35.e0 * _e->radius() * (tn3 - tn4 + 11.e0 * tn5 / 16.e0) / 48.e0;
|
||||
_ep = 315.e0 * _e->radius() * (tn4 - tn5) / 512.e0;
|
||||
_cp = 15.e0 * _a * (tn2 - tn3 + 3.e0 * (tn4 - tn5 ) / 4.e0) / 16.0;
|
||||
_dp = 35.e0 * _a * (tn3 - tn4 + 11.e0 * tn5 / 16.e0) / 48.e0;
|
||||
_ep = 315.e0 * _a * (tn4 - tn5) / 512.e0;
|
||||
}
|
||||
|
||||
QPointF TransverseMercator::ll2xy(const Coordinates &c) const
|
||||
|
@ -18,12 +18,12 @@ public:
|
||||
virtual Coordinates xy2ll(const QPointF &p) const;
|
||||
|
||||
private:
|
||||
const Ellipsoid *_e;
|
||||
double _longitudeOrigin;
|
||||
double _latitudeOrigin;
|
||||
double _scale;
|
||||
double _falseEasting;
|
||||
double _falseNorthing;
|
||||
double _a;
|
||||
|
||||
double _es;
|
||||
double _ebs;
|
||||
|
288
src/map/wms.cpp
Normal file
288
src/map/wms.cpp
Normal file
@ -0,0 +1,288 @@
|
||||
#include <QFileInfo>
|
||||
#include <QEventLoop>
|
||||
#include <QXmlStreamReader>
|
||||
#include <QStringList>
|
||||
#include "downloader.h"
|
||||
#include "crs.h"
|
||||
#include "wms.h"
|
||||
|
||||
|
||||
Downloader *WMS::_downloader = 0;
|
||||
|
||||
WMS::CTX::CTX(const Setup &setup) : setup(setup), formatSupported(false)
|
||||
{
|
||||
QStringList ll = setup.layer().split(',');
|
||||
|
||||
if (setup.style().isEmpty()) {
|
||||
for (int i = 0; i < ll.size(); i++)
|
||||
layers.append(Layer(ll.at(i)));
|
||||
} else {
|
||||
QStringList sl = setup.style().split(',');
|
||||
if (ll.size() != sl.size())
|
||||
return;
|
||||
|
||||
for (int i = 0; i < ll.size(); i++)
|
||||
layers.append(Layer(ll.at(i), sl.at(i)));
|
||||
}
|
||||
}
|
||||
|
||||
void WMS::getMap(QXmlStreamReader &reader, CTX &ctx)
|
||||
{
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "Format") {
|
||||
if (reader.readElementText() == ctx.setup.format())
|
||||
ctx.formatSupported = true;
|
||||
} else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
|
||||
void WMS::request(QXmlStreamReader &reader, CTX &ctx)
|
||||
{
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "GetMap")
|
||||
getMap(reader, ctx);
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
|
||||
QString WMS::style(QXmlStreamReader &reader)
|
||||
{
|
||||
QString name;
|
||||
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "Name")
|
||||
name = reader.readElementText();
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
RectC WMS::geographicBoundingBox(QXmlStreamReader &reader)
|
||||
{
|
||||
qreal left = NAN, top = NAN, right = NAN, bottom = NAN;
|
||||
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "westBoundLongitude")
|
||||
left = reader.readElementText().toDouble();
|
||||
else if (reader.name() == "eastBoundLongitude")
|
||||
right = reader.readElementText().toDouble();
|
||||
else if (reader.name() == "northBoundLatitude")
|
||||
top = reader.readElementText().toDouble();
|
||||
else if (reader.name() == "southBoundLatitude")
|
||||
bottom = reader.readElementText().toDouble();
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
|
||||
return RectC(Coordinates(left, top), Coordinates(right, bottom));
|
||||
}
|
||||
|
||||
void WMS::layer(QXmlStreamReader &reader, CTX &ctx,
|
||||
const QList<QString> &pCRSs, const QList<QString> &pStyles,
|
||||
RangeF &pScaleDenominator, RectC &pBoundingBox)
|
||||
{
|
||||
QString name;
|
||||
QList<QString> CRSs(pCRSs);
|
||||
QList<QString> styles(pStyles);
|
||||
RangeF scaleDenominator(pScaleDenominator);
|
||||
RectC boundingBox(pBoundingBox);
|
||||
int index;
|
||||
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "Name")
|
||||
name = reader.readElementText();
|
||||
else if (reader.name() == "CRS" || reader.name() == "SRS")
|
||||
CRSs.append(reader.readElementText());
|
||||
else if (reader.name() == "Style")
|
||||
styles.append(style(reader));
|
||||
else if (reader.name() == "MinScaleDenominator") {
|
||||
double sd = reader.readElementText().toDouble();
|
||||
if (sd > 0)
|
||||
scaleDenominator.setMin(sd);
|
||||
} else if (reader.name() == "MaxScaleDenominator") {
|
||||
double sd = reader.readElementText().toDouble();
|
||||
if (sd > 0)
|
||||
scaleDenominator.setMax(sd);
|
||||
} else if (reader.name() == "LatLonBoundingBox") {
|
||||
QXmlStreamAttributes attr = reader.attributes();
|
||||
boundingBox = RectC(Coordinates(
|
||||
attr.value("minx").toString().toDouble(),
|
||||
attr.value("maxy").toString().toDouble()),
|
||||
Coordinates(attr.value("maxx").toString().toDouble(),
|
||||
attr.value("miny").toString().toDouble()));
|
||||
reader.skipCurrentElement();
|
||||
} else if (reader.name() == "EX_GeographicBoundingBox")
|
||||
boundingBox = geographicBoundingBox(reader);
|
||||
else if (reader.name() == "Layer")
|
||||
layer(reader, ctx, CRSs, styles, scaleDenominator, boundingBox);
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
|
||||
if ((index = ctx.layers.indexOf(name)) >= 0) {
|
||||
Layer &layer = ctx.layers[index];
|
||||
layer.scaleDenominator = scaleDenominator;
|
||||
layer.boundingBox = boundingBox;
|
||||
layer.isDefined = true;
|
||||
layer.hasStyle = styles.contains(layer.style) || layer.style.isEmpty();
|
||||
layer.hasCRS = CRSs.contains(ctx.setup.crs());
|
||||
}
|
||||
}
|
||||
|
||||
void WMS::capability(QXmlStreamReader &reader, CTX &ctx)
|
||||
{
|
||||
QList<QString> CRSs;
|
||||
QList<QString> styles;
|
||||
RangeF scaleDenominator(133.295598991, 559082264.0287178);
|
||||
RectC boundingBox;
|
||||
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "Layer")
|
||||
layer(reader, ctx, CRSs, styles, scaleDenominator, boundingBox);
|
||||
else if (reader.name() == "Request")
|
||||
request(reader, ctx);
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
|
||||
void WMS::capabilities(QXmlStreamReader &reader, CTX &ctx)
|
||||
{
|
||||
_version = reader.attributes().value("version").toString();
|
||||
|
||||
while (reader.readNextStartElement()) {
|
||||
if (reader.name() == "Capability")
|
||||
capability(reader, ctx);
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
|
||||
bool WMS::parseCapabilities(const QString &path, const Setup &setup)
|
||||
{
|
||||
QFile file(path);
|
||||
CTX ctx(setup);
|
||||
QXmlStreamReader reader;
|
||||
|
||||
|
||||
if (ctx.layers.isEmpty()) {
|
||||
_errorString = "Invalid layers/styles list definition";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!file.open(QFile::ReadOnly | QFile::Text)) {
|
||||
_errorString = file.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
reader.setDevice(&file);
|
||||
if (reader.readNextStartElement()) {
|
||||
if (reader.name() == "WMS_Capabilities"
|
||||
|| reader.name() == "WMT_MS_Capabilities")
|
||||
capabilities(reader, ctx);
|
||||
else
|
||||
reader.raiseError("Not a WMS Capabilities XML file");
|
||||
}
|
||||
if (reader.error()) {
|
||||
_errorString = QString("%1:%2: %3").arg(path).arg(reader.lineNumber())
|
||||
.arg(reader.errorString());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!ctx.formatSupported) {
|
||||
_errorString = ctx.setup.format() + ": format not provided";
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < ctx.layers.size(); i++) {
|
||||
const Layer &layer = ctx.layers.at(i);
|
||||
|
||||
if (!layer.isDefined) {
|
||||
_errorString = layer.name + ": layer not provided";
|
||||
return false;
|
||||
}
|
||||
if (!layer.hasStyle) {
|
||||
_errorString = layer.style + ": style not provided for layer "
|
||||
+ layer.name;
|
||||
return false;
|
||||
}
|
||||
if (!layer.hasCRS) {
|
||||
_errorString = ctx.setup.crs() + ": CRS not provided for layer "
|
||||
+ layer.name;
|
||||
return false;
|
||||
}
|
||||
if (!layer.scaleDenominator.isValid()
|
||||
|| layer.scaleDenominator.isNull()) {
|
||||
_errorString = "Invalid scale denominator range for layer "
|
||||
+ layer.name;
|
||||
return false;
|
||||
}
|
||||
if (!layer.boundingBox.isValid()) {
|
||||
_errorString = "Invalid/missing bounding box for layer "
|
||||
+ layer.name;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
_projection = CRS::projection(ctx.setup.crs());
|
||||
if (_projection.isNull()) {
|
||||
_errorString = ctx.setup.crs() + ": unknown CRS";
|
||||
return false;
|
||||
}
|
||||
|
||||
_boundingBox = ctx.layers.first().boundingBox;
|
||||
for (int i = 1; i < ctx.layers.size(); i++)
|
||||
_boundingBox &= ctx.layers.at(i).boundingBox;
|
||||
if (_boundingBox.isNull()) {
|
||||
_errorString = "Empty layers bounding box join";
|
||||
return false;
|
||||
}
|
||||
|
||||
_scaleDenominator = ctx.layers.first().scaleDenominator;
|
||||
for (int i = 1; i < ctx.layers.size(); i++)
|
||||
_scaleDenominator &= ctx.layers.at(i).scaleDenominator;
|
||||
if (_scaleDenominator.isNull()) {
|
||||
_errorString = "Empty layers scale denominator range join";
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WMS::getCapabilities(const QString &url, const QString &file,
|
||||
const Authorization &authorization)
|
||||
{
|
||||
QList<Download> dl;
|
||||
|
||||
dl.append(Download(url, file));
|
||||
|
||||
QEventLoop wait;
|
||||
QObject::connect(_downloader, SIGNAL(finished()), &wait, SLOT(quit()));
|
||||
if (_downloader->get(dl, authorization))
|
||||
wait.exec();
|
||||
|
||||
if (QFileInfo(file).exists())
|
||||
return true;
|
||||
else {
|
||||
_errorString = "Error downloading capabilities XML file";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
WMS::WMS(const QString &file, const WMS::Setup &setup) : _valid(false)
|
||||
{
|
||||
QString capaUrl = QString("%1?service=WMS&request=GetCapabilities")
|
||||
.arg(setup.url());
|
||||
|
||||
if (!QFileInfo(file).exists())
|
||||
if (!getCapabilities(capaUrl, file, setup.authorization()))
|
||||
return;
|
||||
if (!parseCapabilities(file, setup))
|
||||
return;
|
||||
|
||||
_valid = true;
|
||||
}
|
113
src/map/wms.h
Normal file
113
src/map/wms.h
Normal file
@ -0,0 +1,113 @@
|
||||
#ifndef WMS_H
|
||||
#define WMS_H
|
||||
|
||||
#include <QString>
|
||||
#include <QRectF>
|
||||
#include "common/range.h"
|
||||
#include "common/rectc.h"
|
||||
#include "projection.h"
|
||||
#include "downloader.h"
|
||||
#include "coordinatesystem.h"
|
||||
|
||||
class QXmlStreamReader;
|
||||
|
||||
class WMS
|
||||
{
|
||||
public:
|
||||
class Setup
|
||||
{
|
||||
public:
|
||||
Setup(const QString &url, const QString &layer, const QString &style,
|
||||
const QString &format, const QString &crs,
|
||||
const CoordinateSystem &cs,
|
||||
const QList<QPair<QString, QString> > &dimensions,
|
||||
const Authorization &authorization = Authorization())
|
||||
: _url(url), _layer(layer), _style(style), _format(format),
|
||||
_crs(crs), _cs(cs), _dimensions(dimensions),
|
||||
_authorization(authorization) {}
|
||||
|
||||
const QString &url() const {return _url;}
|
||||
const Authorization &authorization() const {return _authorization;}
|
||||
const QString &layer() const {return _layer;}
|
||||
const QString &style() const {return _style;}
|
||||
const QString &format() const {return _format;}
|
||||
const QString &crs() const {return _crs;}
|
||||
const CoordinateSystem &coordinateSystem() const {return _cs;}
|
||||
const QList<QPair<QString, QString> > &dimensions() const
|
||||
{return _dimensions;}
|
||||
|
||||
private:
|
||||
QString _url;
|
||||
QString _layer;
|
||||
QString _style;
|
||||
QString _format;
|
||||
QString _crs;
|
||||
CoordinateSystem _cs;
|
||||
QList<QPair<QString, QString> > _dimensions;
|
||||
Authorization _authorization;
|
||||
};
|
||||
|
||||
|
||||
WMS(const QString &path, const Setup &setup);
|
||||
|
||||
const Projection &projection() const {return _projection;}
|
||||
const RangeF &scaleDenominator() const {return _scaleDenominator;}
|
||||
const RectC &boundingBox() const {return _boundingBox;}
|
||||
const QString &version() const {return _version;}
|
||||
|
||||
bool isValid() const {return _valid;}
|
||||
const QString &errorString() const {return _errorString;}
|
||||
|
||||
static void setDownloader(Downloader *downloader)
|
||||
{_downloader = downloader;}
|
||||
|
||||
private:
|
||||
struct Layer {
|
||||
QString name;
|
||||
QString style;
|
||||
RangeF scaleDenominator;
|
||||
RectC boundingBox;
|
||||
bool isDefined;
|
||||
bool hasStyle;
|
||||
bool hasCRS;
|
||||
|
||||
Layer(const QString &name, const QString &style = QString())
|
||||
: name(name), style(style), isDefined(false), hasStyle(false),
|
||||
hasCRS(false) {}
|
||||
bool operator==(const Layer &other) const
|
||||
{return this->name == other.name;}
|
||||
};
|
||||
|
||||
struct CTX {
|
||||
const Setup &setup;
|
||||
QList<Layer> layers;
|
||||
bool formatSupported;
|
||||
|
||||
CTX(const Setup &setup);
|
||||
};
|
||||
|
||||
RectC geographicBoundingBox(QXmlStreamReader &reader);
|
||||
QString style(QXmlStreamReader &reader);
|
||||
void getMap(QXmlStreamReader &reader, CTX &ctx);
|
||||
void request(QXmlStreamReader &reader, CTX &ctx);
|
||||
void layer(QXmlStreamReader &reader, CTX &ctx, const QList<QString> &pCRSs,
|
||||
const QList<QString> &pStyles, RangeF &pScaleDenominator,
|
||||
RectC &pBoundingBox);
|
||||
void capability(QXmlStreamReader &reader, CTX &ctx);
|
||||
void capabilities(QXmlStreamReader &reader, CTX &ctx);
|
||||
bool parseCapabilities(const QString &path, const Setup &setup);
|
||||
bool getCapabilities(const QString &url, const QString &file,
|
||||
const Authorization &authorization);
|
||||
|
||||
Projection _projection;
|
||||
RangeF _scaleDenominator;
|
||||
RectC _boundingBox;
|
||||
QString _version;
|
||||
|
||||
bool _valid;
|
||||
QString _errorString;
|
||||
|
||||
static Downloader *_downloader;
|
||||
};
|
||||
|
||||
#endif // WMS_H
|
256
src/map/wmsmap.cpp
Normal file
256
src/map/wmsmap.cpp
Normal file
@ -0,0 +1,256 @@
|
||||
#include <QDir>
|
||||
#include <QPainter>
|
||||
#include "common/wgs84.h"
|
||||
#include "common/rectc.h"
|
||||
#include "config.h"
|
||||
#include "downloader.h"
|
||||
#include "wmsmap.h"
|
||||
|
||||
|
||||
#define CAPABILITIES_FILE "capabilities.xml"
|
||||
#define TILE_SIZE 256
|
||||
|
||||
qreal WMSMap::sd2res(qreal scaleDenominator) const
|
||||
{
|
||||
return scaleDenominator * 0.28e-3 * _projection.units().fromMeters(1.0);
|
||||
}
|
||||
|
||||
QString WMSMap::tileUrl(const QString &version) const
|
||||
{
|
||||
QString url;
|
||||
|
||||
url = QString("%1?version=%2&request=GetMap&bbox=$bbox"
|
||||
"&width=%3&height=%4&layers=%5&styles=%6&format=%7&transparent=true")
|
||||
.arg(_setup.url(), version, QString::number(TILE_SIZE),
|
||||
QString::number(TILE_SIZE), _setup.layer(), _setup.style(),
|
||||
_setup.format());
|
||||
|
||||
if (version >= "1.3.0")
|
||||
url.append(QString("&CRS=%1").arg(_setup.crs()));
|
||||
else
|
||||
url.append(QString("&SRS=%1").arg(_setup.crs()));
|
||||
|
||||
for (int i = 0; i < _setup.dimensions().size(); i++) {
|
||||
const QPair<QString, QString> &dim = _setup.dimensions().at(i);
|
||||
url.append(QString("&%1=%2").arg(dim.first, dim.second));
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
QString WMSMap::tilesDir() const
|
||||
{
|
||||
return QString(TILES_DIR + "/" + _name);
|
||||
}
|
||||
|
||||
void WMSMap::computeZooms(const RangeF &scaleDenominator)
|
||||
{
|
||||
_zooms.clear();
|
||||
|
||||
if (scaleDenominator.size() > 0) {
|
||||
qreal ld = log2(scaleDenominator.max()) - log2(scaleDenominator.min());
|
||||
int cld = ceil(ld);
|
||||
qreal step = ld / (qreal)cld;
|
||||
qreal lmax = log2(scaleDenominator.max());
|
||||
for (int i = 0; i <= cld; i++)
|
||||
_zooms.append(pow(2.0, lmax - i * step));
|
||||
} else
|
||||
_zooms.append(scaleDenominator.min());
|
||||
}
|
||||
|
||||
void WMSMap::updateTransform()
|
||||
{
|
||||
qreal scaleDenominator = _zooms.at(_zoom);
|
||||
ReferencePoint tl, br;
|
||||
|
||||
qreal pixelSpan = sd2res(scaleDenominator);
|
||||
if (_projection.isGeographic())
|
||||
pixelSpan /= deg2rad(WGS84_RADIUS);
|
||||
|
||||
tl.xy = QPoint(0, 0);
|
||||
tl.pp = _boundingBox.topLeft();
|
||||
br.xy = QPoint(_boundingBox.width() / pixelSpan, -_boundingBox.height()
|
||||
/ pixelSpan);
|
||||
br.pp = _boundingBox.bottomRight();
|
||||
|
||||
QList<ReferencePoint> points;
|
||||
points << tl << br;
|
||||
_transform = Transform(points);
|
||||
}
|
||||
|
||||
bool WMSMap::loadWMS()
|
||||
{
|
||||
QString file = tilesDir() + "/" + CAPABILITIES_FILE;
|
||||
|
||||
WMS wms(file, _setup);
|
||||
if (!wms.isValid()) {
|
||||
_errorString = wms.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
_projection = wms.projection();
|
||||
RectC bb = wms.boundingBox().normalized();
|
||||
_boundingBox = QRectF(_projection.ll2xy(Coordinates(bb.topLeft().lon(),
|
||||
bb.bottomRight().lat())), _projection.ll2xy(Coordinates(
|
||||
bb.bottomRight().lon(), bb.topLeft().lat())));
|
||||
_tileLoader = TileLoader(tileUrl(wms.version()), tilesDir(),
|
||||
_setup.authorization());
|
||||
|
||||
if (wms.version() >= "1.3.0") {
|
||||
if (_setup.coordinateSystem().axisOrder() == CoordinateSystem::Unknown)
|
||||
_cs = _projection.coordinateSystem();
|
||||
else
|
||||
_cs = _setup.coordinateSystem();
|
||||
} else
|
||||
_cs = CoordinateSystem::XY;
|
||||
|
||||
computeZooms(wms.scaleDenominator());
|
||||
updateTransform();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
WMSMap::WMSMap(const QString &name, const WMS::Setup &setup, QObject *parent)
|
||||
: Map(parent), _name(name), _setup(setup), _zoom(0), _block(false),
|
||||
_valid(false)
|
||||
{
|
||||
if (!QDir().mkpath(tilesDir())) {
|
||||
_errorString = "Error creating tiles dir";
|
||||
return;
|
||||
}
|
||||
|
||||
_valid = loadWMS();
|
||||
}
|
||||
|
||||
void WMSMap::clearCache()
|
||||
{
|
||||
_tileLoader.clearCache();
|
||||
_zoom = 0;
|
||||
|
||||
if (!loadWMS())
|
||||
qWarning("%s: %s\n", qPrintable(_name), qPrintable(_errorString));
|
||||
}
|
||||
|
||||
void WMSMap::load()
|
||||
{
|
||||
connect(TileLoader::downloader(), SIGNAL(finished()), this,
|
||||
SLOT(emitLoaded()));
|
||||
}
|
||||
|
||||
void WMSMap::unload()
|
||||
{
|
||||
disconnect(TileLoader::downloader(), SIGNAL(finished()), this,
|
||||
SLOT(emitLoaded()));
|
||||
}
|
||||
|
||||
void WMSMap::emitLoaded()
|
||||
{
|
||||
emit loaded();
|
||||
}
|
||||
|
||||
QRectF WMSMap::bounds() const
|
||||
{
|
||||
qreal pixelSpan = sd2res(_zooms.at(_zoom));
|
||||
if (_projection.isGeographic())
|
||||
pixelSpan /= deg2rad(WGS84_RADIUS);
|
||||
QSizeF size(_boundingBox.width() / pixelSpan, -_boundingBox.height()
|
||||
/ pixelSpan);
|
||||
|
||||
return QRectF(QPointF(0, 0), size);
|
||||
}
|
||||
|
||||
qreal WMSMap::resolution(const QRectF &rect) const
|
||||
{
|
||||
Coordinates tl = xy2ll((rect.topLeft()));
|
||||
Coordinates br = xy2ll(rect.bottomRight());
|
||||
|
||||
qreal ds = tl.distanceTo(br);
|
||||
qreal ps = QLineF(rect.topLeft(), rect.bottomRight()).length();
|
||||
|
||||
return ds/ps;
|
||||
}
|
||||
|
||||
int WMSMap::zoomFit(const QSize &size, const RectC &br)
|
||||
{
|
||||
if (br.isValid()) {
|
||||
QRectF tbr(_projection.ll2xy(br.topLeft()),
|
||||
_projection.ll2xy(br.bottomRight()));
|
||||
QPointF sc(tbr.width() / size.width(), tbr.height() / size.height());
|
||||
qreal resolution = qMax(qAbs(sc.x()), qAbs(sc.y()));
|
||||
if (_projection.isGeographic())
|
||||
resolution *= deg2rad(WGS84_RADIUS);
|
||||
|
||||
_zoom = 0;
|
||||
for (int i = 0; i < _zooms.size(); i++) {
|
||||
if (sd2res(_zooms.at(i)) < resolution)
|
||||
break;
|
||||
_zoom = i;
|
||||
}
|
||||
} else
|
||||
_zoom = _zooms.size() - 1;
|
||||
|
||||
updateTransform();
|
||||
return _zoom;
|
||||
}
|
||||
|
||||
int WMSMap::zoomIn()
|
||||
{
|
||||
_zoom = qMin(_zoom + 1, _zooms.size() - 1);
|
||||
updateTransform();
|
||||
return _zoom;
|
||||
}
|
||||
|
||||
int WMSMap::zoomOut()
|
||||
{
|
||||
_zoom = qMax(_zoom - 1, 0);
|
||||
updateTransform();
|
||||
return _zoom;
|
||||
}
|
||||
|
||||
QPointF WMSMap::ll2xy(const Coordinates &c) const
|
||||
{
|
||||
return _transform.proj2img(_projection.ll2xy(c));
|
||||
}
|
||||
|
||||
Coordinates WMSMap::xy2ll(const QPointF &p) const
|
||||
{
|
||||
return _projection.xy2ll(_transform.img2proj(p));
|
||||
}
|
||||
|
||||
void WMSMap::draw(QPainter *painter, const QRectF &rect)
|
||||
{
|
||||
QPoint tl = QPoint((int)floor(rect.left() / (qreal)TILE_SIZE),
|
||||
(int)floor(rect.top() / (qreal)TILE_SIZE));
|
||||
QPoint br = QPoint((int)ceil(rect.right() / (qreal)TILE_SIZE),
|
||||
(int)ceil(rect.bottom() / (qreal)TILE_SIZE));
|
||||
|
||||
QList<Tile> tiles;
|
||||
for (int i = tl.x(); i < br.x(); i++) {
|
||||
for (int j = tl.y(); j < br.y(); j++) {
|
||||
QPointF ttl(_transform.img2proj(QPointF(i * TILE_SIZE,
|
||||
j * TILE_SIZE)));
|
||||
QPointF tbr(_transform.img2proj(QPointF(i * TILE_SIZE + TILE_SIZE
|
||||
- 1, j * TILE_SIZE + TILE_SIZE - 1)));
|
||||
QRectF bbox = (_cs.axisOrder() == CoordinateSystem::YX)
|
||||
? QRectF(QPointF(tbr.y(), tbr.x()), QPointF(ttl.y(), ttl.x()))
|
||||
: QRectF(ttl, tbr);
|
||||
|
||||
tiles.append(Tile(QPoint(i, j), _zoom, bbox));
|
||||
}
|
||||
}
|
||||
|
||||
if (_block)
|
||||
_tileLoader.loadTilesSync(tiles);
|
||||
else
|
||||
_tileLoader.loadTilesAsync(tiles);
|
||||
|
||||
for (int i = 0; i < tiles.count(); i++) {
|
||||
Tile &t = tiles[i];
|
||||
QPoint tp(t.xy().x() * TILE_SIZE, t.xy().y() * TILE_SIZE);
|
||||
if (t.pixmap().isNull())
|
||||
painter->fillRect(QRect(tp, QSize(TILE_SIZE, TILE_SIZE)),
|
||||
_backgroundColor);
|
||||
else
|
||||
painter->drawPixmap(tp, t.pixmap());
|
||||
}
|
||||
}
|
74
src/map/wmsmap.h
Normal file
74
src/map/wmsmap.h
Normal file
@ -0,0 +1,74 @@
|
||||
#ifndef WMSMAP_H
|
||||
#define WMSMAP_H
|
||||
|
||||
#include "transform.h"
|
||||
#include "projection.h"
|
||||
#include "map.h"
|
||||
#include "wms.h"
|
||||
#include "tileloader.h"
|
||||
|
||||
|
||||
class WMSMap : public Map
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
WMSMap(const QString &name, const WMS::Setup &setup, QObject *parent = 0);
|
||||
|
||||
const QString &name() const {return _name;}
|
||||
|
||||
QRectF bounds() const;
|
||||
qreal resolution(const QRectF &rect) const;
|
||||
|
||||
int zoom() const {return _zoom;}
|
||||
int zoomFit(const QSize &size, const RectC &br);
|
||||
int zoomIn();
|
||||
int zoomOut();
|
||||
|
||||
QPointF ll2xy(const Coordinates &c)
|
||||
{return static_cast<const WMSMap &>(*this).ll2xy(c);}
|
||||
Coordinates xy2ll(const QPointF &p)
|
||||
{return static_cast<const WMSMap &>(*this).xy2ll(p);}
|
||||
|
||||
void draw(QPainter *painter, const QRectF &rect);
|
||||
|
||||
void setBlockingMode(bool block) {_block = block;}
|
||||
void clearCache();
|
||||
|
||||
void load();
|
||||
void unload();
|
||||
|
||||
bool isValid() const {return _valid;}
|
||||
QString errorString() const {return _errorString;}
|
||||
|
||||
private slots:
|
||||
void emitLoaded();
|
||||
|
||||
private:
|
||||
QString tileUrl(const QString &version) const;
|
||||
qreal sd2res(qreal scaleDenominator) const;
|
||||
QString tilesDir() const;
|
||||
void computeZooms(const RangeF &scaleDenominator);
|
||||
void updateTransform();
|
||||
bool loadWMS();
|
||||
|
||||
QPointF ll2xy(const Coordinates &c) const;
|
||||
Coordinates xy2ll(const QPointF &p) const;
|
||||
|
||||
QString _name;
|
||||
|
||||
WMS::Setup _setup;
|
||||
TileLoader _tileLoader;
|
||||
Projection _projection;
|
||||
Transform _transform;
|
||||
CoordinateSystem _cs;
|
||||
QVector<qreal> _zooms;
|
||||
QRectF _boundingBox;
|
||||
int _zoom;
|
||||
bool _block;
|
||||
|
||||
bool _valid;
|
||||
QString _errorString;
|
||||
};
|
||||
|
||||
#endif // WMSMAP_H
|
153
src/map/wmts.cpp
153
src/map/wmts.cpp
@ -8,58 +8,13 @@
|
||||
#include <QXmlStreamReader>
|
||||
#include "downloader.h"
|
||||
#include "pcs.h"
|
||||
#include "crs.h"
|
||||
#include "wmts.h"
|
||||
|
||||
|
||||
Downloader *WMTS::_downloader = 0;
|
||||
|
||||
bool WMTS::createProjection(const QString &crs)
|
||||
{
|
||||
QStringList list(crs.split(':'));
|
||||
QString authority, code;
|
||||
bool res;
|
||||
int epsg;
|
||||
const PCS *pcs;
|
||||
const GCS *gcs;
|
||||
|
||||
switch (list.size()) {
|
||||
case 2:
|
||||
authority = list.at(0);
|
||||
code = list.at(1);
|
||||
break;
|
||||
case 7:
|
||||
authority = list.at(4);
|
||||
code = list.at(6);
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (authority == "EPSG") {
|
||||
epsg = code.toInt(&res);
|
||||
if (!res)
|
||||
return false;
|
||||
|
||||
if ((pcs = PCS::pcs(epsg))) {
|
||||
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
||||
pcs->units());
|
||||
return true;
|
||||
} else if ((gcs = GCS::gcs(epsg))) {
|
||||
_projection = Projection(gcs);
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
} else if (authority == "OGC") {
|
||||
if (code == "CRS84") {
|
||||
_projection = Projection(GCS::gcs(4326));
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
WMTS::TileMatrix WMTS::tileMatrix(QXmlStreamReader &reader, bool yx)
|
||||
WMTS::TileMatrix WMTS::tileMatrix(QXmlStreamReader &reader)
|
||||
{
|
||||
TileMatrix matrix;
|
||||
|
||||
@ -71,10 +26,7 @@ WMTS::TileMatrix WMTS::tileMatrix(QXmlStreamReader &reader, bool yx)
|
||||
else if (reader.name() == "TopLeftCorner") {
|
||||
QString str = reader.readElementText();
|
||||
QTextStream ts(&str);
|
||||
if (yx)
|
||||
ts >> matrix.topLeft.ry() >> matrix.topLeft.rx();
|
||||
else
|
||||
ts >> matrix.topLeft.rx() >> matrix.topLeft.ry();
|
||||
ts >> matrix.topLeft.rx() >> matrix.topLeft.ry();
|
||||
} else if (reader.name() == "TileWidth")
|
||||
matrix.tile.setWidth(reader.readElementText().toInt());
|
||||
else if (reader.name() == "TileHeight")
|
||||
@ -104,12 +56,12 @@ void WMTS::tileMatrixSet(QXmlStreamReader &reader, CTX &ctx)
|
||||
else if (reader.name() == "SupportedCRS")
|
||||
crs = reader.readElementText();
|
||||
else if (reader.name() == "TileMatrix")
|
||||
matrixes.insert(tileMatrix(reader, ctx.setup.yx));
|
||||
matrixes.insert(tileMatrix(reader));
|
||||
else
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
|
||||
if (id == ctx.setup.set) {
|
||||
if (id == ctx.setup.set()) {
|
||||
ctx.crs = crs;
|
||||
_matrixes = matrixes;
|
||||
}
|
||||
@ -168,8 +120,8 @@ void WMTS::tileMatrixSetLink(QXmlStreamReader &reader, CTX &ctx)
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
|
||||
if (id == ctx.setup.set) {
|
||||
ctx.set = true;
|
||||
if (id == ctx.setup.set()) {
|
||||
ctx.hasSet = true;
|
||||
_limits = limits;
|
||||
}
|
||||
}
|
||||
@ -232,15 +184,15 @@ void WMTS::layer(QXmlStreamReader &reader, CTX &ctx)
|
||||
reader.skipCurrentElement();
|
||||
}
|
||||
|
||||
if (id == ctx.setup.layer) {
|
||||
ctx.layer = true;
|
||||
if (id == ctx.setup.layer()) {
|
||||
ctx.hasLayer = true;
|
||||
_bounds = bounds;
|
||||
if (ctx.setup.rest)
|
||||
if (ctx.setup.rest())
|
||||
_tileUrl = tpl;
|
||||
if (styles.contains(ctx.setup.style))
|
||||
ctx.style = true;
|
||||
if (formats.contains(ctx.setup.format))
|
||||
ctx.format = true;
|
||||
if (styles.contains(ctx.setup.style()) || ctx.setup.style().isEmpty())
|
||||
ctx.hasStyle = true;
|
||||
if (formats.contains(ctx.setup.format()))
|
||||
ctx.hasFormat = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -290,27 +242,28 @@ bool WMTS::parseCapabilities(const QString &path, const Setup &setup)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!ctx.layer) {
|
||||
_errorString = ctx.setup.layer + ": layer not provided";
|
||||
if (!ctx.hasLayer) {
|
||||
_errorString = ctx.setup.layer() + ": layer not provided";
|
||||
return false;
|
||||
}
|
||||
if (!ctx.style) {
|
||||
_errorString = ctx.setup.style + ": style not provided";
|
||||
if (!ctx.hasStyle) {
|
||||
_errorString = ctx.setup.style() + ": style not provided";
|
||||
return false;
|
||||
}
|
||||
if (!ctx.setup.rest && !ctx.format) {
|
||||
_errorString = ctx.setup.format + ": format not provided";
|
||||
if (!ctx.setup.rest() && !ctx.hasFormat) {
|
||||
_errorString = ctx.setup.format() + ": format not provided";
|
||||
return false;
|
||||
}
|
||||
if (!ctx.set) {
|
||||
_errorString = ctx.setup.set + ": set not provided";
|
||||
if (!ctx.hasSet) {
|
||||
_errorString = ctx.setup.set() + ": set not provided";
|
||||
return false;
|
||||
}
|
||||
if (ctx.crs.isNull()) {
|
||||
_errorString = "Missing CRS definition";
|
||||
return false;
|
||||
}
|
||||
if (!createProjection(ctx.crs)) {
|
||||
_projection = CRS::projection(ctx.crs);
|
||||
if (_projection.isNull()) {
|
||||
_errorString = ctx.crs + ": unknown CRS";
|
||||
return false;
|
||||
}
|
||||
@ -318,7 +271,7 @@ bool WMTS::parseCapabilities(const QString &path, const Setup &setup)
|
||||
_errorString = "No usable tile matrix found";
|
||||
return false;
|
||||
}
|
||||
if (ctx.setup.rest && _tileUrl.isNull()) {
|
||||
if (ctx.setup.rest() && _tileUrl.isNull()) {
|
||||
_errorString = "Missing tile URL template";
|
||||
return false;
|
||||
}
|
||||
@ -326,7 +279,8 @@ bool WMTS::parseCapabilities(const QString &path, const Setup &setup)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WMTS::getCapabilities(const QString &url, const QString &file)
|
||||
bool WMTS::getCapabilities(const QString &url, const QString &file,
|
||||
const Authorization &authorization)
|
||||
{
|
||||
QList<Download> dl;
|
||||
|
||||
@ -334,7 +288,7 @@ bool WMTS::getCapabilities(const QString &url, const QString &file)
|
||||
|
||||
QEventLoop wait;
|
||||
QObject::connect(_downloader, SIGNAL(finished()), &wait, SLOT(quit()));
|
||||
if (_downloader->get(dl))
|
||||
if (_downloader->get(dl, authorization))
|
||||
wait.exec();
|
||||
|
||||
if (QFileInfo(file).exists())
|
||||
@ -345,41 +299,42 @@ bool WMTS::getCapabilities(const QString &url, const QString &file)
|
||||
}
|
||||
}
|
||||
|
||||
bool WMTS::load(const QString &file, const WMTS::Setup &setup)
|
||||
WMTS::WMTS(const QString &file, const WMTS::Setup &setup) : _valid(false)
|
||||
{
|
||||
QString capaUrl = setup.rest ? setup.url :
|
||||
QString capaUrl = setup.rest() ? setup.url() :
|
||||
QString("%1?service=WMTS&Version=1.0.0&request=GetCapabilities")
|
||||
.arg(setup.url);
|
||||
.arg(setup.url());
|
||||
|
||||
if (!QFileInfo(file).exists())
|
||||
if (!getCapabilities(capaUrl, file))
|
||||
return false;
|
||||
if (!getCapabilities(capaUrl, file, setup.authorization()))
|
||||
return;
|
||||
if (!parseCapabilities(file, setup))
|
||||
return false;
|
||||
return;
|
||||
|
||||
if (!setup.rest) {
|
||||
QString style = setup.style().isEmpty() ? "default" : setup.style();
|
||||
if (!setup.rest()) {
|
||||
_tileUrl = QString("%1?service=WMTS&Version=1.0.0&request=GetTile"
|
||||
"&Format=%2&Layer=%3&Style=%4&TileMatrixSet=%5&TileMatrix=$z"
|
||||
"&TileRow=$y&TileCol=$x").arg(setup.url).arg(setup.format)
|
||||
.arg(setup.layer).arg(setup.style).arg(setup.set);
|
||||
for (int i = 0; i < setup.dimensions.size(); i++) {
|
||||
const QPair<QString, QString> &dim = setup.dimensions.at(i);
|
||||
_tileUrl.append(QString("&%1=%2").arg(dim.first).arg(dim.second));
|
||||
"&TileRow=$y&TileCol=$x").arg(setup.url(), setup.format(),
|
||||
setup.layer(), style, setup.set());
|
||||
for (int i = 0; i < setup.dimensions().size(); i++) {
|
||||
const QPair<QString, QString> &dim = setup.dimensions().at(i);
|
||||
_tileUrl.append(QString("&%1=%2").arg(dim.first, dim.second));
|
||||
}
|
||||
} else {
|
||||
_tileUrl.replace("{Style}", setup.style, Qt::CaseInsensitive);
|
||||
_tileUrl.replace("{TileMatrixSet}", setup.set, Qt::CaseInsensitive);
|
||||
_tileUrl.replace("{Style}", style, Qt::CaseInsensitive);
|
||||
_tileUrl.replace("{TileMatrixSet}", setup.set(), Qt::CaseInsensitive);
|
||||
_tileUrl.replace("{TileMatrix}", "$z", Qt::CaseInsensitive);
|
||||
_tileUrl.replace("{TileRow}", "$y", Qt::CaseInsensitive);
|
||||
_tileUrl.replace("{TileCol}", "$x", Qt::CaseInsensitive);
|
||||
for (int i = 0; i < setup.dimensions.size(); i++) {
|
||||
const QPair<QString, QString> &dim = setup.dimensions.at(i);
|
||||
for (int i = 0; i < setup.dimensions().size(); i++) {
|
||||
const QPair<QString, QString> &dim = setup.dimensions().at(i);
|
||||
_tileUrl.replace(QString("{%1}").arg(dim.first), dim.second,
|
||||
Qt::CaseInsensitive);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
_valid = true;
|
||||
}
|
||||
|
||||
QList<WMTS::Zoom> WMTS::zooms() const
|
||||
@ -393,8 +348,8 @@ QList<WMTS::Zoom> WMTS::zooms() const
|
||||
zooms.append(Zoom(mi->id, mi->scaleDenominator, mi->topLeft,
|
||||
mi->tile, mi->matrix, QRect()));
|
||||
else
|
||||
zooms.append(Zoom(Zoom(mi->id, mi->scaleDenominator, mi->topLeft,
|
||||
mi->tile, mi->matrix, li->rect)));
|
||||
zooms.append(Zoom(mi->id, mi->scaleDenominator, mi->topLeft,
|
||||
mi->tile, mi->matrix, li->rect));
|
||||
}
|
||||
|
||||
qSort(zooms);
|
||||
@ -405,17 +360,17 @@ QList<WMTS::Zoom> WMTS::zooms() const
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug operator<<(QDebug dbg, const WMTS::Setup &setup)
|
||||
{
|
||||
dbg.nospace() << "Setup(" << setup.url << ", " << setup.layer << ", "
|
||||
<< setup.set << ", " << setup.style << ", " << setup.format << ", "
|
||||
<< setup.rest << ")";
|
||||
dbg.nospace() << "Setup(" << setup.url() << ", " << setup.layer() << ", "
|
||||
<< setup.set() << ", " << setup.style() << ", " << setup.format() << ", "
|
||||
<< setup.rest() << ")";
|
||||
return dbg.space();
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug dbg, const WMTS::Zoom &zoom)
|
||||
{
|
||||
dbg.nospace() << "Zoom(" << zoom.id << ", " << zoom.scaleDenominator << ", "
|
||||
<< zoom.topLeft << ", " << zoom.tile << ", " << zoom.matrix << ", "
|
||||
<< zoom.limits << ")";
|
||||
dbg.nospace() << "Zoom(" << zoom.id() << ", " << zoom.scaleDenominator()
|
||||
<< ", " << zoom.topLeft() << ", " << zoom.tile() << ", " << zoom.matrix()
|
||||
<< ", " << zoom.limits() << ")";
|
||||
return dbg.space();
|
||||
}
|
||||
#endif // QT_NO_DEBUG
|
||||
|
111
src/map/wmts.h
111
src/map/wmts.h
@ -8,56 +8,86 @@
|
||||
#include <QHash>
|
||||
#include "common/rectc.h"
|
||||
#include "projection.h"
|
||||
#include "downloader.h"
|
||||
#include "coordinatesystem.h"
|
||||
|
||||
class Downloader;
|
||||
class QXmlStreamReader;
|
||||
|
||||
class WMTS
|
||||
{
|
||||
public:
|
||||
struct Setup {
|
||||
QString url;
|
||||
QString layer;
|
||||
QString set;
|
||||
QString style;
|
||||
QString format;
|
||||
bool rest;
|
||||
bool yx;
|
||||
QList<QPair<QString, QString> > dimensions;
|
||||
|
||||
class Setup
|
||||
{
|
||||
public:
|
||||
Setup(const QString &url, const QString &layer, const QString &set,
|
||||
const QString &style, const QString &format, bool rest, bool yx,
|
||||
const QList<QPair<QString, QString> > &dimensions) :
|
||||
url(url), layer(layer), set(set), style(style), format(format),
|
||||
rest(rest), yx(yx), dimensions(dimensions) {}
|
||||
const QString &style, const QString &format, bool rest,
|
||||
const CoordinateSystem &cs,
|
||||
const QList<QPair<QString, QString> > &dimensions,
|
||||
const Authorization &authorization = Authorization())
|
||||
: _url(url), _layer(layer), _set(set), _style(style),
|
||||
_format(format), _rest(rest), _cs(cs), _dimensions(dimensions),
|
||||
_authorization(authorization) {}
|
||||
|
||||
const QString &url() const {return _url;}
|
||||
const Authorization &authorization() const {return _authorization;}
|
||||
const QString &layer() const {return _layer;}
|
||||
const QString &set() const {return _set;}
|
||||
const QString &style() const {return _style;}
|
||||
const QString &format() const {return _format;}
|
||||
bool rest() const {return _rest;}
|
||||
const CoordinateSystem &coordinateSystem() const {return _cs;}
|
||||
const QList<QPair<QString, QString> > &dimensions() const
|
||||
{return _dimensions;}
|
||||
|
||||
private:
|
||||
QString _url;
|
||||
QString _layer;
|
||||
QString _set;
|
||||
QString _style;
|
||||
QString _format;
|
||||
bool _rest;
|
||||
CoordinateSystem _cs;
|
||||
QList<QPair<QString, QString> > _dimensions;
|
||||
Authorization _authorization;
|
||||
};
|
||||
|
||||
struct Zoom {
|
||||
QString id;
|
||||
qreal scaleDenominator;
|
||||
QPointF topLeft;
|
||||
QSize tile;
|
||||
QSize matrix;
|
||||
QRect limits;
|
||||
|
||||
Zoom() {}
|
||||
class Zoom
|
||||
{
|
||||
public:
|
||||
Zoom(const QString &id, qreal scaleDenominator, const QPointF &topLeft,
|
||||
const QSize &tile, const QSize &matrix, const QRect &limits) :
|
||||
id(id), scaleDenominator(scaleDenominator), topLeft(topLeft),
|
||||
tile(tile), matrix(matrix), limits(limits) {}
|
||||
_id(id), _scaleDenominator(scaleDenominator), _topLeft(topLeft),
|
||||
_tile(tile), _matrix(matrix), _limits(limits) {}
|
||||
bool operator<(const Zoom &other) const
|
||||
{return scaleDenominator > other.scaleDenominator;}
|
||||
{return _scaleDenominator > other._scaleDenominator;}
|
||||
|
||||
const QString &id() const {return _id;}
|
||||
qreal scaleDenominator() const {return _scaleDenominator;}
|
||||
const QPointF &topLeft() const {return _topLeft;}
|
||||
const QSize &tile() const {return _tile;}
|
||||
const QSize &matrix() const {return _matrix;}
|
||||
const QRect &limits() const {return _limits;}
|
||||
|
||||
private:
|
||||
QString _id;
|
||||
qreal _scaleDenominator;
|
||||
QPointF _topLeft;
|
||||
QSize _tile;
|
||||
QSize _matrix;
|
||||
QRect _limits;
|
||||
};
|
||||
|
||||
bool load(const QString &path, const Setup &setup);
|
||||
const QString &errorString() const {return _errorString;}
|
||||
|
||||
WMTS(const QString &path, const Setup &setup);
|
||||
|
||||
const RectC &bounds() const {return _bounds;}
|
||||
QList<Zoom> zooms() const;
|
||||
const Projection &projection() const {return _projection;}
|
||||
QString tileUrl() const {return _tileUrl;}
|
||||
const QString &tileUrl() const {return _tileUrl;}
|
||||
|
||||
bool isValid() const {return _valid;}
|
||||
const QString &errorString() const {return _errorString;}
|
||||
|
||||
static Downloader *downloader() {return _downloader;}
|
||||
static void setDownloader(Downloader *downloader)
|
||||
{_downloader = downloader;}
|
||||
|
||||
@ -92,18 +122,18 @@ private:
|
||||
struct CTX {
|
||||
const Setup &setup;
|
||||
QString crs;
|
||||
bool layer;
|
||||
bool style;
|
||||
bool format;
|
||||
bool set;
|
||||
bool hasLayer;
|
||||
bool hasStyle;
|
||||
bool hasFormat;
|
||||
bool hasSet;
|
||||
|
||||
CTX(const Setup &setup) : setup(setup), layer(false), style(false),
|
||||
format(false), set(false) {}
|
||||
CTX(const Setup &setup) : setup(setup), hasLayer(false), hasStyle(false),
|
||||
hasFormat(false), hasSet(false) {}
|
||||
};
|
||||
|
||||
RectC wgs84BoundingBox(QXmlStreamReader &reader);
|
||||
MatrixLimits tileMatrixLimits(QXmlStreamReader &reader);
|
||||
TileMatrix tileMatrix(QXmlStreamReader &reader, bool yx);
|
||||
TileMatrix tileMatrix(QXmlStreamReader &reader);
|
||||
QSet<MatrixLimits> tileMatrixSetLimits(QXmlStreamReader &reader);
|
||||
QString style(QXmlStreamReader &reader);
|
||||
void tileMatrixSet(QXmlStreamReader &reader, CTX &ctx);
|
||||
@ -112,8 +142,8 @@ private:
|
||||
void contents(QXmlStreamReader &reader, CTX &ctx);
|
||||
void capabilities(QXmlStreamReader &reader, CTX &ctx);
|
||||
bool parseCapabilities(const QString &path, const Setup &setup);
|
||||
bool getCapabilities(const QString &url, const QString &file);
|
||||
bool createProjection(const QString &crs);
|
||||
bool getCapabilities(const QString &url, const QString &file,
|
||||
const Authorization &authorization);
|
||||
|
||||
QSet<TileMatrix> _matrixes;
|
||||
QSet<MatrixLimits> _limits;
|
||||
@ -121,6 +151,7 @@ private:
|
||||
Projection _projection;
|
||||
QString _tileUrl;
|
||||
|
||||
bool _valid;
|
||||
QString _errorString;
|
||||
|
||||
static Downloader *_downloader;
|
||||
|
@ -3,36 +3,63 @@
|
||||
#include "common/wgs84.h"
|
||||
#include "config.h"
|
||||
#include "transform.h"
|
||||
#include "downloader.h"
|
||||
#include "wmts.h"
|
||||
#include "wmtsmap.h"
|
||||
|
||||
|
||||
#define CAPABILITIES_FILE "capabilities.xml"
|
||||
|
||||
WMTSMap::WMTSMap(const QString &name, const WMTS::Setup &setup, QObject *parent)
|
||||
: Map(parent), _name(name), _setup(setup), _zoom(0), _valid(false)
|
||||
bool WMTSMap::loadWMTS()
|
||||
{
|
||||
QString dir(TILES_DIR + "/" + _name);
|
||||
QString file = dir + "/" + CAPABILITIES_FILE;
|
||||
QString file = tilesDir() + "/" + CAPABILITIES_FILE;
|
||||
|
||||
if (!QDir().mkpath(dir)) {
|
||||
WMTS wmts(file, _setup);
|
||||
if (!wmts.isValid()) {
|
||||
_errorString = wmts.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
_bounds = wmts.bounds();
|
||||
_zooms = wmts.zooms();
|
||||
_projection = wmts.projection();
|
||||
_tileLoader = TileLoader(wmts.tileUrl(), tilesDir(),
|
||||
_setup.authorization());
|
||||
|
||||
if (_setup.coordinateSystem().axisOrder() == CoordinateSystem::Unknown)
|
||||
_cs = _projection.coordinateSystem();
|
||||
else
|
||||
_cs = _setup.coordinateSystem();
|
||||
|
||||
updateTransform();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
WMTSMap::WMTSMap(const QString &name, const WMTS::Setup &setup, QObject *parent)
|
||||
: Map(parent), _name(name), _setup(setup), _zoom(0), _block(false),
|
||||
_valid(false)
|
||||
{
|
||||
if (!QDir().mkpath(tilesDir())) {
|
||||
_errorString = "Error creating tiles dir";
|
||||
return;
|
||||
}
|
||||
|
||||
WMTS wmts;
|
||||
if (!wmts.load(file, _setup)) {
|
||||
_errorString = wmts.errorString();
|
||||
return;
|
||||
}
|
||||
_bounds = wmts.bounds();
|
||||
_zooms = wmts.zooms();
|
||||
_projection = wmts.projection();
|
||||
_tileLoader = TileLoader(wmts.tileUrl(), dir);
|
||||
updateTransform();
|
||||
_valid = loadWMTS();
|
||||
}
|
||||
|
||||
_block = false;
|
||||
_valid = true;
|
||||
void WMTSMap::clearCache()
|
||||
{
|
||||
_tileLoader.clearCache();
|
||||
_zoom = 0;
|
||||
|
||||
if (!loadWMTS())
|
||||
qWarning("%s: %s\n", qPrintable(_name), qPrintable(_errorString));
|
||||
}
|
||||
|
||||
QString WMTSMap::tilesDir() const
|
||||
{
|
||||
return QString(TILES_DIR + "/" + _name);
|
||||
}
|
||||
|
||||
qreal WMTSMap::sd2res(qreal scaleDenominator) const
|
||||
@ -45,24 +72,25 @@ void WMTSMap::updateTransform()
|
||||
const WMTS::Zoom &z = _zooms.at(_zoom);
|
||||
ReferencePoint tl, br;
|
||||
|
||||
qreal pixelSpan = sd2res(z.scaleDenominator);
|
||||
QPointF topLeft = (_cs.axisOrder() == CoordinateSystem::YX)
|
||||
? QPointF(z.topLeft().y(), z.topLeft().x()) : z.topLeft();
|
||||
|
||||
qreal pixelSpan = sd2res(z.scaleDenominator());
|
||||
if (_projection.isGeographic())
|
||||
pixelSpan /= deg2rad(WGS84_RADIUS);
|
||||
QPointF tileSpan(z.tile.width() * pixelSpan, z.tile.height() * pixelSpan);
|
||||
QPointF bottomRight(z.topLeft.x() + tileSpan.x() * z.matrix.width(),
|
||||
z.topLeft.y() - tileSpan.y() * z.matrix.height());
|
||||
QPointF tileSpan(z.tile().width() * pixelSpan, z.tile().height() * pixelSpan);
|
||||
QPointF bottomRight(topLeft.x() + tileSpan.x() * z.matrix().width(),
|
||||
topLeft.y() - tileSpan.y() * z.matrix().height());
|
||||
|
||||
tl.xy = QPoint(0, 0);
|
||||
tl.pp = z.topLeft;
|
||||
br.xy = QPoint(z.tile.width() * z.matrix.width(),
|
||||
z.tile.height() * z.matrix.height());
|
||||
tl.pp = topLeft;
|
||||
br.xy = QPoint(z.tile().width() * z.matrix().width(),
|
||||
z.tile().height() * z.matrix().height());
|
||||
br.pp = bottomRight;
|
||||
|
||||
QList<ReferencePoint> points;
|
||||
points << tl << br;
|
||||
Transform tr(points);
|
||||
_transform = tr.transform();
|
||||
_inverted = _transform.inverted();
|
||||
_transform = Transform(points);
|
||||
}
|
||||
|
||||
void WMTSMap::load()
|
||||
@ -77,26 +105,6 @@ void WMTSMap::unload()
|
||||
SLOT(emitLoaded()));
|
||||
}
|
||||
|
||||
void WMTSMap::clearCache()
|
||||
{
|
||||
QString dir(TILES_DIR + "/" + _name);
|
||||
QString file = dir + "/" + CAPABILITIES_FILE;
|
||||
|
||||
_tileLoader.clearCache();
|
||||
|
||||
WMTS wmts;
|
||||
if (!wmts.load(file, _setup))
|
||||
return;
|
||||
_bounds = wmts.bounds();
|
||||
_zooms = wmts.zooms();
|
||||
_projection = wmts.projection();
|
||||
_tileLoader = TileLoader(wmts.tileUrl(), dir);
|
||||
|
||||
if (_zoom >= _zooms.size())
|
||||
_zoom = _zooms.size() - 1;
|
||||
updateTransform();
|
||||
}
|
||||
|
||||
void WMTSMap::emitLoaded()
|
||||
{
|
||||
emit loaded();
|
||||
@ -107,11 +115,12 @@ QRectF WMTSMap::bounds() const
|
||||
const WMTS::Zoom &z = _zooms.at(_zoom);
|
||||
QRectF tileBounds, bounds;
|
||||
|
||||
tileBounds = (z.limits.isNull()) ?
|
||||
QRectF(QPointF(0, 0), QSize(z.tile.width() * z.matrix.width(),
|
||||
z.tile.height() * z.matrix.height())) : QRectF(QPointF(z.limits.left()
|
||||
* z.tile.width(), z.limits.top() * z.tile.height()), QSize(z.tile.width()
|
||||
* z.limits.width(), z.tile.height() * z.limits.height()));
|
||||
tileBounds = (z.limits().isNull()) ?
|
||||
QRectF(QPointF(0, 0), QSize(z.tile().width() * z.matrix().width(),
|
||||
z.tile().height() * z.matrix().height()))
|
||||
: QRectF(QPointF(z.limits().left() * z.tile().width(), z.limits().top()
|
||||
* z.tile().height()), QSize(z.tile().width() * z.limits().width(),
|
||||
z.tile().height() * z.limits().height()));
|
||||
|
||||
bounds = _bounds.isValid() ? QRectF(ll2xy(_bounds.topLeft()),
|
||||
ll2xy(_bounds.bottomRight())) : QRectF();
|
||||
@ -131,7 +140,7 @@ int WMTSMap::zoomFit(const QSize &size, const RectC &br)
|
||||
|
||||
_zoom = 0;
|
||||
for (int i = 0; i < _zooms.size(); i++) {
|
||||
if (sd2res(_zooms.at(i).scaleDenominator) < resolution)
|
||||
if (sd2res(_zooms.at(i).scaleDenominator()) < resolution)
|
||||
break;
|
||||
_zoom = i;
|
||||
}
|
||||
@ -170,15 +179,15 @@ int WMTSMap::zoomOut()
|
||||
void WMTSMap::draw(QPainter *painter, const QRectF &rect)
|
||||
{
|
||||
const WMTS::Zoom &z = _zooms.at(_zoom);
|
||||
QPoint tl = QPoint((int)floor(rect.left() / (qreal)z.tile.width()),
|
||||
(int)floor(rect.top() / (qreal)z.tile.height()));
|
||||
QPoint br = QPoint((int)ceil(rect.right() / (qreal)z.tile.width()),
|
||||
(int)ceil(rect.bottom() / (qreal)z.tile.height()));
|
||||
QPoint tl = QPoint((int)floor(rect.left() / (qreal)z.tile().width()),
|
||||
(int)floor(rect.top() / (qreal)z.tile().height()));
|
||||
QPoint br = QPoint((int)ceil(rect.right() / (qreal)z.tile().width()),
|
||||
(int)ceil(rect.bottom() / (qreal)z.tile().height()));
|
||||
|
||||
QList<Tile> tiles;
|
||||
for (int i = tl.x(); i < br.x(); i++)
|
||||
for (int j = tl.y(); j < br.y(); j++)
|
||||
tiles.append(Tile(QPoint(i, j), z.id));
|
||||
tiles.append(Tile(QPoint(i, j), z.id()));
|
||||
|
||||
if (_block)
|
||||
_tileLoader.loadTilesSync(tiles);
|
||||
@ -187,9 +196,9 @@ void WMTSMap::draw(QPainter *painter, const QRectF &rect)
|
||||
|
||||
for (int i = 0; i < tiles.count(); i++) {
|
||||
Tile &t = tiles[i];
|
||||
QPoint tp(t.xy().x() * z.tile.width(), t.xy().y() * z.tile.height());
|
||||
QPoint tp(t.xy().x() * z.tile().width(), t.xy().y() * z.tile().height());
|
||||
if (t.pixmap().isNull())
|
||||
painter->fillRect(QRect(tp, z.tile), _backgroundColor);
|
||||
painter->fillRect(QRect(tp, z.tile()), _backgroundColor);
|
||||
else
|
||||
painter->drawPixmap(tp, t.pixmap());
|
||||
}
|
||||
@ -197,10 +206,10 @@ void WMTSMap::draw(QPainter *painter, const QRectF &rect)
|
||||
|
||||
QPointF WMTSMap::ll2xy(const Coordinates &c) const
|
||||
{
|
||||
return _transform.map(_projection.ll2xy(c));
|
||||
return _transform.proj2img(_projection.ll2xy(c));
|
||||
}
|
||||
|
||||
Coordinates WMTSMap::xy2ll(const QPointF &p) const
|
||||
{
|
||||
return _projection.xy2ll(_inverted.map(p));
|
||||
return _projection.xy2ll(_transform.img2proj(p));
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef WMTSMAP_H
|
||||
#define WMTSMAP_H
|
||||
|
||||
#include <QTransform>
|
||||
#include "transform.h"
|
||||
#include "projection.h"
|
||||
#include "map.h"
|
||||
#include "wmts.h"
|
||||
@ -45,7 +45,9 @@ private slots:
|
||||
void emitLoaded();
|
||||
|
||||
private:
|
||||
bool loadWMTS();
|
||||
qreal sd2res(qreal scaleDenominator) const;
|
||||
QString tilesDir() const;
|
||||
void updateTransform();
|
||||
|
||||
QPointF ll2xy(const Coordinates &c) const;
|
||||
@ -57,7 +59,8 @@ private:
|
||||
RectC _bounds;
|
||||
QList<WMTS::Zoom> _zooms;
|
||||
Projection _projection;
|
||||
QTransform _transform, _inverted;
|
||||
Transform _transform;
|
||||
CoordinateSystem _cs;
|
||||
int _zoom;
|
||||
bool _block;
|
||||
|
||||
|
Reference in New Issue
Block a user