martin/tests/config.yaml

154 lines
3.7 KiB
YAML
Raw Normal View History

2018-10-12 18:18:34 +03:00
---
# Database connection string
connection_string: 'postgres://postgres@localhost:5432/db'
# Trust invalid certificates. This introduces significant vulnerabilities, and should only be used as a last resort.
danger_accept_invalid_certs: false
# If a spatial table has SRID 0, then this SRID will be used as a fallback
default_srid: 4326
# Connection keep alive timeout [default: 75]
2018-10-12 18:18:34 +03:00
keep_alive: 75
# The socket address to bind [default: 0.0.0.0:3000]
listen_addresses: '0.0.0.0:3000'
# Maximum connections pool size [default: 20]
pool_size: 20
# Number of web server workers
worker_processes: 8
# Associative arrays of table sources
2018-10-12 18:18:34 +03:00
table_sources:
public.table_source:
# Table source id (required)
2018-10-12 18:18:34 +03:00
id: public.table_source
# Table schema (required)
2018-10-12 18:18:34 +03:00
schema: public
# Table name (required)
2018-10-12 18:18:34 +03:00
table: table_source
# Geometry SRID (required)
2018-10-12 18:18:34 +03:00
srid: 4326
# Geometry column name (required)
geometry_column: geom
# Feature id column name
id_column: ~
# An integer specifying the minimum zoom level
minzoom: 0
# An integer specifying the maximum zoom level. MUST be >= minzoom
maxzoom: 30
# The maximum extent of available map tiles. Bounds MUST define an area
# covered by all zoom levels. The bounds are represented in WGS:84
# latitude and longitude values, in the order left, bottom, right, top.
# Values may be integers or floating point numbers.
bounds: [-180.0, -90.0, 180.0, 90.0]
# Tile extent in tile coordinate space
2018-10-12 18:18:34 +03:00
extent: 4096
# Buffer distance in tile coordinate space to optionally clip geometries
2018-10-12 18:18:34 +03:00
buffer: 64
# Boolean to control if geometries should be clipped or encoded as is
2018-10-12 18:18:34 +03:00
clip_geom: true
# Geometry type
2018-10-12 18:18:34 +03:00
geometry_type: GEOMETRY
# List of columns, that should be encoded as tile properties (required)
2018-10-12 18:18:34 +03:00
properties:
gid: int4
public.points1:
id: public.points1
2018-10-12 18:18:34 +03:00
schema: public
table: points1
minzoom: 0
maxzoom: 30
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: ~
geometry_column: geom
srid: 4326
extent: 4096
buffer: 64
clip_geom: true
geometry_type: GEOMETRY
properties:
gid: int4
public.points2:
id: public.points2
schema: public
table: points2
minzoom: 0
maxzoom: 30
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: ~
2018-10-12 18:18:34 +03:00
geometry_column: geom
srid: 4326
extent: 4096
buffer: 64
clip_geom: true
geometry_type: GEOMETRY
properties:
gid: int4
public.points3857:
id: public.points3857
schema: public
table: points3857
minzoom: 0
maxzoom: 30
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: ~
geometry_column: geom
srid: 3857
extent: 4096
buffer: 64
clip_geom: true
geometry_type: GEOMETRY
2018-10-12 18:18:34 +03:00
properties:
gid: int4
# Associative arrays of function sources
2018-10-12 18:18:34 +03:00
function_sources:
public.function_source:
# Function source id (required)
2018-10-12 18:18:34 +03:00
id: public.function_source
# Schema name (required)
2018-10-12 18:18:34 +03:00
schema: public
# Function name (required)
function: function_source
# An integer specifying the minimum zoom level
minzoom: 0
# An integer specifying the maximum zoom level. MUST be >= minzoom
maxzoom: 30
# The maximum extent of available map tiles. Bounds MUST define an area
# covered by all zoom levels. The bounds are represented in WGS:84
# latitude and longitude values, in the order left, bottom, right, top.
# Values may be integers or floating point numbers.
bounds: [-180.0, -90.0, 180.0, 90.0]
public.function_source_query_params:
id: public.function_source_query_params
schema: public
function: function_source_query_params
minzoom: 0
maxzoom: 30
bounds: [-180.0, -90.0, 180.0, 90.0]