<?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: 'Point' object has no attribute 'point' (Help) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/point-object-has-no-attribute-point-help/m-p/1233741#M66149</link>
    <description>&lt;P&gt;try&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Midpoint.pointFromAngleAndDistance&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 14:12:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-11-21T14:12:36Z</dc:date>
    <item>
      <title>'Point' object has no attribute 'point' (Help)</title>
      <link>https://community.esri.com/t5/python-questions/point-object-has-no-attribute-point-help/m-p/1233735#M66147</link>
      <description>&lt;P&gt;I am trying to project a line perpendicular from the midpoint along a polyline that I have split at regular intervals. I am getting the below error but everything up to that point seems to be working. Can someone advise on what I am doing wrong? I guess there is an obvious simple step with transforming the original shapefile that I am missing. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from math import atan2, pi
import arcpy as arc
input_shp = 'C:/Users/agood/OneDrive - USN/Python/Paper 1 Analysis/Python/Meltwater Tran_SplitLineAtPo.shp'

e = 1e-10 #epsilon

Cursor = arcpy.SearchCursor(input_shp)
for feature in Cursor:
    Midpoint = feature.shape.positionAlongLine(0.5,True).firstPoint #find midpoint along each line segment
   
    
    #getpoints immediately before and after midpoint
    before = feature.shape.positionAlongLine(0.5-e,True).firstPoint 
    after = feature.shape.positionAlongLine(0.5+e,True).firstPoint
    
    dX = after.X - before.X
    dY = after.Y - before.Y
    
    #return angle of midpoint section. We will plot a line at 90 degrees from this angle. 
    angle = atan2(dX, dY)* 180/pi
    
    newpoint=Midpoint.point.pointFromAngleAndDistance(angle + 90, 400)

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
In  [33]:
Line 16:    newpoint=Midpoint.point.pointFromAngleAndDistance(angle + 90, 400)

AttributeError: 'Point' object has no attribute 'point'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/point-object-has-no-attribute-point-help/m-p/1233735#M66147</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-21T14:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'Point' object has no attribute 'point' (Help)</title>
      <link>https://community.esri.com/t5/python-questions/point-object-has-no-attribute-point-help/m-p/1233741#M66149</link>
      <description>&lt;P&gt;try&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Midpoint.pointFromAngleAndDistance&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/point-object-has-no-attribute-point-help/m-p/1233741#M66149</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-21T14:12:36Z</dc:date>
    </item>
  </channel>
</rss>

