-
Notifications
You must be signed in to change notification settings - Fork 9
/
martin.yaml
71 lines (71 loc) · 2.35 KB
/
martin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
listen_addresses: "0.0.0.0:3000"
base_path: /tiles
worker_processes: 8
preferred_encoding: gzip
default_srid: 4269
max_feature_count: 500
postgres:
connection_string: ${DATABASE_URL}
functions:
# layer with a series of stands, given a treatment_plan_id
# parameters:
# - treatment_plan_id: int
# - project_area_id: Optional[int]
stands_by_tx_plan:
schema: public
function: martin_stands_by_tx_plan
minzoom: 0
maxzoom: 20
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: id
# layer with a series of stands and treatment results' value and baseline,
# given a treatment_plan_id and variable
# parameters:
# - treatment_plan_id: int
# - variable: string
# - project_area_id: Optional[int]
stands_by_tx_result:
schema: public
function: martin_stands_by_tx_result
minzoom: 0
maxzoom: 20
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: id
# layer with the project area outline. This unions all stands
# that compose the project are and creates a single multi polygon.
# this layer changes the shape of the project area to conform to
# the underlying stands.
# parameters:
# - project_area_id: int
project_area_aggregate:
schema: public
function: martin_project_area_aggregate
minzoom: 0
maxzoom: 20
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: id
# layer with project areas. This layer shows original project
# areas, as imported or generated by any algorithm.
# parameters:
# - scenario_id: int
project_areas_by_scenario:
schema: public
function: martin_project_areas_by_scenario
minzoom: 0
maxzoom: 20
bounds: [-180.0, -90.0, 180.0, 90.0]
id_column: id
tables:
stands:
layer_id: stands
schema: public
table: stands_stand
srid: 4269
geometry_column: geometry
id_column: id
minzoom: 0
maxzoom: 20
geometry_type: POLYGON
properties:
id: int8
size: string