cdonahue

Query for Distinct Values

Discussion created by cdonahue on Aug 1, 2011
Latest reply on May 16, 2013 by NSager-esristaff
Hello All,

First post here in the forums! We're really just getting started with ArcServer, but I was wondering whether there is a way to return only distinct values when performing a query via the REST API. For instance, I have a layer containing ~50,000 features. I would like to return the distinct values for a particular field. If necessary, I could retrieve all the features, and then process the result in my web application. However, I would like to avoid this extra overhead.

Is there a way to accomplish this via the REST API? If not, how do people usually go about this - direct queries against the SDE tables?

Any help or suggestions would be appreciated - thank you!

Best Regards,
- Clayton

Outcomes