<div dir="ltr">On Wed, Aug 27, 2008 at 3:48 PM,  <span dir="ltr"><<a href="mailto:simon@mungewell.org">simon@mungewell.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
><br>
> What version of Osmosis are you using, because I added that feature<br>
> (writing<br>
> of the bound element) a while ago, so it should work if your input file<br>
> has<br>
> a bound element.<br>
><br>
<br>
</div>Hi Karl,<br>
I am use 'osmosis-latest'/version 0.29 downloaded yesterday.<br>
<br>
The problem may be that the source data files do not contain the bound<br>
element itself, and therefore it might not be transfer to the output.<br>
<br>
Source data is made with mkcntr2.pl (for contours) and OSM data requested<br>
via XAPI with:<br>
wget -O crowsnest.osm<br>
<a href="http://www.informationfreeway.org/api/0.5/*%5Bbbox=-115,49,-114,50%5D" target="_blank">http://www.informationfreeway.org/api/0.5/*[bbox=-115,49,-114,50]</a><br>
<br>
Head of 'crowsnest.osm' is<br>
--<br>
<?xml version='1.0' standalone='no'?><br>
<osm version='0.5' generator='osmxapi: OSM Extended API'<br>
xmlns:osmxapi='http:&#47;&#47;<a href="http://www.informationfreeway.org" target="_blank">www.informationfreeway.org</a>&#47;osmxapi&#47;0.5'<br>
osmxapi:uri='&#47;api&#47;0.5&#47;*%5bbbox=-115,49,-114,50%5d'<br>
osmxapi:planetDate='200808262236' osmxapi:copyright='2008 OpenStreetMap<br>
contributors' osmxapi:instance='zappy2'><br>
  <node id='26655039' lat='49.0000002' lon='-110.0000001' user='srw777'<br>
osmxapi:users='srw777' timestamp='2007-03-20T22:11:53Z'><br>
  </node><br>
--<br>
<br>
<br>
I am using osmosis to merge the OSM source with contours (after sorting<br>
both) with the command<br>
--<br>
java -jar osmosis.jar --read-xml temp1.osm --read-xml temp2.osm --merge \<br>
        --bb completeWays=yes top=50 bottom=49 left=-115 right=-114 \<br>
        --write-xml temp.osm<br>
--<br>
<br>
Head of 'temp.osm' is<br>
--<br>
<?xml version='1.0' encoding='UTF-8'?><br>
<osm version="0.5" generator="Osmosis 0.29"><br>
  <node id="27611078" timestamp="2007-04-25T03:42:36Z" user="NytOwl"<br>
lat="50.0015304" lon="-114.917867"/><br>
<font color="#888888">--<br>
<br>
Hopefully it's something simple going wrong.<br>
Simon<br>
</font></blockquote></div><br>You're right. It's because the source files don't have bounds. If you have only a couple files, you could insert a dummy bound element before the first node. It should work as
long as it includes the area that you're cropping with --bb. You could
just make it span the entire planet, like <bound box="-90,-180,90,180"
origin="osmxapi"/> and then Osmosis will cut it down to your bounding box.<br>
<br>
Karl<br><br></div>