<?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's the easiest/best way to check if a point is located within a map layer using the REST API? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206239#M1016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You have your lat,lon switched. Try this:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgisweb.townofchapelhill.org%2Farcgis%2Frest%2Fservices%2FCorporateData%2FJurisdictionalLimits%2FMapServer%2F0%2Fquery%3Fgeometry%3D-79.0381667%252C35.9319606%26geometryType%3DesriGeometryPoint%26inSR%3D4326%26spatialRel%3DesriSpatialRelWithin%26returnGeometry%3Dfalse%26outSR%3D102100%26returnCountOnly%3Dtrue%26f%3Djson" rel="nofollow" target="_blank"&gt;https://gisweb.townofchapelhill.org/arcgis/rest/services/CorporateData/JurisdictionalLimits/MapServer/0/query?geometry=-79.0381667%2C35.9319606&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=4326&amp;amp;spatialRel=esriSpatialRelWithin&amp;amp;returnGeometry=false&amp;amp;outSR=102100&amp;amp;returnCountOnly=true&amp;amp;f=json&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 18:34:06 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-02-02T18:34:06Z</dc:date>
    <item>
      <title>What's the easiest/best way to check if a point is located within a map layer using the REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206236#M1013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, GIS ignorant here, so I may not be using the correct terms (but hoping to change that).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a lat/long point that I geocoded using the REST API. How do I&amp;nbsp;check to see if this point exists within the boundary of a map layer using the REST API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I would like to check if any point x, y is located on this map of a Town's jurisdictional limits:&amp;nbsp;&lt;A class="link-titled" href="https://gisweb.townofchapelhill.org/arcgis/rest/services/CorporateData/JurisdictionalLimits/MapServer" title="https://gisweb.townofchapelhill.org/arcgis/rest/services/CorporateData/JurisdictionalLimits/MapServer"&gt;CorporateData/JurisdictionalLimits (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I use a query? If so, what would I query? I simply need a true/false for whether it exists within the boundaries of the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206236#M1013</guid>
      <dc:creator>DanielDunn</dc:creator>
      <dc:date>2018-02-02T16:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: What's the easiest/best way to check if a point is located within a map layer using the REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206237#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This would work:&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;https://gisweb.townofchapelhill.org/arcgis/rest/services/CorporateData/JurisdictionalLimits/MapServer/0/query?geometry=geometry%3D-104%2C35.6&amp;amp;geometryType=esriGeometryPoint&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;returnGeometry=false&amp;amp;outSR=102100&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=true&amp;amp;f=json&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206237#M1014</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-02T16:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: What's the easiest/best way to check if a point is located within a map layer using the REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206238#M1015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert!&amp;nbsp; In that example, after what param should I put the x, y coordinates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try a known lat, long within the boundary, it returns a 0 count:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #505050; background-color: #fafafa; font-weight: normal; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgisweb.townofchapelhill.org%2Farcgis%2Frest%2Fservices%2FCorporateData%2FJurisdictionalLimits%2FMapServer%2F0%2Fquery%3Fgeometry%3D35.9319606%2C-79.0381667%26geometryType%3DesriGeometryPoint%26spatialRel%3DesriSpatialRelIntersects%26returnGeometry%3Dfalse%26outSR%3D102100%26returnIdsOnly%3Dfalse%26returnCountOnly%3Dtrue%26f%3Djson" rel="nofollow" target="_blank"&gt;https://gisweb.townofchapelhill.org/arcgis/rest/services/CorporateData/JurisdictionalLimits/MapServer/0/query?geometry=35.9319606,-79.0381667&amp;amp;geometryType=esriGeometryPoint&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;returnGeometry=false&amp;amp;outSR=102100&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=true&amp;amp;f=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206238#M1015</guid>
      <dc:creator>DanielDunn</dc:creator>
      <dc:date>2018-02-02T17:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: What's the easiest/best way to check if a point is located within a map layer using the REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206239#M1016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You have your lat,lon switched. Try this:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgisweb.townofchapelhill.org%2Farcgis%2Frest%2Fservices%2FCorporateData%2FJurisdictionalLimits%2FMapServer%2F0%2Fquery%3Fgeometry%3D-79.0381667%252C35.9319606%26geometryType%3DesriGeometryPoint%26inSR%3D4326%26spatialRel%3DesriSpatialRelWithin%26returnGeometry%3Dfalse%26outSR%3D102100%26returnCountOnly%3Dtrue%26f%3Djson" rel="nofollow" target="_blank"&gt;https://gisweb.townofchapelhill.org/arcgis/rest/services/CorporateData/JurisdictionalLimits/MapServer/0/query?geometry=-79.0381667%2C35.9319606&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=4326&amp;amp;spatialRel=esriSpatialRelWithin&amp;amp;returnGeometry=false&amp;amp;outSR=102100&amp;amp;returnCountOnly=true&amp;amp;f=json&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206239#M1016</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-02T18:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: What's the easiest/best way to check if a point is located within a map layer using the REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206240#M1017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that's what I get for copying and pasting from Google Maps! Thank you Robert. This is immensely helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:39:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206240#M1017</guid>
      <dc:creator>DanielDunn</dc:creator>
      <dc:date>2018-02-02T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: What's the easiest/best way to check if a point is located within a map layer using the REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206241#M1018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Google uses lat, lon(y,x) and esri expects x,y.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/what-s-the-easiest-best-way-to-check-if-a-point-is/m-p/206241#M1018</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-02T18:42:23Z</dc:date>
    </item>
  </channel>
</rss>

