First, one little correction for REST api documentation, coverage
store part: under extensions file[.<extension>] -> mosaic should be
changed to imagemosaic
Second, tnx for reply Simone, really appreciate it.
About updating mosaic layer, I managed to make it work. Its still not
the way I'd like it to work, but im getting closer though.
The way I do it now is by deleting store and creating it again
(everything is done in a servlet on a click of a button, using
http://hc.apache.org/httpcomponents-client/ to access Geoserver REST)
1. first delete existing coverage
REST DELETE http://localhost:9090/geoserver174/rest/workspaces/<ws>/coveragestores/<cs>/coverages/<cv>
2. then delete existing coverage store
REST DELETE http://localhost:9090/geoserver174/rest/workspaces/<ws>/coveragestores/<cs>
3. make new zip file (shp, dbf, shx, prj, properties files), and copy
new rasters to existing data/data/<cv> directory
4. then create coverage store again (by putting newly made zip file,
and coverage store is created automatically again)
REST PUT zippedShapeFile.zip
http://localhost:9090/geoserver174/rest/workspaces/<ws>/coveragestores/<cs>/coverages/<cv>/file\.imagemosaic
5. modify some of the coverage properties like BackgroundValues:
255 (tnx Simone 
(HINT you have to put all the parameters, because if you put only one
others are removed BUG? )
REST PUT "<coverage><parameters><entry><string>AllowMultithreading</string><string>false</string></entry><entry><string>OutputTransparentColor</string><string></string></entry><entry><string>InputTransparentColor</string><string></string></entry><entry><string>SUGGESTED_TILE_SIZE</string><string></string></entry><entry><string>InputImageThresholdValue</string><string>NaN</string></entry><entry><string>BackgroundValues</string><string>255</string></entry><entry><string>USE_JAI_IMAGEREAD</string><string>true</string></entry></parameters></coverage>"
http://localhost:9090/geoserver174/rest/workspaces/<ws>/coveragestores/<cs>/coverages/<cv>\.xml
Thats it, coverage store is made with new extens, and params like
BackgroundValue are changed again to old values.
Cheers
On Thu, Jun 11, 2009 at 9:10 PM, Simone
Giannecchini<simone.giannecchini@anonymised.com> wrote:
Ciao Ivan,
unfortunately there is no way actually to update a mosaic layer with new data.
It is feasible, not so easy to implement though, but atm there is no
such a feature. The creation of the index is done prior to publishing
the layer.
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
-------------------------------------------------------
On Mon, Jun 8, 2009 at 7:33 PM, Ivan Grcic<ivan.grcic@anonymised.com> wrote:
Dear all,
I need help with updating Mosiac Coverage layer, once the shp file of
the store has been updated with more tiff files.
External application is copying new tiff files to data directory, and
I have java class that updates shp and properties file (Envelope2D,
NumFiles)
I havent got time to explore REST interface yet, but i guess it can be
done with it.
I can see that there are few examples using cURL, but mostly for
vector features, not rasters...
Does anyone knows how to reload coverage data using REST (preferably in Java)
Any suggestions would help.
Thank you,
regards
--
Ivan Grcic
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ivan Grcic