esriGeometryPolygon

1521
1
12-22-2020 03:32 AM
upanshuvaid
New Contributor II

Hi , 

i am using below rest API 

1- https:///arcgis/rest/services/Base/LinesPointsExternal3857/MapServer/9

in this rest API Geometry Type: esriGeometryPolygon this is giving me results 

FEAT_NAME: Ashland County
Polygon:
[-1.0122016403701905E7, 5874684.446840882] , [-1.0121952345014092E7, 5874672.197786383] , [-1.0121885010841576E7, 5874649.395443469] more...
[-1.0106332890598634E7, 5902184.023437038] , [-1.0106333152876878E7, 5902187.49355194] , [-1.0106343102858739E7, 5902203.203857079] more...
[-1.008208256786429E7, 5935379.551378123] , [-1.0081987265799692E7, 5935377.309201367] , [-1.0081808970234443E7, 5935412.177439883] more...
[-1.0064077409864686E7, 5948135.857790463] , [-1.0064059510656266E7, 5948127.86701563] , [-1.0064014015233256E7, 5948122.684094518] more...
[-1.0099751463478172E7, 5935263.620007604] , [-1.0099716732961772E7, 5935265.594475001] , [-1.0099678319677504E7, 5935274.758107528] more...

 

which is what i need  but 

2- when i am using rest api https:///arcgis/rest/services/Base/LinesPointsExternal3857/MapServer/4

i am not getting the results like above as geometry is point . How i can achieve the api 1 result by using the 2nd api as i want to zoom into a particular establishment in a particular county example if i choose Ashland county then when i choose Sixth Street Market  establishment it should zoom.

Tags (1)
0 Kudos
1 Reply
JoshuaBixby
MVP Esteemed Contributor

Looking at the Base/LinesPointsExternal3857 service, the Specialty Meats layer (layer 4) is esriGeometryPoint while the County Boundaries layer (layer 9) is esriGeometryPolygon.  Since an esriGeometryPoint has a single point per shape, that is what is being returned as opposed to a series of points that make up rings that make up a polygon.

0 Kudos