Hello!
I created an ImageMosaic store with weather data. Each granule consist of 3
files: png, pgw and prj. I need to automate adding new granules to the mosaic
and updating its index. The only way (as I know) is to use curl commands
documented here:
https://docs.geoserver.org/latest/en/user/rest/imagemosaic.html#updating-an-image-mosaic-contents
/
I’ve put sample directory with 3 files representing 1 additional granule to the
server and tried to:
1) upload 1 file from it:
curl -v -u user:pword -XPOST -H "Content-type: text/plain" -d
"file:///docker/geoserver-shared/data/temp/071809/20220718T09.png" "
https://HOSTNAME/geoserver/rest/workspaces/GIS/coveragestores/mosaic_timeseries/external.imagemosaic
"
>400 BAD_REQUEST: Failed to locate the input file
>file:///docker/geoserver-shared/data/temp/071809/20220718T09.png
2) upload whole directory:
curl -v -u user:pword -XPOST -H "Content-type: text/plain" -d
"file:///docker/geoserver-shared/data/temp/071809" "
https://HOSTNAME/geoserver/rest/workspaces/GIS/coveragestores/mosaic_timeseries/external.imagemosaic
"
>400 BAD_REQUEST: Failed to locate the input file
>file:///docker/geoserver-shared/data/temp/071809
There must be something obviously wrong but I cannot figure it out. Would
appreciate if someone has a clue and can point me in right direction.
--
С уважением,
Ярослав Минин
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users