Is it too big for OSMSIS to clip all the USA OSM data?

Hello!

  1. I get the USA country boundary by downloading http://tile.openstreetmap.org/world_boundaries-spherical.tgz
  2. 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
  3. 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

You should post this to the osmosis-dev -list. or on dev@openstreetmap.org .
I don’t think Gregg is monitoring this forum.

Marcus