Options for parameterization?

オープン
#545 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
49/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
backend

調査の方向性

Start by reading the load_map path and how renderd.conf options are parsed; the issue points to Mapnik’s set_active as the layer toggle mechanism. Trace how map configuration reaches rendering, then define the layer names to enable or hide in renderd.conf. Done means those configured layers are activated or disabled after loading the map.

索引モデルが issue の本文から書いたものです。

説明

mod_tile provides quite limited options for parameterization of the map style. I think the parameterize_style option for multi-lingual maps was only recently fixed in #502.

Other mapnik-based renderers, such as nik4 and nik5, provide the option to enable and disable map layers. This is very useful for complex styles, such as OSM Carto, as it allows you to disable unwanted layers like ice sheets (which need a data download), admin boundaries, power lines etc., without having to rebuild the style sheet. It also allows you to effectively have optional "overlays", such as hiking vs cycle trails, and so host multiple maps from the same XML file.

This ought to be relatively straightforward to implement after load_map using set_active. The layers to be hidden / activated would be set in renderd.conf.

This is probably the most useful option for parameterization. mapnik does have the option to pass in variables to directly change style parameters, but the use cases are less obvious compared to just changing the XML or reading parameters from the PostgresQL database.

主要言語
C++
スター
318
フォーク
200
平均マージ
3日 9時間
マージ済み PR(30日)
47

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openstreetmap/mod_tile のほかの issue

openstreetmap/mod_tile の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。