AnsweredAssumed Answered

How to create extent from featureset using arcgis rest api only?

Question asked by manvirbasra on Feb 16, 2016

Is there any way to get extent from featureset (contains Feature objects)?

Featureset is obtained by performing query operation on feature service layer in esri rest api.

Arcgis rest api 10.3 introduced new parameter (returnExtentOnly) to retrieve extent but it is not available in previous versions. Client is in plain java and do not want to introduce any esri client API.

1) Is there any way to get extent using rest services only? (where input = geometries of polygons)

2) Any java util available to calculate extent based on polygon geometries (featureset)?

E.g. in  arcgis rest api 10.3

http://api.imb.org/arcgis/rest/services/LIVE/Urban/MapServer/0/query?where=GENC1%3D%27US-CA%27&returnExtentOnly=true&f=pjson

Outcomes