Hello!
- 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:
USA.txt
1
-87.420395 30.4809460002525
-88.023621 30.2194400002489
-88.132767 30.3144420002502
…
END
END - 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!
Xintao