<?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:  Moving a point by distance and bearing in Forestry Questions</title>
    <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729046#M124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last link you provided was the closest.  Unfortunately, I knew about this action but I was trying to avoid creating a new point each time.  I have a few hundred points to "edit".  I do not know the exact coordinates, only the coordinates of where the point was taken.  I then wanted to plug in the distance and bearing from that coordinate to move the existing point to where the animals were located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the coding, my experience is quite limited in that realm and I wasn't sure how effective it would be if all points need to be moved and each point needing a specific code based on the criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chad Grantham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension Associate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cgrantham@ag.tamu.edu&amp;lt;mailto:cgrantham@ag.tamu.edu&amp;gt;&amp;lt;mailto:cgrantham@ag.tamu.edu&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Texas A&amp;amp;M Institute of Renewable Natural Resources&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1919 Oakwell Farms Parkway, Suite 100 | San Antonio, TX 78218&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office 210-295-0511&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell 214-642-9406&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irnr.tamu.edu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 13:29:58 GMT</pubDate>
    <dc:creator>CGrantham</dc:creator>
    <dc:date>2015-09-17T13:29:58Z</dc:date>
    <item>
      <title>Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729044#M122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of points along a transect that need to be projected various distances and directions from where the point was taken, each point being different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Real life example is when conducting deer surveys for distance sampling, a transect is driven and once a deer or group of deer is observed, a waypoint is taken, a laser rangefinder is used to measure distance, and a bearing is taken to get an exact location.&amp;nbsp; How can these points be moved to show the location of the animal without creating new points if possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, no coding answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 12:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729044#M122</guid>
      <dc:creator>CGrantham</dc:creator>
      <dc:date>2015-09-17T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re:  Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729045#M123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No code is a limitation....&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;while in edit mode...&lt;UL&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fpro.arcgis.com%2Fen%2Fpro-app%2Fhelp%2Fediting%2Fmove-or-rotate-or-scale-a-feature.htm" rel="nofollow" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/help/editing/move-or-rotate-or-scale-a-feature.htm&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Fmanage-data%2Fediting-fundamentals%2Fmoving-a-vertex-to-a-specific-x-y-location.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/editing-fundamentals/moving-a-vertex-to-a-specific-x-y-location.htm&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Fmanage-data%2Fcreating-new-features%2Fcreating-a-point-or-vertex-at-a-direction-and-distance.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/creating-new-features/creating-a-point-or-vertex-at-a-direction-and-distance.htm&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;There are other solutions, should you have a change in requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 13:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729045#M123</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-09-17T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re:  Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729046#M124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last link you provided was the closest.  Unfortunately, I knew about this action but I was trying to avoid creating a new point each time.  I have a few hundred points to "edit".  I do not know the exact coordinates, only the coordinates of where the point was taken.  I then wanted to plug in the distance and bearing from that coordinate to move the existing point to where the animals were located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the coding, my experience is quite limited in that realm and I wasn't sure how effective it would be if all points need to be moved and each point needing a specific code based on the criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chad Grantham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension Associate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cgrantham@ag.tamu.edu&amp;lt;mailto:cgrantham@ag.tamu.edu&amp;gt;&amp;lt;mailto:cgrantham@ag.tamu.edu&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Texas A&amp;amp;M Institute of Renewable Natural Resources&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1919 Oakwell Farms Parkway, Suite 100 | San Antonio, TX 78218&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office 210-295-0511&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell 214-642-9406&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irnr.tamu.edu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 13:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729046#M124</guid>
      <dc:creator>CGrantham</dc:creator>
      <dc:date>2015-09-17T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re:  Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729047#M125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Python is going to be your best friend for this kind of stuff.&lt;/P&gt;&lt;P&gt;You have all the pieces that you need in order to calculate the new Location.&amp;nbsp; And it will be far easier to create 200 new points than edit and move 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think of your initial points as your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import math&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#r tells python this is a literal string, ignore escape squeunces like \n for newline&lt;/P&gt;&lt;P&gt;fc = r'Path to your feature class'&lt;/P&gt;&lt;P&gt;newFc = r'Path to your new feature class'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#the columns in your source table or feature class&lt;/P&gt;&lt;P&gt;feilds = ['x', 'y', 'distance','bearing']&lt;/P&gt;&lt;P&gt;outFeilds = ['SHAPE@','x', 'y', 'distance','bearing']&lt;/P&gt;&lt;P&gt;sCursor = arcpy.da.SearchCursor = (fc,feilds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for row in sCursor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputX = row[0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputY = row[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distance = row[2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = row[3]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #make sure you convert your bearing to Radians:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = radians(bearing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newX = inputX + distance * math.cos(bearing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newY = inputY + distance * math.sin(bearing)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = arcpy.point(newX,newY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Insert the new point into the new FeatureClass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iCursor = arcpy.da.InsertCursor(newFC,outFeilds )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = [point,newX,newY,distance,bearing]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iCursor.insertRow(temp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del iCursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;del sCursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Arcpy Data Access Module to create a Search Cursor and then a for loop to iterate through each record.&amp;nbsp; output can be made by creating an Insert Cursor to a new feature class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may take just as long to do it this way the first time, but you will have a new skill that can be utilized many times over, and quicker.&amp;nbsp; Work hard to be lazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it.&amp;nbsp; Problem solved in less than 50 lines of code.&amp;nbsp; Most of that is new lines.&amp;nbsp; Should take about 15 seconds to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 20:11:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729047#M125</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2015-12-22T20:11:59Z</dc:date>
    </item>
    <item>
      <title>Re:  Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729048#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this all using out-of-the-box ArcGIS tools:&lt;/P&gt;&lt;P&gt;1.) You need a table containing the observation point coordinates, bearing, and distance. If you need to add coordinates, use &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Add_XY_Coordinates/001700000032000000/"&gt;Add XY Coordinates&lt;/A&gt; tool.&lt;/P&gt;&lt;P&gt;2.) Run &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Bearing_Distance_To_Line/0017000000ts000000/"&gt;Bearing Distance to Line&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;3.) Use &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000191000000"&gt;Add Geometry Attributes&lt;/A&gt; to calculate the END_X and END_Y coordinates&lt;/P&gt;&lt;P&gt;4.) &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Make_XY_Event_Layer/00170000006z000000/"&gt;Make XY Event Layer&lt;/A&gt; using the END_X and END_Y coordinates&lt;/P&gt;&lt;P&gt;5.) Export the event layer to a feature class on disk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729048#M126</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-12-22T21:14:30Z</dc:date>
    </item>
    <item>
      <title>Re:  Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729049#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few mistakes in the script above, which will make it tricky (impossible) for a beginning to figure out. Particularly, needs to be "math.radians()", and typo in newFc vs newFC, all of which is compounded by not using the 'with' statement, so sCursor never gets deleted and causes yet more problems. I guess the point is, sometimes the out-of-the-box tools are worth it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy # import arcpy
... import math # import math
... fc = r'C:\junk\start_points.shp' # change to your existing input feature class
... new_fc = r'C:\junk\new_points.shp' # change to your existing output feature class
... fields = ['POINT_X', 'POINT_Y', 'DISTANCE','BEARING'] # existing fields in input
... outFields = ['SHAPE@','x', 'y', 'distance','bearing'] # existing fields in output
... iCursor = arcpy.da.InsertCursor(new_fc,outFields ) # insert cursor
... with arcpy.da.SearchCursor(fc, fields) as sCursor: # search cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in sCursor: # loop through rows in search cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputX = row[0] # 1st field in search cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputY = row[1] # 2nd field in search cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distance = row[2] # 3rd field in search cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = row[3] # 4th field in search cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = math.radians(float(bearing)) # convert to radians
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newX = inputX + distance * math.cos(bearing) # calc new X
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newY = inputY + distance * math.sin(bearing) # calc new Y
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = arcpy.Point(newX,newY) # create new point
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = [point,newX,newY,distance,bearing] # organize new attributes
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iCursor.insertRow(temp) # write new row
... del iCursor # delete insert cursor&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729049#M127</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-12T07:08:08Z</dc:date>
    </item>
    <item>
      <title>Re:  Moving a point by distance and bearing</title>
      <link>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729050#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your GPS unit are you should be able to perform an offset of your waypoint.&amp;nbsp; Also, I did find this tool, maybe it could help, because if you can use a distance tool to create this line then you could convert the line to points and be left with your survey points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Creating_lines_with_the_Offset_Line_window" title="http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Creating_lines_with_the_Offset_Line_window"&gt;ArcGIS Desktop Help 9.2 - Creating lines with the Offset Line window&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 15:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/forestry-questions/moving-a-point-by-distance-and-bearing/m-p/729050#M128</guid>
      <dc:creator>ChadKopplin</dc:creator>
      <dc:date>2016-01-15T15:43:52Z</dc:date>
    </item>
  </channel>
</rss>

