I'm using the WFS getFeature request to query out specific attributes of my map based upon the user's bounding box. Some attribute values exist multiple times in different polygons. So, if my map was a census map, and my attribute was age, I may end up with a list like this: 19, 34, 55, 55, 61, 65, 67, 67,... Is it possible to use WFS to query out the distinct/unique values within my bounding box?
--
__________________________________
Jeremy Nix
Senior Application Developer
Southwest Financial Services, Ltd.
(513) 621-6699
Jeremy Nix wrote:
I'm using the WFS getFeature request to query out specific attributes of
my map based upon the user's bounding box. Some attribute values exist
multiple times in different polygons. So, if my map was a census map,
and my attribute was age, I may end up with a list like this: 19, 34,
55, 55, 61, 65, 67, 67,... Is it possible to use WFS to query out the
distinct/unique values within my bounding box?
No, it's not possible. The WFS GetFeature objective is to return features,
eventually shaved off some attributes, but still Features that are
conforming
to the XML schema DescribeFeatureType returns.
What you are asking for is a sql like aggregation that would not be too hard
to implement, but would be outside of the WFS scope (feels like a WPS
request
in fact). So.... for the moment the answer is a no, in time, if and
when we'll ship with a WPS, it may become a yes (I really hope so).
Cheers
Andrea
--
View this message in context: http://www.nabble.com/WFS-Distinct-Query-Request-tf4242429.html#a12072035
Sent from the GeoServer - User mailing list archive at Nabble.com.