Giter Club home page Giter Club logo

Comments (6)

giggls avatar giggls commented on May 27, 2024 1

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.

  1. 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
  2. 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.
  3. 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)
  4. If you do not like German Map colors use upstream+l10n branch.

from osml10n.

nbkhwjm avatar nbkhwjm commented on May 27, 2024

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.

nbkhwjm avatar nbkhwjm commented on May 27, 2024

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.

nbkhwjm avatar nbkhwjm commented on May 27, 2024

Understood, thanks for the hints.

from osml10n.

nbkhwjm avatar nbkhwjm commented on May 27, 2024

@giggls your hints were excellent, I was able to get this to work. thank you for your support.. (and tolerance) :-)

image

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.

giggls avatar giggls commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.