-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #568 from nsidc/asiaq-nunagis-buildings-layer
Add buildings layer from Asiaq/NunaGIS
- Loading branch information
Showing
6 changed files
with
212 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from qgreenland.config.helpers.assets.ogr_remote import ogr_remote_asset | ||
from qgreenland.models.config.dataset import Dataset | ||
|
||
asiaq_nunagis = Dataset( | ||
id="asiaq_nunagis", | ||
assets=[ | ||
ogr_remote_asset( | ||
asset_id="buildings", | ||
output_file="{output_dir}/fetched.geojson", | ||
url="https://kort.nunagis.gl/refserver/rest/services/Kortportal/Kortportal_TekniskGrundkort/MapServer/82/query/?f=json&where=OBJECTID+is+not+null&outFields=*&orderByFields=OBJECTID+ASC", | ||
), | ||
], | ||
metadata={ | ||
"title": "Asiaq Map Portal Techincal Basemap", | ||
"abstract": ( | ||
"""The NunaGIS data server provides data for the the Asiaq Map | ||
Portal Technical Basemap, which includes a variety of datasets.""" | ||
), | ||
"citation": { | ||
"text": ("""NunaGIS (2023). Date accessed: {{date_accessed}}."""), | ||
"url": "https://kort.nunagis.gl/refserver/rest/services/Kortportal/Kortportal_TekniskGrundkort/MapServer", | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ | |
order=[ | ||
":populated_places", | ||
":comprehensive_places", | ||
":buildings", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from qgreenland.config.datasets.asiaq_nunagis import asiaq_nunagis | ||
from qgreenland.config.helpers.steps.ogr2ogr import ogr2ogr | ||
from qgreenland.config.project import project | ||
from qgreenland.models.config.layer import Layer, LayerInput | ||
|
||
buildings = Layer( | ||
id="buildings", | ||
title="Buildings", | ||
style="buildings_shape", | ||
description="""Polygons representing buildings in Greenland. | ||
The attribute containing building use is called ‘Info’ and is provided in Danish.""", | ||
tags=["places"], | ||
input=LayerInput( | ||
dataset=asiaq_nunagis, | ||
asset=asiaq_nunagis.assets["buildings"], | ||
), | ||
steps=[ | ||
*ogr2ogr( | ||
input_file="{input_dir}/fetched.geojson", | ||
output_file="{output_dir}/final.gpkg", | ||
boundary_filepath=project.boundaries["data"].filepath, | ||
), | ||
], | ||
) |