On Mon, Dec 20, 2010 at 5:26 PM, Jon Burgess <span dir="ltr"><<a href="mailto:jburgess777@gmail.com">jburgess777@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 2010-12-20 at 17:07 -0500, Will Wilson wrote:<br>
> 1) Trying to use osm2pgsql to import the merged .pbf file directly<br>
> died with a generic error immediately (as opposed to importing the<br>
> merged XML, which dies 10-15 minutes in). Maybe an error in Osmosis'<br>
> pbf handling?<br>
<br>
</div>Is the error message the same?<br>
<br></blockquote><div><br></div><div>Nope, just:</div><div><br></div><div><div>Reading in file: /home/will/OSM/workdir/USA.osm.pbf</div><div>Unable to open /home/will/OSM/workdir/USA.osm.pbf</div><div>Error occurred, cleaning up</div>
</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> 2) What's the expected behavior for Osmosis when merging contiguous<br>
> but non-overlapping extracts? Would I have gotten the same problem if<br>
> I'd started with .osm.bz2 ?<br></div>
<br>
Since the USA is such a large proportion of the whole planet file<br>
(probably over 50%) I believe most people import the whole planet file<br>
instead of trying to extract the US data.</blockquote><div><meta http-equiv="content-type" content="text/html; charset=utf-8">On Mon, Dec 20, 2010 at 5:20 PM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
If Jon's suspicion is true (likely), download the full planet file instead and run osm2pgsql with a bounding box option to restrict it to the US.</blockquote><div> </div><div>Yeah, my initial plan was to do what the two of you suggest, and just use planet.osm with a bounding box; but there's next-to-zero documentation that I could find on keeping a subset of planet.osm (with bbox or bpolygon) updated with daily or hourly diffs. Any reading suggestions?</div>
<div><br></div><div>Also, does .pbf format support changesets yet?</div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<div class="im"></div>Yes, Osmosis does not have a de-duplication option. Furthermore, since Geofabrik extracts are all done with clipIncompleteEntities=true, any simple de-duplication would you leave with either one or the other half of a split-boundary-crossing way.<br>
</blockquote><div><br></div><div>Ahh, well that's very good information to have. Looks like I'll have to find another way.</div><div><br></div><div>Thanks a lot,</div><div>~W </div></div></div>