-
Notifications
You must be signed in to change notification settings - Fork 9
Update datasets #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ivorbosloper
wants to merge
21
commits into
main
Choose a base branch
from
update_datasets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update datasets #191
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5a2ff9a
Update years for at_crop be_vlg es_an es_cl es_pv
ivorbosloper a62353b
Always call super().migrate
ivorbosloper 141cc58
Add HCAT to datasets where possible, simplify with AddHCATMixin
ivorbosloper 0236b5a
Split Germany BB and NDS in block dataset and crop fields
ivorbosloper 34b2176
Make tests work
ivorbosloper ad45f2d
Support HCAT mapping CSV files without crop_code
ivorbosloper b8befd7
Update Changelog
ivorbosloper f99b41b
Rename at_crop and nl_crop to default at/nl, and blocks to at_block/n…
ivorbosloper 949f753
Typo
ivorbosloper 3e8cfb2
Merge branch 'main' into update_datasets
ivorbosloper 1657d0f
Merge branch 'main' into update_datasets
ivorbosloper d6b1946
Fix tests
ivorbosloper 8ef867f
Update datasets to proper hcat-codes
ivorbosloper 19114a3
Complete HCAT mappings with custom lists
ivorbosloper eb548e5
Improve hcat mappings
ivorbosloper 2e7fc32
Update Converters for HCAT compatibility
ivorbosloper 171a04c
Allow empty mapping table
ivorbosloper 88841f3
Update USA converters
ivorbosloper cd650ca
Update vecorel version
ivorbosloper f412599
Update cropland testing dataset
ivorbosloper 35eca4f
Extend tests
ivorbosloper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,44 +1,47 @@ | ||
| from vecorel_cli.conversion.admin import AdminConverterMixin | ||
|
|
||
| from fiboa_cli.conversion.fiboa_converter import FiboaBaseConverter | ||
| from ..conversion.fiboa_converter import FiboaBaseConverter | ||
| from .commons.ec import AddHCATMixin | ||
|
|
||
|
|
||
| class Converter(AdminConverterMixin, FiboaBaseConverter): | ||
| sources = { | ||
| "https://inspire.lfrz.gv.at/009501/ds/inspire_referenzen_2021_polygon.gpkg.zip": [ | ||
| "INSPIRE_REFERENZEN_2021_POLYGON.gpkg" | ||
| ] | ||
| class Converter(AdminConverterMixin, AddHCATMixin, FiboaBaseConverter): | ||
| variants = { | ||
| "2025": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2025-1_polygon.gpkg.zip", | ||
| "2024": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2024-2_polygon.gpkg.zip", | ||
| "2023": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2023-2_polygon.gpkg.zip", | ||
| "2022": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2022_polygon.gpkg.zip", | ||
| "2021": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2021_polygon.gpkg.zip", | ||
| "2020": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2020_polygon.gpkg.zip", | ||
| "2019": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2019_polygon.gpkg.zip", | ||
| "2018": "https://inspire.lfrz.gv.at/009501/ds/inspire_schlaege_2018_polygon.gpkg.zip", | ||
| } | ||
|
|
||
| id = "at" | ||
| country = "AT" | ||
| short_name = "Austria" | ||
| title = "Field boundaries for Austria" | ||
| description = """ | ||
| **Field boundaries for Austria - INVEKOS Referenzen Österreich 2021.** | ||
|
|
||
| The layer includes all reference parcels ("Referenzparzellen") defined by the paying agency Agrarmarkt Austria and recorded landscape elements (landscape element layers) within the meaning of Art. 5 of Regulation (EU) No. 640/2014 and Regulation of the competent federal ministry with horizontal rules for the area of the Common Agricultural Policy (Horizontal CAP Regulation) StF: Federal Law Gazette II No. 100/2015. | ||
| **Crop Field boundaries for Austria - INVEKOS Schläge Österreich 2025.** | ||
|
|
||
| Reference parcel: is the physical block that can be clearly delimited from the outside (e.g. forest, roads, water bodies) and is formed by contiguous agricultural areas that are recognizable in nature. | ||
| This layer includes all field uses recorded by the applicants, which serve as the basis for the funding process. A field | ||
| is a contiguous area of a piece of land that is cultivated for a growing season with only one crop (field use type) and | ||
| uniform management requirements or as a landscape element type in accordance with Annex 1 of the regulation of the responsible | ||
| Federal Ministry with horizontal rules for the area of the Common Agricultural Policy (Horizontal CAP Regulation) | ||
| StF: BGBl. II No. 100/2015 or is simply maintained in good agricultural and ecological condition in accordance with | ||
| Art. 94 of Regulation (EU) No. 1306/2013 and is digitized in the GIS as a polygon or as a point. | ||
| """ | ||
| provider = "Agrarmarkt Austria <https://geometadatensuche.inspire.gv.at/metadatensuche/inspire/api/records/9db8a0c3-e92a-4df4-9d55-8210e326a7ed>" | ||
| license = "CC-BY-4.0" | ||
| columns = { | ||
| "geometry": "geometry", | ||
| "RFL_ID": "id", | ||
| "REF_ART": "ref_art", | ||
| "BRUTTOFLAECHE_HA": "metrics:area", | ||
| "GEO_ID": "id", | ||
| "INSPIRE_ID": "inspire:id", | ||
| "REF_ART_BEZEICHNUNG": "ref_art_bezeichnung", | ||
| "REFERENZ_KENNUNG": "referenz_kennung", | ||
| "FART_ID": "fart_id", | ||
| "GEO_DATERF": "determination:datetime", | ||
| "geometry": "geometry", | ||
| "SNAR_CODE": "crop:code", | ||
| "SNAR_BEZEICHNUNG": "crop:name", | ||
| "SL_FLAECHE_BRUTTO_HA": "metrics:area", | ||
| "GEOM_DATE_CREATED": "determination:datetime", | ||
| } | ||
| extensions = {"https://fiboa.org/inspire-extension/v0.3.0/schema.yaml"} | ||
| missing_schemas = { | ||
| "properties": { | ||
| "ref_art": {"type": "string"}, | ||
| "ref_art_bezeichnung": {"type": "string"}, | ||
| "referenz_kennung": {"type": "uint64"}, | ||
| "fart_id": {"type": "uint32"}, | ||
| } | ||
| ec_mapping_csv = "at_2021.csv" | ||
| extensions = { | ||
| "https://fiboa.org/inspire-extension/v0.3.0/schema.yaml", | ||
| } |
This file contains hidden or 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,44 @@ | ||
| from vecorel_cli.conversion.admin import AdminConverterMixin | ||
|
|
||
| from fiboa_cli.conversion.fiboa_converter import FiboaBaseConverter | ||
|
|
||
|
|
||
| class Converter(AdminConverterMixin, FiboaBaseConverter): | ||
| sources = { | ||
| "https://inspire.lfrz.gv.at/009501/ds/inspire_referenzen_2021_polygon.gpkg.zip": [ | ||
| "INSPIRE_REFERENZEN_2021_POLYGON.gpkg" | ||
| ] | ||
| } | ||
| id = "at_block" | ||
| country = "AT" | ||
| short_name = "Austria" | ||
| title = "Field boundaries for Austria" | ||
| description = """ | ||
| **Field boundaries for Austria - INVEKOS Referenzen Österreich 2021.** | ||
|
|
||
| The layer includes all reference parcels ("Referenzparzellen") defined by the paying agency Agrarmarkt Austria and recorded landscape elements (landscape element layers) within the meaning of Art. 5 of Regulation (EU) No. 640/2014 and Regulation of the competent federal ministry with horizontal rules for the area of the Common Agricultural Policy (Horizontal CAP Regulation) StF: Federal Law Gazette II No. 100/2015. | ||
|
|
||
| Reference parcel: is the physical block that can be clearly delimited from the outside (e.g. forest, roads, water bodies) and is formed by contiguous agricultural areas that are recognizable in nature. | ||
| """ | ||
| provider = "Agrarmarkt Austria <https://geometadatensuche.inspire.gv.at/metadatensuche/inspire/api/records/9db8a0c3-e92a-4df4-9d55-8210e326a7ed>" | ||
| license = "CC-BY-4.0" | ||
| columns = { | ||
| "geometry": "geometry", | ||
| "RFL_ID": "id", | ||
| "REF_ART": "ref_art", | ||
| "BRUTTOFLAECHE_HA": "metrics:area", | ||
| "INSPIRE_ID": "inspire:id", | ||
| "REF_ART_BEZEICHNUNG": "ref_art_bezeichnung", | ||
| "REFERENZ_KENNUNG": "referenz_kennung", | ||
| "FART_ID": "fart_id", | ||
| "GEO_DATERF": "determination:datetime", | ||
| } | ||
| extensions = {"https://fiboa.org/inspire-extension/v0.3.0/schema.yaml"} | ||
| missing_schemas = { | ||
| "properties": { | ||
| "ref_art": {"type": "string"}, | ||
| "ref_art_bezeichnung": {"type": "string"}, | ||
| "referenz_kennung": {"type": "uint64"}, | ||
| "fart_id": {"type": "uint32"}, | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.