Skip to content

Commit b98e26c

Browse files
committed
Fix field boundary generator, v0.2.1
1 parent 75199c6 commit b98e26c

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2727

2828
- ...
2929

30+
## [v0.2.1] - 2024-04-02
31+
32+
### Fixed
33+
34+
- Fixed the field boundary generation for de-nrw, which was pointing at the wrong dataset.
3035

3136
## [v0.2.0] - 2024-04-02
3237

@@ -89,7 +94,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8994

9095
- First release
9196

92-
[Unreleased]: <https://github.com/radiantearth/stac-spec/compare/v0.2.0...main>
97+
[Unreleased]: <https://github.com/radiantearth/stac-spec/compare/v0.2.1...main>
98+
[v0.2.1]: <https://github.com/radiantearth/stac-spec/compare/v0.2.0...v0.2.1>
9399
[v0.2.0]: <https://github.com/radiantearth/stac-spec/compare/v0.1.1...v0.2.0>
94100
[v0.1.1]: <https://github.com/radiantearth/stac-spec/compare/v0.1.0...v0.1.1>
95101
[v0.1.0]: <https://github.com/radiantearth/stac-spec/compare/v0.0.9...v0.1.0>

fiboa_cli/create.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ def create(config):
3737
keys = feature["properties"].keys()
3838
columns.update(keys)
3939

40+
columns = list(columns)
41+
columns.sort()
42+
43+
# Create the Parquet file
4044
create_parquet(features, columns, collection, output_file, config)
4145
log(f"Wrote to {output_file}", "success")

fiboa_cli/datasets/de_nrw.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
import geopandas as gpd
55
import pandas as pd
66

7-
URI = "https://www.opengeodata.nrw.de/produkte/umwelt_klima/bodennutzung/landwirtschaft/DGL_EPSG25832_Shape.zip"
7+
URI = "https://www.opengeodata.nrw.de/produkte/umwelt_klima/bodennutzung/landwirtschaft/LFK-AKTI_EPSG25832_Shape.zip"
88
COLUMNS = {
99
'geometry': 'geometry',
1010
'ID': 'id',
1111
'INSPIRE_ID': 'inspire:id',
1212
'FLIK': 'flik',
1313
'GUELT_VON': 'determination_datetime',
14-
# not present anymore?
15-
# 'NUTZ_CODE': 'nutz_code',
16-
# 'NUTZ_TXT': 'nutz_txt',
17-
# 'AREA_HA': 'area'
14+
'NUTZ_CODE': 'nutz_code',
15+
'NUTZ_TXT': 'nutz_txt',
16+
'AREA_HA': 'area'
1817
}
1918

2019
def convert(output_file):
@@ -42,7 +41,7 @@ def convert(output_file):
4241
config = {
4342
"fiboa_version": fiboa_version,
4443
}
45-
columns = actual_columns.values()
44+
columns = list(actual_columns.values())
4645
create_parquet(gdf, columns, collection, output_file, config)
4746

4847
log("Finished", "success")

fiboa_cli/parquet.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
from shapely.geometry import shape
99

1010
def create_parquet(data, columns, collection, output_file, config):
11-
columns = list(columns)
12-
columns.sort()
13-
1411
# Load the data schema
1512
fiboa_schema = load_fiboa_schema(config)
1613
properties = {}

fiboa_cli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.2.1"
22
fiboa_version = "0.1.0"

0 commit comments

Comments
 (0)