osmconvert: --complete-ways und --all-to-nodes
Geschrieben von Marqqs (Gast) am 13. November 2011 14:04:25: [flux]
Hallo,
bei osmconvert gibts zwei neue Optionen. Die Beta-Version hab ich hochgeladen auf http://m.m.i24.cc/osmconvert_beta.c
--complete-ways
Was soll ich sagen, Osmosis kann das ja schon lange: Beim Anwenden von geografischen Grenzen bewirkt diese Option, Wege nicht an der Grenze abgeschnitten werden, sondern alle ihre Knoten behalten, auch die, die nicht innerhalb des gewählten Gebiets liegen. Je nachdem, wie man die Daten weiterverarbeiten will, kann --complete-ways nützlich sein.
Leider wird dadurch aber das Ausschneiden etwas langsamer, weil ein Teil der Daten zweimal gelesen werden muss (.o5m ist hier schneller als .pbf und .osm).
--all-to-nodes
Manche Anwendungen können mit ways und relations nicht viel anfangen, weil diese beiden Objekttypen selbst keine Koordinaten besitzen. Will man beispielsweise wissen, wo sich ein Polygon (z.B. ein Gebäude) befindet, muss man zuerst alle seine nodes untersuchen. Bei Relationen (z.B. Gebäude mit Innenhof) wirds noch komplizierter, weil diese Wege, Knoten und sogar andere Relationen enthalten können, die dann wiederum Wege, Knoten und Relationen enthalten.
Die Diskussionen um die Wheelmap haben gezeigt, dass die Lösung des Problems nicht immer ganz einfach ist.
Mit der neuen Option wandelt osmconvert alle Wege und alle Relationen in Knoten um. Aus dem Weg mit dem ID 123456 wird beispielsweise ein Knoten mit dem ID 1000000000123456. Dieser neue Knoten erhält alle Tags des Wegs. Längen- und Breitengrad des neuen Knotens ist der geografische Mittelpunkt des Wegs. Bei Relationen passiert das Gleiche, die neue ID beginnt dann mit 2.
Für Osmosis gibt es übrigens seit etwa einem halben Jahr eine ähnliche Option. Dort heißt sie "--areapoints", wandelt aber nur geschlossene Wege (Polygone) um und berücksichtigt keine Relationen. Trotzdem eine sehr nützliche Sache für diejenigen, die nur Osmosis einsetzen.
Schöne Grüße
Markus
Antworten:
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 13.11.2011 14:28 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 13.11.2011 15:36 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 13.11.2011 17:22 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · EvanE (Gast) · 13.11.2011 17:44 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 13.11.2011 18:24 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 13.11.2011 18:53 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 13.11.2011 19:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 13.11.2011 20:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 13.11.2011 21:02 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 13.11.2011 22:02 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 13.11.2011 22:21 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Flacus (Gast) · 14.11.2011 00:26 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · ajoessen (Gast) · 14.11.2011 07:56 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 14.11.2011 14:02 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 14.11.2011 14:17 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · ajoessen (Gast) · 14.11.2011 14:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 15.11.2011 22:58 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 15.11.2011 23:54 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 16.11.2011 00:55 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 16.11.2011 21:24 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 16.11.2011 22:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 17.11.2011 06:54 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 17.11.2011 07:35 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 17.11.2011 11:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · ajoessen (Gast) · 17.11.2011 11:35 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 17.11.2011 11:42 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 17.11.2011 12:58 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 17.11.2011 12:58 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · EvanE (Gast) · 17.11.2011 13:18 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 17.11.2011 13:33 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 17.11.2011 15:07 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 17.11.2011 15:14 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 17.11.2011 19:07 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 17.11.2011 19:35 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 17.11.2011 19:40 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 17.11.2011 20:18 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 18.11.2011 11:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 18.11.2011 12:11 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 18.11.2011 12:23 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 18.11.2011 12:40 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 18.11.2011 14:23 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 18.11.2011 18:26 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 18.11.2011 18:56 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 18.11.2011 20:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 18.11.2011 22:22 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 18.11.2011 22:32 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 18.11.2011 23:24 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 19.11.2011 02:25 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 19.11.2011 10:41 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 10:52 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 19.11.2011 10:58 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 11:10 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 12:06 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 12:26 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 19.11.2011 13:13 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 13:26 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 14:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 14:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 14:43 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 15:04 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 15:28 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 19.11.2011 15:54 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 16:12 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 19.11.2011 16:19 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 17:19 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 19.11.2011 18:38 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 19.11.2011 20:06 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 19.11.2011 20:14 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 20:53 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 19.11.2011 21:33 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 22:24 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 19.11.2011 22:51 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 19.11.2011 23:01 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 19.11.2011 23:03 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 19.11.2011 23:15 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 08:39 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 20.11.2011 08:55 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 09:05 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 09:08 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 20.11.2011 09:15 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 20.11.2011 09:56 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 20.11.2011 10:54 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 20.11.2011 11:09 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 20.11.2011 11:14 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 20.11.2011 11:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 20.11.2011 11:31 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 20.11.2011 11:39 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 20.11.2011 11:42 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 20.11.2011 11:51 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 20.11.2011 11:54 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 20.11.2011 12:00 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 14:55 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 16:36 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 20.11.2011 17:13 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 20.11.2011 17:17 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 20.11.2011 17:56 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 18:11 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 20.11.2011 18:22 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 18:46 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 20:06 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 20:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 20:27 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 20.11.2011 20:45 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 21:17 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 20.11.2011 21:58 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 20.11.2011 22:28 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 20.11.2011 22:39 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 21.11.2011 00:28 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 21.11.2011 08:48 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 21.11.2011 12:44 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 21.11.2011 16:31 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 21.11.2011 20:15 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 21.11.2011 21:25 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 21.11.2011 23:40 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 22.11.2011 16:38 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 22.11.2011 17:10 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Flacus (Gast) · 22.11.2011 17:13 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 22.11.2011 17:45 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 22.11.2011 18:49 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 23.11.2011 00:24 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 23.11.2011 07:25 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 23.11.2011 10:01 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 23.11.2011 10:17 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · ajoessen (Gast) · 23.11.2011 10:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · tippeltappel (Gast) · 23.11.2011 11:06 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · womisa (Gast) · 23.11.2011 11:09 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · ajoessen (Gast) · 23.11.2011 11:10 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 23.11.2011 13:02 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 23.11.2011 18:05 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 23.11.2011 21:16 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 23.11.2011 21:35 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 23.11.2011 22:12 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 23.11.2011 23:20 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 27.11.2011 10:52 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 27.11.2011 11:25 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 27.11.2011 11:27 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 27.11.2011 12:31 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 28.11.2011 11:41 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 28.11.2011 20:02 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 28.11.2011 23:50 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 29.11.2011 17:52 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · Marqqs (Gast) · 29.11.2011 18:42 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 29.11.2011 18:49 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 29.11.2011 19:04 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 29.11.2011 19:43 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 29.11.2011 20:30 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 30.11.2011 13:55 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · viw (Gast) · 30.11.2011 13:59 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · ajoessen (Gast) · 30.11.2011 14:04 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 04.12.2011 07:22 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · PA94 (Gast) · 04.12.2011 23:09 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 05.12.2011 17:39 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · kellerma (Gast) · 05.12.2011 18:01 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · PA94 (Gast) · 05.12.2011 23:28 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · quasilotte (Gast) · 07.12.2011 06:59 [flux]
- Re: osmconvert: --complete-ways und --all-to-nodes · laufkaefer (Gast) · 07.12.2011 12:19 [flux]