-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_layers.yaml
159 lines (148 loc) · 5.66 KB
/
create_layers.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Connection and workspace settings
host: http://<geoserver URL>/geoserver/rest/
# Also possible via GEOSERVER_USER env variable. If neither are given, the default "admin" will be used
user: <geoserver username>
# Also possible via GEOSERVER_PASSWORD env variable. If neither are given, the default "geoserver" will be used
passwd: <geoserver password>
# The workspace will be created if it doesn't exist
workspace: <workspace name>
# Path to the base of image directory _outside_ the Geoserver.
# If not set, current directory will be used.
# By default, the layer directories ("name" in "layers" section below) will be
# created within this directory, e.g. "/path/to/somewhere/name_of_layer_1/"
exposed_base_dir: /path/to/somewhere
# Optionally, do not create/use subdirectories for image layers
# create_subdirectories: False
# If the projection of the images in the layer directories are not
# directly readable from the files by Geoserver, the projection can
# be given as WKT1 string here. The string will be written for all
# existing images before layers are created.
# This is optional, but will be used for every layer defined in this
# config.
write_wkt: 'PROJCS["World_Eckert_IV",GEOGCS["WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["degree",0.017453292519943295],AXIS["Longitude",EAST],AXIS["Latitude",NORTH]],PROJECTION["Eckert_IV"],PARAMETER["semi_minor",6378137.0],PARAMETER["central_meridian",0.0],UNIT["m",1.0],AXIS["x",EAST],AXIS["y",NORTH],AUTHORITY["EPSG","54012"]]'
# Common items to all layers. These can be overridden layer-by-layer
common_items:
sensor_title: SEVIRI
sensor_name: seviri
orbit_title: GEO
orbit_name: geo
area_title: Europe
area_name: europe
# If the "name" is not set, use this pattern instead
layer_pattern: "satellite_{orbit_name}_{area_name}_{sensor_name}_{product_name}"
# If "title" is not set for a layer, use this pattern instead
title_pattern: "Satellite {orbit_title} {area_title} {sensor_title} {product_title}"
# Uncomment to set cache age setting (in seconds) for HTTP header responses
# cache_age_max: 86400
# Set projection policy for the layer
projection_policy: FORCE_DECLARED
# Set the default and additional styles to the layer. The styles should already exist
style:
null
# default_style:
# # Name of style
# # name: raster
# # # Workspace of the style
# # workspace: null
# additional_styles: # at least name must be given
# # - name: "raster"
# # workspace: null
# # - name: "Radar dbz winter"
# Property files to be sent.
properties:
indexer.properties:
TimeAttribute: &time_attribute
time
Schema: the_geom:Polygon,location:String,time:java.util.Date
Caching: "false"
AbsolutePath: "true"
PropertyCollectors: TimestampFileNameExtractorSPI[timeregex](time)
timeregex.properties:
regex: "[0-9]{8}_[0-9]{4}.*,format=yyyyMMdd_hhmm"
# Add these files to the ZIP package as additional initialization files
files:
- /tmp/20200402_1135_empty_EPSG3035.tif
dimensions:
# Settings for the layer time dimension
time_dimension:
# Needs to match with properties -> indexer -> TimeAttribute
name: *time_attribute
enabled: true
# Images are available regularly every 5 minutes
presentation: DISCRETE_INTERVAL
# Time resolution in milliseconds. 300000 = 5 minutes
resolution: 300000
units: ISO8601
nearestMatchEnabled: false
elevation_dimension:
# Needs to match with properties -> indexer -> ElevationAttribute
name: elevation
enabled: true
# Presentation in GetCapabilities
presentation: LIST
units: "Degree"
# Set default value strategy
strategy: "MINIMUM"
# Set default unit symbol
unitSymbol: "°"
# List of the mosaics to be created.
# Layers will not be overwritten, but the metadata will be updated
layers:
- name: name_of_layer_1
# These are the standard metadata each of the layer have.
# If not given, the default values will be used.
title: Title for layer 1
abstract: Short abstract for Layer 1.
Can be several lines long.
And so on.
keywords:
- keyword_1
- keyword_2
# No metadata will be added, so use an empty dictionary
# The "title_pattern" from "common_items" will be used if defined
- name: name_of_layer_2
# Layer name and title can be composed using key/vals from
# "common_items" and this layer's dictionary.
# If the "name" is not set here, it will be read from "common_items"
# "layer_pattern"
- name: "satellite_{orbit_name}_{area_name}_{sensor_name}_{product_name}"
title: "Satellite {orbit_title} {area_title} {sensor_title} {product_title}"
# The abstract can also be a filename. Either relative to current
# directory or a full path.
abstract: abstract_text.txt
# This is used in the layer name above
product_name: name_of_the_product
# This is used in the layer title above
product_title: Name of the Product
log_config:
version: 1
formatters:
fmt:
format: '[%(asctime)s %(levelname)-8s %(name)s] %(message)s'
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: fmt
stream: ext://sys.stdout
file:
class: logging.handlers.TimedRotatingFileHandler
level: DEBUG
formatter: fmt
filename: /path/to/log/dir/create_layers.log
when: midnight
interval: 1
backupCount: 10
loggers:
'':
level: DEBUG
handlers: [console, file]
propagate: false
'georest':
level: DEBUG
handlers: [console, file]
propagate: false
'georest.utils':
level: DEBUG
handlers: [console, file]
propagate: false