-
Notifications
You must be signed in to change notification settings - Fork 6
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
disallow Points #356
base: master
Are you sure you want to change the base?
disallow Points #356
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor remark, seems fine otherwise
Open-EO/openeo-geopyspark-driver#996 Co-authored-by: Jeroen Dries <[email protected]>
return _contains_polygon(geojson["geometry"]) | ||
|
||
if geojson["type"] == "FeatureCollection": | ||
return any(_contains_polygon(feature) for feature in geojson["features"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given Open-EO/openeo-processes#527 / Open-EO/openeo-processes#528 I think that should be all
instead of any
(and the function should be named _contains_only_polygons
)
if geojson["type"] == "FeatureCollection": | ||
return any(_contains_polygon(feature) for feature in geojson["features"]) | ||
|
||
if geojson["type"] == "GeometryCollection": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not add support for this deprecated type, or is it necessary because we still coerce to GeometryCollection in several other places unfortunately?
Open-EO/openeo-geopyspark-driver#996