-
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.
Init config for cities & settlements layers from Asiaq/NunaGIS
Lot of overlap between our existing place names database from Asiaq and these layers. Of course, these layers do not have english translations/explanations. We need to decide if we want to keep the original place names database around ("Towns and settlements" is derived from it). It includes way more than just towns/settlements. It has place names for various outher landmarks (e.g., islands, lakes, etc). Maybe we keep that layer and the cities & towns from NunaGIS separately? Or just get rid of the Asiaq place names database layers altogether?
- Loading branch information
1 parent
7be3057
commit cbc03b5
Showing
3 changed files
with
54 additions
and
0 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
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 |
---|---|---|
|
@@ -6,5 +6,7 @@ | |
":comprehensive_places", | ||
":buildings", | ||
":roads", | ||
":cities", | ||
":settlements", | ||
], | ||
) |
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,42 @@ | ||
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 | ||
|
||
cities = Layer( | ||
id="cities", | ||
title="Cities", | ||
# style=None, | ||
description="""Lines representing roads in Greenland.""", | ||
tags=["places"], | ||
input=LayerInput( | ||
dataset=asiaq_nunagis, | ||
asset=asiaq_nunagis.assets["cities"], | ||
), | ||
steps=[ | ||
*ogr2ogr( | ||
input_file="{input_dir}/fetched.geojson", | ||
output_file="{output_dir}/final.gpkg", | ||
boundary_filepath=project.boundaries["data"].filepath, | ||
), | ||
], | ||
) | ||
|
||
settlements = Layer( | ||
id="settlements", | ||
title="Settlements", | ||
# style=None, | ||
description="""Lines representing roads in Greenland.""", | ||
tags=["places"], | ||
input=LayerInput( | ||
dataset=asiaq_nunagis, | ||
asset=asiaq_nunagis.assets["settlements"], | ||
), | ||
steps=[ | ||
*ogr2ogr( | ||
input_file="{input_dir}/fetched.geojson", | ||
output_file="{output_dir}/final.gpkg", | ||
boundary_filepath=project.boundaries["data"].filepath, | ||
), | ||
], | ||
) |