Hi,
Getting min and max should be possible by doing getFeature with
&propertyname=attribute&maxFeatures=1&sortBy=attribute+A and then with
&propertyname=attribute&maxFeatures=1&sortBy=attribute+D. However, I would
guess this is not tested too much.
-Jukka Rahkonen-
________________________________
Lähettäjä: Andrea Aime [mailto:[email protected]]
Lähetetty: 11. tammikuuta 2012 14:42
Vastaanottaja: Gis Mage
Kopio: [email protected]
Aihe: Re: [Geoserver-users] Field statistics with WFS request
On Wed, Jan 11, 2012 at 1:17 PM, Gis Mage
<[email protected]<mailto:[email protected]>> wrote:
Hi list!
I need to get the statistics of an attribute (min, max, average) from
the server.
Can I use a WFS GetFeature request for that?
Or is there an existing WPS process for this task?
I found Collection_Max,Collection_Median,Collection_Min in filter
functions, but how can I use them in the request?
GetFeature is supposed to return features and their attributes, not
attribute statistics.
Indeed WFS is the wrong tool from the job, it can only return data as is,
it's not possible to get derived or aggregated information.
WPS has a AggregateProcess that can do one or more statistics
on a given vector layer field.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users