Hello Alex,
we have a lot of experience approaching such problems ... what can I say is:
the best approach is to use ImageMosaic, the issue as you already pointed
out is that at this time the plugin is not writable directly from GeoTools
... but, adding a "datastore.properties" file to the mosaic directory the
first time you create it, allows you to write the index into a spatial
database instead of a shapefile. Following this approach you can then easily
directly add granules to the datastore completely bypassing GeoServer and
other stuff.
You can do this also by using GeoTools Feature Readers/Writers loading
connection parameters directly from the same datastore.properties file.
Then you can issue a geoserver/rest/reload REST command in order to update
the GeoServer catalog.
Few hints:
========
1. The approach or recreating the imagemosaic everytime is not very good,
since as the number of granules grows up, the plugin does a sequential scan
of the directory in order to recreate the indexes.
2. It would be better to invoke a GeoServer catalog reset instead of reload,
but actually this operation is not exposed throught the REST API ... if you
have enough experience you can easily implement it though.
3. If your input images haven't overviews and are not tiled, I kindly
suggest to preprocess them in order to add overviews and tiles ... this will
result in a very high speed improvement of your final layer.
Just for your knowledge, we have a fully automated product that not only is
capable of handling cases like this but also does a lot of other automated
procedures on GeoServer catalog and also preprocessing on data.
http://www.geo-solutions.it/services/
Regards,
Alessio.
-------------------------------------------------------
Ing. Alessio Fabiani
Founder / CTO GeoSolutions S.A.S.
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: (+39) 0584 96.23.13
fax: (+39) 0584 96.23.13
mobile:(+39) 331 62.33.686
http://www.geo-solutions.it
http://geo-solutions.blogspot.com
http://www.linkedin.com/in/alessiofabiani
http://twitter.com/geosolutions_it
-------------------------------------------------------
On Fri, May 6, 2011 at 3:00 PM, Alex Dean <[email protected]> wrote:
> Hello.
>
> I am receiving a series of geotiffs (radar images) once every few minutes.
> I am adding the updated images into GeoServer via the REST interface.
>
> I want to present these images as a single layer in GeoServer, and I'm
> wondering how to select between using a layer group and an image mosaic.
> I've hit some roadblocks with both approaches, though overall I've had more
> success with image mosaics.
>
> My problem with image mosaics: In GeoServer 2.0.2, it doesn't seem like I'm
> able to update an image mosaic. (When I do a PUT for an existing mosaic,
> the shape files for the mosaic are not updated.) So, I'm removing &
> re-creating the mosaic every time I get a new image, and I wonder how well
> this approach scales. Does re-creating the mosaic become more expensive as
> we add more images to it?
>
> My problem with layer groups: I have not been able to figure out how to
> specify transparency in a layer group of plain geotiffs. Using an image
> mosaic, I can PUT XML like http://pastie.org/1871543 to set the
> transparency color. I haven't had any success doing this using either a
> plain geotiff or a layer group.
>
> I'd really appreciate any insights on:
> * Selecting whether I ought to be solving this problem with layer groups
> or image mosaics.
> * Helping me resolve one or both of the issues I mentioned above.
>
> Thank you very much!
>
> alex
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users