aboutsummaryrefslogtreecommitdiffstats
path: root/config.yml
blob: eb59fb0db76708572f34260f5c74fc9f2bd3c7cb (plain)
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
---
# Spatial Reference System
SRS: 'EPSG:3006' # a.k.a. SWEREF99 TM, cf. https://epsg.io/3006

# (2D) extent: minX, minY, maxX, maxY
#
# Lantmäteriet uses a tile-scheme where the origin (upper-left corner) is at N8500000
# E-1200000 (SWEREF99 TM), where each tile is 256×256 pixels, and where the resolution at
# level 0 is 4096m per pixel.
#
#   https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning_cache_v1.1.0.pdf
#   https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning-oversiktlig_v1.0.3.pdf
#
# We set the extent to a 4×4 tiles square at level 2 somehow centered on Norrbotten and
# Västerbotten.  This represent a TILEROW (x) offset of 5, and a TILECOL (y) offset of 2.
# A 4×8 tiles rectangle with the same upper-left and upper-right coordinates can be used
# to cover the entire country.
#
extent:
  -  110720
  - 6927136 # alternatively 5878560 for the entire country
  - 1159296
  - 7975712

# Take User-Agent value from Tor Browser 13.0.15 (based on Mozilla Firefox 115.11.0esr)
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0'

# Map group names to one or more pattern of layer name(s).  This is a convenience feature
# for systemd template units.
layer-groups:
  administrativindelning:
    - lansyta
    - kommunyta
  nvr: 'nvr:*'
  sks: 'sks:*'
  st: 'st:*'
  vbk: 'vbk:*'
  mrr: 'mrr:*'


# Global GDAL/OGR configuration options, cf. https://gdal.org/user/configoptions.html and
# the driver-specific configuration options such as
# https://gdal.org/drivers/vector/pg.html#configuration-options or
# https://gdal.org/drivers/vector/gpkg.html#configuration-options
GDALconfig:
  PG_USE_COPY: 'YES'


dataset:
  # Path/URI of the output (destination) dataset.
  path: 'PG:'
  # Format (optional)
  format: PostgreSQL

  # Whether the dataset should be created if it does not exist.  (Creation will fail if
  # the driver doesn't support it.)
  #create: true
  #create-options:
    # Optional driver-specific dataset creation options, cf. for instance
    # https://gdal.org/drivers/vector/gpkg.html#dataset-creation-options
    #VERSION: 'AUTO'

  # Optional driver-specific dataset open options, cf. for instance
  # https://gdal.org/drivers/vector/pg.html#dataset-open-options or
  # https://gdal.org/drivers/vector/gpkg.html#dataset-open-options
  open-options:
    ACTIVE_SCHEMA: postgis
    USER: webmap_import
    DBNAME: webmap

  # Optional dictionary of default layer creation options, cf.
  # https://gdal.org/drivers/vector/pg.html#layer-creation-options or
  # https://gdal.org/drivers/vector/gpkg.html#layer-creation-options
  # These apply to all layers.
  create-layer-options:
    FID64: 'YES'
    LAUNDER: 'NO'
    EXTRACT_SCHEMA_FROM_LAYER_NAME: 'NO'


layers:
#  # Dictionary of layer names and source receipes in the output dataset.  If a layer
#  # has a single source, then the sources singleton can be inlined.
#  layer1_name:
#    description: A string describing that layer
#    create:
#      # Geometry Type for the output layer.  Possible values are like ogr2ogr(1)'s -nlt
#      # value, namely one of NONE, GEOMETRY, POINT, LINESTRING, POLYGON, MULTIPOINT,
#      # MULTILINESTRING, MULTIPOLYGON, GEOMETRYCOLLECTION, CIRCULARSTRING, COMPOUNDCURVE,
#      # CURVEPOLYGON, MULTICURVE, MULTISURFACE.  Add Z, M, or ZM to the type name to
#      # specify coordinates with elevation, measure, or both elevation and measure.
#      geometry-type: MULTIPOLYGON
#
#      # Dictionary of layer creation options, cf.
#      # https://gdal.org/drivers/vector/pg.html#layer-creation-options or
#      # https://gdal.org/drivers/vector/gpkg.html#layer-creation-options
#      # dataset:create-layer-options is prepended when defined.
#      options:
#        #LAUNDER: 'NO'
#
#      # The layer schema: a list of field names, types and constraints.
#      fields:
#        - # Feature field name
#          Name: field_name
#
#          # Alternative field name (alias).  This is a metadata style attribute only: the
#          # alternative name cannot be used in place of the actual field name during SQL
#          # queries or other field name dependent API calls.
#          AlternativeName: field_name_alias
#
#          # Description/comment
#          Comment: A string describing that field
#
#          # Feature field type (optional), one of:
#          #  * Integer (simple 32bit integer);
#          #  * IntegerList (list of 32bit integers);
#          #  * Real (double precision floating point);
#          #  * RealList (list of doubles);
#          #  * String (string of characters);
#          #  * StringList (array of strings);
#          #  * Binary (raw binary data);
#          #  * Date (date);
#          #  * Time (time);
#          #  * DateTime (date and time);
#          #  * Integer64 (64bit integer); or
#          #  * Integer64List (list of 64bit integers).
#          Type: String
#
#          # Feature field subtype (optional), one of:
#          #  * None (no subtype, this is the default value);
#          #  * Bool (boolean integer, only valid for Integer and IntegerList types);
#          #  * Int16 (signed 16-bit integer, only valid for Integer and IntegerList
#          #    types);
#          #  * Float32 (single precision [32 bit] floating point, only valid for Real
#          #    and RealList types);
#          #  * JSON (JSON content, only valid for String); or
#          #  * UUID (UUID string representation, only valid for String).
#          SubType: UUID
#
#          # Feature field timezone (optional), for Time, Date and DateTime types.  One of:
#          #  * None (unknown timezone);
#          #  * Local (local time);
#          #  * UTC (alias GMT); or
#          #  * [+-]HH:MM or UTC[+-]HH:MM
#          #TZFlag: local
#
#          # Formatting precision for this field in characters (optional, this should
#          # normally be zero for fields of types other than Real)
#          Precision: 0
#
#          # Formatting width for this field in characters (optional)
#          Width: 36
#
#          # Default field value (optional); accepted values are NULL, a numeric value, a
#          # literal value enclosed between single quote characters (and inner single
#          # quote characters escaped by repetition of the single quote character),
#          # CURRENT_TIMESTAMP, CURRENT_TIME, CURRENT_DATE or a driver specific
#          # expression)
#          Default: None
#
#          # Whether this field has no not-NULL constraint (optional)
#          Nullable: false
#
#          # Whether this field has a unique constraint (optional)
#          Unique: true
#
#    sources:
#      - source:
#          download:
#            # URL from where to download the source file. source:download can be used as
#            # an alias when source:download:url is its only subkey.
#            url: 'https://example.net/path/to/layer.zip'
#
#            # The maximum size to download in bytes.  An error is raised when the payload
#            # size exceeds this value.
#            # (Default: 67108864, in other words 64MiB)
#            max-size: 1073741824
#
#            # Basename of the download module to use for that layer.
#            module: webmap-download
#
#          cache:
#            # Local path (relative to --cachedir) where to (atomically) save the
#            # downloaded file.  The same path can be used by multiple entries as long as
#            # their pairs (source:download:url, source:download:module) match.  Any
#            # parent directories are created if needed.  If the path is empty or ends
#            # with a '/' character then it treated as a directory and the last component
#            # of source:download:url implicitly used as filename.  In that case an error
#            # is raised if no filename can be derived from the URL.  source:cache can be
#            # used as an alias when source:cache:path is its only subkey.
#            path: path/to/sub/dir/
#
#            # Maximum age for caching, in number of seconds ago.  If source:cache:path
#            # exists and its mtime and/or ctime is newer than this value then no HTTP
#            # query is made.
#            # (Default: 21600, in other words 6h)
#            max-age: 86400
#
#          # Optional extracting receipe for archived/compressed sources
#          unar:
#            # The archiving format (only 'zip' is currently supported)
#            format: zip
#
#            # glob(3)-patterns to extract from the archive.  import:path is always
#            # extracted as an exact match.
#            patterns:
#              - 'path/to/source/layer.*'
#
#        import:
#          # Path for the dataset holding the source layer (relative to the archive root
#          # for archived sources, and to --cachedir otherwise).  The value is optional
#          # for non-archived sources, and defaults to source:cache:path if omitted.
#          path: path/to/source/layer.shp
#
#          # Format of the source layer to limit allowed driver when opening the dataset.
#          format: ESRI Shapefile
#
#          # Name of the source layer in the source dataset.  If omitted, its 0th layer is
#          # considered.
#          layername: source_layer
#
#          # Whether to apply the spatial filter when importing.  Default: True.
#          spatial-filter: true
#
#          # Mapping of source fields to destination fields.  A list translates into an
#          identity mapping.
#          fields:
#            - field_name1
#            - field_name2
#          fields:
#            source_field_name2: field_name2
#            source_field_name2: field_name2

  'lansyta':
    description: Sveriges län (Lantmäteriet)
    create:
      geometry-type: MULTIPOLYGON
      fields:
        - name: objektidentitet
          type: String
          subtype: UUID
          unique: true
          #width: 36
        - name: skapad
          type: DateTime
          #tz: local
        - name: lanskod
          type: Integer
          subtype: Int16
          unique: true
          nullable: false
    source:
      # https://www.lantmateriet.se/sv/geodata/vara-produkter/produktlista/topografi-250-nedladdning-vektor/
      cache: administrativindelning_sverige.zip
      unar:
        format: zip
    import:
      path: administrativindelning_sverige.gpkg
      format: GPKG
      layername: lansyta
      spatial-filter: false
      fields:
        - objektidentitet
        - skapad
        - lanskod

  'kommunyta':
    description: Sveriges kommuner (Lantmäteriet)
    create:
      geometry-type: MULTIPOLYGON
      fields:
        - name: objektidentitet
          type: String
          subtype: UUID
          unique: true
          #width: 36
        - name: skapad
          type: DateTime
          #tz: local
        - name: kommunkod
          type: Integer
          subtype: Int16
          unique: true
          nullable: false
    source:
      # https://www.lantmateriet.se/sv/geodata/vara-produkter/produktlista/topografi-250-nedladdning-vektor/
      cache: administrativindelning_sverige.zip
      unar:
        format: zip
    import:
      path: administrativindelning_sverige.gpkg
      format: GPKG
      layername: kommunyta
      spatial-filter: false
      fields:
        - objektidentitet
        - skapad
        - kommunkod


  'nvr:TILLTRADESFORBUD':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/TILLTRADESFORBUD.zip'
      cache: naturvardsregistret/

  'nvr:NP':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NP.zip'
      cache: naturvardsregistret/

  'nvr:NR':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NR.zip'
      cache: naturvardsregistret/

  'nvr:NVO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NVO.zip'
      cache: naturvardsregistret/

  'nvr:DVO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/DVO.zip'
      cache: naturvardsregistret/

  'nvr:KR':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/KR.zip'
      cache: naturvardsregistret/

  'nvr:VSO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/VSO.zip'
      cache: naturvardsregistret/

  'nvr:LBSO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/LBSO.zip'
      cache: naturvardsregistret/

  'nvr:OBO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/OBO.zip'
      cache: naturvardsregistret/

  'nvr:NM':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NM.zip'
      cache: naturvardsregistret/

  'nvr:IF':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/IF.zip'
      cache: naturvardsregistret/

  'nvr:SPA_Rikstackande':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/SPA_Rikstackande.zip'
      cache: naturvardsregistret/

  'nvr:SCI_Rikstackande':
    source:
      download:
        url: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/SCI_Rikstackande.zip'
        max-size: 134217728 # 128MiB
      cache: naturvardsregistret/

  'nvr:HELCOM':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/HELCOM.zip'
      cache: naturvardsregistret/

  'nvr:Ramsar_2018':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/Ramsar_2018.zip'
      cache: naturvardsregistret/

  'nvr:OSPAR':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/OSPAR.zip'
      cache: naturvardsregistret/

  'nvr:Varldsarv':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/Varldsarv.zip'
      cache: naturvardsregistret/

  'nvr:biosfarsomraden':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/biosfarsomraden.zip'
      cache: naturvardsregistret/

  'nvr:NVA':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NVA.zip'
      cache: naturvardsregistret/

  'sks:AvverkAnm':
    # https://geodpags.skogsstyrelsen.se/geodataport/feeds/AvverkAnm.xml
    description: Avverkningsanmälningar (Skogsstyrelsen)
    create:
      geometry-type: MULTIPOLYGON
      fields:
        - name: OBJECTID
          type: Integer
          unique: true
          nullable: false
        - name: Beteckn
          type: String
          width: 12
          unique: true
          nullable: false
        - name: ArendeAr
          type: Integer
          subtype: Int16
          nullable: false
        - name: Avverktyp
          type: String
          width: 254
          nullable: false
        - name: Skogstyp
          type: String
          width: 254
          nullable: false
        - name: Inkomdatum
          type: Date
          nullable: false
        - name: AnmaldHa
          # XXX convert to m²?
          type: Real
          subtype: Float32
          nullable: false
        - name: SkogsodlHa
          type: Real
          subtype: Float32
          nullable: false
        - name: NatforHa
          type: Real
          subtype: Float32
          nullable: false
        - name: AvvSasong
          type: String
          width: 254
          nullable: false
        - name: ArendeStat
          type: String
          width: 254
          nullable: false
        - name: AvvHa
          type: Real
          subtype: Float32
        - name: Avverkning
          type: String
          width: 254
          nullable: false
    source:
      download:
        url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksAvverkAnm.zip'
        max-size: 134217728 # 128MiB
      cache: sks/
      unar:
        format: zip
        patterns:
          - 'sksAvverkAnm.*'
    import:
      path: sksAvverkAnm.shp
      format: ESRI Shapefile
      layername: sksAvverkAnm
      fields:
        - OBJECTID
        - Beteckn
        - ArendeAr
        - Avverktyp
        - Skogstyp
        - Inkomdatum
        - AnmaldHa
        - SkogsodlHa
        - NatforHa
        - AvvSasong
        - ArendeStat
        - AvvHa
        - Avverkning

  'sks:UtfordAvverk':
    # https://geodpags.skogsstyrelsen.se/geodataport/feeds/UtfordAvverk.xml
    description: Utförd avverkning (Skogsstyrelsen)
    create:
      geometry-type: MULTIPOLYGON
      fields:
        - name: OBJECTID
          type: Integer
          # XXX there are duplicates(!?)
          #unique: true
          nullable: false
        - name: Beteckn
          type: String
          width: 12
          #unique: true
          # TODO: map "Visas ej" to NULL
          nullable: false
        - name: ArendeAr
          type: Integer
          subtype: Int16
          nullable: false
        - name: Avverktyp
          type: String
          width: 254
          nullable: false
        - name: Skogstyp
          type: String
          width: 254
          nullable: false
        - name: AnmaldHa
          type: Real
          subtype: Float32
          #nullable: false
        - name: SkogsodlHa
          type: Real
          subtype: Float32
          nullable: false
        - name: NatforHa
          type: Real
          subtype: Float32
          nullable: false
        - name: Avvdatum
          type: Date
          nullable: false
        - name: KallaDatum
          type: Date
        - name: KallaAreal
          type: String
          width: 62
        - name: Forebild
          type: String
          width: 62
        - name: Efterbild
          type: String
          width: 62
        - name: ArealHa
          type: Real
          subtype: Float32
          nullable: false

    sources:
      - source:
          download:
            url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2000-2015.zip'
            max-size: 805306368 # 768MiB
          cache:
            path: sks/
            max-age: 2592000 # 30d
          unar:
            format: zip
            patterns:
              - 'sksUtfordAvverk-2000-2015.*'
        import:
          path: sksUtfordAvverk-2000-2015.shp
          format: ESRI Shapefile
          layername: sksUtfordAvverk-2000-2015
          fields:
            OBJECTID: OBJECTID
            Beteckn: Beteckn
            Arendear: ArendeAr
            Avverktyp: Avverktyp
            Skogstyp: Skogstyp
            AnmaldHa: AnmaldHa
            SkogsodlHa: SkogsodlHa
            Natforha: NatforHa
            Avvdatum: Avvdatum
            KallaDatum: KallaDatum
            KallaAreal: KallaAreal
            Forebild: Forebild
            Efterbild: Efterbild
            Arealha: ArealHa

      - source:
          download:
            url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2016-2019.zip'
            max-size: 805306368 # 768MiB
          cache:
            path: sks/
            max-age: 2592000 # 30d
          unar:
            format: zip
            patterns:
              - 'sksUtfordAvverk-2016-2019.*'
        import:
          path: sksUtfordAvverk-2016-2019.shp
          format: ESRI Shapefile
          layername: sksUtfordAvverk-2016-2019
          fields:
            OBJECTID: OBJECTID
            Beteckn: Beteckn
            Arendear: ArendeAr
            Avverktyp: Avverktyp
            Skogstyp: Skogstyp
            AnmaldHa: AnmaldHa
            SkogsodlHa: SkogsodlHa
            Natforha: NatforHa
            Avvdatum: Avvdatum
            KallaDatum: KallaDatum
            KallaAreal: KallaAreal
            Forebild: Forebild
            Efterbild: Efterbild
            Arealha: ArealHa

      - source:
          download:
            url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2020-2022.zip'
            max-size: 805306368 # 768MiB
          cache:
            path: sks/
            max-age: 864000 # 10d
          unar:
            format: zip
            patterns:
              - 'sksUtfordAvverk-2020-2022.*'
        import:
          path: sksUtfordAvverk-2020-2022.shp
          format: ESRI Shapefile
          layername: sksUtfordAvverk-2020-2022
          fields:
            OBJECTID: OBJECTID
            Beteckn: Beteckn
            Arendear: ArendeAr
            Avverktyp: Avverktyp
            Skogstyp: Skogstyp
            AnmaldHa: AnmaldHa
            SkogsodlHa: SkogsodlHa
            Natforha: NatforHa
            Avvdatum: Avvdatum
            KallaDatum: KallaDatum
            KallaAreal: KallaAreal
            Forebild: Forebild
            Efterbild: Efterbild
            Arealha: ArealHa

      - source:
          download:
            url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2023-.zip'
            max-size: 1073741824 # 1GiB
          cache: sks/
          unar:
            format: zip
            patterns:
              - 'sksUtfordAvverk-2023-.*'
        import:
          path: sksUtfordAvverk-2023-.shp
          format: ESRI Shapefile
          layername: sksUtfordAvverk-2023-
          fields:
            OBJECTID: OBJECTID
            Beteckn: Beteckn
            Arendear: ArendeAr
            Avverktyp: Avverktyp
            Skogstyp: Skogstyp
            AnmaldHa: AnmaldHa
            SkogsodlHa: SkogsodlHa
            Natforha: NatforHa
            Avvdatum: Avvdatum
            KallaDatum: KallaDatum
            KallaAreal: KallaAreal
            Forebild: Forebild
            Efterbild: Efterbild
            Arealha: ArealHa

  'st:betesomraden':
    source:
      download: 'https://ext-dokument.lansstyrelsen.se/Gemensamt/Geodata/Datadistribution/SWEREF99TM/Sametinget/Samebyarnas_betesomraden.zip'
      cache: sametinget/

  'st:markanvandning':
    source:
      download: 'http://ext-dokument.lansstyrelsen.se/Gemensamt/Geodata/Datadistribution/SWEREF99TM/Sametinget/Samebyarnas_markanvandningsredovisning.zip'
      cache: sametinget/

  'vbk:vindkraftverk':
    source:
      download: 'https://ext-dokument.lansstyrelsen.se/gemensamt/geodata/ShapeExport/lst.vbk_vindkraftverk.zip'
      cache: vbk/

  'vbk:projekteringsomraden':
    source:
      download: 'https://ext-dokument.lansstyrelsen.se/gemensamt/geodata/ShapeExport/lst.vbk_projekteringsomraden.zip'
      cache: vbk/

  # The list of layers available on the WMS server can be found at
  # https://maps3.sgu.se/geoserver/wms?SERVICE=WMS&VERSION=1.11&REQUEST=GetCapabilities
  'mrr:bearbetningskoncessioner_applied':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.BEARBETNINGSKONCESSIONER_APPLIED_VY'
      cache: mrr/bearbetningskoncessioner_applied.geojson
  'mrr:bearbetningskoncessioner_approved':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.BEARBETNINGSKONCESSIONER_APPROVED_VY'
      cache: mrr/bearbetningskoncessioner_approved.geojson
  'mrr:markanvisningar':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.MARKANVISNINGAR_VY'
      cache: mrr/markanvisningar.geojson
  'mrr:mineral_applied':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.MINERAL_APPLIED_VY'
      cache: mrr/mineral_applied.geojson
  'mrr:mineral_approved':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.MINERAL_APPROVED_VY'
      cache: mrr/mineral_approved.geojson
#  'mrr:mineral_expired':
#    source:
#      download:
#        module: webmap-download-mrr
#        layername: 'MRR:SE.GOV.SGU.MRR.MINERAL_EXPIRED_2'
#      cache: mrr/mineral_expired.geojson
#  'mrr:mineral_prohibited':
#    source:
#      download:
#        module: webmap-download-mrr
#        layername: 'MRR:SE.GOV.SGU.MRR.MINERAL_PROHIBITED_2'
#      cache: mrr/mineral_prohibited.geojson
#  'mrr:ogd_expired':
#    source:
#      download:
#        module: webmap-download-mrr
#        layername: 'MRR:SE.GOV.SGU.MRR.OGD_EXPIRED_2'
#      cache: mrr/ogd_expired.geojson
#  'mrr:ogd_prohibited':
#    source:
#      download:
#        module: webmap-download-mrr
#        layername: 'MRR:SE.GOV.SGU.MRR.OGD_PROHIBITED_2'
#      cache: mrr/ogd_prohibited.geojson
  'mrr:olja_gas_diamant_applied':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.OLJA_GAS_DIAMANT_APPLIED_VY'
      cache: mrr/olja_gas_diamant_applied.geojson
  'mrr:olja_gas_diamant_approved':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.OLJA_GAS_DIAMANT_APPROVED_VY'
      cache: mrr/olja_gas_diamant_approved.geojson
  'mrr:torvkoncessioner':
    source:
      download:
        module: webmap-download-mrr
        layername: 'MRR:SE.GOV.SGU.MRR.TORVKONCESSIONER_VY'
      cache: mrr/torvkoncessioner.geojson