- I get the USA country boundary by downloading http://tile.openstreetmap.org/world_boundaries-spherical.tgz
- Then I extract the polygon information of USA country boundary:
- After that, I try to extract the USA OSM data:
java -Xmx1048m -jar osmosis.jar --rx planet-090225.osm.gz --bp polygon.txt --wx USA.osm
Everything goes well, but the osmsis collapes when the USA.osm come up to 44.9 Gigabyte. The error is something about “outofmemory…”. So, I was wondering whether it is because the USA area is too big and the data is too large to do such a job?
Please help! Thank you!