Hi, Ich habe zuerst dein osm datei convertiert nach csv osmconvert km_Angaben_Schelldorf.osm --csv="@id @lat @lon distance ref ref:section" --csv-headline --csv-separator=, -o=km_Angaben_Schelldorf.csv
Dann mit angehängte python script es convertiert in ein "favorites.gpx": die angehängte km_wp.gpx Wenn du die auf android kopierst kann dus dat doppel-klicken und importieren in OsmAnd. Wähle dann als "favorites", und nicht als "gpx". Du bekommst dan eine neu kategorie "kilometersteine". Dann kanst die die brauchen von deine "meine orte", und die werden auch angezeigt wir favoriten auf den karte. Op za 17 nov. 2018 om 11:24 schreef Feuerwehr-Schelldorf-Biberg-Krut < [email protected]>: > Hallo Harry, > > ich dachte Du meinst mit teilen, daß es sich um eine Funktion in OsmAnd > handelt. > Du meintest mit teilen die Karte zur verfügung stellen. Das kann ich > natürlich. siehe Anhang. > > > Entschuldigung > Gruss > Manfred > > > Am Montag, 12. November 2018 14:30:42 UTC+1 schrieb > Feuerwehr-Schelldorf-Biberg-Krut: >> >> Hallo Zusammen, >> >> bin neu hier und wurde vom >> https://forum.openstreetmap.org/viewtopic.php?id=64420 auch auf dieses >> Forum aufmerksam gemacht. Ich hätte folgende Frage, werden Kilometersteine >> (Milestone) in OsmAnd importiert bzw. dargestellt? Wenn ja, unter welche >> Kategorie fallen Kilometersteine (milestone), so daß sie in der >> OsmAnd-Karte angezeigt werden? >> >> >> Gruß >> Manfred >> >> -- > You received this message because you are subscribed to the Google Groups > "Osmand" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Osmand" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
file_name="km_wp.gpx"
txt_file = open(file_name, 'w')
txt_file.write("<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\n")
txt_file.write('<gpx version="1.1" creator="OsmAnd+" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">\n')
txt_file.write(' <metadata>\n <name>favourites</name>\n </metadata>\n')
with open('km_Angaben_Schelldorf.csv', mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
line_count = 0
for row in csv_reader:
if line_count == 0:
line_count += 1
if str(str(row['ref'])):
txt_file.write(" <wpt lat=\""+row['@lat']+"\" lon=\""+row['@lon']+"\">\n")
txt_file.write(" <name>"+str(row['ref']+"-"+row['ref:section']+"-"+row['distance'])+"</name>\n")
txt_file.write(' <type>kilometersteine</type>\n')
txt_file.write(' </wpt>\n')
txt_file.write('</gpx>')
txt_file.close()
km_wp.gpx
Description: Binary data
