Hi at all,
i would like to know if is there a way to retrieve the extent by Map Service.
I need to retrieve an extent by JSON result after query on Map Service.
It's possible? There is a way using arcpy?
How are you querying the data? I assume it's not by Input Geometry as you'd already have your extent.
If it's by attributes, the query won't return the extent of all features, so you can take the JSON and convert it to a feature class and then get the extent of the output feature class. You may also be able to inspect all verticies for the minimum/maximum x values and minimum/maximum y values by just parsing the geometry in the JSON response.
Retrieving data ...