[OSM-talk] Statistics on road network length?

Frederik Ramm frederik at remote.org
Fri Nov 18 21:58:36 GMT 2011


Hi,

On Fri, 18 Nov 2011 11:56:53 -0800 (PST)
ThomasB <toba0211 at 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
> increasing.

Yes, the osm-length perl script wastes a lot of memory by keeping all
nodes in a Perl hash. It would be relatively easy to write an efficient
road length calculator based on the Osmium framework; that one should
then work with a far smaller memory footprint.

Bye
Frederik



More information about the talk mailing list