Open kocio-pl opened 7 years ago
A Mapnik style file can connect to more than one database. It sounds like what you want to do is best covered by a localconfig
Thanks, I will try if it really works for me. However it would be much easier to have a list.
I was shown a multi-location localconfig once, which would be handy:
https://github.com/kosmtik/kosmtik/issues/159#issuecomment-240774850
but it lacks important line about using database source (from dbname[map_id]). How should it look like?
I'd like to have a list of database names to switch in UI. Currently we use
gis
by default, but I try to render different things, importing data can be very slow and PostgreSQL doesn't provide tools for this (like database name pointer/alias), so I createdgis2
database and switch between them with a script:However:
Choosing database connection in Kosmtik would make database switching fast and safe.