HiProbably wrong place to post, but I gave figuring out the logic behind the forum.I have a dataset of GPS data from a collar that was on a Red deer for a few months. This is point-data logged with a interval on 1 hour. I use an iterator (row selection) to get the relevant data out and transform it to a line using Point To Line tool. Now i want to find out where the door crosses some roads. For that i use Intersect tool and get all crossings as points. All well so far. Now the problem is I need to get the time, or at least some time interval, for that crossing. When i transform the points to line all the relevant data i obviously lost. Any inputs I can try out?Thanks a lot!Mathias
import arcpy from arcpy import env env.workspace = r"C:\Layers\TESTING.gdb" fc = "Test_M_Calc" rows = arcpy.da.UpdateCursor(fc, ["SHAPE@M", "MEAS"]) for row in rows: row[0] = row[1] rows.updateRow(row) del row, rows
GREAT!I managed to get the values out for each crossing. Of course as the MEAS value, but converting that to a date and time should be trivial. I hope 🙂Thanks a lot. Help has been greatly appreciated.
When I try the second solution, with the M enabled and a field that contains a unique time identifier I cant get a value for the single line segments which I could then use to identify the crossings.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.