<?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 is the correct way to use measureOnLine attribute for polyline? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60340#M4818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to add, I just found the 'queryPointAndDistance' brings the same error! It's called 'ValueError'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2018 08:15:53 GMT</pubDate>
    <dc:creator>CharithKarandana</dc:creator>
    <dc:date>2018-10-28T08:15:53Z</dc:date>
    <item>
      <title>What is the correct way to use measureOnLine attribute for polyline?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60339#M4817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a polyline myself and testing the measureOnLine attribute to use it in another script which goes with real data. "polyline.measureOnLine((x, y))" doesn't work ("I'm pretty much sure the point (x,y) is on the polyline. The funny thing is&lt;/P&gt;&lt;P&gt;"polyline.measureOnLine(polyline.positionAlongLine(length))" works (Although there is no use of such). So I believe there is something is missing form me. Can anyone help me to overcome this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 06:53:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60339#M4817</guid>
      <dc:creator>CharithKarandana</dc:creator>
      <dc:date>2018-10-28T06:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to use measureOnLine attribute for polyline?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60340#M4818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to add, I just found the 'queryPointAndDistance' brings the same error! It's called 'ValueError'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 08:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60340#M4818</guid>
      <dc:creator>CharithKarandana</dc:creator>
      <dc:date>2018-10-28T08:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to use measureOnLine attribute for polyline?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60341#M4819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/classes/polyline.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/classes/polyline.htm"&gt;Polyline—ArcPy classes | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;measureOnLine (in_point, {use_percentage})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;in_point has to be a point object and use_percentage is a boolean.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Your 'ValueError' is because you didn't provide the required object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;So you need to make a point or use a point from some other object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #009000; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace;"&gt;ie &lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;arcpy.Point(x, y)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where x, y are coordinates.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm"&gt;Point—ArcPy classes | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to explore the arcpy section of the help to piece the useage together&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 10:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60341#M4819</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-28T10:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to use measureOnLine attribute for polyline?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60342#M4820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response and I'm sorry to say I tried both these. It didn't work.&lt;/P&gt;&lt;P&gt;This was the line in my script which returned with the ffollowing error&lt;/P&gt;&lt;P&gt;polyline.queryPointAndDistance(startPoint)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\arcobjects\arcobjects.py", line 791, in queryPointAndDistance&lt;BR /&gt; return convertArcObjectToPythonObject(self._arc_object.QueryPointAndDistance(*gp_fixargs((in_point, use_percentage))))&lt;BR /&gt;ValueError: [422809.7100999998, 845539.4996000007]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same happens to the measureOnLine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60342#M4820</guid>
      <dc:creator>CharithKarandana</dc:creator>
      <dc:date>2018-10-28T15:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct way to use measureOnLine attribute for polyline?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60343#M4821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong. Your reply helped me to understand my error. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-the-correct-way-to-use-measureonline/m-p/60343#M4821</guid>
      <dc:creator>CharithKarandana</dc:creator>
      <dc:date>2018-10-28T15:39:29Z</dc:date>
    </item>
  </channel>
</rss>

