-
Couldn't load subscription status.
- Fork 56
Closed
Description
As a convenience, it'd be nice to pass a shapely object for intersects in search.
item_a = ...
point = shapely.geometry.shape(item_a).centroid # a shapely point
search(..., intersects=point)Internally, pystac-client could convert to the geojson representation.
To generalize a bit more, there's the __geo_interface__: https://gist.github.com/sgillies/2217756. pystac-client might check for that method and call it if it exists, regardless of the type of the object.
Come to think of it, maybe pystac items should implement __geo_interface__ too... (stac-utils/pystac#786)
gadomski
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request