Roads and Highways event attachments and related data

05-18-2016 08:35 AM
Occasional Contributor II
3 0 1,779

Roads and Highways events in the geodatabase are stored as feature classes. What if you want to add attachments for things like field inspections for R&H events? You can do this but it isn’t as easy as just adding attachments to the event feature class. Since you are likely going to want to store additional attributes with the inspection, attachments alone wouldn’t work anyway.

First, the bad news. ArcGIS Server doesn’t support editing feature classes with measures. ArcGIS Server also blocks you from editing attachments on any M-enabled feature classes. Since all R&H events are M-enabled, you can’t edit any R&H events directly through ArcGIS Server. So that makes it impossible to edit R&H events or their attachments in Collector for ArcGIS.  I know, this makes me sad too.

But don’t worry, there is another good solution. It turns out that ArcGIS Server will allow you to edit related features or records for an M-enabled feature class. So instead of creating the attachments right off the event, create a point feature class and related it through a GlobalID with the event. Then enable attachments on that point feature class.

This works great in Collector. Consider a scenario where you want to store inspections for guard rail. The related points are the location where the inspector did her work and you can attach as many pictures as you want to that inspection point. If you don’t want to store the location of the inspection you can relate a table to the event instead of a point feature class. With the related table you would store all the inspection information for the entire guard rail instead of a specific location along that guard rail.

Back in the shop you can view that related data in ArcMap or ArcGIS Pro.

Now go forth and relate tables and feature classes to your Roads and Highways events!

About the Author
I'm the Transportation Practice Solution Engineer. Which basically means I know LRS. I got started at Esri teaching AML and I miss it so....