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

Two OSM maps imported in two different dbs

0

We already filtered amenities and shops from a o5m file and then converted that into a osm file. The next step is importing that to a new db.

After that is it possible to have an entry on renderd.conf to look at the new tiles without amenities and shops in other path? Like so

/hot/0/0/0.png < tiles with shops and amenities

/custom/0/0/0.png < tiles without shops and amenities

Do we have to make a copy of mapnik.xml pointing to the new db as well?

asked 28 Apr '18, 17:27

gfitz's gravatar image

gfitz
46347
accept rate: 0%


One Answer:

1

Yes and yes.

The "ajt" section in this example is a map style. Just create another section pointing at the other mapnik.xml to create another map style. It would have "URI=/custom/" in your example.

As you've mentioned, you'll need to manually edit either the second mapnik.xml to point at the alternative database, or edit a second map style before creating mapnik.xml from it. I tend to do the former.

answered 21 May '18, 01:06

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%