<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi All,<div><br></div><div>Trying to load OSM data for the USA into PostGres 9.0 with PostGIS. Downloaded the .pbf extracts for the different US regions from Geofabrik, combined them with Osmosis, and wrote the result to uncompressed XML.</div>

<div><br></div><div>Now, osm2pgsql fails with the following error:</div><div><br></div><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

<div><div>Processing: Node(62940k) Way(0k) Relation(0k)pgsql_nodes_set - bad result during COPY, data 114176303   415528523       -914342252      \N</div></div></blockquote><div><br></div><div>Command was:</div><div><br>
</div>
<blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

<div>osm2pgsql -S ../osm2pgsql/default.style --slim -d gis -C 2048 ~/OSM/workdir/USA.osm</div><div><br></div></blockquote>Machine has tons of memory, and running htop during the most recent attempt, I didn't get anywhere near close to maxing out.<div>

<br></div><div>Do you think this might have something to do with the merging of the different extracts corrupting the data somehow? I've searched around for the answer, and found this thread, but it hasn't helped:</div>

<div><br></div><div><a href="http://www.mail-archive.com/dev@openstreetmap.org/msg11280.html" target="_blank" style="color: rgb(0, 0, 204); ">http://www.mail-archive.com/dev@openstreetmap.org/msg11280.html</a></div><div>
<br>
</div><div>Thanks,<br><font color="#888888">Will</font></div></span>