Why do I need to specify the style when importing data to postgis? How should that work with multiple styles?
Why do I need to specify the style when importing data to postgis? How should that work with multiple styles?
The slightly longer version:
I'd like to setup mapnik, so that it supports multiple styles.
So far I have managed to get a tile server set up by following the instructions for Ubuntu 18.04 on [switch2osm.org][1]
(and working around a couple of problems while doing that).
Having done that I want to add another style(osm-bright), but when I look at the installation instructions of the "original" openstreetmap.org style
[https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md][2]
then I see that I would have needed to specify that style already when importing the data to postgis:
osm2pgsql -d gis ~/path/to/data.osm.pbf --style openstreetmap-carto.style
openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua
**Why does the style influence the database?
How can I get multiple style to work?**
(Like at the german site [http://www.openstreetmap.de/karte.html][3] where I can switch between styles on the right.)
[1]: https://switch2osm.org/manually-building-a-tile-server-18-04-lts/
[2]: https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md
[3]: http://www.openstreetmap.de/karte.html