[Geoserver-users] Reload Mosaic CoverageStore/Coverage after shp/properties file has been modified

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

Hello to all:

I need that somebody helps me, I am they program a plugin for Geoserver with Netbeans and I need to know as debbug this project.

Thanks

Rafael Queralta ha scritto:

Hello to all:

I need that somebody helps me, I am they program a plugin for Geoserver with Netbeans and I need to know as debbug this project.

Unfortunately, as far as I know, all GeoServer developers are Eclipse
users. I know there is a maven plugin for Netbeans, I guess using that
you'll be able to setup a developer enviroment and debug your plugin

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Does anyone know of an utility to take virtual earth tiles and make
higher level pyramid tiles from them?

The reason I ask, I am using FME to stitch together 6 mrSid images to
create VE tiles. And it is reasonably quick for the base tiles (well,
quick as in overnight). But it takes longer and longer to make each
higher level pyramid level (think days). It would seem trivial to read
in a set of four tiles, merge 4 cells to one, and write out a new tile
with the same name minus the last digit. I'm sure someone has done this
- I just haven't stumbled upon this yet.

Thanks in advance,

//SIGNED//
Bryan Hall, 38 EIG COMM GIO, L3-COM

One DoD... One Map
38 EIG/EN, Tinker AFB, OK
Lon/Lat: -97.3587, 35.4025

Try this one

http://www.gdal.org/gdal_retile.html

and let me know, I did this stuff

Hall, Bryan D Contr USAF AFMC 38 EIG/ENC writes:

Does anyone know of an utility to take virtual earth tiles and make
higher level pyramid tiles from them?

The reason I ask, I am using FME to stitch together 6 mrSid images to
create VE tiles. And it is reasonably quick for the base tiles (well,
quick as in overnight). But it takes longer and longer to make each
higher level pyramid level (think days). It would seem trivial to read
in a set of four tiles, merge 4 cells to one, and write out a new tile
with the same name minus the last digit. I'm sure someone has done this
- I just haven't stumbled upon this yet.

Thanks in advance,

//SIGNED//
Bryan Hall, 38 EIG COMM GIO, L3-COM

One DoD... One Map
38 EIG/EN, Tinker AFB, OK
Lon/Lat: -97.3587, 35.4025

------------------------------------------------------------------------------
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

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

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/&lt;ws&gt;/coveragestores/&lt;cs&gt;/coverages/&lt;cv&gt;

2. then delete existing coverage store
REST DELETE http://localhost:9090/geoserver174/rest/workspaces/&lt;ws&gt;/coveragestores/&lt;cs&gt;

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/&lt;ws&gt;/coveragestores/&lt;cs&gt;/coverages/&lt;cv&gt;/file\.imagemosaic

5. modify some of the coverage properties like BackgroundValues:
255 (tnx Simone :wink:
(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/&lt;ws&gt;/coveragestores/&lt;cs&gt;/coverages/&lt;cv&gt;\.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