<?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 Pulldata to get nearest polygon from geopoint location in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-get-nearest-polygon-from-geopoint/m-p/1341558#M52521</link>
    <description>&lt;P&gt;I want to use a pulldata calculation in my survey to return an attribute value of the nearest polygon to my geopoint location. I have a where clause to filter the query layer based on the filter_text below.&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValueAt", "attributes.FIELD_NAME", "rest_url?distance=50&amp;amp;units=esriSRUnit_Foot", ${location}, concat("FILTER_OUT&amp;lt;&amp;gt;'", ${filter_text},"'"))&lt;/P&gt;&lt;P&gt;I am running into a few issues:&lt;/P&gt;&lt;P&gt;1) If outside of the nearest polygon, it may not always pull the nearest polygon, but the one adjacent to it.&lt;BR /&gt;2) If within a polygon, it is not returning the value of that polygon but the one adjacent to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to adjust the syntax of the pulldata expression to resolve the issues above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 17:44:09 GMT</pubDate>
    <dc:creator>Tiff</dc:creator>
    <dc:date>2023-10-25T17:44:09Z</dc:date>
    <item>
      <title>Pulldata to get nearest polygon from geopoint location</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-get-nearest-polygon-from-geopoint/m-p/1341558#M52521</link>
      <description>&lt;P&gt;I want to use a pulldata calculation in my survey to return an attribute value of the nearest polygon to my geopoint location. I have a where clause to filter the query layer based on the filter_text below.&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValueAt", "attributes.FIELD_NAME", "rest_url?distance=50&amp;amp;units=esriSRUnit_Foot", ${location}, concat("FILTER_OUT&amp;lt;&amp;gt;'", ${filter_text},"'"))&lt;/P&gt;&lt;P&gt;I am running into a few issues:&lt;/P&gt;&lt;P&gt;1) If outside of the nearest polygon, it may not always pull the nearest polygon, but the one adjacent to it.&lt;BR /&gt;2) If within a polygon, it is not returning the value of that polygon but the one adjacent to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to adjust the syntax of the pulldata expression to resolve the issues above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 17:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-get-nearest-polygon-from-geopoint/m-p/1341558#M52521</guid>
      <dc:creator>Tiff</dc:creator>
      <dc:date>2023-10-25T17:44:09Z</dc:date>
    </item>
  </channel>
</rss>

