x

mapnik 2. Style hinzufügen


  1. mapnik 2. Style hinzufügen · karstenhl (Gast) · 25.03.2017 13:11 · [flux]

    hallo,

    ich habe openstreetmap-carto-2.29.1 und mapnik installliert und bereits gerendert.

    nun möchte ich einen neuen style installieren: https://github.com/openmaptiles/mapbox- … pencil.tm2

    was ich bereits geschafft habe ist das der hintergrund zu sehen ist ohne strassen etc.

    ich habe dafür die default einstellungen in der renderd.conf bearbeitet.

    original:

    [default]
    URI=/osm_tiles/
    TILEDIR=/var/lib/mod_tile
    XML=/home/mapnik/openstreetmap-carto-2.29.1/style.xml
    HOST=localhost
    TILESIZE=256
    ;HTCPHOST=proxy.openstreetmap.org
    ;** config options used by mod_tile, but not renderd **
    ;MINZOOM=0
    ;MAXZOOM=18
    ;TYPE=png image/png
    ;DESCRIPTION=This is a description of the tile layer used in the tile json request
    ;ATTRIBUTION=&copy;<a href=\"http://www.openstreetmap.org/\">OpenStreetMap</a> and <a href=\"http://wiki.openstreetmap.org/wiki/Contributors\">contributors</a>, <a href=\"http://opendatacommons.org/licenses/odbl/\">ODbL</a>
    ;SERVER_ALIAS=http://localhost/
    ;CORS=http://www.openstreetmap.org
    ;ASPECTX=1
    ;ASPECTY=1

    pencil:

    [default]
    URI=/osm_tiles/
    TILEDIR=/var/lib/mod_tile
    XML=/home/mapnik/pencil/project.xml
    HOST=localhost
    TILESIZE=256
    ;HTCPHOST=proxy.openstreetmap.org
    ;** config options used by mod_tile, but not renderd **
    ;MINZOOM=0
    ;MAXZOOM=18
    ;TYPE=png image/png
    ;DESCRIPTION=This is a description of the tile layer used in the tile json request
    ;ATTRIBUTION=&copy;<a href=\"http://www.openstreetmap.org/\">OpenStreetMap</a> and <a href=\"http://wiki.openstreetmap.org/wiki/Contributors\">contributors</a>, <a href=\"http://opendatacommons.org/licenses/odbl/\">ODbL</a>
    ;SERVER_ALIAS=http://localhost/
    ;CORS=http://www.openstreetmap.org
    ;ASPECTX=1
    ;ASPECTY=1

    wie installiere ich diesen style richtig? oder fehlt da einfach der rest?

    danke


    • Re: mapnik 2. Style hinzufügen · maxbe (Gast) · 28.03.2017 16:47 · [flux]

      karstenhl wrote:

      nun möchte ich einen neuen style installieren

      Bei "hintergrund zu sehen ist ohne strassen" hätte ich auf "der hat keiner Verbindung zur Datenbank" getippt. Die habe ich im Stil gesucht, aber nicht gefunden.

      Ist das überhaupt ein Stil für "pures" Mapnik? Ich denke, da muss man auch Mapbox Studio installiert haben und dort irgendwie den Stil unterbringen. Hab aber keine Ahnung, wie dieses Studio funktioniert.