Hello RHUG,
Much of my work at the New York State DOT currently centers around using Roads and Highways. This past week, I've been going through a former colleague's notes on some routes that need edited. His notes include a route ID and the mileage of where the issue is present. Given that some of our routes are > 40 miles and that most of the edits are in urban areas, I've been spending way more time panning the map than seemed reasonable.
I was hopeful that there was built-in functionality to zoom the map to a specified route ID and mileage, but I can't find anything. So I built an ArcGIS Python Toolbox to accomplish this task.
I've attached a zip directory that contains the .pyt file, it's associated documentation as .xml, and a .py file so that you can easily see the code in a syntax-highlighted editor. If you extract this zip in an ArcGIS-connected folder, the tool should show up in the Catalog.
I originally thought it should be simple enough to use the Make Route Event Layer (Location Referencing Toolbox) GP tool to make a single point event on the route and zoom to that point, but the tool is just too slow to operate. Here's the workflow I settled on:
Some quirks of the ZoomToMilepoint toolbox:
Hopefully a better-performing version of this functionality shows up in R&H at some point. In the meantime, I'd love any feedback you may have.
Happy holidays,
Andrew
Hello Andrew
Excellent work on the GP tool. Always awesome to see so much creativity out in the user community. I wanted to also suggest that you have a look at the ArcMap tool called "Find". This tool has a "Linear Referencing" tab that will allow you to choose a Route ID and specify either a single measure (point) or measures (line) to search on. If you right click on the results an additional context menu will give you some great options for zooming and marking the locations. Here's a screenshot:
Resource documentation found here: Using the Find tool—Help | ArcGIS Desktop
Thanks,
Amit @ Esri
Thanks for pointing that out, Amit Hazra! I had not idea it was in there. Flash Route Location is a nice touch.