[Talk-de] highway stats
GS
gerhardschwanz at yahoo.de
So Mär 22 09:55:03 UTC 2009
moin,
ich habe eben ein kleines programm geschrieben, welches die weglänge für
alle highway:* ausgibt.
@markus: können wir evtl. auch für die oberpfalz benutzen.
http://www.gary68.de/osm/prg/highwaystat-latest.pl
eines meiner perl module wird auch benötigt!
http://www.gary68.de/osm/prg/osm-latest.pm
als parameter bekommt das programm die osm datei
Ausgabe etwa:
highwaystat.pl 1.0 BETA (001) for file ../../osmdata/saarland.osm
highway:bridleway 2.40 km
highway:bus_stop 0.04 km
highway:construction 0.76 km
highway:cycleway 191.61 km
highway:footway 333.10 km
highway:living_street 45.47 km
highway:motorway 497.20 km
highway:motorway_link 97.49 km
highway:path 346.15 km
highway:path; track 1.07 km
highway:path; track; footway 1.19 km
highway:pedestrian 17.10 km
highway:primary 377.86 km
highway:primary_link 9.41 km
highway:residential 2354.76 km
highway:road 5.06 km
highway:secondary 1392.34 km
highway:service 198.39 km
highway:steps 12.80 km
highway:tertiary 309.66 km
highway:track 1964.94 km
highway:track; footway 1.22 km
highway:trunk 9.98 km
highway:trunk_link 0.79 km
highway:unclassified 467.00 km
highway:unsurfaced 1.07 km
highway_alt_1:primary 1.86 km
INFO: finished after 0 hours, 0 minutes and 9 seconds
ciao
gary68
gerhard
On Sat, 2009-03-21 at 14:55 +0200, Tomas Straupis wrote:
> Hello
>
> Is there an app to calculate length of given types of ways in .osm file?
> To get something like this:
> Total length of highways: 100000km
> Total length of footpaths: 20000km
> Total length of railways: 50000km
>
> Thank you
>
Mehr Informationen über die Mailingliste Talk-de