-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
1808 lines (1747 loc) · 74.3 KB
/
config.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
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
## -*- coding: utf-8 -*-
vars:
# The line below represents the "entry point" for the yaml configuration also called section. Keep this in
# mind for later stuff. You can change it to your favorite name.
pyramid_oereb:
# Here you can set a central proxy which can be used in the application.
# proxies:
# http: http://"username":"password"@your_proxy.com:8088
# https: https://"username":"password"@your_proxy.com:8088
# The "language" property is a list of all languages supported by this application. It only affects the
# output of the extract webservice. The default language below and any language specified by a "LANG"
# parameter in a request of an extract must be in this list to be accepted.
language:
- fr
# The language that should be used by default, if no other language is specified in the request.
# This has to be one of the languages defined above.
default_language: fr
# The "flavour" property is a list of all flavours of data extracts provided by this application.
# For the moment this only affects the output of the capabilities webservice. In later
# versions, this will be the place to directly influence the available output formats.
#
# Possible flavours are: REDUCED, SIGNED
# REDUCED: Means that depending on the cantonal implementation you may be able to select
# a defined combination of topics to extract (e.g. only 'federal' topics without
# cantonal extensions - and choosing this option, legal provisions are only output
# as link.
# SIGNED: Is essentially the same as REDUCED, but the extract is certified by the competent
# authority
flavour:
- REDUCED
- SIGNED
print:
# The pyramid renderer which is used as proxy pass through to the desired service for printable static
# extract. Here you can define the path to the logic which prepares the output as payload for print
# service and returns the result to the user.
# Configuration for MapFish-Print print service
renderer: pyramid_oereb.contrib.print_proxy.mapfish_print.mapfish_print.Renderer
# Define whether all geometry data must be included when sending the data to the print service
with_geometry: False
# Set an archive path to keep a copy of each generated pdf.
#pdf_archive_path: /archive
pdf_archive_path: "{PDF_ARCHIVE_PATH}"
# The minimum buffer in pixel at 72 DPI between the real estate and the map's border. If your print
# system draws a margin around the feature (the real estate), you have to set your buffer
# here accordingly.
buffer: 1
# The map size in pixel at 72 DPI (width, height), This is the defined size of a map image
# (requested in wms urls) inside the static extract. On a pdf report, tha map size will
# be calculated with the pdf_dpi and the pdf_map_size_millimeters below.
basic_map_size: [493, 280]
# The dpi used to calculate the size of the requested map (for pdf export only).
pdf_dpi: 300
# The map size (in millimeters) used to calculate the size of the requested map (for pdf export only).
pdf_map_size_millimeters: [174, 99]
# Base URL with application of the print server
base_url: "http://{PRINT_SERVICE_HOST}:{PRINT_SERVICE_PORT}/print/oereb"
# Name of the print template to use
template_name: A4 portrait
# The headers sent to the print
headers:
Content-Type: application/json; charset=UTF-8
Connection: close
# Whether to display the RealEstate_SubunitOfLandRegister (Grundbuchkreis) in the pdf extract or not.
# Default to true.
display_real_estate_subunit_of_land_register: true
# Whether to display the Certification section in the pdf extract or not.
# Default to true
display_certification: true
# Whether to display the QR code in the pdf extract or not.
# Default to true
display_qrcode: true
# Group elements of "LegalProvision" and "Hints" with the same "Title.Text" together yes/no
# Disabled by default.
group_legal_provisions: false
# Will make an estimation of the total length of the Table of Content (TOC) and control that the page
# numbering in the output pdf is consistent with TOC numbering. If it is known that the TOC is very long and
# could run over more than one page, it is preferred to set this to true. The drawback is that it might need
# more time to generate the PDF. If set to false, it will assume that only one TOC page exists, and this can
# lead to wrong numbering in the TOC.
compute_toc_pages: false
# Specify any additional URL parameters that the print shall use for WMS calls
wms_url_params:
TRANSPARENT: 'true'
ogcserver: 'Main_PNG'
# If you want the print to keep some custom URL parameters directly from the reference_wms you have defined,
# then use the configuration option wms_url_keep_params.
# In wms_url_keep_params, you can list which URL parameter values should be read from the reference_wms
# and used by the print.
# wms_url_keep_params:
# - ogcserver
# Flag to print or not the canton logo
print_canton_logo: true
# Flag to print or not the municipality name
print_municipality_name: true
# The "app_schema" property contains only one sub property "name". This is directly related to the database
# creation process, because this name is used as schema name in the target database. The app_schema holds
# all application stuff like: addresses, municipalities, real estates, etc.
# Please note that this is only necessary if you want to use the standard configuration. Normally you don't
# need to adjust this. Only in the unlikely case of another schema in the same database with the same name
# you can change it here to avoid name collision. Of course you can configure the application to load this
# data from elsewhere.
app_schema:
law_status_lookup:
- data_code: inKraft
transfer_code: inKraft
extract_code: inForce
- data_code: AenderungMitVorwirkung
transfer_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
- data_code: AenderungOhneVorwirkung
transfer_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
document_types_lookup:
- data_code: Rechtsvorschrift
transfer_code: Rechtsvorschrift
extract_code: LegalProvision
- data_code: GesetzlicheGrundlage
transfer_code: GesetzlicheGrundlage
extract_code: Law
- data_code: Hinweis
transfer_code: Hinweis
extract_code: Hint
name: pyramid_oereb_main
models: pyramid_oereb.contrib.data_sources.standard.models.main
db_connection: &main_db_connection
postgresql://{PGUSER}:{PGPASSWORD}@{PGHOST}:{PGPORT}/{PGDATABASE}
# Define the SRID which your server is representing. Note: Only one projection system is possible in the
# application. It does not provide any reprojection nor data in different projection systems. Take care in
# your importing process!
srid: 2056
# definition of the available geometry types for different checks
geometry_types:
point:
types:
- Point
- MultiPoint
line:
types:
- LineString
- LinearRing
- MultiLineString
polygon:
types:
- Polygon
- MultiPolygon
collection:
types:
- GeometryCollection
# Configuration option for full extract: apply SLD on land register WMS (defaults to true)
#full_extract_use_sld: true
# Defines the information of the oereb cadastre providing authority. Please change this to your data. This
# will be directly used for producing the extract output.
plr_cadastre_authority:
# The name of your Office. For instance: Amt für Geoinformation Basel-Landschaft
name:
fr: Section du cadastre et de la géoinformation
# An online link to web presentation of your office. For instance: https://www.geo.bl.ch/
office_at_web: http://www.jura.ch/scg
# The street name of the address of your office. For instance: Mühlemattstrasse
street: Rue du 24-Septembre
# The street number of the address of your office. For instance: 36
number: 2
# The ZIP code of the address of your office. For instance: 4410
postal_code: 2800
# The city name of the address of your office. For instance: Liestal
city: Delémont
# The processor of the oereb project needs access to real estate data. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the real estate out of an existing
# database table to avoid imports of this data every time it gets updates you only need to change the model
# bound to the source. The model must implement the same field names and information as the default model
# does.
real_estate:
plan_for_land_register:
# WMS URL to query the plan for land register used for all themes pages
reference_wms:
fr: "{BASE_HOST}/mapserv_proxy?ogcserver=Main_PNG&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=default&CRS=EPSG:2056&BBOX=2475000,1065000,2850000,1300000&WIDTH=493&HEIGHT=280&FORMAT=image/png&LAYERS=plan_cadastral_crdppf_pyramid_oereb_page_garde"
layer_index: 0
layer_opacity: 1.0
plan_for_land_register_main_page:
# WMS URL to query the plan for land register specially for static extracts overview page
reference_wms:
fr: "{BASE_HOST}/mapserv_proxy?ogcserver=Main_PNG&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=default&CRS=EPSG:2056&BBOX=2475000,1065000,2850000,1300000&WIDTH=493&HEIGHT=280&FORMAT=image/png&LAYERS=plan_cadastral_crdppf_pyramid_oereb"
layer_index: 0
layer_opacity: 1.0
visualisation:
method: pyramid_oereb.core.hook_methods.produce_sld_content
# Note: these parameters must fit to the attributes provided by the RealEstateRecord!!!!
url_params:
- egrid
layer:
name: cad_bien_fonds
style:
stroke_opacity: 0.6
stroke_color: '#e60000'
stroke_width: 5
# The real estate must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.real_estate.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the real estate database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.RealEstate
# The processor of the oereb project needs access to address data. In the standard configuration, this
# is assumed to be read from a database. Hint: If you want to read the addresses out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
address:
# The address must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.address.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the address database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Address
# Alternatively you can use the search service of the GeoAdmin API to look up the real estate by
# address. Replace the configuration above with the following lines:
# class: pyramid_oereb.lib.sources.address.AddressGeoAdminSource
# # Optional referer to use.
# referer: http://my.referer.ch
# params:
# # URL of the GeoAdmin API SearchServer
# geoadmin_search_api: https://api3.geo.admin.ch/rest/services/api/SearchServer
# # Origins to use (should be "address" only)
# origins: address
# The processor of the oereb project needs access to municipality data. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the municipality out of an existing
# database table to avoid imports of this data every time it gets updates you only need to change the model
# bound to the source. The model must implement the same field names and information as default model
# does.
municipality:
# The municipality must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.municipality.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the municipality database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Municipality
# The extract provides logos. Therefore you need to provide the logos from the database
# or by a path to these logos. Note: This must be a valid absolute system path available
# for reading by the user running this server.
logo_lookups:
# The logo representing the swiss confederation. You can use it as is because it is provided in this
# repository, but if you need to change it for any reason: Feel free...
confederation: ch
# The logo representing the oereb extract CI. You can use it as is because it is provided in this
# repository, but if you need to change it for any reason: Feel free...
oereb: ch.plr
# The logo representing your canton. Replace with your own logo!
canton: ju
# The processor of the oereb project joins the logos. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the values out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
logos:
# The logo images must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.logo.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the logo images database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Logo
hooks:
get_logo_ref: pyramid_oereb.core.hook_methods.get_logo_ref
get_qr_code_ref: pyramid_oereb.core.hook_methods.get_qr_code_ref
# The processor of the oereb project joins the document type labels. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the values out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
document_types:
# The document type text elements must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.document_types.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the document type texts database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.DocumentTypeText
# The processor of the oereb project joins the document type labels. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the values out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
documents:
# The document type text elements must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.document.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the document type texts database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Document
# The processor of the oereb project joins the document type labels. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the values out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
offices:
# The document type text elements must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.office.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the document type texts database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Office
# The processor of the oereb project needs access to theme data. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the themes out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
theme:
# The themes must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.theme.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the theme database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Theme
# The processor of the oereb project needs access to theme document data. In the standard configuration
# this is assumed to be read from a database. Hint: If you want to read the theme documents out of an existing
# database table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
theme_document:
# The theme documents must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.theme_document.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the theme database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.ThemeDocument
# The processor of the oereb project needs access to glossary data. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the glossary out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
glossary:
# The glossary must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.glossary.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the glossary database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Glossary
# The processor of the oereb project needs access to disclaimer data. In the standard
# configuration this is assumed to be read from a database. Hint: If you want to read the exclusion of
# liability out of an existing database table to avoid imports of this data every time it gets updates you
# only need to change the model bound to the source. The model must implement the same field names and
# information as the default model does.
disclaimer:
# The disclaimer must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.disclaimer.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the disclaimer database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Disclaimer
# The processor of the oereb project joins the law status labels. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the values out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
law_status_labels:
# The real estate type text elements must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.law_status.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the document type texts database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.LawStatus
# The processor of the oereb project joins the real estate type labels. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the values out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
real_estate_type:
lookup:
- data_code: Liegenschaft
transfer_code: Liegenschaft
extract_code: RealEstate
- data_code: SelbstRecht.Baurecht
transfer_code: SelbstRecht.Baurecht
extract_code: Distinct_and_permanent_rights.BuildingRight
- data_code: SelbstRecht.Quellenrecht
transfer_code: SelbstRecht.Quellenrecht
extract_code: Distinct_and_permanent_rights.right_to_spring_water
- data_code: SelbstRecht.Konzessionsrecht
transfer_code: SelbstRecht.Konzessionsrecht
extract_code: Distinct_and_permanent_rights.concession
- data_code: SelbstRecht.weitere
transfer_code: SelbstRecht.weitere
extract_code: Distinct_and_permanent_rights.other
- data_code: Bergwerk
transfer_code: Bergwerk
extract_code: Mineral_rights
# The real estate type text elements must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.real_estate_type.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the document type texts database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.RealEstateType
# The processor of the oereb project needs access to general information data. In the standard
# configuration this is assumed to be read from a database. Hint: If you want to read the general
# information out of an existing database table to avoid imports of this data every time it gets updates, you
# only need to change the model bound to the source. The model must implement the same field names and
# information as the default model does.
general_information:
# The general_information must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.general_information.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the general_information database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.GeneralInformation
# The processor of the oereb project needs access to map layering data. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the map layering out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
map_layering:
# The map layering must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.map_layering.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the map layering database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.MapLayering
# The processor of the oereb project needs access to availability data. In the standard configuration this
# is assumed to be read from a database. Hint: If you want to read the availability out of an existing database
# table to avoid imports of this data every time it gets updates, you only need to change the model bound to
# the source. The model must implement the same field names and information as the default model does.
availability:
# The availability must have a property source.
source:
# The source must have a class which represents the accessor to the source. In this example, it is an
# already implemented source which reads data from a database.
class: pyramid_oereb.contrib.data_sources.standard.sources.availability.DatabaseSource
# The necessary parameters to use this class
params:
# The connection path where the database can be found
db_connection: *main_db_connection
# The model which maps the availability database table.
model: pyramid_oereb.contrib.data_sources.standard.models.main.Availability
# The extract is the entry point which binds everything
# related to data together.
extract:
# Information about the official survey (last update and provider) used as a base map in the extract
base_data:
methods:
date: pyramid_oereb.core.hook_methods.get_surveying_data_update_date
provider: pyramid_oereb.core.hook_methods.get_surveying_data_provider
sort_within_themes_method: pyramid_oereb.core.hook_methods.plr_sort_within_themes
# Example of a specific sorting method:
# sort_within_themes_method: pyramid_oereb.contrib.plr_sort_within_themes_by_type_code
# Redirect configuration for type URL. You can use any attribute of the real estate RealEstateRecord
# (e.g. "{egrid}") to parameterize the URL.
redirect: https://geo.jura.ch/crdppf/?egrid={egrid}
# All PLRs which are provided by this application. This is related to all application behaviour, especially
# the extract creation process which loops over this list.
plrs:
- code: ch.Planungszonen
geometry_type: POLYGON
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: false
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: reserved_areas
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.Nutzungsplanung
geometry_type: GEOMETRYCOLLECTION
# Define the minimal area and length for public law restrictions that should be considered as 'true' restrictions
# and not as calculation errors (false trues) due to topological imperfections
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: false
standard: true
view_service:
layer_index: 1
layer_opacity: 1.0
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: land_use_plans
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.ProjektierungszonenNationalstrassen
geometry_type: MULTIPOLYGON
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: true
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: motorways_project_planing_zones
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.Laermempfindlichkeitsstufen
geometry_type: POLYGON
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: false
standard: true
view_service:
layer_index: 1
layer_opacity: 1.0
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: noise_sensitivity_levels
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.BaulinienNationalstrassen
geometry_type: LINESTRING
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: true
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: motorways_building_lines
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.ProjektierungszonenEisenbahnanlagen
geometry_type: POLYGON
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: true
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: railways_project_planning_zones
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.BaulinienEisenbahnanlagen
geometry_type: LINESTRING
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: true
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: railways_building_lines
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.ProjektierungszonenFlughafenanlagen
geometry_type: POLYGON
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: true
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: airports_project_planning_zones
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.BaulinienFlughafenanlagen
geometry_type: LINESTRING
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr
federal: true
standard: true
view_service:
layer_index: 1
layer_opacity: 0.75
source:
class: pyramid_oereb.contrib.data_sources.standard.sources.plr.DatabaseSource
params:
db_connection: *main_db_connection
model_factory: pyramid_oereb.contrib.data_sources.standard.models.theme.model_factory_string_pk
schema_name: airports_building_lines
hooks:
get_symbol: pyramid_oereb.contrib.data_sources.standard.hook_methods.get_symbol
get_symbol_ref: pyramid_oereb.core.hook_methods.get_symbol_ref
law_status_lookup:
- data_code: inKraft
extract_code: inForce
transfer_code: inKraft
- data_code: AenderungMitVorwirkung
extract_code: changeWithPreEffect
transfer_code: AenderungMitVorwirkung
- data_code: AenderungOhneVorwirkung
extract_code: changeWithoutPreEffect
transfer_code: AenderungOhneVorwirkung
document_types_lookup:
- data_code: Rechtsvorschrift
extract_code: LegalProvision
transfer_code: Rechtsvorschrift
- data_code: GesetzlicheGrundlage
extract_code: Law
transfer_code: GesetzlicheGrundlage
- data_code: Hinweis
extract_code: Hint
transfer_code: Hinweis
- code: ch.Sicherheitszonenplan
geometry_type: MULTIPOLYGON
thresholds:
length:
limit: 1.0
unit: 'm'
precision: 2
area:
limit: 1.0
unit: 'm²'
precision: 2
percentage:
precision: 1
language: fr