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

[ImageMosaic] Add "recalculate/uploadBBox" to add_granule function #14

Open
apparell opened this issue Sep 27, 2020 · 0 comments
Open

Comments

@apparell
Copy link

apparell commented Sep 27, 2020

Is your feature request related to a problem? Please describe.
It's not possible to add "recalculate/uploadBBox" parameter to an harvest granule request.

Geoserver doc: https://docs.geoserver.org/latest/en/user/rest/api/coveragestores.html#rest-api-coveragestores-file-put (recalculate in POST request at /workspaces//coveragestores//file[.<extension])

Geoserver API Swagger: https://docs.geoserver.org/latest/en/api/#1.0.0/coveragestores.yaml (uploadBBox in POST request /workspaces/{workspace}/coveragestores/{store}/{method}.{format} )

Describe the solution you'd like
Add parameters in "add_granule" function to be able to recalculate the BBox of the ImageMosaic once updated.
In line 648 of catalog.py there's the function "add_granule" with declared parameters in line 666 as "params = dict()"; unfortunately there's no function argument to pass key:value pair to the dictionary.

Describe alternatives you've considered
None at the moment.

Additional context
E.g. I have an ImageMosaic over a ROI (a Polygon) with time attribute. When updating Polygon coordinates it triggers a new elaboration of the area and then post the resulting raster to Geoserver. Since orginal Polygon coordinates were updated, the new elaboration will have a different BBox than the original ImageMosaic (assuming that for example new area is larger than the previous and bbox is inferred from data).

Geoserver v2.17.2 and v2.16.2
Python v3.7.8

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

1 participant