Select to view content in your preferred language

Intersect v/s Union

10498
12
09-18-2015 07:51 AM
YusufMohamedshah
Deactivated User

I am new to ArcGIS. I am trying to use Linear Referencing Tool: Overlay Route Events. I have two dbf files: One is a line file and another is a point file. I want to do an overlay of point file to line file and get the results as a UNION. But I get an error. However if I do INTERSECT it works fine.

So the question is: Why an INTERSECT works but UNION does not work. If I want the results as UNION, is there a work around.

I would appreciate any input.

Thanks

0 Kudos
12 Replies
DanPatterson_Retired
MVP Emeritus

Ok...saw the screen shot (keep trying to attach it, it may be too large) you sent.

I don't see anything obvious, although I don't like the paths that you are obtaining your data from or saving it to, but if it has worked in those streams before, it rules those out.  The error is too generic, it could be there are some bad values in one or both of the tables and you may want to untoggle the zero length option.  If it works with other data sets, then it may lie in the data...you could try a subset for a small known area that you can examine and see if it works for the subset.

0 Kudos
ChrisDonohue__GISP
MVP Alum

Adding Richard Fairhurst  as he may have ideas.

Chris Donohue, GISP

0 Kudos
RichardFairhurst
MVP Honored Contributor

The screen shot is consistent with what Dan pointed out, you cannot use Union when one of the event tables is a point event table.  Notice that the output event type setting is Line and that setting cannot be edited to change it to Point.  You can only create points when a point event table or feature class is used with any of the Intersect tools and points simply don't work with any of the Union tools.

The workaround is to create two new fields to hold duplicates of the real measure fields of your line events. You should use the duplicate line measure fields for the inputs to the tool.  Do an Intersect with the points, not a Union.  Make sure the output measure field name is not the same as the original measure field names used by the line events.  The output will have a new measure field for the sign point location created by the tool, but it will also have the original measure fields.for the line.  Just use the two measure fields preserved from the line that were not inputs to the tool to create a line event layer.  The layer will contain line events with the original line data combined with the data of one of the signs it touched, and there will be overlapping lines that will match the full set of signs touched by each segment.

In case what you really want is a single line event that has many columns of fields that combine the data for each and every sign along the segment into a single event, no tool does that.  A Pivot table could pivot one of the sign attributes into multiple columns from the output of the Intersect above, but it would not pivot multiple point attributes without a lot of effort.

0 Kudos