[OSM-talk] Statistics on road network length?
ThomasB
toba0211 at yahoo.de
Sat Nov 19 16:52:39 GMT 2011
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 (PST)
> ThomasB <toba0211@> 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
>
> _______________________________________________
> talk mailing list
> talk@
> http://lists.openstreetmap.org/listinfo/talk
>
--
View this message in context: http://gis.638310.n2.nabble.com/Statistics-on-road-network-length-tp7000059p7011662.html
Sent from the General Discussion mailing list archive at Nabble.com.
More information about the talk
mailing list