Thanks for the clarifications and the wps you mentioned. I'll have a look
at it.

All the best,

Anton
Den 4 maj 2016 21:23 skrev "Simone Giannecchini" <
simone.giannecch...@geo-solutions.it>:

> Ciao Cesar,
> the WPS processes to look at are the RasterZonalStatistics ones in
> GeoTools, here you have one:
>
>
> https://github.com/geotools/geotools/blob/master/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/RasterZonalStatistics2.java
>
> Many of the params have default.
>
> @Anton this would need to be wrapped as a GeoServer process (becoming
> aware of the concept of layer and so on) to run in GeoServer.
> Admittely not extremely simple for the uninitated but not even a
> tremendous amount of work.
>
> Regards,
> Simone Giannecchini
> ==
> GeoServer Professional Services from the experts!
> Visit http://goo.gl/it488V for more information.
> ==
> Ing. Simone Giannecchini
> @simogeo
> Founder/Director
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 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
>
> -------------------------------------------------------
> 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 Wed, May 4, 2016 at 10:43 AM, César Martínez Izquierdo
> <cesar....@gmail.com> wrote:
> > Hi Anton,
> >
> > Max and min values are not currently calculated. We made a proposal for
> an
> > implementation of this feature:
> > https://github.com/geoserver/geoserver/wiki/GSIP-140
> >
> > but we are not implementing it on the short term.
> >
> > Simone Giannecchini mentioned some WPS existing process to get max and
> min
> > values. I have found the following processes, but I am not sure what they
> > are calculating exactly:
> >
> >
> https://github.com/geoserver/geoserver/blob/master/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/gs/ClassificationStatsPPIO.java
> >
> https://github.com/geotools/geotools/blob/master/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/CoverageClassStats.java
> >
> > Cheers,
> >
> > César
> >
> >
> >
> > On 4 May 2016 at 10:07, Andrea Aime <andrea.a...@geo-solutions.it>
> wrote:
> >>
> >> 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
> >>
> >
> >
> >
> > --
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >    César Martínez Izquierdo
> >    GIS developer
> >    -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
> >    SCOLAB: http://www.scolab.es
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> >
> ------------------------------------------------------------------------------
> > 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
> >
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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