POST
|
Dear Xander, may I send you a message? Afaik in this community it only works if you would follow me..
... View more
05-18-2017
07:32 AM
|
0
|
1
|
945
|
POST
|
Ok, attached I have the point data and the rectangle as polygon. I want to draw vertical line from each point (from the top to the bottom) and keep the information written in the LN column. After I want to make single polygons (resulting from the underlying rectangle and the lines together) and also keep the LN information in the single polygons. So in the end it shoudl be 13 single polygons, I hope you understand what I mean. Best, Tim Dropbox - GW1.zip Branched from: https://community.esri.com/thread/176544
... View more
03-28-2017
01:15 PM
|
0
|
4
|
1911
|
POST
|
Dear Xander, could you give me an example how this should be done?
... View more
03-23-2017
07:17 AM
|
0
|
2
|
3154
|
POST
|
Hello at all, I have a script using start and (S_X, S_Y) end points (E_X, E_Y) as coordinates from an excel table in order to create lines, it looks like the following: import arcpy in_rows = arcpy.SearchCursor(r"D:\Temp\Lines.xls\Sheet1$") point = arcpy.Point()array = arcpy.Array() featureList = []cursor = arcpy.InsertCursor(r"D:\Temp\Lines.shp")feat = cursor.newRow()for in_row in in_rows: # Set X and Y for start and end points point.X = in_row.S_X point.Y = in_row.S_Y array.add(point) point.X = in_row.E_X point.Y = in_row.E_Y array.add(point) # Create a Polyline object based on the array of points polyline = arcpy.Polyline(array) # Clear the array for future use array.removeAll() # Append to the list of Polyline objects featureList.append(polyline) # Insert the feature feat.shape = polyline cursor.insertRow(feat)del featdel cursor It works well for my purpose, but I'd need to carry over information of another coloumn (see excel table jpg, the LN coloumn), so that the resulting lines have this information as a coloumn of the attribute table. Any ideas?
... View more
03-09-2017
09:27 AM
|
0
|
4
|
3154
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|