[OSM-dev] Merging pbf files problem?

Will Wilson wilson.william at gmail.com
Mon Dec 20 22:39:40 GMT 2010


On Mon, Dec 20, 2010 at 5:26 PM, Jon Burgess <jburgess777 at gmail.com> wrote:

> On Mon, 2010-12-20 at 17:07 -0500, Will Wilson wrote:
> > 1) Trying to use osm2pgsql to import the merged .pbf file directly
> > died with a generic error immediately (as opposed to importing the
> > merged XML, which dies 10-15 minutes in). Maybe an error in Osmosis'
> > pbf handling?
>
> Is the error message the same?
>
>
Nope, just:

Reading in file: /home/will/OSM/workdir/USA.osm.pbf
Unable to open /home/will/OSM/workdir/USA.osm.pbf
Error occurred, cleaning up



> > 2) What's the expected behavior for Osmosis when merging contiguous
> > but non-overlapping extracts? Would I have gotten the same problem if
> > I'd started with .osm.bz2 ?
>
> Since the USA is such a large proportion of the whole planet file
> (probably over 50%) I believe most people import the whole planet file
> instead of trying to extract the US data.

On Mon, Dec 20, 2010 at 5:20 PM, Frederik Ramm <frederik at remote.org> wrote:
>
> 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.


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?

Also, does .pbf format support changesets yet?

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.
>

Ahh, well that's very good information to have. Looks like I'll have to find
another way.

Thanks a lot,
~W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20101220/fe5f9083/attachment.html>


More information about the dev mailing list