Comments (6)
Frankly your issue is off-topic here. This is about localisation and not about how to set up a tile-server or even using some kind of carto style. Thus I will give you a few hints and will then close this.
- For how to set up a localized Tile-Server refer to the Manual in German Carto style: https://github.com/giggls/openstreetmap-carto-de/blob/master/INSTALL-de.md
- For rendering tests use the script https://github.com/giggls/openstreetmap-carto-de/blob/master/scripts/render_single_tile.py I am providing in my style repository. Setting up mod-tile and renderd/tirex is then yout next step if rendering using this scripts works.
- My style uses views which are called like the tables in the upstream style to maintain compatibility (see https://github.com/giggls/openstreetmap-carto-de/blob/master/INSTALL-de.md)
- If you do not like German Map colors use upstream+l10n branch.
from osml10n.
an update..
I have a script that resets the DB (drop, reinstall extensions, set perms, reload external etc). Then i use osm2pgsql to load the data.
This is the command that i'm using when loading with osml10n:
sudo -u postgres /osm2/osm2pgsql/build/osm2pgsql --verbose --output=flex --slim --database=gis --hstore --multi-geometry --number-processes=32 --style=/osml10n/openstreetmap-carto-hstore-only-l10n.lua --cache=150000 /osm2/osm2pgsql/build/shikoku-latest.osm.pbf
When i use this, i get an error in syslog.
renderd[82858]: ** (process:82858): ERROR **: 03:06:34.307: An error occurred while loading the map layer 'default': Postgis Plugin: ERROR: relation "planet_osm_polygon" does not exist
if i use this command, it works perfectly, but no flex and with local labels.
sudo -u postgres /osm2/osm2pgsql/build/osm2pgsql --slim --database=gis --drop --flat-nodes=/home/osm/nodes.cache --hstore --multi-geometry --number-processes=32 --tag-transform-script=/home/osm/openstreetmap-carto/openstreetmap-carto.lua --style=/home/osm/openstreetmap-carto/openstreetmap-carto.style --cache=150000 /osm2/osm2pgsql/build/shikoku-latest.osm.pbf
from osml10n.
i can see that the relations do not exist, so i looked in the lua file and can see that the local prefix is "planet_osm_hstore" so i changed that to "planet_osm", but thats caused some other column errors. So i need to dig into that more.
do i need a custom style for renderd to match the osm2pgsql flex output lua?
from osml10n.
Understood, thanks for the hints.
from osml10n.
@giggls your hints were excellent, I was able to get this to work. thank you for your support.. (and tolerance) :-)
for anyone else who stumbles upon this thread.. here are the important bits
in osml10n
- make sure "make test" gives no errors.. this bit is the "magic" that makes this possible..
- import a small pbf using his recommended osm2pgsql command
in openstreetmap-carto-de
- create the views with ./views_osmde/apply-views.sh osm (note that the osm is the dbname, mine was "gis" so you need to change that
- generate osm-de.xml
- i had to change the dbname parameter in osm-de.xml from osm to gis in osm-de.xml with sed -i 's/[osm]/[gis]/g' ./osm-de.xml. im sure theres a better way to do this.
- set osm-de.xml as the XML value in renderd "XML=/openstreetmap-carto-de/osm-de.xml"
- restart renderd
from osml10n.
Yes for some reason I found gis a strange name for an osm database. Just replace the dbname in project.mml and recompile osm-de.xml using make. This will require a working carto command.
from osml10n.
Related Issues (20)
- Behaviour when server not available HOT 1
- installing on ubuntu HOT 1
- run at ubuntu return error HOT 2
- missing debhelper HOT 3
- Osm2pgsql failed due to ERROR: Error loading lua config HOT 13
- Server cannot utilize tltk library HOT 12
- mml file HOT 1
- Ubuntu 22.04 Luarocks command in INSTALL.md HOT 5
- Some tests fail: 85 tests passed, 2 tests failed HOT 3
- make test doesn't work HOT 5
- Error when running make test HOT 3
- transcription-daemon does not auto-start after debian packages are installed. HOT 4
- lake of osml10n.control HOT 1
- Debian 12 Bookworm Support? HOT 14
- add osml10n as extention to postgreSQL HOT 2
- make deb error HOT 1
- free(): invalid size Aborted Core dumped HOT 5
- Add GitHub description HOT 3
- Inconsistent changes in street name rewriting HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osml10n.