1
0
mirror of https://github.com/tumic0/GPXSee-maps.git synced 2024-11-24 03:35:53 +01:00

Maps web page

This commit is contained in:
Martin Tůma 2020-02-23 10:46:42 +01:00
commit 3b7d7fc692
79 changed files with 612 additions and 0 deletions

220
index.html Normal file
View File

@ -0,0 +1,220 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GPXSee Online Maps</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<div class="center">
<h1>GPXSee Online Maps</h1>
<h2>Worldwide</h2>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Thunderforest-Outdoors.tpl" download><img src="tiles/Thunderforest-Outdoors.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Outdoors</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Thunderforest-Landscape.tpl" download><img src="tiles/Thunderforest-Landscape.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Landscape</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Thunderforest-OpenCycleMap.tpl" download><img src="tiles/Thunderforest-OpenCycleMap.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - OpenCycleMap</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/marshruty.ru.xml" download><img src="tiles/marshruty.ru.jpg" alt="Map Preview" width="256" height="256"/></a><br/>marshruty.ru</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/heidelberg.tpl" download><img src="tiles/heidelberg.png" alt="Map Preview" width="256" height="256"/></a><br/>GIScience Heidelberg</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/OPNVKarte.xml" download><img src="tiles/OPNVKarte.png" alt="Map Preview" width="256" height="256"/></a><br/>ÖPNVKarte</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/OpenStreetMap-BW.xml" download><img src="tiles/OpenStreetMap-BW.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Street Map - Black and White</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/OpenStreetMap-HiDPI.xml" download><img src="tiles/OpenStreetMap-HiDPI.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Street Map - HiDPI</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/MapTiler.tpl" download><img src="tiles/MapTiler.png" alt="Map Preview" width="256" height="256"/></a><br/>MapTiler</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/HikeBikeMap.xml" download><img src="tiles/HikeBikeMap.png" alt="Map Preview" width="256" height="256"/></a><br/>HikeBikeMap</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Thunderforest-Transport.tpl" download><img src="tiles/Thunderforest-Transport.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Transport</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/unesco.xml" download><img src="tiles/unesco.png" alt="Map Preview" width="256" height="256"/></a><br/>UNESCO</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/CyclOSM.xml" download><img src="tiles/CyclOSM.png" alt="Map Preview" width="256" height="256"/></a><br/>CyclOSM</td>
</tr>
</table>
<h2>Antarctica</h2>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Antarctica/LIMA.xml" download><img src="tiles/LIMA.png" alt="Map Preview" width="256" height="256"/></a><br/>Landsat Image Mosaic of Antarctica</td>
</tr>
</table>
<h2>Asia</h2>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Asia/nakarte-slazav-mountains.xml" download><img src="tiles/nakarte-slazav-mountains.png" alt="Map Preview" width="256" height="256"/></a><br/>Slazav mountains</td>
</tr>
</table>
<h3>Japan</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Asia/JP/GSI-basemap.xml" download><img src="tiles/GSI-basemap.png" alt="Map Preview" width="256" height="256"/></a><br/>Geographical Institute Tile (標準地図)</td>
</tr>
</table>
<h3>Taiwan (Republic of China)</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Asia/TW/TWTOPO-rudy.xml" download><img src="tiles/TWTOPO-rudy.png" alt="Map Preview" width="256" height="256"/></a><br/>TWTOPO-rudy</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Asia/TW/TWTOPO-happyman.xml" download><img src="tiles/TWTOPO-happyman.png" alt="Map Preview" width="256" height="256"/></a><br/>TWTOPO-happyman</td>
</tr>
</table>
<h2>Europe</h2>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/OpenFlightMaps.xml" download><img src="tiles/OpenFlightMaps.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Flighmaps</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/map1.eu.xml" download><img src="tiles/map1.eu.png" alt="Map Preview" width="256" height="256"/></a><br/>map1.eu</td>
</tr>
</table>
<h3>Austria</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/AT/BasemapAT-Ortho.xml" download><img src="tiles/BasemapAT-Ortho.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Basemap AT Orthofoto</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/AT/BasemapAT-Farbe.xml" download><img src="tiles/BasemapAT-Farbe.png" alt="Map Preview" width="256" height="256"/></a><br/>Basemap AT Farbe</td>
</tr>
</table>
<h3>Belgium</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/BE/ngi.xml" download><img src="tiles/ngi.png" alt="Map Preview" width="256" height="256"/></a><br/>NGI</td>
</tr>
</table>
<h3>Bulgaria</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/BG/BGMountains.xml" download><img src="tiles/BGMountains.png" alt="Map Preview" width="256" height="256"/></a><br/>BGMountains</td>
</tr>
</table>
<h3>Czech Republic</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CZ/CUZK-ortofoto.xml" download><img src="tiles/CUZK-ortofoto.png" alt="Map Preview" width="256" height="256"/></a><br/>ČÚZK - Ortofoto</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CZ/Poloha.Net.xml" download><img src="tiles/Poloha.Net.png" alt="Map Preview" width="256" height="256"/></a><br/>Poloha.Net</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CZ/CUZK-zm.xml" download><img src="tiles/CUZK-zm.png" alt="Map Preview" width="256" height="256"/></a><br/>ČÚZK - Základní mapy</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CZ/prahounakole.xml" download><img src="tiles/prahounakole.png" alt="Map Preview" width="256" height="256"/></a><br/>Prahou na kole</td>
</tr>
</table>
<h3>Finland</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/Selkokartta.xml" download><img src="tiles/Selkokartta.png" alt="Map Preview" width="256" height="256"/></a><br/>Selkokartta (Plain map)</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/MapAnt.xml" download><img src="tiles/MapAnt.png" alt="Map Preview" width="256" height="256"/></a><br/>MapAnt</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/Ilmakuva.xml" download><img src="tiles/Ilmakuva.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Ilmakuva (Aerial image)</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/Karjalankartta100k.xml" download><img src="tiles/Karjalankartta100k.png" alt="Map Preview" width="256" height="256"/></a><br/>Karjalankartta (Maps of Karelia) 1:100 000</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/Rinnevarjostus.xml" download><img src="tiles/Rinnevarjostus.png" alt="Map Preview" width="256" height="256"/></a><br/>Rinnevarjostus (Hillshade)</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/Karjalankartta20k.xml" download><img src="tiles/Karjalankartta20k.png" alt="Map Preview" width="256" height="256"/></a><br/>Karjalankartta (Maps of Karelia) 1:20 000</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FI/Maastokartta.xml" download><img src="tiles/Maastokartta.png" alt="Map Preview" width="256" height="256"/></a><br/>Maastokartta (Topographic map)</td>
</tr>
</table>
<h3>France</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FR/IGN-orthophotos.xml" download><img src="tiles/IGN-orthophotos.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Photographies aériennes</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/FR/IGN-maps.xml" download><img src="tiles/IGN-maps.png" alt="Map Preview" width="256" height="256"/></a><br/>Cartes IGN</td>
</tr>
</table>
<h3>Germany</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/DE/TopPlusOpen.xml" download><img src="tiles/TopPlusOpen.png" alt="Map Preview" width="256" height="256"/></a><br/>TopPlusOpen</td>
</tr>
</table>
<h3>Hungary</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/HU/turistautak.xml" download><img src="tiles/turistautak.png" alt="Map Preview" width="256" height="256"/></a><br/>Turistautak</td>
</tr>
</table>
<h3>Iceland</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/IS/NLS_Atlas.xml" download><img src="tiles/NLS_Atlas.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Iceland Atlas</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/IS/NLS_Landscape.xml" download><img src="tiles/NLS_Landscape.png" alt="Map Preview" width="256" height="256"/></a><br/>Iceland Landscape</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/IS/NLS_Map.xml" download><img src="tiles/NLS_Map.png" alt="Map Preview" width="256" height="256"/></a><br/>Iceland Map</td>
</tr>
</table>
<h3>Netherlands</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NL/PDOK-ortho25.xml" download><img src="tiles/PDOK-ortho25.jpg" alt="Map Preview" width="256" height="256"/></a><br/>PDOK Ortho25 2017</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NL/PDOK-opentopo.xml" download><img src="tiles/PDOK-opentopo.jpg" alt="Map Preview" width="256" height="256"/></a><br/>PDOK OpenTopo</td>
</tr>
</table>
<h3>Norway</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NO/Svalbard_Basiskart.xml" download><img src="tiles/Svalbard_Basiskart.png" alt="Map Preview" width="256" height="256"/></a><br/>Svalbard Topography</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NO/Norgeskart.xml" download><img src="tiles/Norgeskart.png" alt="Map Preview" width="256" height="256"/></a><br/>Topografisk Norgeskart</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NO/Svalbard_Satellitt.xml" download><img src="tiles/Svalbard_Satellitt.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Svalbard Satellite Imagery</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NO/Svalbard_Ortofoto.xml" download><img src="tiles/Svalbard_Ortofoto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Svalbard Orthophoto</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/NO/JanMayen_Basiskart.xml" download><img src="tiles/JanMayen_Basiskart.png" alt="Map Preview" width="256" height="256"/></a><br/>Jan Mayen Topography</td>
</tr>
</table>
<h3>Poland</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/PL/GUGIK-topo.xml" download><img src="tiles/GUGIK-topo.jpg" alt="Map Preview" width="256" height="256"/></a><br/>GUGIK Mapa Topograficzna</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/PL/GUGIK-orto.xml" download><img src="tiles/GUGIK-orto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>GUGIK Ortofotomapa</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/PL/UMP-pcPL.xml" download><img src="tiles/UMP-pcPL.png" alt="Map Preview" width="256" height="256"/></a><br/>UMP-pcPL</td>
</tr>
</table>
<h3>Russian Federation</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-osport.xml" download><img src="tiles/nakarte-osport.png" alt="Map Preview" width="256" height="256"/></a><br/>O-sport</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-ggc500.xml" download><img src="tiles/nakarte-ggc500.png" alt="Map Preview" width="256" height="256"/></a><br/>GGC 500m</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-topo500.xml" download><img src="tiles/nakarte-topo500.png" alt="Map Preview" width="256" height="256"/></a><br/>Topo 500m</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-ggc250.xml" download><img src="tiles/nakarte-ggc250.png" alt="Map Preview" width="256" height="256"/></a><br/>GGC 250m</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-ggc1000.xml" download><img src="tiles/nakarte-ggc1000.png" alt="Map Preview" width="256" height="256"/></a><br/>GGC 1km</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-topo1000.xml" download><img src="tiles/nakarte-topo1000.png" alt="Map Preview" width="256" height="256"/></a><br/>Topo 1km</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-ggc2000.xml" download><img src="tiles/nakarte-ggc2000.png" alt="Map Preview" width="256" height="256"/></a><br/>GGC 2km</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-topo250.xml" download><img src="tiles/nakarte-topo250.png" alt="Map Preview" width="256" height="256"/></a><br/>Topo 250m</td>
</tr><tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-adraces.xml" download><img src="tiles/nakarte-adraces.png" alt="Map Preview" width="256" height="256"/></a><br/>Races</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/RU/nakarte-slazav.xml" download><img src="tiles/nakarte-slazav.png" alt="Map Preview" width="256" height="256"/></a><br/>Slazav map</td>
</tr>
</table>
<h3>Slovakia</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/SK/GKU-ortofoto.xml" download><img src="tiles/GKU-ortofoto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>GKÚ - Ortofotomozaika</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/SK/FreemapSlovakia.xml" download><img src="tiles/FreemapSlovakia.png" alt="Map Preview" width="256" height="256"/></a><br/>Freemap Slovakia</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/SK/GKU-ZBGIS.xml" download><img src="tiles/GKU-ZBGIS.png" alt="Map Preview" width="256" height="256"/></a><br/>GKÚ - ZBGIS</td>
</tr>
</table>
<h3>Slovenia</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/SI/Slovenia-DTK50.xml" download><img src="tiles/Slovenia-DTK50.png" alt="Map Preview" width="256" height="256"/></a><br/>Slovenia - DTK50</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/SI/Slovenia-DPK750.xml" download><img src="tiles/Slovenia-DPK750.png" alt="Map Preview" width="256" height="256"/></a><br/>Slovenia - DPK750</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/SI/Slovenia-ortofoto.xml" download><img src="tiles/Slovenia-ortofoto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Slovenia - ortofoto</td>
</tr>
</table>
<h3>Spain</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/ES/IGN-mapa-raster.xml" download><img src="tiles/IGN-mapa-raster.png" alt="Map Preview" width="256" height="256"/></a><br/>Cartografía raster del IGN</td>
</tr>
</table>
<h3>Switzerland</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CH/Swisstopo-Aerial.tpl" download><img src="tiles/Swisstopo-Aerial.png" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo Aerial</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CH/OpenStreetMap-Swiss-Style.xml" download><img src="tiles/OpenStreetMap-Swiss-Style.png" alt="Map Preview" width="256" height="256"/></a><br/>OSM Switzerland Swiss Style</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CH/OpenStreetMap-Switzerland.xml" download><img src="tiles/OpenStreetMap-Switzerland.png" alt="Map Preview" width="256" height="256"/></a><br/>OSM Switzerland</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Europe/CH/Swisstopo.tpl" download><img src="tiles/Swisstopo.png" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo</td>
</tr>
</table>
<h2>Oceania</h2>
<h3>New Zealand</h3>
<table>
<tr>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Oceania/NZ/NZTopoMap250.xml" download><img src="tiles/NZTopoMap250.png" alt="Map Preview" width="256" height="256"/></a><br/>NZ Topo Map 250</td>
<td><a href="https://raw.githubusercontent.com/tumic0/GPXSee-maps/master/World/Oceania/NZ/NZTopoMap50.xml" download><img src="tiles/NZTopoMap50.png" alt="Map Preview" width="256" height="256"/></a><br/>NZ Topo Map 50</td>
</tr>
</table>
</div>
</body>
</html>

356
scripts/mapgen.py Executable file
View File

@ -0,0 +1,356 @@
#!/usr/bin/env python
import os
import sys
import re
import xml.etree.ElementTree as ET
REPOSITORY = "https://raw.githubusercontent.com/tumic0/GPXSee-maps/master"
COUNTRYCODES = {
'AD': 'Andorra',
'AE': 'United Arab Emirates',
'AF': 'Afghanistan',
'AG': 'Antigua & Barbuda',
'AI': 'Anguilla',
'AL': 'Albania',
'AM': 'Armenia',
'AN': 'Netherlands Antilles',
'AO': 'Angola',
'AQ': 'Antarctica',
'AR': 'Argentina',
'AS': 'American Samoa',
'AT': 'Austria',
'AU': 'Australia',
'AW': 'Aruba',
'AZ': 'Azerbaijan',
'BA': 'Bosnia and Herzegovina',
'BB': 'Barbados',
'BD': 'Bangladesh',
'BE': 'Belgium',
'BF': 'Burkina Faso',
'BG': 'Bulgaria',
'BH': 'Bahrain',
'BI': 'Burundi',
'BJ': 'Benin',
'BM': 'Bermuda',
'BN': 'Brunei Darussalam',
'BO': 'Bolivia',
'BR': 'Brazil',
'BS': 'Bahama',
'BT': 'Bhutan',
'BU': 'Burma (no longer exists)',
'BV': 'Bouvet Island',
'BW': 'Botswana',
'BY': 'Belarus',
'BZ': 'Belize',
'CA': 'Canada',
'CC': 'Cocos (Keeling) Islands',
'CF': 'Central African Republic',
'CG': 'Congo',
'CH': 'Switzerland',
'CI': 'Côte D\'ivoire (Ivory Coast)',
'CK': 'Cook Iislands',
'CL': 'Chile',
'CM': 'Cameroon',
'CN': 'China (PRC)',
'CO': 'Colombia',
'CR': 'Costa Rica',
'CS': 'Czechoslovakia (no longer exists)',
'CU': 'Cuba',
'CV': 'Cape Verde',
'CX': 'Christmas Island',
'CY': 'Cyprus',
'CZ': 'Czech Republic',
'DD': 'German Democratic Republic (no longer exists)',
'DE': 'Germany',
'DJ': 'Djibouti',
'DK': 'Denmark',
'DM': 'Dominica',
'DO': 'Dominican Republic',
'DZ': 'Algeria',
'EC': 'Ecuador',
'EE': 'Estonia',
'EG': 'Egypt',
'EH': 'Western Sahara',
'ER': 'Eritrea',
'ES': 'Spain',
'ET': 'Ethiopia',
'FI': 'Finland',
'FJ': 'Fiji',
'FK': 'Falkland Islands (Malvinas)',
'FM': 'Micronesia',
'FO': 'Faroe Islands',
'FR': 'France',
'FX': 'France, Metropolitan',
'GA': 'Gabon',
'GB': 'United Kingdom (Great Britain)',
'GD': 'Grenada',
'GE': 'Georgia',
'GF': 'French Guiana',
'GH': 'Ghana',
'GI': 'Gibraltar',
'GL': 'Greenland',
'GM': 'Gambia',
'GN': 'Guinea',
'GP': 'Guadeloupe',
'GQ': 'Equatorial Guinea',
'GR': 'Greece',
'GS': 'South Georgia and the South Sandwich Islands',
'GT': 'Guatemala',
'GU': 'Guam',
'GW': 'Guinea-Bissau',
'GY': 'Guyana',
'HK': 'Hong Kong',
'HM': 'Heard & McDonald Islands',
'HN': 'Honduras',
'HR': 'Croatia',
'HT': 'Haiti',
'HU': 'Hungary',
'ID': 'Indonesia',
'IE': 'Ireland',
'IL': 'Israel',
'IN': 'India',
'IO': 'British Indian Ocean Territory',
'IQ': 'Iraq',
'IR': 'Islamic Republic of Iran',
'IS': 'Iceland',
'IT': 'Italy',
'JM': 'Jamaica',
'JO': 'Jordan',
'JP': 'Japan',
'KE': 'Kenya',
'KG': 'Kyrgyzstan',
'KH': 'Cambodia',
'KI': 'Kiribati',
'KM': 'Comoros',
'KN': 'St. Kitts and Nevis',
'KP': 'Korea, Democratic People\'s Republic of',
'KR': 'Korea, Republic of',
'KW': 'Kuwait',
'KY': 'Cayman Islands',
'KZ': 'Kazakhstan',
'LA': 'Lao People\'s Democratic Republic',
'LB': 'Lebanon',
'LC': 'Saint Lucia',
'LI': 'Liechtenstein',
'LK': 'Sri Lanka',
'LR': 'Liberia',
'LS': 'Lesotho',
'LT': 'Lithuania',
'LU': 'Luxembourg',
'LV': 'Latvia',
'LY': 'Libyan Arab Jamahiriya',
'MA': 'Morocco',
'MC': 'Monaco',
'MD': 'Moldova, Republic of',
'MG': 'Madagascar',
'MH': 'Marshall Islands',
'ML': 'Mali',
'MN': 'Mongolia',
'MM': 'Myanmar',
'MO': 'Macau',
'MP': 'Northern Mariana Islands',
'MQ': 'Martinique',
'MR': 'Mauritania',
'MS': 'Monserrat',
'MT': 'Malta',
'MU': 'Mauritius',
'MV': 'Maldives',
'MW': 'Malawi',
'MX': 'Mexico',
'MY': 'Malaysia',
'MZ': 'Mozambique',
'NA': 'Namibia',
'NC': 'New Caledonia',
'NE': 'Niger',
'NF': 'Norfolk Island',
'NG': 'Nigeria',
'NI': 'Nicaragua',
'NL': 'Netherlands',
'NO': 'Norway',
'NP': 'Nepal',
'NR': 'Nauru',
'NT': 'Neutral Zone (no longer exists)',
'NU': 'Niue',
'NZ': 'New Zealand',
'OM': 'Oman',
'PA': 'Panama',
'PE': 'Peru',
'PF': 'French Polynesia',
'PG': 'Papua New Guinea',
'PH': 'Philippines',
'PK': 'Pakistan',
'PL': 'Poland',
'PM': 'St. Pierre & Miquelon',
'PN': 'Pitcairn',
'PR': 'Puerto Rico',
'PT': 'Portugal',
'PW': 'Palau',
'PY': 'Paraguay',
'QA': 'Qatar',
'RE': 'Réunion',
'RO': 'Romania',
'RU': 'Russian Federation',
'RW': 'Rwanda',
'SA': 'Saudi Arabia',
'SB': 'Solomon Islands',
'SC': 'Seychelles',
'SD': 'Sudan',
'SE': 'Sweden',
'SG': 'Singapore',
'SH': 'St. Helena',
'SI': 'Slovenia',
'SJ': 'Svalbard & Jan Mayen Islands',
'SK': 'Slovakia',
'SL': 'Sierra Leone',
'SM': 'San Marino',
'SN': 'Senegal',
'SO': 'Somalia',
'SR': 'Suriname',
'ST': 'Sao Tome & Principe',
'SU': 'Union of Soviet Socialist Republics (no longer exists)',
'SV': 'El Salvador',
'SY': 'Syrian Arab Republic',
'SZ': 'Swaziland',
'TC': 'Turks & Caicos Islands',
'TD': 'Chad',
'TF': 'French Southern Territories',
'TG': 'Togo',
'TH': 'Thailand',
'TJ': 'Tajikistan',
'TK': 'Tokelau',
'TM': 'Turkmenistan',
'TN': 'Tunisia',
'TO': 'Tonga',
'TP': 'East Timor',
'TR': 'Turkey',
'TT': 'Trinidad & Tobago',
'TV': 'Tuvalu',
'TW': 'Taiwan (Republic of China)',
'TZ': 'Tanzania, United Republic of',
'UA': 'Ukraine',
'UG': 'Uganda',
'UM': 'United States Minor Outlying Islands',
'US': 'United States of America',
'UY': 'Uruguay',
'UZ': 'Uzbekistan',
'VA': 'Vatican City State (Holy See)',
'VC': 'St. Vincent & the Grenadines',
'VE': 'Venezuela',
'VG': 'British Virgin Islands',
'VI': 'United States Virgin Islands',
'VN': 'Viet Nam',
'VU': 'Vanuatu',
'WF': 'Wallis & Futuna Islands',
'WS': 'Samoa',
'YD': 'Democratic Yemen (no longer exists)',
'YE': 'Yemen',
'YT': 'Mayotte',
'YU': 'Yugoslavia',
'ZA': 'South Africa',
'ZM': 'Zambia',
'ZR': 'Zaire',
'ZW': 'Zimbabwe',
'ZZ': 'Unknown or unspecified country',
}
def sectionname(name):
if name in COUNTRYCODES:
return COUNTRYCODES[name]
else:
return name
def header(name, level):
return "<h" + str(level) + ">" + name + "</h" + str(level) + ">"
def tile(xmlfile, suffix):
base = os.path.splitext(os.path.basename(xmlfile))[0]
tile = "tiles/" + base + suffix
return tile
def mapinfo(xmlfile):
with open(xmlfile) as f:
xmlstring = f.read()
xmlstring = re.sub('\\sxmlns="[^"]+"', '', xmlstring, count=1)
root = ET.fromstring(xmlstring)
info = {}
for element in root:
if element.tag == "name":
info["name"] = element.text
info["url"] = REPOSITORY + xmlfile[xmlfile.find('/World'):]
png = tile(xmlfile, ".png")
jpg = tile(xmlfile, ".jpg")
if os.path.isfile("../" + png):
info["tile"] = png
elif os.path.isfile("../" + jpg):
info["tile"] = jpg
else:
info["tile"] = "tiles/NA.png"
return info
def processmaps(maps):
print("<table>")
i = 0
print("<tr>")
for xmlfile in maps:
info = mapinfo(xmlfile)
if i and i % 4 == 0:
print("</tr><tr>")
print("<td>" + "<a href=\"" + info["url"] + "\" download><img src=\""
+ info["tile"] + "\" alt=\"Map Preview\" width=\"256\" height=\"256\"/></a><br/>"
+ info["name"] + "</td>")
i = i + 1
print("</tr>")
print("</table>")
def processdir(path, level, name):
maps = []
sections = []
entries = os.listdir(path)
for entry in entries:
entrypath = os.path.join(path, entry)
if (os.path.isdir(entrypath)):
sections.append((sectionname(entry), entrypath))
else:
maps.append(entrypath)
if maps:
processmaps(maps)
sections.sort()
for section in sections:
print(header(section[0], level + 1))
processdir(section[1], level + 1, section[0])
if len(sys.argv) < 2:
print("Usage: " + os.path.basename(sys.argv[0]) + " DIR", file=sys.stderr)
sys.exit(-1)
print("""<!DOCTYPE html>
<html lang="en">
<head>
<title>GPXSee Online Maps</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<div class="center">
<h1>GPXSee Online Maps</h1>
""")
print(header("Worldwide", 2))
processdir(sys.argv[1], 1, os.path.basename(sys.argv[1]))
print("""
</div>
</body>
</html>
""")

36
style.css Normal file
View File

@ -0,0 +1,36 @@
body {
background:#333333;
font-family:Arial, sans-serif;
}
table {
border:5px solid #000000;
background:#000000;
}
td {
background:#ffffff;
padding:5px;
border:5px solid #000000;
}
h1 {
color:#ffffff;
margin-left:10px;
padding-top:10px;
}
h2 {
color:#ed1c24;
margin-left:10px;
margin-top:0;
margin-bottom:0;
}
h3 {
color:#f0f0f0;
margin-left:10px;
margin-bottom:0;
padding-bottom:0;
}
.center {
margin:20px auto;
width:1124px;
background:#000000;
border-radius:5px;
}

BIN
tiles/BGMountains.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
tiles/BasemapAT-Farbe.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
tiles/BasemapAT-Ortho.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
tiles/CUZK-ortofoto.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
tiles/CUZK-zm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
tiles/CyclOSM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
tiles/FreemapSlovakia.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
tiles/GKU-ZBGIS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
tiles/GKU-ortofoto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
tiles/GSI-basemap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
tiles/GUGIK-orto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
tiles/GUGIK-topo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
tiles/HikeBikeMap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
tiles/IGN-mapa-raster.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
tiles/IGN-maps.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
tiles/IGN-orthophotos.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
tiles/Ilmakuva.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

BIN
tiles/Karjalankartta20k.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
tiles/LIMA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

BIN
tiles/Maastokartta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
tiles/MapAnt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
tiles/MapTiler.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

BIN
tiles/NA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
tiles/NLS_Atlas.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

BIN
tiles/NLS_Landscape.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

BIN
tiles/NLS_Map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

BIN
tiles/NZTopoMap250.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
tiles/NZTopoMap50.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
tiles/Norgeskart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
tiles/OPNVKarte.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
tiles/OpenFlightMaps.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
tiles/OpenStreetMap-BW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
tiles/PDOK-opentopo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
tiles/PDOK-ortho25.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
tiles/Poloha.Net.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
tiles/Rinnevarjostus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
tiles/Selkokartta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
tiles/Slovenia-DPK750.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
tiles/Slovenia-DTK50.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
tiles/Slovenia-ortofoto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
tiles/Svalbard_Ortofoto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
tiles/Swisstopo-Aerial.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
tiles/Swisstopo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
tiles/TWTOPO-happyman.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
tiles/TWTOPO-rudy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
tiles/TopPlusOpen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
tiles/UMP-pcPL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
tiles/heidelberg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
tiles/map1.eu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
tiles/marshruty.ru.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
tiles/nakarte-adraces.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
tiles/nakarte-ggc1000.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
tiles/nakarte-ggc2000.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
tiles/nakarte-ggc250.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
tiles/nakarte-ggc500.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
tiles/nakarte-osport.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
tiles/nakarte-slazav.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
tiles/nakarte-topo1000.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
tiles/nakarte-topo250.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
tiles/nakarte-topo500.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
tiles/ngi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
tiles/prahounakole.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
tiles/turistautak.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
tiles/unesco.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB