diff --git a/qgreenland/config/cfg-lock.json b/qgreenland/config/cfg-lock.json index 5571cada..a552f031 100644 --- a/qgreenland/config/cfg-lock.json +++ b/qgreenland/config/cfg-lock.json @@ -197,26 +197,6 @@ "title": "IceBridge BedMachine Greenland, Version 5" } }, - "caff_char": { - "assets": { - "only": { - "id": "only", - "urls": [ - "http://geo.abds.is/geonetwork/srv/api/records/4dc7f9b6-b553-445a-a8a3-a0ece574e8ce/attachments/Arctic_Char_2010.zip" - ], - "verify_tls": true - } - }, - "id": "caff_char", - "metadata": { - "abstract": "Circumpolar distribution of Arctic Char species complex\nSalvelinus alpinus, and related species. Arctic Biodiversity\nAssessment, Chapter 6: Fishes: http://www.caff.is/assessment-series/\n10-arctic-biodiversity-assessment/211-arctic-biodiversity-assessment\n-2013-chapter-6-fishes.", - "citation": { - "text": "Conservation of Arctic Flora and Fauna (CAFF www.caff.is)\nworking group of the Arctic Council", - "url": "http://geo.abds.is/geonetwork/srv/eng/catalog.search#/metadata/4dc7f9b6-b553-445a-a8a3-a0ece574e8ce" - }, - "title": "Circumpolar distribution of arctic char species complex Salvelinus alpinus, and related species" - } - }, "caff_murre_colonies": { "assets": { "only": { @@ -4143,67 +4123,6 @@ "show": false } }, - { - "children": [ - { - "layer_cfg": { - "description": "Polygons indicating the 2010 distribution of Arctic Char\npopulations.", - "id": "caff_char", - "in_package": true, - "input": { - "asset": { - "id": "only" - }, - "dataset": { - "id": "caff_char" - } - }, - "show": false, - "steps": [ - { - "args": [ - "unzip", - "{input_dir}/Arctic_Char_2010.zip", - "-d", - "{output_dir}", - "" - ], - "type": "command" - }, - { - "args": [ - "ogr2ogr", - "-lco", - "ENCODING=UTF-8", - "-t_srs", - "EPSG:3413", - "-clipdst", - "{assets_dir}/latitude_shape_40_degrees.geojson", - "-makevalid", - "-dialect", - "sqlite", - "-sql", - "'SELECT\n Geometry,\n SPECIES,\n INTRODUCED,\n OWNER,\n DATA_URL,\n SOURCE,\n CREATED,\n DATE(substr(MODIFIED, 7, 4) || \"-\" ||\n substr(MODIFIED, 4, 2) || \"-\" ||\n substr(MODIFIED, 1, 2)) as MODIFIED,\n CONTACT\n FROM Arctic_Char_2010'", - "{output_dir}/final.gpkg", - "{input_dir}/*.shp" - ], - "type": "command" - } - ], - "style": "semitransparent_polygon", - "tags": [], - "title": "Arctic Char populations 2010" - }, - "name": "caff_char" - } - ], - "name": "Fish", - "settings": { - "expand": false, - "order": null, - "show": false - } - }, { "children": [ { diff --git a/qgreenland/config/datasets/caff.py b/qgreenland/config/datasets/caff.py index dadddb12..a781a207 100644 --- a/qgreenland/config/datasets/caff.py +++ b/qgreenland/config/datasets/caff.py @@ -36,32 +36,3 @@ }, }, ) - -caff_char = Dataset( - id="caff_char", - assets=[ - HttpAsset( - id="only", - urls=[ - "http://geo.abds.is/geonetwork/srv/api/records/4dc7f9b6-b553-445a-a8a3-a0ece574e8ce/attachments/Arctic_Char_2010.zip", - ], - ), - ], - metadata={ - "title": "Circumpolar distribution of arctic char species complex Salvelinus alpinus, and related species", - "abstract": ( - """Circumpolar distribution of Arctic Char species complex - Salvelinus alpinus, and related species. Arctic Biodiversity - Assessment, Chapter 6: Fishes: http://www.caff.is/assessment-series/ - 10-arctic-biodiversity-assessment/211-arctic-biodiversity-assessment - -2013-chapter-6-fishes.""" - ), - "citation": { - "text": ( - """Conservation of Arctic Flora and Fauna (CAFF www.caff.is) - working group of the Arctic Council""" - ), - "url": "http://geo.abds.is/geonetwork/srv/eng/catalog.search#/metadata/4dc7f9b6-b553-445a-a8a3-a0ece574e8ce", - }, - }, -) diff --git a/qgreenland/config/layers/Biology/Fish/caff_char.py b/qgreenland/config/layers/Biology/Fish/caff_char.py deleted file mode 100644 index 5fed7ad6..00000000 --- a/qgreenland/config/layers/Biology/Fish/caff_char.py +++ /dev/null @@ -1,44 +0,0 @@ -from qgreenland.config.datasets.caff import caff_char as dataset -from qgreenland.config.helpers.steps.compressed_vector import compressed_vector -from qgreenland.models.config.layer import Layer, LayerInput - -caff_char = Layer( - id="caff_char", - title="Arctic Char populations 2010", - description=( - """Polygons indicating the 2010 distribution of Arctic Char - populations.""" - ), - tags=[], - style="semitransparent_polygon", - input=LayerInput( - dataset=dataset, - asset=dataset.assets["only"], - ), - steps=[ - *compressed_vector( - input_file="{input_dir}/Arctic_Char_2010.zip", - output_file="{output_dir}/final.gpkg", - ogr2ogr_args=( - "-dialect", - "sqlite", - "-sql", - ( - """'SELECT - Geometry, - SPECIES, - INTRODUCED, - OWNER, - DATA_URL, - SOURCE, - CREATED, - DATE(substr(MODIFIED, 7, 4) || "-" || - substr(MODIFIED, 4, 2) || "-" || - substr(MODIFIED, 1, 2)) as MODIFIED, - CONTACT - FROM Arctic_Char_2010'""" - ), - ), - ), - ], -)