[OSM-dev] osm2pgsql: Importing several Geofabrik OSM files
Jon Burgess
jburgess777 at googlemail.com
Sat Aug 1 00:05:42 BST 2009
On Thu, 2009-07-30 at 16:40 +0200, Jan-Benedict Glaw wrote:
> On Thu, 2009-07-30 16:34:35 +0200, Frederik Ramm <frederik at remote.org>
> wrote:
> > Jan-Benedict Glaw wrote:
> > > I just tried importing germany.osm.bz2 and denmark.osm.bz2 from
> > > http://download.geofabrik.de/osm/ . However, importing the second
> > > file after the first one failed due to duplicate ways. Just hacked
> > > osm2pgsql to use ACTION_MODIFY instead of ACTION_CREATE, which
> seems
> > > to simply work.
> >
> > Apart from the fact that the Geofabrik extracts are made using the
> > Osmosis "clipIncompleteEntities" switch, so that when you update a
> > cross-border way it will lose the elements from the other side of
> the
> > border. Expect problems along the borders.
>
> I already noticed that. It's working "good enough" for me :-) apart
> from the failure during import.
I'm tempted to make this behaviour conditional on the --append flag.
The diff import already did something similar to avoid problems loading
diffs on top of inconsistent planet dumps.
Jon
More information about the dev
mailing list