[OSM-talk] cannot process keep right dump in osmosis

Harald Kleiner e9625163 at gmx.at
Thu Apr 15 22:45:04 BST 2010


Hi!

> So the problem is that keepright does not escape the # character. 

I don't think so!
# characters are valid characters everywhere in xml. Even though the 
part looks like a unicode entitiy, it isn't one. Unicode entities look 
like this: #&1234;

I can reproduce your .osm file but I cannot reproduce the stop of 
osmosis on my 4GB-RAM-system. So I think you're most probably having a 
problem with the size of the .osm file and your RAM.

You can try two things:
1: give more RAM to osmosis (add the line
JAVACMD_OPTIONS=" -Xmx2500m "
in your file ~/.osmosis (create it if it doesn't already exist)

2: (even better): pre-filter the errors list while creating your .osm file.
Use the planet cutting diagram (http://keepright.ipax.at/planet.jpg) to 
determine the schema number you're interested in and change the awk 
script to output just lines in your schema. This will reduce the size of 
your planet file and make osmosis happier.

best regards,

Harald






More information about the talk mailing list