<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What does the Identify Operation do When we pass an Envelope or Polygon? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-does-the-identify-operation-do-when-we-pass/m-p/29536#M126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please refer to REST documentation at &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?identify.html"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?identify.html&lt;/A&gt;&lt;SPAN&gt; ("layers" parameter defaults "top").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your identify query you pass in a value of "2" for "layers" parameter. Since this parameter does not contain one of top/all/visible keywords it defaults to "top". And "top" returns the result from the top-most layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you identified using an envelope, layer "Emergency Sirens" (layerId 0) is returned, because this is the top most layer in the result set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you identified using a point, layer "Traffic Cams" (layerId 2) is returned because this is the top most layer in the result set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are modify the envelope example to include "layers": "all", you would get the expected result: &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryEnvelope&amp;amp;geometry=-85.805%2C+38.2%2C-85.815%2C+38.3&amp;amp;sr=4326&amp;amp;layers=all&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryEnvelope&amp;amp;geometry=-85.805%2C+38.2%2C-85.815%2C+38.3&amp;amp;sr=4326&amp;amp;layers=all&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2012 13:40:39 GMT</pubDate>
    <dc:creator>SrinivasVinnakota</dc:creator>
    <dc:date>2012-02-03T13:40:39Z</dc:date>
    <item>
      <title>What does the Identify Operation do When we pass an Envelope or Polygon?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-does-the-identify-operation-do-when-we-pass/m-p/29535#M125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We were running an Idetify task from our Flex App, when we saw a strange result. Ife we pass in a point while identifying, we got more results than if we pass in a bigger envelope, or buffer around our points. We found that this results is reproducable when we query the rest end point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suppose I want to identify the traffic Camera at the Location of (-85.8117346379999, 38.274177432) on the Louisville Map service (&lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer&lt;/A&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; we get the following results :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryPoint&amp;amp;geometry=-85.8117346379999%2C+38.274177432&amp;amp;sr=4326&amp;amp;layers=2&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryPoint&amp;amp;geometry=-85.8117346379999%2C+38.274177432&amp;amp;sr=4326&amp;amp;layers=2&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will see that you get one traffic cam (Object Id=2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if I pass an enevelope around this point of (-85.8, 38.2,-85.82, 38.3), we get the following result&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryEnvelope&amp;amp;geometry=-85.805%2C+38.2%2C-85.815%2C+38.3&amp;amp;sr=4326&amp;amp;layers=2&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryEnvelope&amp;amp;geometry=-85.805%2C+38.2%2C-85.815%2C+38.3&amp;amp;sr=4326&amp;amp;layers=2&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will see that now you get one result, but this is a different Cam (Object Id=47)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the Identify operation return such an unexpected result?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 04:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-does-the-identify-operation-do-when-we-pass/m-p/29535#M125</guid>
      <dc:creator>DevdattaTengshe1</dc:creator>
      <dc:date>2012-02-03T04:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: What does the Identify Operation do When we pass an Envelope or Polygon?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-does-the-identify-operation-do-when-we-pass/m-p/29536#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please refer to REST documentation at &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?identify.html"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?identify.html&lt;/A&gt;&lt;SPAN&gt; ("layers" parameter defaults "top").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your identify query you pass in a value of "2" for "layers" parameter. Since this parameter does not contain one of top/all/visible keywords it defaults to "top". And "top" returns the result from the top-most layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you identified using an envelope, layer "Emergency Sirens" (layerId 0) is returned, because this is the top most layer in the result set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you identified using a point, layer "Traffic Cams" (layerId 2) is returned because this is the top most layer in the result set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are modify the envelope example to include "layers": "all", you would get the expected result: &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryEnvelope&amp;amp;geometry=-85.805%2C+38.2%2C-85.815%2C+38.3&amp;amp;sr=4326&amp;amp;layers=all&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/identify?geometryType=esriGeometryEnvelope&amp;amp;geometry=-85.805%2C+38.2%2C-85.815%2C+38.3&amp;amp;sr=4326&amp;amp;layers=all&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;layerdefs=&amp;amp;tolerance=1&amp;amp;mapExtent=-85.9880280067818%2C37.8956514753086%2C-85.3325637450334%2C38.5511157370571&amp;amp;imageDisplay=400%2C400%2C96&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;f=HTML&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 13:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-does-the-identify-operation-do-when-we-pass/m-p/29536#M126</guid>
      <dc:creator>SrinivasVinnakota</dc:creator>
      <dc:date>2012-02-03T13:40:39Z</dc:date>
    </item>
  </channel>
</rss>

