[OSM-talk] osmosis --tee and heap space

Frederik Ramm frederik at remote.org
Wed Aug 24 19:39:46 BST 2011


Hi,

Martijn van Exel wrote:
> I am trying to cut a large number (hundreds) of polygons out of a
> planet file, using the --tee option in osmosis to do it all in one go.
> It fails with a heap space error. My heap space is set to 2G. 

Maybe that's not enough then ;)

> What I'm trying to do is extract OSM data for each of the central
> cities of the US metro areas[1]. If there's a better way to do that,
> I'd love to hear about it.

If you need polygons, use

https://github.com/MaZderMind/osm-history-splitter

if you can work with bounding boxes, then

http://trac.openstreetmap.org/browser/applications/rendering/gosmore/bboxSplit.cpp

is even faster.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the talk mailing list