Madeira - Geofrabrik

Also die Angelegenheit läuft auch unter windows, wenn man vorher wget installiert und in der path variable verewigt.


http://gnuwin32.sourceforge.net/packages/wget.htm
Ich habe den installer geladen
Danach bin ich in der Kommandozeile immer gescheitert die pathvariable neu zusetzen. Daher bin ich den GUIweg gegangen.
Systemsteuerung/system dort Reiter erweitert und dann den Button Umgebungsvariabeln und im unteren Bereich einfach bei path mit ;Pfad der Instalation\bin anhängen und cmd neustarten.

Jetzt rennt mein XP und sucht die Updates

Neuer Anlauf… selbes Ergebnis :frowning:

osmconvert europe.osm.pbf > e:\osm\eu.o5m (nach über 20GB abbruch)
**
osmconvert europe.osm.pbf -b=8.6791992,46.9727564,11.9970703,49.0018439 > e:\osm\eu.o5m** (ergibt 3,3GB Datei)

**osmconvert eu.o5m --out-statistics **

timestamp min: 2005-07-21T08:59:25Z
timestamp max: 2011-08-22T19:58:26Z
lon min: 8.6791993
lon max: 11.9970699
lat min: 46.9727564
lat max: 49.0018437
nodes: 15410333
ways: 2169105
relations: 34416
node id min: 127290
node id max: 1408923726
way id min: 99
way id max: 127254148
relation id min: 914
relation id max: 1723453

osmupdate -v eu.o5m 2011-08-22T19:58:26Z eu_neu.o5m

osmupdate: Verbose mode.
osmfilter Parameter: eu.o5m
osmfilter Parameter: 2011-08-22T19:58:26Z
osmfilter Parameter: eu_neu.o5m
osmupdate: newest minutely timestamp: 2011-08-23T20:46:03Z
osmupdate: newest hourly timestamp: 2011-08-23T20:00:00Z
osmupdate: newest daily timestamp: 2011-08-23T00:00:00Z
osmupdate: minutely changefile 950898: downloading
osmupdate: minutely changefile 950897: 2011-08-23T20:45:03Z
osmupdate: minutely changefile 950897: downloading
osmupdate: minutely changefile 950896: 2011-08-23T20:44:02Z
osmupdate: minutely changefile 950896: downloading
osmupdate: minutely changefile 950895: 2011-08-23T20:43:02Z
osmupdate: minutely changefile 950895: downloading
osmupdate: minutely changefile 950894: 2011-08-23T20:42:02Z
osmupdate: minutely changefile 950894: downloading
osmupdate: Merging changefiles.
osmupdate: minutely changefile 950893: 2011-08-23T20:41:02Z
osmupdate: minutely changefile 950893: downloading
osmupdate: minutely changefile 950892: 2011-08-23T20:40:02Z
osmupdate: minutely changefile 950892: downloading
osmupdate: minutely changefile 950891: 2011-08-23T20:39:02Z
osmupdate: minutely changefile 950891: downloading
osmupdate: minutely changefile 950890: 2011-08-23T20:38:02Z
osmupdate: minutely changefile 950890: downloading
osmupdate: minutely changefile 950889: 2011-08-23T20:37:02Z
osmupdate: minutely changefile 950889: downloading
osmupdate: Merging changefiles.
osmconvert Error: could not get 183500800 bytes of memory.
osmupdate Error: Merging of changefiles failed:
osmconvert --merge-versions “osmupdate_temp\temp.m000950889.osc.gz” “osmupdate_
temp\temp.m000950890.osc.gz” “osmupdate_temp\temp.m000950891.osc.gz” “osmupdate_
temp\temp.m000950892.osc.gz” “osmupdate_temp\temp.m000950893.osc.gz” “osmupdate_
temp\temp.8” --timestamp=2011-08-23T20:46:03Z --out-o5c >“osmupdate_temp\temp.9”

Unter CDLinux und Linux Mint7 ist alles noch viel schlimmer

Der Download der Linuxprogramme funktioniert aber gehe ich in das Verzeichnis wo der ganze Scheiß gespeichert ist und gebe den Befehl ein heißt es immer nur “no such file or blabla”

Also hab ich die Spielchen mit dem installieren der programme per Wget probiert… das erste geht, beim zweiten will er irgend so ein zlib.h haben. Also hab ich googlen müssen wie das installiert wird, als das gefrickel erledigt war nochmal den wget befehl und er hat auch das zweite dann gefressen. Dann osmupdate oder osmupdate32 eingetippt und immer noch no such file or blabla… dabei hab ich mich in der Konsole in dem richtigen verzeichnis befunden. Auch mit Sudo su und irgend einen Quatsch an den ich mich noch aus paar Linux Anfängen erinnerte, aber nix.

Du bist doch ein alter Hase. Mach dir doch wenigstens mal die Mühe die Anleitung zu lesen (ist sogar auf Deusch)

http://wiki.openstreetmap.org/wiki/DE:Osmconvert

Dort steht, dass das Standart Ausgabeformat osm ist !!!

Also schreibt dein Befehl

osmconvert europe.osm.pbf > e:\osm\eu.o5m

eine OSM Datei auch wenn du sie eu.o5m nennst , daher auch die Größe, ist ja unkomprimiert.

Für o5m lautet der Befehl:

osmconvert europe.osm.pbf --out-o5m > e:\osm\eu.o5m

Ist doch ganz einfach, die 5 Minuten um die Anleitung zu lesen wirst du doch haben, lass halt eines deiner berüchtigten Postings hier im Forum mal weg und investiere die Zeit für das Lesen der Anleitung, es lohnt sich :slight_smile:

Aus der Anleitung: Die Ausgabedatei wird standardmäßig im *.osm-Format geschrieben. Durch folgende Optionen kann aber auch ein anderes Ausgabeformat abgerufen werden:
–out-osc, --out-o5m, --out-osh, --out-o5c.

Also einfach noch --out-o5m dazu

Hi,

wenn im aktuellen Verzeichnis ein Befehl/Kommando nicht gefunden wird, dann noch einen
Punkt und einen Schraeger davorstellen, also
./osmconvert …

Ciao,
Frank

“–out-o5m” hin oder her, scheint irgendwie noch ein bug in der windows-version zu sein,
man muesste Markus halt mal hoeflich fragen …

Kannst du mir erklären wo der Fehler sein soll? Ich habe den Vorgang bisher immer abgebrochen, weil er mir schlicht zu lange dauerte. Aber wenn ich den Timestamp angebe, dann rennt das Programm unter meinem Windows XP SP3 einfach los.
Natürlich nur wenn man vorher wget installiert hat und in der Umgebungsvariable path angemeldet hat. Dies kann man ausprobieren indem man auf der Kommandozeile einfach den Befehl wget ausführt. Dann sollte nicht angezeigt werden, dass er den Befehl nicht gefunden hat.
Ich kann dort jetzt keinen Bug erkennen.

Also bitte :wink:

Ich persönlich arbeite mit Debian 6 und da funktionokelt alles plima :wink:

Edwin (benutzt Win XP lt. seiner Aussage) hat in seinem post geschrieben, dass er wget schon installiert hat :wink:

Die Ausgabe von “-v” (steht für verbose) aus seinem post#42 zeigt, dass sein osmupdate bereits Dateien runterlädt:

Ich zitiere Edwin :wink:


osmupdate: minutely changefile 950898: downloading
osmupdate: minutely changefile 950897: 2011-08-23T20:45:03Z
osmupdate: minutely changefile 950897: downloading
osmupdate: minutely changefile 950896: 2011-08-23T20:44:02Z
osmupdate: minutely changefile 950896: downloading
osmupdate: minutely changefile 950895: 2011-08-23T20:43:02Z
osmupdate: minutely changefile 950895: downloading
osmupdate: minutely changefile 950894: 2011-08-23T20:42:02Z

=> Das “wget-Problem” hat Edwin schon hinter sich.

Du verstehen?

Ciao,
Frank


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

K:\>osmconvert sachsen-anhalt.osm.pbf --out-o5m >test.o5m

K:\>osmupdate test.o5m >test2.o5m
osmupdate Error: Old OSM file does not contain a timestamp: test.o5m
osmupdate Error: Please specify the timestamp manually, e.g.: 2011-07-15T23:30:0
0Z

K:\>osmupdate test.o5m 2011-08-23T00:00:00Z>test2.o5m
osmupdate Error: No output file was specified.

K:\>osmupdate test.o5m 2011-08-23T00:00:00Z >test2.o5m
osmupdate Error: No output file was specified.

K:\>osmupdate test.o5m 2011-08-23T00:00:00Z test2.o5m
osmconvert Error: could not open input file: ,¸ test.o5m osmupdate_temp\temp.8 -
-out-o5m >test2.o5m

K:\>osmupdate -v test.o5m 2011-08-23T00:00:00Z test2.o5m
osmupdate: Verbose mode.
osmfilter Parameter: test.o5m
osmfilter Parameter: 2011-08-23T00:00:00Z
osmfilter Parameter: test2.o5m
osmupdate: newest minutely timestamp: 2011-08-24T07:04:02Z
osmupdate: newest hourly timestamp: 2011-08-24T07:00:00Z
osmupdate: newest daily timestamp: 2011-08-24T00:00:00Z
osmupdate: minutely changefile 951516: downloading
osmupdate: minutely changefile 951515: 2011-08-24T07:03:02Z
osmupdate: minutely changefile 951515: downloading
osmupdate: minutely changefile 951514: 2011-08-24T07:02:02Z
osmupdate: minutely changefile 951514: downloading
osmupdate: minutely changefile 951513: 2011-08-24T07:01:02Z
osmupdate: minutely changefile 951513: downloading
osmupdate: minutely changefile 951512: 2011-08-24T07:00:02Z
osmupdate: minutely changefile 951512: downloading
osmupdate: Merging changefiles.
osmupdate: minutely changefile 951511: 2011-08-24T06:59:02Z
osmupdate: hourly changefile 15417: downloading
osmupdate: hourly changefile 15416: 2011-08-24T06:00:00Z
osmupdate: hourly changefile 15416: downloading
osmupdate: hourly changefile 15415: 2011-08-24T05:00:00Z
osmupdate: hourly changefile 15415: downloading
osmupdate: hourly changefile 15414: 2011-08-24T04:00:00Z
osmupdate: hourly changefile 15414: downloading
osmupdate: hourly changefile 15413: 2011-08-24T03:00:00Z
osmupdate: hourly changefile 15413: downloading
osmupdate: Merging changefiles.
osmupdate: hourly changefile 15412: 2011-08-24T02:00:00Z
osmupdate: hourly changefile 15412: downloading
osmupdate: hourly changefile 15411: 2011-08-24T01:00:00Z
osmupdate: hourly changefile 15411: downloading
osmupdate: hourly changefile 15410: 2011-08-24T00:00:00Z
osmupdate: daily changefile 15210: downloading
osmupdate: daily changefile 15209: 2011-08-23T00:00:00Z
osmupdate: Merging changefiles.
osmconvert Error: could not open input file: ,¸ test.o5m osmupdate_temp\temp.8 -
-out-o5m >test2.o5m
osmupdate: Deleting temporary files.
osmupdate: Completed successfully.

K:\>

nach weiteren Tests kann ich nun feststellen, dass mein File ein Update erfahren hat, wenn die Updates manuell zusammengefasst werden und diese einzelne Datei dann mittels osmconvert auf das Ausgangsfile losgelassen wird.
Es scheint also nur ein Problem beim zusammenfassen der einzelnen Updates vorzuliegen.

Ja, aber genau das sollte osmupdate für Dich alles abnehmen :wink:

In Deiner Ausgabe findet sich noch ein Fehler


osmconvert Error: could not open input file: ,¸ test.o5m osmupdate_temp\temp.8 -
-out-o5m >test2.o5m

Vermute, dass dies das Ergebnis Deines
K:>osmupdate test.o5m 2011-08-23T00:00:00Z test2.o5m
vor dem (erfolgreichen)
K:>osmupdate -v test.o5m 2011-08-23T00:00:00Z test2.o5m
ist.

Da Dein erstes Kommando nicht erfolgreich war und abgebrochen wurde, wurde vermutlich das temporäre Verzeichnis "osmupdate_temp"
nicht sauber gelöscht.

Bei Testen kannst Du ja schummeln (so wie ich :wink: wenn Du als Timestamp einen Zeitpunkt nimmst, der nur wenige Minuten alt ist,
dann lädt osmupdate nur ein paar “minutes-Diffs” herunter und keine “hourly”- oder gar “daily”-Dateien.

Ciao,
Frank

osmconvert eu.o5m --out-o5c >eu2.o5c (nur noch 302MB statt 3316MB)

und nun unter Windows Vista (die Dateien alle gleich)

osmupdate -v eu.o5m 2011-08-22T19:58:25Z eu_neu.o5m

osmupdate: Verbose mode.
osmfilter Parameter: eu.o5m
osmfilter Parameter: 2011-08-22T19:58:25Z
osmfilter Parameter: eu_neu.o5m
osmupdate: newest minutely timestamp: 2011-08-23T22:14:02Z
osmupdate: newest hourly timestamp: 2011-08-23T22:00:00Z
osmupdate: newest daily timestamp: 2011-08-23T00:00:00Z
osmupdate: minutely changefile 950986: downloading
osmupdate: minutely changefile 950985: 2011-08-23T22:13:02Z
osmupdate: minutely changefile 950985: downloading
osmupdate: minutely changefile 950984: 2011-08-23T22:12:02Z
osmupdate: minutely changefile 950984: downloading
osmupdate: minutely changefile 950983: 2011-08-23T22:11:02Z
osmupdate: minutely changefile 950983: downloading
osmupdate: minutely changefile 950982: 2011-08-23T22:10:02Z
osmupdate: minutely changefile 950982: downloading
***Ganze Latte voll mit diesen Downloads
osmupdate: hourly changefile 15383: 2011-08-22T21:00:00Z
osmupdate: hourly changefile 15383: downloading
osmupdate: hourly changefile 15382: 2011-08-22T20:00:00Z
osmupdate: hourly changefile 15382: downloading
osmupdate: hourly changefile 15381: 2011-08-22T19:00:00Z
osmupdate: Merging changefiles.
osmconvert Error: could not open input file: ©÷ eu.o5m osmupdate_temp\temp.8 --o
ut-o5m >eu_neu.o5m
osmupdate: Deleting temporary files.
osmupdate: Completed successfully.

Eine Neue Datei ist nicht da

Unter XP mit der richtigen 300 MB o5m Datei unter XP

osmupdate: daily changefile 15209: 2011-08-23T00:00:00Z
osmupdate: daily changefile 15209: downloading
osmupdate: daily changefile 15208: 2011-08-22T00:00:00Z
osmupdate: Merging changefiles.
osmconvert Error: could not open input file: ,¸ eu2.o5m osmupdate_temp\temp.8 –
out-o5m >neuneu.o5m
osmupdate: Deleting temporary files.
osmupdate: Completed successfully.

Hab jetzt keine Lust mehr. Ich bastel mir mit der OSM Datei meine Garminkarte und lösche den restlichen Müll. Nächstes Jahr gibt es vielleicht wirklich brauchbare Werkzeuge statt dieses nicht richtig funktionierende Gefrickel!

Die Frage ist halt ob der Aufruf aus osmupdate heraus falsch ist, oder osmconvert sich an zu vielen Dateien verschluckt. Das Problem ist genau wie bei Edwin beschrieben, die Datei temp.8! Und das bei jedem Durchlauf von OSM Update.
nur wenn man die Temporären Dateien nicht löscht, dann kann man sie später zusammenfassen.

Die Windows Version hat wohl einen Fehler beim Öffnen der Datei

could not open input file: ,¸

Nicht vergessen: das Programm ist noch ganz neu und hat gerade mal die Version 0.0R

Der Programmierer ist ja auch hier im Forum aktiv und wird das sicher bald beheben.

Unter Linux triit der Fehler nicht auf.

damit wandelts du die eu.o5m aus posting #42 die aber gar keine o5m ist, da du --out-o5m vergessen hast in deinem Befehl in eine o5c, was ein changefile ist und hier gar keinen Sinn macht …

Der korrekte Befehl zum Ausschneiden deiner Region lautet:

osmconvert europe.osm.pbf --out-o5m -b=8.6791992,46.9727564,11.9970703,49.0018439 > e:\osm\eu.o5m

Den Fehler in der Windowsversion mit osmupdate (could not open …) kann ich bestätigen.

Aber wie gesagt: das ist ein ganz neues Programm in der Version 0.0R und der Programmierer ist ja auch hier im Forum aktiv.

Eins muss man aber mal sagen: einige Deiner Kommentare sind der Motivation der Leute, die diese Programme in ihrer Freizeit programmieren, nicht gerade dienlich.

So ist das halt mit Gruppentrollen.

Ändert aber nichts daran, dass das Programm wohl einen Bug hat, über den auch freundlichere Mitwirkende stolpern.

gruß,
ajoessen

Diese können aber den Nutzer auch wie er das gewünscht hat per E-Mail informieren. Ich nehme an das ich als Programmierer in diesem Thread nicht einen Fehlerbericht meiner Software suchen würde.
Aber ich habe ihm eine Mail geschrieben. Vielleicht hat er irgendwann mal etwas Zeit. Derzeit scheint er ja auch andere Projekte zu wälzen. Mapnik und Co auf dem Server.

Sehr fahrlässig, solche Qualitätsprogrammierer an Systemrelevante Infrastruktur wursteln zu lassen. Passt aber zu dem ganzen Chaos bei OSM.

Dich läßt man ja auch an solche Projekte heran. Wo siehst du das Problem, wenn er sich einen eigene Server aufsetzt und damit dann seine Karte rendern möchte.
Dafür hat er in der Vergangenheit ja auch diese Programme hier erstellt. Offenbar scheint es sich um ein Windowsproblem zu handeln.

Bill Gates hat Glück das er nicht in meiner Nachbarschaft wohnt! Mit seinen Qualitätsupdates… besonders Win7 SP1 das ich neulich für einen Kollegen installieren musste.