[OSM-dev] planet_osm2txt with planet-060818?

Joerg Ostertag (OSM Munich/Germany) openstreetmap at ostertag.name
Mon Aug 21 20:40:59 BST 2006


On Monday 21 August 2006 17:47, Nick Whitelegg wrote:
> > There is I think a strong need for a utility to only put a given tile of
> > planet.osm into a database, that way people can easily set up localised
> > planet-based databases. The trouble is a) the checks slow it down
> > significantly, (e.g. using REXML and the July planet.osm took a day to
> > put the UK OSM data into Freemap) and b) reading in all the nodes into
> > memory (necessary for filtering out segments) takes up a lot of memory -
> > by my estimation 320MB, requiring a 512MB box, so doable on the average
> > newish desktop PC but not, say, a 128MB virtual machine :-|
>
> Sorry - don't think the memory requirements would actually be that high, as
> only those nodes from the bounding box really need to be read in, then
> their *existence* could be checked when it comes to segment filtering.
>
> As Steve says libxml is probably the way to go here, if I get a spare few
> hours the next week or so I'll give it a go, based on Dee's VB solution and
> others.

I just checked the new area filter support in planet_osm2txt.pl into svn. The 
memory footage now is 150MB for europe. Does that sound better than 
before ;-)

Comments welcome.

-
Joerg




More information about the dev mailing list