Hi Anton,
you did not miss anything.
There was a discussion on the topic in the last few months in
geoserver-devel,
but I don't think it moved past the talking stage, have a look at the list
archives

Cheers
Andrea


On Wed, May 4, 2016 at 9:40 AM, Anton Lundkvist <antonlundkv...@gmail.com>
wrote:

> Hi,
>
> I want to get the statistics (min, max, mean, and stdv) of a raster in
> GeoServer.
>
> I have looked at WPS and REST but no luck. The WPS does not seem to have
> this process implemented. The REST API should be able to give me this
> answer at the following endpoint:
>
> http://localhost:8080/geoserver/rest/workspaces/
> <workspaceName>/coveragestores/<storeName>/coverages/<coverageName>.xml
>
> When looking at the xml at the above URL it seems that the max and min
> values are not calculated but shows some kind of default values (see range
> tag below):
>
> <dimensions>
>    <coverageDimension>
>       <name>GRAY_INDEX</name>
>       <description>GridSampleDimension[-32768.0,-32768.0]</description>
>        <range>
>           <min>-32768.0</min>
>            <max>-32768.0</max>
>         </range>
>          <nullValues>
>              <double>-32768.0</double>
>           </nullValues>
>           <dimensionType>
>                <name>SIGNED_16BITS</name>
>            </dimensionType>
>     </coverageDimension>
> </dimensions>
>
> I've also noticed that if I manually put in the min and max value for the
> geotiff when publishing it in GeoServer, those values show up at the REST
> endpoint above.
>
> Shouldn't GeoServer calculate this automatically when uploading the raster?
>
> Have I missed something, is there any other way of getting raster
> statistics in GeoServer?
>
> Regards,
>
> Anton
>
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
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.

-------------------------------------------------------
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to