TransWikia.com

Configure styling of OSM with T-Rex vector tile server

Geographic Information Systems Asked by Michael Knave on January 23, 2021

I am using T-Rex as vector tileserver, osm2pgsql for importing the .osm.pbf file into the PostGIS database (table format – planet_osm_line, planet_osm, point, planet_osm_polygon, planet_osm_road).

I want to display the osm vector tiles with style of osm-bright.

T-Rex is using .toml configuration file, where are specified layers with sql queries.

Do you have such a pre-configured style configuration for mentioned table structure ?

One Answer

I got my config.toml file generated from t-rex automatically. I used following command:

docker run -p 6767:6767 -v $PWD:/var/data/in:ro -v /tmp:/var/data/out sourcepole/t-rex genconfig --dbconn=postgresql://[email protected]:5432/osm

Answered by Fuchs on January 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP