omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
719 stars 157 forks source link

Importing Route Relations #107

Closed ewestern closed 8 years ago

ewestern commented 8 years ago

I'm having trouble importing route relations. Here is the mapping I'm using; here is the pbf, and here is an example of a relation that I am expecting to be imported.

The linestrings indicated in the mapping are imported fine, but both the routes and route_members tables are empty. Am I missing something? Thanks

ImreSamu commented 8 years ago

Am I missing something?

Quick fix:

With load_all: true your mapping is working for me ( with hungarian data )

ewestern commented 8 years ago

Great, that worked. I wonder, though, which tags were necessary for creating the relation tables that weren't getting read into the cache. It seems as though you should be able to create the tables without necessarily reading all of the metadata.

ImreSamu commented 8 years ago

... without necessarily reading all of the metadata.

You can manually pre-filter the input data with the Osmfilter tool.

[ but this method ( based on my experience) needs a lot of testing !! ]

olt commented 8 years ago

Normally Imposm caches all tags that are referenced in the mappings and columns, but this is not implemented for relations and relation_members. load_all is the right workaround for this at the moment.

ewestern commented 8 years ago

Got it. Thanks for the help.