What format is returned from "ArcGIS for Portal" Feature Service

576
5
07-21-2017 08:00 AM
PerryHamilton1
New Contributor

I'm looking for documentation of the complete format that is sent back, mostly on the transform component

0 Kudos
5 Replies
JonathanQuinn
Esri Notable Contributor

Can you elaborate on what you mean?  Any any client is using a feature service will make query requests to return JSON, which is parsed by the client for geometry and attributes:

Ex.

http://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farc... 

0 Kudos
PerryHamilton1
New Contributor

I would like to understand the following, there appears to be two different way to describe a polygon; either by

geographic coordinates

or relevant positions.  

In the case os the relevant postion, the following is added to the end of the JSON return.

I would like to get documentation on the complete format of the return.

Thanks for your help

0 Kudos
JonathanQuinn
Esri Notable Contributor

I've never seen the relevant positions format...  I assumed geometry should have defined coordinates.  Anyway, here's the docs on geometry objects:

ArcGIS Server REST API - Geometry objects

I don't see anything on relevant positions.  In what context is that information returned?  Are you using a hosted feature service or a traditional ArcGIS Server map service with feature access?  What application is that format returned in, one of the built-in templates or a custom app?

0 Kudos
JonathanQuinn
Esri Notable Contributor

If you look at the HTML view, you can inspect the parameters sent with the request.  The one that's different is the Quantization Parameters parameter sent with the relevant response.  

Ex:

Quantization Parameters = {"mode":"view","originPosition":"upperLeft","tolerance":2.388657133974319,"extent":{"type":"extent","xmin":-7241915.960087257,"ymin":5658078.265584529,"xmax":-7038189.895516766,"ymax":5782130.8860775875,"spatialReference":{"wkid":102100,"latestWkid":3857}}}

From an unrelated API doc, it looks like it creates a virtual grid from the geometry, explaining why you see relevant positions for features:

Query | API Reference | ArcGIS API for JavaScript 4.4 

0 Kudos