Re: [OSM-talk] Statistics on road network length?

2011-11-21 Thread Hermann Peifer
On 20/11/2011 20:48, Frederik Ramm wrote: http://www.remote.org/frederik/tmp/osmium_road_length.cpp Does all of Germany (from a PBF file) in less than 5 minutes and using less than 2 GB of RAM. I haven't got the time to do this properly... Thanks for this one. I just managed to do

Re: [OSM-talk] Statistics on road network length?

2011-11-20 Thread Frederik Ramm
Hi, On 11/18/2011 10:58 PM, Frederik Ramm wrote: On Fri, 18 Nov 2011 11:56:53 -0800 (PST) ThomasBtoba0...@yahoo.de wrote: not sure we are using the same script. With osmosis --read-pbf file=/home/wicking/osm/germany.osm.pbf --write-xml file=- | perl osm-length-2.pl /dev/null I am 15 minutes

Re: [OSM-talk] Statistics on road network length?

2011-11-19 Thread Hermann Peifer
On 18/11/2011 23:30, Jo wrote: Concerning the issue with dual carriageways, I am using a brute-force approach and divide the calculated distance by 2 if these conditions are true: highway ~ /^(motorway|trunk|primary|secondary|tertiary)/ oneway ~ /yes|true|1/ You probably want to add

Re: [OSM-talk] Statistics on road network length?

2011-11-19 Thread ThomasB
unfortunately osmium(osmjs) ends with /# Fatal error in CALL_AND_RETRY_2 # Allocation failed - process out of memory/ although there is still sufficient (physical) memory available. A change of osmjs -l array - disk did not help. Frederik Ramm wrote: Hi, On Fri, 18 Nov 2011 11:56:53 -0800

Re: [OSM-talk] Statistics on road network length?

2011-11-19 Thread Jochen Topf
to run it on? Jochen On Sat, Nov 19, 2011 at 08:52:39AM -0800, ThomasB wrote: Date: Sat, 19 Nov 2011 08:52:39 -0800 (PST) From: ThomasB toba0...@yahoo.de To: talk@openstreetmap.org Subject: Re: [OSM-talk] Statistics on road network length? unfortunately osmium(osmjs) ends with /# Fatal

Re: [OSM-talk] Statistics on road network length?

2011-11-18 Thread ThomasB
!i! wrote: Well even if it's bad style to ask if someone else can do the job, but couldn't we create an addon for existing statistic services, that can calculate this values? I contacted the people behind http://osmstats.altogetherlost.com but even if they hope to provide some country

Re: [OSM-talk] Statistics on road network length?

2011-11-18 Thread Hermann Peifer
On 18/11/2011 19:20, ThomasB wrote: I guess there are not so many people out there having a machine with more than 20GB RAM. I tried to calculate Germany with a 2009 planet file but failed, I guess because of RAM. So calculating large countries with 2011 data may require RAM well in excess of

Re: [OSM-talk] Statistics on road network length?

2011-11-18 Thread ThomasB
Hermann Peifer wrote: One idea could be to use Geofabrik's OSM files by country. My rather crude script needs 2 seconds for processing Albania and 6 minutes each for France and Germany (on a machine with 8G RAM). See below. not sure we are using the same script. With osmosis --read-pbf

Re: [OSM-talk] Statistics on road network length?

2011-11-18 Thread Frederik Ramm
Hi, On Fri, 18 Nov 2011 11:56:53 -0800 (PST) ThomasB toba0...@yahoo.de wrote: not sure we are using the same script. With osmosis --read-pbf file=/home/wicking/osm/germany.osm.pbf --write-xml file=- | perl osm-length-2.pl /dev/null I am 15 minutes after the start at 14GB RAM usage and still

Re: [OSM-talk] Statistics on road network length?

2011-11-18 Thread Jo
Concerning the issue with dual carriageways, I am using a brute-force approach and divide the calculated distance by 2 if these conditions are true: highway ~ /^(motorway|trunk|primary|secondary|tertiary)/  oneway ~ /yes|true|1/ You probably want to add oneway=-1 to that list. There are

Re: [OSM-talk] Statistics on road network length?

2011-11-16 Thread Martin Koppenhoefer
Am 16. November 2011 12:22 schrieb Matthias Meißer dig...@arcor.de: Hi, currently I looking for some analysis on the length of the OSM road/footway networks. Even this is just a very simple compare, it's a very common way to compare data completeness in professional GIS scene. For Italy

Re: [OSM-talk] Statistics on road network length?

2011-11-16 Thread Maurizio Napolitano
For Italy there is detailed statistics available on gfoss.it : http://www.gfoss.it/osm/stat/ AFAIK these are done by Diego Guidotti. Diego is available to the release of the code :) ___ talk mailing list talk@openstreetmap.org