File:Positionskarte der Radroute an der Vereinten Mulde in Sachsen.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 3,000 × 2,273 pixels, file size: 313 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
Deutsch: Positionskarte der Radroute an der Vereinten Mulde in Sachsen
Date
Source Own work
Author Cmuelle8
Permission
(Reusing this file)
Dieses Erzeugnis (Produced Work) basiert auf Kartendaten © OpenStreetMap Mitwirkende, verfügbar unter OdbL. (Details)

Howto/Source Code

[edit]
# Erstellt mit einer stark modifizierten Version von gpx2svg
# Relationsdaten-Download mittels rel2gpx -- http://packages.ubuntu.com/de/trusty/rel2gpx
# (oder händisch mittels GPX-Export auf overpass-turbo.eu)
sudo apt-get install rel2gpx
for n in  39013 39014 30259 62467 ; do rel2gpx -g $n ; done
wget -qO - 'https://de.wikipedia.org/wiki/Benutzer:Cmuelle8/gpx2svg.py' \
  | sed -e '1,/<pre>/d' -e '/<.pre>/,$d' -e 's/&gt;/>/g' -e 's/&lt;/</g' -e 's/&#160;/ /g' \
  > gpx2svg.py
chmod +x gpx2svg.py
# - Mulderadroute_(Vereinte_Mulde).gpx in sächsischen (_SN.gpx) und sachsen-anhaltinischen Teil auftrennen (_ST.gpx)
# - Tracks
#       Mulderadroute_(Vereinte_Mulde)_ST.gpx,
#       Mulderadroute_(Freiberger_Mulde).gpx,
#       Mulderadroute_(Zwickauer_Mulde).gpx
#   händisch oder mit JOSM im Ebenen-Dialog vereinen und als Dim_Mashup.gpx speichern
./gpx2svg.py -c -i 'Sachsen.gpx' z -i 'Dim_Mashup.gpx' -i 'Mulderadroute_(Vereinte_Mulde)_SN.gpx' -sl \
  > 'Positionskarte der Radroute an der Vereinten Mulde in Sachsen.svg'
size reduction seen in second version was achieved by
  1. prefiltering the gpx tracks with the en:Ramer–Douglas–Peucker_algorithm implementation used in JOSM (Menu Edit > Simplify way)
  2. changing gpx2svg.py to reduce the digits of the pixel coords' fractional parts from 13 to 2, up to an upscaling factor of hundred no differences to the original should be seen (i.e. up to a width of 30.000px)
--- gpx2svg.py.orig     2015-03-24 20:45:59.000000000 +0100
+++ gpx2svg.py          2015-03-29 11:22:50.739641936 +0200
@@ -238,7 +238,7 @@
  
         for coord in segment:
                 x, y = scaleCoords(coord, height, scale)
-                coordString = coordString + ' ' + str(x) + ',' + str(y)
+                coordString = coordString + ' ' + str(round(x,2)) + ',' + str(round(y,2))
  
         return coordString

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:52, 29 March 2015Thumbnail for version as of 09:52, 29 March 20153,000 × 2,273 (313 KB)Cmuelle8 (talk | contribs)c:User:Rillke/bigChunkedUpload.js:
21:09, 24 March 2015Thumbnail for version as of 21:09, 24 March 20153,000 × 2,273 (1.7 MB)Cmuelle8 (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata