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

load_collection: support shapely geometry input #678

Closed
jdries opened this issue Dec 5, 2024 · 1 comment
Closed

load_collection: support shapely geometry input #678

jdries opened this issue Dec 5, 2024 · 1 comment

Comments

@jdries
Copy link
Collaborator

jdries commented Dec 5, 2024

See this TODO:

'spatial_extent': spatial_extent,

The official load_collection process allows geojson and vector cube as input, but it seems that the python client doesn't allow that.
This is very annoying, because it means we need tedious conversion to the 'spatial_extent' format everywhere.

Also a shapely bbox can be expressed rather easily as box(1.0,2.0,3.0,4.0), following the commonly used minx,miny,maxx,maxy notation that is found on tools like bbox finder.

There's already a helper function that might be of use:

def _get_geometry_argument(

soxofaan added a commit that referenced this issue Jan 16, 2025
- doc and typing tweaks
- push more functionality to _get_geometry_argument
- add support in load_stac as well
soxofaan added a commit that referenced this issue Jan 16, 2025
soxofaan pushed a commit that referenced this issue Jan 17, 2025
soxofaan added a commit that referenced this issue Jan 17, 2025
- doc and typing tweaks
- push more functionality to _get_geometry_argument
- add support in load_stac as well
@soxofaan
Copy link
Member

just merged #682

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

No branches or pull requests

3 participants