-
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 #569 from nsidc/asiaq-nunagis-roads-layer
Asiaq nunagis roads layer
- Loading branch information
Showing
6 changed files
with
227 additions
and
68 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
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 |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
":populated_places", | ||
":comprehensive_places", | ||
":buildings", | ||
":roads", | ||
], | ||
) |
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,23 @@ | ||
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 | ||
|
||
roads = Layer( | ||
id="roads", | ||
title="Roads", | ||
style="roads_line", | ||
description="""Lines representing roads in Greenland.""", | ||
tags=["places"], | ||
input=LayerInput( | ||
dataset=asiaq_nunagis, | ||
asset=asiaq_nunagis.assets["roads"], | ||
), | ||
steps=[ | ||
*ogr2ogr( | ||
input_file="{input_dir}/fetched.geojson", | ||
output_file="{output_dir}/final.gpkg", | ||
boundary_filepath=project.boundaries["data"].filepath, | ||
), | ||
], | ||
) |