-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from mundialis/add_file_import
Add file import and tests * updates `administrative_boundaries()` * restructures and refactors addon * adds local file import if data available and overlapping with AOI * fix tests for nw and multi fs * added tests for sn and bw
- Loading branch information
Showing
21 changed files
with
978 additions
and
511 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Run tests for GRASS GIS addons | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main ] | ||
|
||
jobs: | ||
tests: | ||
uses: mundialis/github-workflows/.github/workflows/grass-tests.yml@main |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python3 | ||
# | ||
############################################################################ | ||
# | ||
# MODULE: federal_state_info | ||
# AUTHOR(S): Anika Weinmann, Julia Haas | ||
|
||
# PURPOSE: German Federal State information as dictionary | ||
# COPYRIGHT: (C) 2024 by mundialis GmbH & Co. KG and the GRASS | ||
# Development Team | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
############################################################################# | ||
|
||
FS_ABBREVIATION = { | ||
"Baden-Württemberg": "BW", | ||
"BW": "BW", | ||
"Bayern": "BY", | ||
"BY": "BY", | ||
"Berlin": "BE", | ||
"BE": "BE", | ||
"Brandenburg": "BB", | ||
"BB": "BB", | ||
"Bremen": "HB", | ||
"HB": "HB", | ||
"Hamburg": "HH", | ||
"HH": "HH", | ||
"Hessen": "HE", | ||
"HE": "HE", | ||
"Mecklenburg-Vorpommern": "MV", | ||
"MV": "MV", | ||
"Niedersachsen": "NI", | ||
"NI": "NI", | ||
"Nordrhein-Westfalen": "NW", | ||
"NW": "NW", | ||
"Rheinland-Pfalz": "RP", | ||
"RP": "RP", | ||
"Saarland": "SL", | ||
"SL": "SL", | ||
"Sachsen": "SN", | ||
"SN": "SN", | ||
"Sachsen-Anhalt": "ST", | ||
"ST": "ST", | ||
"Schleswig-Holstein": "SH", | ||
"SH": "SH", | ||
"Thüringen": "TH", | ||
"TH": "TH", | ||
} |
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,3 @@ | ||
py7zr | ||
grass-gis-helpers | ||
requests |
Binary file not shown.
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 @@ | ||
Baden-Württemberg |
File renamed without changes.
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 @@ | ||
Sachsen |
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 @@ | ||
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[9.958585901835793,48.403691878384031],[9.95898887753941,48.40377413704698],[9.959341638592079,48.403687667530306],[9.959452166537243,48.403561452908349],[9.959413034425308,48.403148312465191],[9.958942051544028,48.402784712958955],[9.958630490741641,48.402893808371815],[9.958550736192205,48.403322557156393],[9.958585901835793,48.403691878384031]]]}}]} |
File renamed without changes.
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 @@ | ||
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[13.654632568359375,51.103521942404186],[13.63677978515625,51.034485632974125],[13.798828125,50.98350536409832],[13.863372802734373,51.055207338584943],[13.808441162109375,51.094898034822961],[13.654632568359375,51.103521942404186]]]}}]} |
Oops, something went wrong.