Hello,

I have a script that configures some ImageMosaics in GeoServer through the
REST API. The granules are stored in netCDF format, and there are a lot of
them. Because granule harvesting takes a lot of time, I'd like to create
all of my ImageMosaics with only a single granule, and then harvest
granules after all the ImageMosaics have been created. However, when I try
to harvest a single granule with the REST API, GeoServer instead harvests
the entire folder. Is this a bug, or am I misunderstanding how this should
work?

I am following the steps in the GeoSolutions training [1]. First, I create
the ImageMosaic with a PUT call to this URL:

http://172.17.0.4:8080/geoserver/rest/workspaces/mar07/coveragestores/composite_forecast/file.imagemosaic?configure=none

That works as expected. Then, I use the following CURL command to try and
harvest a single file:

curl -v -u admin:geoserver -XPOST -H "Content-Type: text/plain" -d
"file:///opt/data/mar07/composite/composite_1mo_201706_trgt201707.nc" "
http://172.17.0.4:8080/geoserver/rest/workspaces/mar07/coveragestores/composite_forecast/external.imagemosaic
"

This takes several minutes and results in all files in
/opt/data/mar07/composite
being harvested.

Am I missing something here? Any advice would be appreciated.

Thanks,
Dan

[1] https://geoserver.geo-solutions.it/edu/en/multidim/rest/index.html
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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

Reply via email to