Can you try downloading this file?<br><a href="http://www.bretth.com/empty.osm">http://www.bretth.com/empty.osm</a><br><br>And then follow Frederik's instructions as below.<br><br>osmosis --rx faulty.osm --rx empty.osm --dc --sort-change-0.6 --<span>simc</span>
--wxc good.osc<br>
osmosis --rxc good.osc --rx empty.osm --ac --wx good.osm<br>
<br>
<br><div class="gmail_quote">On Mon, May 10, 2010 at 8:38 PM, Ibrahim Bouchrika <span dir="ltr"><<a href="mailto:ibrahim_bouchrika@hotmail.com">ibrahim_bouchrika@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
I tried finding another source of osm-data, but I haven't found anythig yet. openstreetmap itself only alows dumps of less then 50k nodes, and downloading the whole planet file is a bit of overkill (+ it wouldn't fit on my hard drive anymore).<br>
<br>So I guess i'm stuck trying with the cloudmade file, in which case brett's proposal still is the best idea yet...if it would work properly. I still haven't figured out how to get that idea working, and I hope someone could help me further out on this!<br>
<div class="hm"><br><hr>From: <a href="mailto:ibrahim_bouchrika@hotmail.com" target="_blank">ibrahim_bouchrika@hotmail.com</a><br>To: <a href="mailto:osmosis-dev@openstreetmap.org" target="_blank">osmosis-dev@openstreetmap.org</a><br>
Date: Tue, 4 May 2010 14:29:51 +0000</div><div class="im"><br>Subject: Re: [osmosis-dev] Can't load osm file to PostGRESql<br><br>
I deleted the first line of the file, which started with <xml. The first line is now <osm version="0.6" generator="Osmosis 0.31.1">, but the same error persists.<br><br>> Date: Tue, 4 May 2010 16:09:50 +0200<br>
> From: <a href="mailto:frederik@remote.org" target="_blank">frederik@remote.org</a><br>> To: <a href="mailto:ibrahim_bouchrika@hotmail.com" target="_blank">ibrahim_bouchrika@hotmail.com</a><br>> CC: <a href="mailto:osmosis-dev@openstreetmap.org" target="_blank">osmosis-dev@openstreetmap.org</a><br>
> Subject: Re: [osmosis-dev] Can't load osm file to PostGRESql<br>> <br>> Hi,<br>> <br>> Ibrahim Bouchrika wrote:<br>> > Your idea seams nifty, although it's giving an error on the --rx <br>> command. I don't know Osmosis well enough to figure out where the error <br>
> comes from. Is it just an error in the syntax or is it because of the <br>> osm-file?<br>> <br>> > Caused by: org.xml.sax.SAXParseException: Content is not allowed in <br>> prolog.<br>> <br>> Can you make sure your empty.osm and your amsterdam.osm begin with the <br>
> characters<br>> <br>> <osm<br>> <br>> and nothing else?<br>> <br>> Bye<br>> Frederik<br>> <br>> <br>> <br> <br><hr>The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. <a href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4" target="_blank">Get busy.</a> <br>
</div><div class="im"><hr>Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2" target="_blank">See how.</a></div>
</div>
<br>_______________________________________________<br>
osmosis-dev mailing list<br>
<a href="mailto:osmosis-dev@openstreetmap.org">osmosis-dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/osmosis-dev" target="_blank">http://lists.openstreetmap.org/listinfo/osmosis-dev</a><br>
<br></blockquote></div><br>