<div class="gmail_quote">2009/2/26 Emilie Laffray <span dir="ltr"><<a href="mailto:emilie.laffray@gmail.com">emilie.laffray@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I have been trying to play with the planet file and extract<br>
information out of it. However, it crashed on me with an out of memory<br>
memory regarding heap space.<br>
I used the following command:<br>
osmosis --read-xml file="planet-090218.osm" enableDateParsing="no"<br>
--way-key-value<br>
keyValueList="highway.motorway,highway.motorway_link,highway.trunk,highway.trunk_link,highway.primary,highway.primary_link,highway.secondary,highway.tertiary,highway.unclassified,highway.road,highway.residential,highway.living_street,highway.service,highway.track,highway.pedestrian,highway.bus_guideway,highway.path,highway.cycleway,highway.footway,highway.bridleway,highway.byway,highway.steps,highway.toll_booth,highway.ford,cycleway.lane,cycleway.track,cycleway.opposite_lane,opposite_track,cycleway.opposite,tracktype.grade1,tracktype.grade2,tracktype.grade3,tracktype.grade4,tracktype.grade5,waterway.stream,waterway.river,waterway.riverbank,waterway.canal,waterway.dock,waterway.weir,waterway.dam"<br>

--used-node --migrate --write-xml-0.6<br>
file="E:\world\dump\roads\roads.osm"<br>
<br>
I would love to avoid as much as possible to break the planet into<br>
bounding boxes, for the sake of simplicity initially. Maybe it is<br>
unrealistic but I would like to keep it that way.<br>
</blockquote><div><br>In osmosis.bat is the following line...<br>REM # JAVACMD_OPTIONS - The options to append to the java command, typically used to modify jvm settings such as max memory.<br><br>so, either modify osmosis.bat or, create a new file called osmosis.bat in the all users profile directory or your profile directory, to include a 'set JAVACMD_OPTIONS = -Xmx1024M' line (to set maximum memory usage to 1GB, if you have enough RAM)...<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am using the planet file uncompressed with osmosis 0.30.<br>
Is there something I can do? Spending hours and then seeing your task<br>
crashing is pretty disheartening.<br>
Also, is there a way to use multicore efficiently? I have looked at<br>
the pages but I didn't see any convincing number. I was thinking of<br>
maybe of getting the file to be read in one drive and writing to the<br>
other one, therefore avoiding the IO hit of reading and writing at the<br>
same time on the same drive.<br>
</blockquote><div><br>Using a gzipped planet input and gzipped output may be quicker if your facing an IO bottleneck... the compression and decompression will use more CPU, but, significantly reduce the IO... <br></div></div>
<br>d<br>