[Geoserver-users] WMS GetFeatureInfo & Time Series Data

With a time-enabled image mosaic as the data store, is there an easy way to get multiple return values for time series raster data via GetFeatureInfo (or anything else available on GeoServer)?

For instance, in one request I would like to get all values for a grid cell for all times available in the mosaic. So, say I have hourly rasters covering a 24 hour period, I would like to return the 24 hourly values at a particular lat/lon in a single request.

Thanks,

Mike Grogan

Hi Mike,

I had exactly the same problem. I solved it using the multidimensional
outputformat support in the geoserver WCS implementation. I wrote a custom
multidimensional outputformat encoder, which encodes to json. Then I send WCS
GetCoverage requests to geoserver, using something like 'custom/json' as the
outputformat.

My outputformat code then receives a 'GranuleStack', which I encode to json.

If you're interested in this approach, I can lookup some code pointers and
possible workarounds that were needed to get this to work.

best regards,
Jeroen

On Monday 10 November 2014 11:34:24 Mike Grogan wrote:

With a time-enabled image mosaic as the data store, is there an easy way to
get multiple return values for time series raster data via GetFeatureInfo
(or anything else available on GeoServer)?

For instance, in one request I would like to get all values for a grid cell
for all times available in the mosaic. So, say I have hourly rasters
covering a 24 hour period, I would like to return the 24 hourly values at a
particular lat/lon in a single request.

Thanks,

Mike Grogan

On Wed, Nov 12, 2014 at 8:56 AM, Jeroen Dries <jeroen.dries@anonymised.com> wrote:

Hi Mike,

I had exactly the same problem. I solved it using the multidimensional
outputformat support in the geoserver WCS implementation. I wrote a custom
multidimensional outputformat encoder, which encodes to json. Then I send
WCS
GetCoverage requests to geoserver, using something like 'custom/json' as
the
outputformat.

I guess this could be of general interest too. Have you considered
contributing
it to the community? (just wondering)

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

On Mon, Nov 10, 2014 at 5:34 PM, Mike Grogan <d.michael.grogan@anonymised.com>
wrote:

With a time-enabled image mosaic as the data store, is there an easy way
to get multiple return values for time series raster data via
GetFeatureInfo (or anything else available on GeoServer)?

There is no way as far as I know, the code in GetFeatureInfo raster data
handler would have to be modified to handle this use case

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

Hi Andrea,

yes I have, only problem is, in what form? The code itself is relatively
small, undocumented and untested, and I'd rather not put something like that
online with my name on it ;-).

Another option is perhaps to describe my approach in some kind of small guide
or article. I particularly like it because it uses the somewhat
underappreciated WCS implementation.

Anyway, when I find some time, I'll see what I can do.

best regards,
Jeroen

On Wednesday 12 November 2014 09:25:41 Andrea Aime wrote:

On Wed, Nov 12, 2014 at 8:56 AM, Jeroen Dries <jeroen.dries@anonymised.com> wrote:
> Hi Mike,
>
> I had exactly the same problem. I solved it using the multidimensional
> outputformat support in the geoserver WCS implementation. I wrote a custom
> multidimensional outputformat encoder, which encodes to json. Then I send
> WCS
> GetCoverage requests to geoserver, using something like 'custom/json' as
> the
> outputformat.

I guess this could be of general interest too. Have you considered
contributing
it to the community? (just wondering)

Cheers
Andrea