[OSM-talk] OSMXapi

Daniel Taylor daniel.taylor at danielt.com
Fri Mar 21 21:58:46 GMT 2008


Frederik Ramm wrote:
> Hi,
> 
>> daniel at earth:~/Desktop/osm$ java -jar osmosis-0.24/osmosis.jar  
>> --read-xml file=data.osm --bb left=-2.6951453125 bottom=53.53062734375  
>> right=2.6072546875 top=53.57457265625 completeRelations=no  
> 
> [...]
>> Exception in thread "Thread-1-read-xml" java.lang.OutOfMemoryError: Java  
>> heap space
> 
> Try adding the Java command line parameter "-Xmx1024m". 
> 
> Bye
> Frederik
> 

Now its working! Thank you very much!

The working command is:

java -Xmx1024m -jar osmosis-0.24/osmosis.jar --read-xml file=data.osm 
--bb left=-2.6951453125 bottom=53.53062734375 right=2.6072546875 
top=53.57457265625 completeRelations=no completeWays=no 
idTrackerType=BitSet --write-xml file=data.osm

Finally a nice small map! Perfect.

Thank you for your help everyone,

- Daniel




More information about the talk mailing list