Hi Jean,

if I understand you correctly, you have an existing time enabled image mosaic 
and want to add new GeoTIFFs to it, yes?


As far as I am aware the Geoserver ImageMosaic module does not provide a 
mechanism to update the granule index when new granules are added to the 
ImageMosaic source directory. Instead you need to add the granules manually to 
your granule index in your PostGIS table. You can do this automated through a 
Script for example. This script would need to extract the respective parameters 
from the new granules (time dimension from filename, geographical extent from 
GeoTIFF, path) and write it to a new row in your granule index table (if the 
extent is the same for all of your granules you could also simply copy over the 
geometry from a previous granule).


Alternatively you would have to recreate the ImageMosaic every time you add new 
granules to it (which would require deleting the granule index table and 
deleting the supplementary files that GeoServer creates on ImageMosaic creation 
before recreating the ImageMosaic).


Regards,

Max


________________________________
Von: Jean Pommier <jean.pomm...@pi-geosolutions.fr>
Gesendet: Donnerstag, 11. September 2014 08:44
An: geoserver-users@lists.sourceforge.net
Betreff: [Geoserver-users] Add data (granule) to an imagemosaic+time

Hi list,

I've got an imagemosaic constituted of several NDVI geotiffs (using time 
dimension).
It works very well, but I'm stuck at the "add new data" step.
I've tried several ways : curl 
(http://docs.geoserver.org/2.5.x/en/user/rest/examples/curl.html), gsconfig.
Digging in the REST API, I guess it should have been
curl -v -u admin:geoserver -XPUT -H "Content-type: application/zip" 
--data-binary @dv2011.zip 
"http://pigeo.fr/geoserver-prod/rest/workspaces/pigeo/coveragestores/NDVI/file.imagemosaic
(the zip file containing my new geotiff file)
Actually, it did add the data in the repository, but didn't update the index. 
So it's not really added, just copied in the folder.

I've even tried with several versions of geoserver (2.4.2, 2.5.2, 2.6.RC1) with 
no changes. So I guess I'm mistaken somewhere in my process.
My data are geotiffs, all the same. I'm running geoserver under tomcat7, java 7 
oracle.
The mosaic index is stored in a postgis DB.
Any help, please ? Do I need to install some extension ?
Have a nice day,

Jean

--
[cid:part1.00040504.08080902@pi-geosolutions.fr]

Jean Pommier -- pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : j...@pi-geosolutions.fr<mailto:j...@pi-geosolutions.fr>
Web : www.pi-geosolutions.fr<http://www.pi-geosolutions.fr>
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to