eblondel / geosapi

R interface to GeoServer REST API
https://github.com/eblondel/geosapi/wiki
Other
34 stars 5 forks source link

Support for ImageMosaic for raster time-series data #66

Closed ammaciel closed 7 months ago

ammaciel commented 11 months ago

The package developed is very interesting, and I am studying more about it. I'm currently working with the Geoserver ImageMosaic plugin and would like to automate this task in R.

My data are composed of a set of raster data with different time periods. In this case, I need to configure a mosaic directory (https://docs.geoserver.org/main/en/user/tutorials/imagemosaic_timeseries/imagemosaic_timeseries.html).

I created a ImageMosaic coveragestore without problem (GSImageMosaicCoverageStore$new), but my issue is in relation to add a directory with a set of raster with different timestamps. For instance:

$ls path/max_temperatures/*.tif

max_temperatures/temperature_20221215.tif max_temperatures/temperature_20221216.tif max_temperatures/temperature_20221217.tif max_temperatures/temperature_20221218.tif max_temperatures/temperature_20221219.tif

I tried to use the Method uploadImageMosaic() with a directory, and it returns the error _cannot open file '': it is a directory_. Furthermore, I had checked package documentation and other files and not discover a solution that can work with my data. Appreciate if you can help me with this issue.

kikislater commented 11 months ago

Geonode do it with geoserver but index its tiles with dbms (postgres/postgis) like you mention with the geoserver documentatiin link. So, getting inspiration from IMO with ImageMosaic and API could save time for future intégration in geosapi ...

eblondel commented 8 months ago

Dear @ammaciel first of all my apologies for not having seen your issue To upload an image mosaic set of file, you use the right method uploadImageMosaic, but you should put your files in a zip archive. Did you try it?