<?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 Need query_point_and_distance Clarification in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/need-query-point-and-distance-clarification/m-p/1514270#M10399</link>
    <description>&lt;P&gt;I am looking for help in understanding what values and the order they are returned when using the query_point_and_distance function on a Polyline.&lt;BR /&gt;&lt;BR /&gt;From the confusing&amp;nbsp;&lt;A title="query_point_and_distance" href="https://developers.arcgis.com/python/api-reference/arcgis.geometry.html#arcgis.geometry.Geometry.query_point_and_distance" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; it says:&lt;BR /&gt;&lt;EM&gt;Finds the Point on the Polyline nearest to the in_point and the distance between those points. query_point_and_distance retrieves information about the side of the line the in_point is on as well as the distance along the line where the nearest point occurs.&lt;BR /&gt;&lt;BR /&gt;So it returns 4 items but in what order? Is this assumed order below correct?&amp;nbsp; I am really just confused about the 2nd and 3rd item since they are both numbers. Below is an illustration of my assumptions which hopefully clarifies my question.&lt;BR /&gt;1) Point on the polyline closest to the in_point&lt;BR /&gt;2) Distance from that polyline point to the in_point?&lt;BR /&gt;3) Distance from the lowest m-value on the line?&lt;BR /&gt;4) The side of the line the in_point is located (True = right, Left = false?)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Example return&amp;nbsp;&lt;BR /&gt;(&amp;lt;PointGeometry object at 0x7f8fa63a2ed0[0x7f8fa653bd50]&amp;gt;, 0.00845121941855845, 0.02991718266293411, True)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query_point_and_distance.png" style="width: 567px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111476i06634DF4BFDEBE8A/image-dimensions/567x451?v=v2" width="567" height="451" role="button" title="query_point_and_distance.png" alt="query_point_and_distance.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 16:56:12 GMT</pubDate>
    <dc:creator>usdajoy</dc:creator>
    <dc:date>2024-08-02T16:56:12Z</dc:date>
    <item>
      <title>Need query_point_and_distance Clarification</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/need-query-point-and-distance-clarification/m-p/1514270#M10399</link>
      <description>&lt;P&gt;I am looking for help in understanding what values and the order they are returned when using the query_point_and_distance function on a Polyline.&lt;BR /&gt;&lt;BR /&gt;From the confusing&amp;nbsp;&lt;A title="query_point_and_distance" href="https://developers.arcgis.com/python/api-reference/arcgis.geometry.html#arcgis.geometry.Geometry.query_point_and_distance" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; it says:&lt;BR /&gt;&lt;EM&gt;Finds the Point on the Polyline nearest to the in_point and the distance between those points. query_point_and_distance retrieves information about the side of the line the in_point is on as well as the distance along the line where the nearest point occurs.&lt;BR /&gt;&lt;BR /&gt;So it returns 4 items but in what order? Is this assumed order below correct?&amp;nbsp; I am really just confused about the 2nd and 3rd item since they are both numbers. Below is an illustration of my assumptions which hopefully clarifies my question.&lt;BR /&gt;1) Point on the polyline closest to the in_point&lt;BR /&gt;2) Distance from that polyline point to the in_point?&lt;BR /&gt;3) Distance from the lowest m-value on the line?&lt;BR /&gt;4) The side of the line the in_point is located (True = right, Left = false?)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Example return&amp;nbsp;&lt;BR /&gt;(&amp;lt;PointGeometry object at 0x7f8fa63a2ed0[0x7f8fa653bd50]&amp;gt;, 0.00845121941855845, 0.02991718266293411, True)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query_point_and_distance.png" style="width: 567px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111476i06634DF4BFDEBE8A/image-dimensions/567x451?v=v2" width="567" height="451" role="button" title="query_point_and_distance.png" alt="query_point_and_distance.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 16:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/need-query-point-and-distance-clarification/m-p/1514270#M10399</guid>
      <dc:creator>usdajoy</dc:creator>
      <dc:date>2024-08-02T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need query_point_and_distance Clarification</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/need-query-point-and-distance-clarification/m-p/1548738#M10775</link>
      <description>&lt;P&gt;The Python API returns results from ArcPy geometry method called&amp;nbsp;&lt;EM&gt;queryPointAndDistance&lt;/EM&gt;. The ArcPy &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/polyline.htm" target="_self"&gt;Polyline&lt;/A&gt;&amp;nbsp;documentation outlines the details of the return values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnYaist1_0-1729011112244.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117254iC7BE1AC23139A6FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnYaist1_0-1729011112244.png" alt="JohnYaist1_0-1729011112244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/need-query-point-and-distance-clarification/m-p/1548738#M10775</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2024-10-15T16:53:54Z</dc:date>
    </item>
  </channel>
</rss>

