From 981a97c572ee064b4f3ade5d1fc9e5c4397701ff Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 28 Apr 2025 12:47:31 +0200 Subject: =?UTF-8?q?Update=20Mineralr=C3=A4ttigheter=20import=20logic.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to EU Directive 2019/1024 of the European Parliament and of the Council of 20 June 2019 on open data and the re-use of public sector information, and the Commission Implementing Regulation (EU) 2023/138 of 21 December 2022, the mineral register is now available under the terms of the CC0 1.0 Universal licence, see https://www.sgu.se/produkter-och-tjanster/geologiska-data/malmer-och-mineral--geologiska-data/mineralrattigheter-och-prospektering/ Given we no longer need to parse SVG images from the webmap, we drop webmap-download-mrr.py and add layers for expired and forbidden permits (ut_metaller_industrimineral_forfallna, ut_olja_gas_diamant_forfallna, bearbetningskoncessioner_forfallna, ut_metaller_industrimineral_forbud, ut_diamant_forbud) as well as markanvisningar_bk_ansokta. Unfortunately the GeoPackage file doesn't include peat concessions, so we drop them from config.yml for now. Should they be of interest we can always restore webmap-download-mrr.py and/or order the register from Bergsstaten, cf. https://resource.sgu.se/bergsstaten/exporter-ur-mrr-info.pdf . --- config.yml | 848 +++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 568 insertions(+), 280 deletions(-) (limited to 'config.yml') diff --git a/config.yml b/config.yml index 08ee039..626e695 100644 --- a/config.yml +++ b/config.yml @@ -3102,477 +3102,765 @@ layers: where: | "Raderat" IS FALSE - # 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': - description: Bearbetningskoncessioner, ansökta (SGU) + 'mrr:ut_metaller_industrimineral_ansokta': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Metaller och industrimineral, ansökta (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String unique: true nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Namn på ansökt undersökningsområde + - name: diarynr + type: String + unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: appl_date + type: Date + nullable: false + comment: Datum när ansökan inkom till Bergsstaten + - name: mineral type: String nullable: false width: 254 - comment: Koncessionsmineral - - name: Applicant + comment: Koncessionsmineral som ska eftersökas + - name: owners type: String nullable: false width: 254 - comment: Sökandens namn - - name: ApplicationDate + comment: Sökanden av undersökningstillståndet + - name: export_date type: Date nullable: false - - name: DiaryNr + comment: Datum då uttag från mineralrättsregistret gjordes + source: + path: mrr/mineralrattigheter.zip + unar: + format: zip + import: + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_metaller_industrimineral_ansokta + publish: appl_met + + 'mrr:ut_diamant_ansokta': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Diamant, ansökta (SGU) + create: + geometry-type: MULTIPOLYGON + fields: + - name: name + type: String + unique: true + nullable: false + width: 254 + comment: Namn på ansökt undersökningsområde + - name: diarynr type: String unique: true nullable: false width: 16 - - name: LastUpdated + comment: Ärendenummer i diariet + - name: appl_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum när ansökan inkom till Bergsstaten + - name: mineral + type: String + nullable: false + width: 254 + comment: Koncessionsmineral som ska eftersökas + - name: owners + type: String + nullable: false + width: 254 + comment: Sökanden av undersökningstillståndet + - name: export_date + type: Date + nullable: false + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.BEARBETNINGSKONCESSIONER_APPLIED_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Applicant': Applicant - 'Application date': ApplicationDate - 'Diary nr': DiaryNr - 'Last updated': LastUpdated - value-map: - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appl_ec + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_diamant_ansokta + publish: appl_ogd - 'mrr:bearbetningskoncessioner_approved': - description: Bearbetningskoncessioner, beviljade (SGU) + 'mrr:bearbetningskoncessioner_ansokta': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Bearbetningskoncessioner, ansökta (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String unique: true nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Namn på ansökt bearbetningskoncession + - name: diarynr + type: String + unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: appl_date + type: Date + nullable: false + comment: Datum när ansökan inkom till Bergsstaten + - name: mineral type: String nullable: false width: 254 - comment: Koncessionsmineral - - name: Owner + comment: Ansökta koncessionsmineraler + - name: owners type: String nullable: false width: 254 - comment: Ägares namn - - name: ValidFrom + comment: Sökanden av bearbetningskoncessionen + - name: export_date type: Date nullable: false - comment: När tillståndets giltighet börjar - - name: ValidTo - type: Date + comment: Datum då uttag från mineralrättsregistret gjordes + source: + path: mrr/mineralrattigheter.zip + unar: + format: zip + import: + path: mineralrattigheter.gpkg + format: GPKG + layername: bearbetningskoncessioner_ansokta + publish: appl_ec + + 'mrr:markanvisningar_bk_ansokta': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Markanvisningar till bearbetningskoncessioner, ansökta (SGU) + create: + geometry-type: MULTIPOLYGON + fields: + - name: name + type: String + unique: true nullable: false - comment: När tillståndets giltighet slutar - - name: DiaryNr + width: 254 + comment: Namn på ansökt markanvisning + - name: diarynr type: String - # XXX how come there is no UNIQUE constraint here? - #unique: true + unique: true + nullable: false width: 16 - - name: LastUpdated + comment: Ärendenummer i diariet + - name: conc_name + type: String + nullable: false + width: 254 + comment: Bearbetningskoncession(er) som markanvisningen hör till + - name: appl_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum när ansökan inkom till Bergsstaten + - name: export_date + type: Date + nullable: false + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.BEARBETNINGSKONCESSIONER_APPROVED_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Owner': Owner - 'Valid from': ValidFrom - 'Valid to': ValidTo - 'Diary nr': DiaryNr - 'Last updated': LastUpdated - value-map: - 'Diary nr': - - replace: '' - with: null - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appr_ec + path: mineralrattigheter.gpkg + format: GPKG + layername: markanvisningar_bk_ansokta + publish: appl_dl - 'mrr:markanvisningar': - description: Markanvisning till koncession (SGU) + 'mrr:ut_metaller_industrimineral_beviljade': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Metaller och industrimineral, beviljade (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String + unique: true nullable: false width: 254 - comment: Benämning på området - - name: DecisionDate + comment: Namn på beviljat undersökningstillstånd + - name: licenceid + type: String + unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr + type: String + unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: appl_date + type: Date + nullable: false + comment: Datum när ansökan inkom till Bergsstaten + - name: dec_date + type: Date + nullable: false + comment: Datum när undersökningstillståndet beviljades + - name: validfrom + type: Date + nullable: false + comment: Datum från och med när undersökningstillståndet började gälla + - name: validto type: Date nullable: false - comment: Beslutsdatum - - name: DiaryNr + comment: Sista dagen undersökningstillståndet gäller + - name: mineral type: String - # XXX how come there is no UNIQUE constraint here? - #unique: true - width: 16 - - name: LastUpdated + nullable: false + width: 254 + comment: Koncessionsmineral som eftersöks + - name: owners + type: String + nullable: false + width: 254 + comment: Innehavare av undersökningstillståndet + - name: export_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.MARKANVISNINGAR_VY' - field-map: - 'Name': Name - 'Decision date': DecisionDate - 'Diary nr': DiaryNr - 'Last updated': LastUpdated + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_metaller_industrimineral_beviljade value-map: - 'Diary nr': - - replace: '' + licenceid: + - replace: '-' with: null - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appr_dl + publish: appr_met - 'mrr:mineral_applied': - description: Undersökningstillstånd, metallar och mineral, ansökta (SGU) + 'mrr:ut_diamant_beviljade': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Diamant, beviljade (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String unique: true nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Namn på beviljat undersökningstillstånd + - name: licenceid type: String - nullable: false - width: 254 - comment: Koncessionsmineral - - name: Applicant + unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr type: String + unique: true nullable: false - width: 254 - comment: Sökandens namn - - name: ApplicationDate + width: 16 + comment: Ärendenummer i diariet + - name: appl_date + type: Date + nullable: false + comment: Datum när ansökan inkom till Bergsstaten + - name: dec_date + type: Date + nullable: false + comment: Datum när undersökningstillståndet beviljades + - name: validfrom type: Date nullable: false - - name: DiaryNr + comment: Datum från och med när undersökningstillståndet började gälla + - name: validto + type: Date + nullable: false + comment: Sista dagen undersökningstillståndet gäller + - name: mineral type: String - unique: true nullable: false - width: 16 - - name: LastUpdated + width: 254 + comment: Koncessionsmineral som eftersöks + - name: owners + type: String + nullable: false + width: 254 + comment: Innehavare av undersökningstillståndet + - name: export_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.MINERAL_APPLIED_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Applicant': Applicant - 'Application date': ApplicationDate - 'Diary nr': DiaryNr - 'Last updated': LastUpdated + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_diamant_beviljade value-map: - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appl_met + licenceid: + - replace: '-' + with: null + publish: appr_ogd - 'mrr:mineral_approved': - description: Undersökningstillstånd, metallar och mineral, beviljade (SGU) + 'mrr:bearbetningskoncessioner_beviljade': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Bearbetningskoncessioner, beviljade (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String unique: true nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Namn på beviljad bearbetningskoncession + - name: licenceid + type: String + unique: true + width: 16 + comment: Tillståndsid för bearbetningskoncessionen + - name: diarynr + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: appl_date + type: Date + nullable: false + comment: Datum när ansökan inkom till Bergsstaten + - name: dec_date + type: Date + nullable: false + comment: Datum när bearbetningskoncessionen beviljades + - name: validfrom + type: Date + nullable: false + comment: Datum från och med när bearbetningskoncessionen började gälla + - name: validto + type: Date + nullable: false + comment: Sista dagen bearbetningskoncessionen gäller + - name: mineral type: String nullable: false width: 254 comment: Koncessionsmineral - - name: Owner + - name: owners + type: String + nullable: false + width: 254 + comment: Innehavare av bearbetningskoncessionen + - name: export_date + type: Date + nullable: false + comment: Datum då uttag från mineralrättsregistret gjordes + source: + path: mrr/mineralrattigheter.zip + unar: + format: zip + import: + path: mineralrattigheter.gpkg + format: GPKG + layername: bearbetningskoncessioner_beviljade + value-map: + licenceid: + - replace: '-' + with: null + publish: appr_ec + + 'mrr:markanvisningar_bk_beviljade': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Markanvisningar till bearbetningskoncessioner, beviljade (SGU) + create: + geometry-type: MULTIPOLYGON + fields: + - name: name type: String nullable: false width: 254 - comment: Ägares namn - - name: LicenceID + comment: Namn på beviljad markanvisning + - name: licenceid type: String unique: true + width: 16 + comment: Tillståndsid för markanvisningen + - name: diarynr + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: conc_name + type: String nullable: false - width: 8 - - name: ValidFrom + width: 254 + comment: Bearbetningskoncession(er) som markanvisningen hör till + - name: appl_date type: Date nullable: false - comment: När tillståndets giltighet börjar - - name: ValidTo + comment: Datum när ansökan inkom till Bergsstaten + - name: dec_date type: Date nullable: false - comment: När tillståndets giltighet slutar - - name: DiaryNr - type: String - unique: true - width: 16 - - name: LastUpdated + comment: Datum när markanvisningen beviljades + - name: export_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.MINERAL_APPROVED_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Owner': Owner - 'Licence id': LicenceID - 'Valid from': ValidFrom - 'Valid to': ValidTo - 'Diary nr': DiaryNr - 'Last updated': LastUpdated + path: mineralrattigheter.gpkg + format: GPKG + layername: markanvisningar_bk_beviljade value-map: - 'Diary nr': - - replace: '' + licenceid: + - replace: '-' with: null - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appr_met - -# 'mrr:mineral_expired': -# source: -# path: mrr/mineralrattigheter.zip -# -# 'mrr:mineral_prohibited': -# source: -# path: mrr/mineralrattigheter.zip -# -# 'mrr:ogd_expired': -# source: -# path: mrr/mineralrattigheter.zip -# -# 'mrr:ogd_prohibited': -# source: -# path: mrr/mineralrattigheter.zip + publish: appr_dl - 'mrr:olja_gas_diamant_applied': - description: Undersökningstillstånd, olja, gas och diamant, ansökta (SGU) + 'mrr:ut_metaller_industrimineral_forbud': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Metaller och industrimineral, förbud (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String unique: true nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Namn på undersökningstillstånd under förbudsår + - name: licenceid + type: String + unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: validfrom + type: Date + nullable: false + comment: Datum då undersökningstillståndets förbudsår startar + - name: validto + type: Date + nullable: false + comment: Datum då undersökningstillståndets förbudsår slutar + - name: mineral type: String nullable: false width: 254 - comment: Koncessionsmineral - - name: Applicant + comment: Koncessionsmineral som eftersökts + - name: owners type: String nullable: false width: 254 - comment: Sökandens namn - - name: ApplicationDate + comment: Innehavare av undersökningstillståndet + - name: prospdata_url + type: String + width: 254 + comment: Länk till nedladdning av återrapporterad prospekteringsinformation + - name: prospdata_filesize_mb + type: Real + subtype: Float32 + comment: Filstorlek i Mb för återrapporterad prospekteringsinformation + - name: export_date type: Date nullable: false - - name: DiaryNr + comment: Datum då uttag från mineralrättsregistret gjordes + source: + path: mrr/mineralrattigheter.zip + unar: + format: zip + import: + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_metaller_industrimineral_forbud + value-map: + licenceid: + - replace: '-' + with: null + + 'mrr:ut_diamant_forbud': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Diamant, förbud (SGU) + create: + geometry-type: MULTIPOLYGON + fields: + - name: name + type: String + unique: true + nullable: false + width: 254 + comment: Namn på undersökningstillstånd under förbudsår + - name: licenceid type: String unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true nullable: false width: 16 - - name: LastUpdated + comment: Ärendenummer i diariet + - name: validfrom + type: Date + nullable: false + comment: Datum då undersökningstillståndets förbudsår startar + - name: validto type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum då undersökningstillståndets förbudsår slutar + - name: mineral + type: String + nullable: false + width: 254 + comment: Koncessionsmineral som eftersökts + - name: owners + type: String + nullable: false + width: 254 + comment: Innehavare av undersökningstillståndet + - name: prospdata_url + type: String + width: 254 + comment: Länk till nedladdning av återrapporterad prospekteringsinformation + - name: prospdata_filesize_mb + type: Real + subtype: Float32 + comment: Filstorlek i Mb för återrapporterad prospekteringsinformation + - name: export_date + type: Date + nullable: false + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.OLJA_GAS_DIAMANT_APPLIED_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Applicant': Applicant - 'Application date': ApplicationDate - 'Diary nr': DiaryNr - 'Last updated': LastUpdated + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_diamant_forbud value-map: - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appl_ogd + licenceid: + - replace: '-' + with: null - 'mrr:olja_gas_diamant_approved': - description: Undersökningstillstånd, olja, gas och diamant, beviljade (SGU) + 'mrr:ut_metaller_industrimineral_forfallna': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Metaller och industrimineral, förfallna (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true + nullable: false + width: 254 + comment: Namn på förfallet undersökningstillstånd + - name: licenceid type: String unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true + nullable: false + width: 16 + comment: Ärendenummer i diariet + - name: validfrom + type: Date + nullable: false + comment: Datum från och med när undersökningstillståndet började gälla + - name: validto + type: Date + nullable: false + comment: Sista dagen undersökningstillståndet gällde + - name: mineral + type: String nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Koncessionsmineral som eftersökts + - name: owners type: String nullable: false + width: 510 + comment: Innehavare av undersökningstillståndet + - name: prospdata_url + type: String width: 254 - comment: Koncessionsmineral - - name: Owner + comment: Länk till nedladdning av återrapporterad prospekteringsinformation + - name: prospdata_filesize_mb + type: Real + subtype: Float32 + comment: Filstorlek i Mb för återrapporterad prospekteringsinformation + - name: export_date + type: Date + nullable: false + comment: Datum då uttag från mineralrättsregistret gjordes + source: + path: mrr/mineralrattigheter.zip + unar: + format: zip + import: + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_metaller_industrimineral_forfallna + value-map: + licenceid: + - replace: '-' + with: null + + 'mrr:ut_olja_gas_diamant_forfallna': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Undersökningstillstånd - Olja, gas och diamant, förfallna (SGU) + create: + geometry-type: MULTIPOLYGON + fields: + - name: name type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true nullable: false width: 254 - comment: Ägares namn - - name: LicenceID + comment: Namn på förfallet undersökningstillstånd + - name: licenceid type: String unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr + type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true nullable: false - width: 8 - - name: ValidFrom + width: 16 + comment: Ärendenummer i diariet + - name: validfrom type: Date nullable: false - comment: När tillståndets giltighet börjar - - name: ValidTo + comment: Datum från och med när undersökningstillståndet började gälla + - name: validto type: Date nullable: false - comment: När tillståndets giltighet slutar - - name: DiaryNr + comment: Sista dagen undersökningstillståndet gällde + - name: mineral type: String - unique: true - width: 16 - - name: LastUpdated + nullable: false + width: 254 + comment: Koncessionsmineral som eftersökts + - name: owners + type: String + nullable: false + width: 510 + comment: Innehavare av undersökningstillståndet + - name: prospdata_url + type: String + width: 254 + comment: Länk till nedladdning av återrapporterad prospekteringsinformation + - name: prospdata_filesize_mb + type: Real + subtype: Float32 + comment: Filstorlek i Mb för återrapporterad prospekteringsinformation + - name: export_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.OLJA_GAS_DIAMANT_APPROVED_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Owner': Owner - 'Licence id': LicenceID - 'Valid from': ValidFrom - 'Valid to': ValidTo - 'Diary nr': DiaryNr - 'Last updated': LastUpdated + path: mineralrattigheter.gpkg + format: GPKG + layername: ut_olja_gas_diamant_forfallna value-map: - 'Diary nr': - - replace: '' + licenceid: + - replace: '-' with: null - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appr_ogd - 'mrr:torvkoncessioner': - description: Torvkoncessioner (SGU) + 'mrr:bearbetningskoncessioner_forfallna': + # https://resource.sgu.se/dokument/produkter/mineralrattigheter-beskrivning.pdf + description: Bearbetningskoncessioner, förfallna (SGU) create: geometry-type: MULTIPOLYGON fields: - - name: Name + - name: name type: String unique: true nullable: false width: 254 - comment: Benämning på området - - name: Mineral + comment: Namn på förfallen bearbetningskoncession + - name: licenceid type: String - width: 254 - comment: Koncessionsmineral - - name: Owner + # XXX how come there is no UNIQUE constraint here? + #unique: true + width: 16 + comment: Tillståndsid för undersökningstillståndet + - name: diarynr type: String + # XXX how come there is no UNIQUE constraint here? + #unique: true nullable: false - width: 254 - comment: Ägares namn - - name: ValidFrom - type: Date - nullable: false - comment: När tillståndets giltighet börjar - - name: ValidTo + width: 16 + comment: Ärendenummer i diariet + - name: appl_date type: Date + comment: Datum när ansökan inkom till Bergsstaten + - name: mineral + type: String nullable: false - comment: När tillståndets giltighet slutar - - name: DiaryNr + width: 254 + comment: Koncessionsmineral + - name: owners type: String - unique: true - width: 16 - - name: LastUpdated + nullable: false + width: 254 + comment: Innehavare av bearbetningskoncessionen + - name: export_date type: Date nullable: false - comment: Datum för senaste uppdatering + comment: Datum då uttag från mineralrättsregistret gjordes source: path: mrr/mineralrattigheter.zip + unar: + format: zip import: - format: GeoJSON - layername: 'MRR:SE.GOV.SGU.MRR.TORVKONCESSIONER_VY' - field-map: - 'Name': Name - 'Mineral': Mineral - 'Owner': Owner - 'Valid from': ValidFrom - 'Valid to': ValidTo - 'Diary nr': DiaryNr - 'Last updated': LastUpdated + path: mineralrattigheter.gpkg + format: GPKG + layername: bearbetningskoncessioner_forfallna value-map: - 'Mineral': - - replace: '' - with: null - 'Diary nr': - - replace: '' + licenceid: + - replace: '-' with: null - 'Last updated': - - replace: '([0-9]{4})([0-9]{2})([0-9]{2})' - with: '{0}-{1}-{2}' - type: regex - publish: appr_pc 'ri:naturvard': # https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/fb9ff32f-b6f8-4d8e-ac5c-20ebb0986908 -- cgit v1.2.3