Select to view content in your preferred language

Ability to return Centroid Only from feature service

104
0
Friday
Status: Open
ForrestKaye
Regular Contributor

I would like to be able to populate a feature table from a polygon feature service and return the centroid only.  Currently you only have query parameters to return null geometry and have no option or control of returning the centroid only parameters that exists at the feature service level.  

The use case is to make querying polygons more performant by not returning the geometry of the feature but get some spatial information for sorting distance to a given point, user location etc. 

When generating a list of polygon features (through other app business logic needs) my users want to see the ones that are closest to them so we need to sort them. We do not want to return the geometries as the return times when including them are significantly slower. Furthermore we have seen feature service errors for returning too many complex geometries in a given amount of time and the service throttles itself for a brief period of time. 

Here is a reference to my question on sdk board

 

Cheers