This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

osm2pgsql filtering tag

0

We would like to (as an example) import all highway but excluding track and many others. In our filter.style we did this (partial) :

...
node,way   highway      text         linear
...
node,way    highway:track           text    delete

but track are still there. Where did we miss something ?

asked 21 Mar '15, 09:16

maema's gravatar image

maema
11113
accept rate: 0%

1

So what are you trying with this filtering? To render only real roads or to import for routing?

(22 Mar '15, 13:34) iii

Just rendering. Not routing.

(22 Mar '15, 16:49) maema

Any reason why you don't alter the mapnik style? (sry no clie about patching o2p style file :/)

(22 Mar '15, 21:43) iii

One Answer:

0

We want to import Europe. In order to have a light database, we would like remove tons of things we dont need, like tree node, track, trafic_lights, crossing.... After we manage everything with QGIS.

answered 23 Mar '15, 13:27

maema's gravatar image

maema
11113
accept rate: 0%

edited 23 Mar '15, 13:28

Source code available on GitHub .