<div class="gmail_quote">On Wed, Jan 12, 2011 at 6:12 PM, Mateusz L <span dir="ltr"><<a href="mailto:mateuszzz88@tlen.pl">mateuszzz88@tlen.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Ian Dees wrote:<br>
<br>
> (...)<br>
<div class="im">> Once this is finished, you should have a database that allows you to<br>
> recreate the OSM XML data for bounding boxes of any size. Keep in mind<br>
> that using an entire planet with this method will require 360GB or so and<br>
> take a few days to import (depending on your disk speed).<br>
><br>
<br>
</div>Hi, thanks for your answer.<br>
I did as you advised and now I have database of my country (checked by $psql<br>
osm and select * from nodes limit 10; ). Now I need sth to serve the data<br>
over network. Are there any tools avilable, preferably cgi-scripts?<br>
If not, I can code sth tailor-made, BUT I have one problem with osmosis:<br>
I understand that to read the data from a bounding box i run command:<br>
<br>
$bin/osmosis \<br>
--read-pgsql host="localhost" database="osm" user="osmuser" password="osm" \<br>
--bounding-box top=49.5138 left=10.9351 bottom=49.3866 right=11.201 \<br>
--write-xml file="-"<br>
<br>
or even simpler<br>
$bin/osmosis --read-pgsql host="localhost" database="osm" user="osmuser"<br>
password="osm" --write-xml file="test.osm"</blockquote><div><br></div><div>You need to use the --dataset-bounding-box argument to grab data out of the database.</div><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<a href="http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--dataset-bounding-box_.28--dbb.29">http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--dataset-bounding-box_.28--dbb.29</a></div><div><br></div><div>
<a href="http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--dataset-bounding-box_.28--dbb.29"></a>If you only want to expose bounding box queries I can clean up the code a bit and release a bounding-box only Java servlet if you're interested.</div>
</div>