Ciao Ian,
please read below...
Regards,
Simone Giannecchini
Ing. Simone Giannecchini
@simogeo
Founder/Director
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
On Thu, Nov 14, 2013 at 11:11 AM, Ian Turton <ijturton@anonymised.com> wrote:
I'm setting up an image mosaic with a time dimension but I've run in to a
problem and I can't tell if it is that I don't understand the spec or that
I'm doing it wrong 
I have a set of imagery that covers a country and
every so often I get an update for a small area of the country. I need to
add those new images and for the general user (with no time set) see the
latest imagery for the whole country. However all I'm getting back are the
areas with the newest images in and blank/black areas for the rest of the
country so if I update one granule all I see is one small patch of imagery.
This is the expected behavior.
I was expecting to get the latest image for each granule regardless of when
it was updated.
Wrong expectation 
Can anyone shed some light on this? have I misconfigured something or do I
need to write a modified data source to handle this use case?
In the ImageMosaic you can configure an attribute as a dimension, this
can be a standard dimensione like TIME or ELEVATION in WMS or a custom
one,
let' say DIM_XXXXX.
The values for the TIME dimension in GeoServer are taken straight from
the unique values of the TIME attribute in the index of the mosaic ( I
am leaving aside the interval case, that's ok now).
The default value when you request the mosaic is set to "current"
which means give me the freshest data you have. This is applied to all
the granules that falls within the bbox of the request.
Hence it is normal that after an update if you make a request with no
TIME value you'll get only the latest one.
You'd need the ImageMosaic to figure out that two tiles are
overlapping and to take the freshest; this is something which is not
there right now.
Anyway you'd also need to send a request with TIME spanning over a
period somehow. If you don't specify a time the default the mosaic
will always pick the freshest time
which will select the latest updated granule.
IMHO you'd need to do what follows:
-1- disable the time dimension in geoserver
-2- when you update the DB, insert a new granule and remove the old one
This way you'll always get the latest avail picture although you'll
loose the ability to make request with TIME. You can still send CQL
filters though 
Cheers
Ian
--
Ian Turton
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users