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

convert inline geojson to vectorcube in aggregate_spatial #141

Closed
jdries opened this issue Sep 27, 2022 · 5 comments
Closed

convert inline geojson to vectorcube in aggregate_spatial #141

jdries opened this issue Sep 27, 2022 · 5 comments
Assignees

Comments

@jdries
Copy link
Contributor

jdries commented Sep 27, 2022

No description provided.

@soxofaan soxofaan transferred this issue from Open-EO/openeo-geopyspark-driver Oct 5, 2022
soxofaan added a commit that referenced this issue Oct 6, 2022
soxofaan added a commit that referenced this issue Oct 6, 2022
soxofaan added a commit that referenced this issue Oct 6, 2022
soxofaan added a commit that referenced this issue Oct 7, 2022
soxofaan added a commit that referenced this issue Oct 7, 2022
soxofaan added a commit that referenced this issue Oct 7, 2022
soxofaan added a commit that referenced this issue Oct 7, 2022
soxofaan added a commit that referenced this issue Oct 7, 2022
soxofaan added a commit that referenced this issue Oct 7, 2022
…ine GeoJSON in aggregate_spatial to VectorCube
soxofaan added a commit that referenced this issue Oct 10, 2022
…Cube

Also applied black code formatting style on changed/touched bits,
using the `darker` tool
@soxofaan
Copy link
Member

done by aee2c00

soxofaan added a commit that referenced this issue Oct 11, 2022
soxofaan added a commit that referenced this issue Oct 12, 2022
…Point GeoJSON to VectorCube in aggregate_spatial
@soxofaan
Copy link
Member

reopening to follow up failing integration tests as result of this change:

  • test_random_forest_train_and_load_from_jobid
        # Check job_metadata.json.
        with open(metadataPath, "r") as f:
            metadata = json.load(f)
>           assert metadata["geometry"].get("type", "") == "GeometryCollection"
E           AssertionError: assert 'Polygon' == 'GeometryCollection'
E             - GeometryCollection
E             + Polygon
openeo-geopyspark-integrationtests/tests/test_integration.py:601: AssertionError
  • test_integration.test_point_timeseries

    E openeo.rest.OpenEoApiError: [500] Internal: Server error: class org.locationtech.jts.geom.Point cannot be cast to class org.locationtech.jts.geom.Polygon (org.locationtech.jts.geom.Point and org.locationtech.jts.geom.Polygon are in unnamed module of loader org.apache.spark.util.MutableURLClassLoader @66629f63) (ref: r-60568a1627d94a23b7ed88fa11e07cc4)

  • test_integration.test_point_timeseries_from_batch_process

    E openeo.rest.OpenEoApiError: [500] Internal: Server error: AttributeError("'DriverVectorCube' object has no attribute 'is_empty'") (ref: r-436f0bac03f741739a56a509fea6f87e)

@soxofaan
Copy link
Member

soxofaan commented Oct 12, 2022

  • test_random_forest_train_and_load_from_jobid is fixed now
  • test_point_timeseries_from_batch_process passes again now
  • test_point_timeseries is still failing despite 2ec255e (it now fails in aggregate_single_point_feature, while before it was a bit earlier in aggregate_single_point)

soxofaan added a commit that referenced this issue Oct 12, 2022
…inline Point GeoJSON to VectorCube in aggregate_spatial
@soxofaan
Copy link
Member

Failing integration tests due to #141 changes are now fixed.
Part of it was a quick fix to roll back old behavior for point geometries (2ec255e, 4927eee).
Next up is properly handling point geometries in vector cube code paths

soxofaan added a commit that referenced this issue Oct 18, 2022
…oint geometries in aggregate_spatial

reverts 2ec255e and 4927eee
openeo-geopyspark-driver now properly supports point geometries
@soxofaan
Copy link
Member

problem with point geometries is addressed now as well (Open-EO/openeo-geopyspark-driver#239)
time to close this one again

soxofaan added a commit that referenced this issue Oct 24, 2022
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