Select to view content in your preferred language

Calculate XY values for 7 points along a line and then for 360 degrees

3245
1
12-23-2014 01:38 PM
JohnWatermolen
New Contributor II

I am trying to calculate the XY values of 7 points along a line and then the XY coordinates for each of 7 points for each degree in a 360 degree circle. (A Center Irrigation Pivot) The 8th point would be the end point of the line.

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

do you have the start coordinate and the length of the irrigation?  They should be in the same units (ie meters).  The values can then be calculated from the initial arm using geometry  assuming that the pivot point is at the X-Y origin by rotating from 180 to - 180 degrees relative to the x axis, then translating the whole thing to the true center.

ie  XYc = [0,0]

XY1 to XY10  = [ [ 10,0],[20,0],[30,0].....[90,0],[100,0]]  for a 100 meter line length at angle 0 degrees... 

so if you are adept at using python and numpy in particular, this can be accomplished rapidly then the results converted to a shapefile using NumpyToFeatureClass...  Sorry I cant do it for you since numpy and arcmap don't run on these iThingy computers (iPad )

0 Kudos