Skip to content
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

filter_spatial with point FeatureCollection #268

Open
VictorVerhaert opened this issue Mar 6, 2024 · 1 comment
Open

filter_spatial with point FeatureCollection #268

VictorVerhaert opened this issue Mar 6, 2024 · 1 comment

Comments

@VictorVerhaert
Copy link

Using filter_spacial with a FeatureCollection containing POINT's now returns a nested and unclear error:
OpenEO batch job failed: TypeError("'Point' object is not subscriptable")

Either a clearer error message should be provided, or the driver should support point feature collections for filter_spacial.

@soxofaan soxofaan changed the title filter_spacial with point FeatureCollection filter_spatial with point FeatureCollection Mar 13, 2024
@soxofaan
Copy link
Member

back-end side stack trace of this error FYI:

  File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 402, in convert_node
    process_result = apply_process(process_id=process_id, args=processGraph.get('arguments', {}),
  File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 1594, in apply_process
    return process_function(args=ProcessArgs(args, process_id=process_id), env=env)
  File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 1283, in filter_spatial
    geometries = MultiPolygon(polygons)
  File "/opt/venv/lib64/python3.8/site-packages/shapely/geometry/multipolygon.py", line 60, in __init__
    geom, n = geos_multipolygon_from_polygons(polygons)
  File "/opt/venv/lib64/python3.8/site-packages/shapely/geometry/multipolygon.py", line 202, in geos_multipolygon_from_polygons
    shell = ob[0]
TypeError: 'Point' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants