Skip to content

Commit 4bdd41f

Browse files
committed
fixup! Issue #114/#200 support promoting feature properties to cube values
1 parent c2842ed commit 4bdd41f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openeo_driver/datacube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def from_fiona(
321321
if len(paths) != 1:
322322
# TODO #114 EP-3981: support multiple paths
323323
raise FeatureUnsupportedException(message="Loading a vector cube from multiple files is not supported")
324-
columns_for_cube = options.get("columns_for_cube", cls.COLUMN_SELECTION_NUMERICAL)
324+
columns_for_cube = (options or {}).get("columns_for_cube", cls.COLUMN_SELECTION_NUMERICAL)
325325
# TODO #114 EP-3981: lazy loading like/with DelayedVector
326326
# note for GeoJSON: will consider Feature.id as well as Feature.properties.id
327327
if "parquet" == driver:

tests/test_vectorcube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_from_geometry(self, geometry, expected):
375375
],
376376
)
377377
def test_from_fiona(self, path, driver):
378-
vc = DriverVectorCube.from_fiona([path], driver=driver, columns_for_cube=[])
378+
vc = DriverVectorCube.from_fiona([path], driver=driver, options={"columns_for_cube": []})
379379
assert vc.to_geojson() == DictSubSet(
380380
{
381381
"type": "FeatureCollection",

0 commit comments

Comments
 (0)