Skip to content

filter_spatial with point FeatureCollection #268

Open

Description

@VictorVerhaert

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.

Activity

  1. changed the title [-]filter_spacial with point FeatureCollection[/-] [+]filter_spatial with point FeatureCollection[/+] on Mar 13, 2024
  2. soxofaan commented on Mar 13, 2024

    @soxofaan
    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
    
  3. added a commit that references this issue on Mar 14, 2024
  4. jdries commented on Nov 22, 2024

    @jdries
    Contributor

    by looking at the stack trace, this should no longer occur because feature collection is now translated to driver vector cube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions