Hi Max,
Yes, that's what I meant.
Are you certain about this 'manually edit the index' stuff ?
I don't get it : using REST DELETE command, you can remove a granule,
and it is removed from the index too.
But when you add a granule, it is not inserted in the index ? Isn't it
the point of adding a granule to the mosaic ?
Seems weird, doesn't it ?
Thanks,
Jean
Le 11/09/2014 11:33, Max Stephan a écrit :
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 <[email protected]>
*Gesendet:* Donnerstag, 11. September 2014 08:44
*An:* [email protected]
*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
--
*Jean Pommier -- pi-Geosolutions*
Ingénieur, consultant indépendant
Tél. : (+33) 6 09 23 21 36
E-mail : [email protected]
Web : www.pi-geosolutions.fr
--
*Jean Pommier -- pi-Geosolutions*
Ingénieur, consultant indépendant
Tél. : (+33) 6 09 23 21 36
E-mail : [email protected]
Web : 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users