[Geoserver-users] ImageMosaic not processing time properly?

I'm trying to setup a ImageMosaic store with GeoTiff images that are
generated each 5 minutes. Using the undocumented features and google I've
been able to get the imagemosaic plugin working with yyyyMMdd values for
different dates, but when I try: yyyyMMddTHHmmSS then it only uses the date
part, and forgets the time of the image.

my indexer.properties:
TimeAttribute=time
Schema= the_geom:Polygon,location:String,time:java.util.Date
PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](time)

my timeregex.properties:
regex=[0-9]{8}T[0-9]{6}Z

my input files are named:
20130116T113000Z.tif
20130116T113500Z.tif
20130116T114000Z.tif

How Should I name/configure my files or the imagemosaic properties files in
such a way that it will support hours/minutes/seconds?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/ImageMosaic-not-processing-time-properly-tp5030070.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao,
the ImageMosaic plugin by default uses a shapefile as its own index
and I believe your index is a shapefile as well, can you confirm that?

Assuming this is true, plain old shapefiles do not support datetime
attributes, they only support date attributes, as such the _time_
part of
the parse timestamps is cut away when writing.

That said we have extended GeoTools/GeoServer to support full datetime
objects. To activate this support you need to add the following switch
to the startup Java Opts for GeoServer:

-Dorg.geotools.shapefile.datetime=true

As an alternative you can provide the ImageMosaic with a
datastore.properties file similar to the one attached that will tell
the ImageMosaic to put the index inside DB table.
Here you can find some more info on the possible parameters for the
datastore.properties file:
http://geobatch.geo-solutions.it/download/all/1.3-BETA3/doc/actionImageMosaic.html#minimal-giode-to-using-the-datastore-properties-file

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

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 Sun, Jan 27, 2013 at 12:46 AM, Naisunev <b.j.broekhuijsen@anonymised.com> wrote:

I'm trying to setup a ImageMosaic store with GeoTiff images that are
generated each 5 minutes. Using the undocumented features and google I've
been able to get the imagemosaic plugin working with yyyyMMdd values for
different dates, but when I try: yyyyMMddTHHmmSS then it only uses the date
part, and forgets the time of the image.

my indexer.properties:
TimeAttribute=time
Schema= the_geom:Polygon,location:String,time:java.util.Date
PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](time)

my timeregex.properties:
regex=[0-9]{8}T[0-9]{6}Z

my input files are named:
20130116T113000Z.tif
20130116T113500Z.tif
20130116T114000Z.tif

How Should I name/configure my files or the imagemosaic properties files in
such a way that it will support hours/minutes/seconds?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/ImageMosaic-not-processing-time-properly-tp5030070.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

datastore.properties (380 Bytes)