User:Haribo/statistics/motorway
Wochenaufgabe
Wozu?
Blog: Mehr als die Hälfte der Autobahnen in Deutschland hat keine Oberfläche. Jetzt könnte man ja fragen: warum sollte es?
Ein Gedanke könnte folgender sein: Bundeslandabhängig werden im Sommer Autobahnen aus Beton (concrete) wegen Blow-ups durchaus mal eine Höchstgeschwindigkeit von 80 km/h festgelegt.
Bearbeitung
- JOSM
Entsprechende Teilabschnitte in JOSM herunterladen. Anschließend auch sämtliche (Eltern) Relationen für diese Teilabschnitte nachladen um zu gewährleisten, dass wenn ein vorhandener Abschnitt (way) gesplittet (P) werden muss, dieser neue Abschnitt (way) auch in der Relation an entsprechender Stelle eingefügt wird.
- iD
Splitten von Ways beherrscht iD wohl in diesem Fall ziemlich problemlos.
- Hinweis:
CouchMapper sollten sich bei dieser Wochenaufgabe über folgendes klar sein: man kann durchaus Luftbilder oder auch Mapillary als Grundlage nehmen. Da sich Fahrbahnbeläge aber auch mal erstaunlich schnell ändern, ist eine aufwendige Prüfung erforderlich und von verschiedenen Faktoren abhängig: Datum der Luftbilder (JOSM: Rechtsklick -> Kachelinformationen), Presseberichte über Bauarbeiten im entsprechenden Streckenabschnitt, usw.
Besser wäre es also, wenn man die Strecke kennt und/oder z.B. mit OsmTracker (siehe nächster Abschnitt) entsprechende Informationen aufnimmt. Daher richtet sich diese Wochenaufgabe klar an Mapper, welche die entsprechenden Streckenabschnitte sehr gut kennen, z.B. mindestens einmal in der Woche selbst abfahren!
OsmTracker

Einen entsprechenden Style gibt es unter github. Die XML und PNG Dateien auf der SD-Card in das Verzeichnis /osmtracker/layouts einfügen. Weitere Erklärung dazu im OsmTracker Wiki
Hinweis
Nach einem Edit von surface=* auf highway=motorway und bridge=yes kann es schon einmal vorkommen, dass man dann in osmose ein paar Fehler mehr hat: Brückenstruktur fehlt. Um dies zu korrigieren, kann man sich dann mit bridge=structure auseinandersetzen.
Overpass
Einfach in der Overpass Turbo Abfrage das entsprechende Bundesland eintragen und auswerten lassen
[out:json][timeout:120];
(
area[name="Thüringen"];
way(area)["highway"="motorway"]
);
out body;
>;
out skel qt;
{{style:
way {
color: blue; width:4
}
way[surface=asphalt] {
color: black;
width:4
}
way[surface=concrete] {
color: grey;
width: 4
}
}}
Vorbereitung
// download, convert and filter wget -q http://download.geofabrik.de/europe/germany-latest.osm.pbf -O germany-latest.osm.pbf osmconvert --drop-author --drop-relations germany-latest.osm.pbf -o=germany.o5m osmfilter germany.o5m --keep="highway=motorway" --drop-nodes --drop-relations -o=germany-motorway-ways.osm
Gesamtzahl
//grep '<way' germany-motorway-ways.osm | wc -l 58833
verwendete Schlüssel
//grep '<tag k=' germany-motorway-ways.osm | awk -F'"' '{print $2}' | sort | uniq -c
52 abandoned:aeroway
162 access
2 access:conditional
74 access:lanes
3 access:N3
2 addr:city
2 addr:street
2 aeowery:width
2 aeroway
4 alt
45 alt_name
12 ASB
34 asphalt:type
5 avalanche_protector:left
6 avz
30149 bdouble
2606 bicycle
13685 bridge
2 bridge:class
10 bridge:height
5 bridge:length
12 bridge_name
164 bridge:name
6 bridge_number
10 bridge_ref
136 bridge:ref
87 bridge:structure
8 bus
4 bus:lanes
1 bus:lanes:forward
1109 change:lanes
1 change:lanes:backward
1 change:lanes:forward
6 class:bicycle
205 colour:back
205 colour:text
96 comment
80 construction
2 construction_end_date
2 construction_end_expected
10 converted_by
19 covered
15 created_by
6 cs_dir:forward
75 cutting
54 cycleway
12 date_off
15 description
2 designation
4604 destination
64 destination:colour
295 destination:colour:lanes
4 destination:colour_tx:lanes
108 destination:country
146 destination:country:lanes
1 destination:country:lanes:forward
1 destination:int_ref:lanes
3945 destination:lanes
1 destination:lanes:forward
16 destination:lang:cs
38 destination:lang:cs:lanes
577 destination:ref
1651 destination:ref:lanes
1 destination:ref:lanes:forward
54 destination:ref:to
25 destination:ref:to:lanes
193 destination:symbol
1138 destination:symbol:lanes
1 destomatopm
376 direction
3 disused
2 disused:bridge
8 drive_on_shoulder
3 ele
2 ele:nn
583 embankment
32 end_date
4 est_width
2 fixed
81 fixme
50 FIXME
1 fixme:highway
2499 foot
464 hazard
42 hazard:de
3 hazard:wet
443 hazmat
39 hazmat:B
14 hazmat:E
350 hazmat:water
49 height
102 hgv
48 hgv:lanes
6 hgv:lanes:conditional
1 hgv:lanes:forward
58833 highway
8 highway:category:pl
8 highway:class:pl
18 highway:conditional
7 highway:historic
1 highway:position
1 historic
84 history
1900 horse
280 incline
2 information
8 int_name
40273 int_ref
4 int_ref:lanes
4339 is_in
29 jams
58816 lanes
8 lanes:acceleration
1 lanes:backward
12 lanes:construction
30 lanes:emergency
13 lanes:exit
51 lanes:forward
2 lanes:historic
5 lanes:noconstruction
2 lanes:through
2 lanes:turnright
70 last_renovation
14201 layer
198 length
37 level
35683 lit
2 lit_1
1136 loc_name
2 man_made
6 maxaxleload
426 maxheight
4 maxheight:lanes
54788 maxspeed
35 maxspeed:bus
5 maxspeed:caravan
1501 maxspeed:conditional
13 maxspeed:forward
232 maxspeed:hgv
48 maxspeed:hgv:conditional
6 maxspeed:hgv:lanes
1 maxspeed:hgv:reason
43 maxspeed:lanes
1 maxspeed:lanes:conditional
12 maxspeed:motorcycle
11 maxspeed:motorcycle:type
6 maxspeed:noconstruction
42 maxspeed:normal
29 maxspeed:note
69 maxspeed:reason
1 maxspeed:recommended
177 maxspeed:source
16 maxspeed:trailer
2 maxspeed:turnlane
68 maxspeed:type
3328 maxspeed:variable
393 maxspeed:wet
3 maxspeed:wet:source
226 maxweight
3 maxweight:hgv:conditional
25 maxwidth:lanes
29 mindistance:hgv
2543 minspeed
7 minspeed:lane:left
7 minspeed:lane:middle
126 minspeed:lanes
2 mlc
2 mlc:oneway
8 moped
558 motorcar
8 motorcycle
53 motorroad
66 motor_vehicle
2 motor_vehicle:lanes
15 motorway
4127 name
5 name_loc
4 name:nl
11 name:pl
21 nat_name
3964 nat_ref
65 network
43 new_ref
25 noise_barrier
1 noise_barrier:right
888 note
3 note:change:lanes
2 note:change:lines
35 note:de
4 note:lanes
134 note:maxspeed
14 note:maxweight
13694 note:name
7 note:reg_name
2 old_name
104 old_ref
58832 oneway
3 open_date
85 opening_date
380 operator
145 operator:type
1247 osmarender:nameDirection
59 osmarender:renderName
149 overtaking
668 overtaking:bus
5 overtaking:bus:conditional
18 overtaking:caravan
51 overtaking:caravan:conditional
132 overtaking:conditional
2174 overtaking:hgv
2029 overtaking:hgv:conditional
101 overtaking:note
15 overtaking:tourist_bus
717 overtaking:trailer
721 overtaking:trailer:conditional
21 parking:lane:both
9126 placement
8 placement:end
9 placement:start
27 postal_code
2 preserved
1 priority_road
8 proposed
2 proposed:destination:lanes
32 proposed:lanes
9 proposed:turn:lanes
3 psv:lanes
58720 ref
24 ref:bridge
34 ref:lanes
97 ref:section
14831 reg_name
220 reg_name:wikipedia
21 route
11 scenery:category
1775 shoulder
12 shoulder:left
817 shoulder:right
12 shoulder:right:access
12 shoulder:right:line
12 shoulder:right:width
3 shoulder:width
47 sidewalk
1379 smoothness
3714 source
9 source:alt_name
5 source:bridge
12 source:classification
271 source:destination
2 source:destination:lanes
74 source:geometry
21 source:hazard
22 source:hazmat
6 source:hgv
18 source:highway
12 source:lanes
19614 source:lit
6 source:maxaxleload
6 source:maxaxleload:url
3 source:maxheight
20246 source:maxspeed
13 source:maxspeed:conditional
49 source:maxspeed:wet
13 source:motorroad
218 source:name
1 source:note
7 source:overtaking
21 source:parking:lane
25 source:position
432 source:reg_name
2 source:start_date
2 source:temporary
4 source:toll
4 source:toll:url
135 source:website
4 ssvz
747 start_date
51 strassen-nrw:abs
3 structure
20433 surface
6 survey:date
7 temporary:access
2 temporary:change:lanes
10 temporary:date_off
4 temporary:date_on
12 temporary:maxspeed
4 temporary:note
6286 tmc
29 TMC:cid_58:tabcd_1:Class
29 TMC:cid_58:tabcd_1:Direction
29 TMC:cid_58:tabcd_1:LCLversion
30 TMC:cid_58:tabcd_1:LocationCode
27 TMC:cid_58:tabcd_1:NextLocationCode
29 TMC:cid_58:tabcd_1:PrevLocationCode
117 toll
4 toll:bus
13 toll:hgv
6 toll:motorcycle
346 toll:N3
3 toll:operator
236 traffic_sign
6 trailer
33 transit:lanes
358 tunnel
6 tunnel:length
5 tunnel:name
3 turn
16429 turn:lanes
306 turn:lanes:forward
2 turn:lanes:historic
2 turn:lanes:noconstruction
25 type
2 url
11 website
852 width
19 width:lanes
5 width:noconstruction
12 wikidata
494 wikipedia
4 wikipedia:pl
46 zone:maxspeed
5904 zone:traffic
surface - values
grass bereits korrigiert ;)
//grep 'k="surface"' germany-motorway-ways.osm | sort | uniq -c
15965 <tag k="surface" v="asphalt"/>
4344 <tag k="surface" v="concrete"/>
1 <tag k="surface" v="concrete;asphalt"/>
6 <tag k="surface" v="concrete:plates"/>
2 <tag k="surface" v="grass"/>
115 <tag k="surface" v="paved"/>
maxspeed - values
sicher, dass einige Abschnitt keine living_streets sind?
//grep 'k="maxspeed"' germany-motorway-ways.osm | sort | uniq -c
5664 <tag k="maxspeed" v="100"/>
6 <tag k="maxspeed" v="110"/>
6755 <tag k="maxspeed" v="120"/>
3009 <tag k="maxspeed" v="130"/>
7 <tag k="maxspeed" v="140"/>
1 <tag k="maxspeed" v="160"/>
7 <tag k="maxspeed" v="10"/>
3 <tag k="maxspeed" v="20"/>
6 <tag k="maxspeed" v="30"/>
43 <tag k="maxspeed" v="40"/>
54 <tag k="maxspeed" v="50"/>
579 <tag k="maxspeed" v="60"/>
67 <tag k="maxspeed" v="70"/>
3058 <tag k="maxspeed" v="80"/>
25 <tag k="maxspeed" v="90"/>
31417 <tag k="maxspeed" v="none"/>
4070 <tag k="maxspeed" v="signals"/>
17 <tag k="maxspeed" v="variable"/>
source:maxspeed - values
//grep 'k="source:maxspeed"' germany-motorway-ways.osm | sort | uniq -c
7 <tag k="source:maxspeed" v="120 auf dynamischer Anzeige immer wegen folgender Baustelle"/>
24 <tag k="source:maxspeed" v="AT:motorway"/>
9 <tag k="source:maxspeed" v="Baustelle Stand 05/2011"/>
2 <tag k="source:maxspeed" v="BE:motorway"/>
3 <tag k="source:maxspeed" v="DE:112;DE:274-56"/>
6 <tag k="source:maxspeed" v="de:motorway"/>
15301 <tag k="source:maxspeed" v="DE:motorway"/>
1 <tag k="source:maxspeed" v="DE:motorway;http://www.mapillary.com/map/im/G821RkfMbcZnKUYIIcripQ"/>
29 <tag k="source:maxspeed" v="DE:motorway;sign"/>
59 <tag k="source:maxspeed" v="DE:rural"/>
19 <tag k="source:maxspeed" v="electronic_sign"/>
5 <tag k="source:maxspeed" v="https://www.mapillary.com/map/im/wpy-Y6hYyl0bp4zLQUjeIw"/>
2 <tag k="source:maxspeed" v="http://www.mapillary.com/map/im/jTxk-BtI73NG-yL4Cs1lQw"/>
1 <tag k="source:maxspeed" v="http://www.mapillary.com/map/im/-Yh2cGAjVVWbdzdmjSixuw"/>
1 <tag k="source:maxspeed" v="MapDust"/>
2 <tag k="source:maxspeed" v="mapdust ticket"/>
8 <tag k="source:maxspeed" v="Photo"/>
2 <tag k="source:maxspeed" v="PL:motorway"/>
4100 <tag k="source:maxspeed" v="sign"/>
16 <tag k="source:maxspeed" v="sign;07/2015 überwiegend fehlender Mittellinie"/>
129 <tag k="source:maxspeed" v="signals"/>
33 <tag k="source:maxspeed" v="signals,DE:motorway"/>
6 <tag k="source:maxspeed" v="sign;DE:motorway"/>
1 <tag k="source:maxspeed" v="sign;http://autobahn-bilder.de"/>
7 <tag k="source:maxspeed" v="skobbler Stand 2011-11-23"/>
3 <tag k="source:maxspeed" v="skobbler Stand 2012-01-07"/>
1 <tag k="source:maxspeed" v="Skobbler Stand 2012-10-20"/>
11 <tag k="source:maxspeed" v="Stand 2012-01-07"/>
456 <tag k="source:maxspeed" v="survey"/>
1 <tag k="source:maxspeed" v="through|through|merge_to_left"/>
1 <tag k="source:maxspeed" v="www.mapillary.com/map/im/Pbh87xHClMbsxX1Wwq7hSg"/>
source:lit - values
hmm, die Bilder auf autobahn-bilder.de sind mit copyright eingestuft, darf man die dann wirklich als Quelle verwenden?
//grep 'k="source:lit"' germany-motorway-ways.osm | sort | uniq -c
2 <tag k="source:lit" v="http://structurae.de/structures/data/index.cfm?id=s0017974"/>
4 <tag k="source:lit" v="http://www.autobahn-bilder.de/"/>
19560 <tag k="source:lit" v="http://www.autobahn-bilder.de"/>
8 <tag k="source:lit" v="http://www.autobahn-bilder.de;bing"/>
1 <tag k="source:lit" v="mapillary"/>
2 <tag k="source:lit" v="Mapillary"/>
36 <tag k="source:lit" v="survey"/>
1 <tag k="source:lit" v="www.autobahn-bilder.de"/>
lit - values
//grep 'k="lit"' germany-motorway-ways.osm | sort | uniq -c
14 <tag k="lit" v="24/7"/>
1 <tag k="lit" v="3"/>
2 <tag k="lit" v="60"/>
40 <tag k="lit" v="disused"/>
34766 <tag k="lit" v="no"/>
860 <tag k="lit" v="yes"/>
foot - values
ja, während bei horse und bicycle alles ok war, hier doch die Überraschung, dass man auf ein paar Abschnitt doch als Fußgänger unterwegs sein kann
//grep 'k="foot"' germany-motorway-ways.osm | sort | uniq -c
2494 <tag k="foot" v="no"/>
5 <tag k="foot" v="yes"/>
access - values
//grep 'k="access"' germany-motorway-ways.osm | sort | uniq -c
46 <tag k="access" v="no"/>
116 <tag k="access" v="yes"/>
ref - values
bereinigt um alle refs, die im Format A[Leerzeichen]Nummer waren
// grep 'k="ref"' germany-motorway-ways.osm | sort | uniq -c
14 <tag k="ref" v="A1"/>
16 <tag k="ref" v="A12"/>
13 <tag k="ref" v="A14"/>
1 <tag k="ref" v="A 1;A61"/>
26 <tag k="ref" v="A 1;A 61"/>
6 <tag k="ref" v="A 1; A 61"/>
1 <tag k="ref" v="A 1; B 268"/>
11 <tag k="ref" v="A2"/>
2 <tag k="ref" v="A21"/>
9 <tag k="ref" v="A2;A3"/>
9 <tag k="ref" v="A3"/>
2 <tag k="ref" v="A37"/>
4 <tag k="ref" v="A4"/>
2 <tag k="ref" v="A6"/>
7 <tag k="ref" v="A61"/>
2 <tag k="ref" v="A620"/>
2 <tag k="ref" v="A67"/>
14 <tag k="ref" v="A7"/>
6 <tag k="ref" v="A74"/>
2 <tag k="ref" v="A76"/>
2 <tag k="ref" v="A77"/>
13 <tag k="ref" v="A 7; Ring 3"/>
49 <tag k="ref" v="A8"/>
12 <tag k="ref" v="Autobahnzubringer N3−A98"/>
22 <tag k="ref" v="B 1"/>
15 <tag k="ref" v="B 10;B 28"/>
7 <tag k="ref" v="B 12;B 20"/>
1 <tag k="ref" v="B 202"/>
4 <tag k="ref" v="B 219"/>
35 <tag k="ref" v="B 28"/>
2 <tag k="ref" v="B 326"/>
15 <tag k="ref" v="B 33"/>
1 <tag k="ref" v="B 37"/>
2 <tag k="ref" v="B 4"/>
10 <tag k="ref" v="B 40"/>
2 <tag k="ref" v="B 41"/>
8 <tag k="ref" v="B 51"/>
12 <tag k="ref" v="B 6"/>
17 <tag k="ref" v="B 61"/>
2 <tag k="ref" v="B 75"/>
8 <tag k="ref" v="D5"/>
13 <tag k="ref" v="D8"/>
3 <tag k="ref" v="E40"/>
2 <tag k="ref" v="E42"/>
4 <tag k="ref" v="E 45"/>
33 <tag k="ref" v="L 124"/>
1 <tag k="ref" v="L 3047"/>
17 <tag k="ref" v="L 84"/>
note:name - values
Schön, das der Hinweis auf Wikipediaartikel gegeben ist, dann wäre es wohl auch sinniger gewesen, den Key wikipedia (nur an 494 ways gesetzt) zu verwenden, oder?
//grep 'k="note:name"' germany-motorway-ways.osm | sort | uniq -c
13674 <tag k="note:name" v="Der reg_name, sowie ggf. der loc_name sind dem zugehörigen Wikipediaartikel entnommen."/>
1 <tag k="note:name" v="Der reg_name, sowie ggf. der loc_name sind dem zugehörigen Wikipediaartikel entnommen -> de:Mainbrücke Hochheim"/>
1 <tag k="note:name" v="Der reg_name, sowie ggf. der loc_name sind dem zugehörigen Wikipediaartikel entnommen. -> de:Mainbrücke Hochheim"/>
8 <tag k="note:name" v="Einhausung Lövenich"/>
1 <tag k="note:name" v="mDer reg_name, sowie ggf. der loc_name sind dem zugehörigen Wikipediaartikel entnommen."/>
9 <tag k="note:name" v="reg_name, loc_name aus Wikipedia."/>