Can you use bus route data to show only street names it travels on?

582
8
Jump to solution
04-21-2021 09:13 AM
Labels (3)
IanHarper
New Contributor II

Okay, so I have a street map with all of the streets labeled. I have the bus route data for those streets. I'm trying to use the bus route data to hide all streets that the buses don't travel on.

I think I have to relate the bus route layer to to the street name layer but I'm not sure how to get it to hide streets not overlapped. I thought maybe a definition query.

0 Kudos
1 Solution

Accepted Solutions
IanHarper
New Contributor II

Okay so using "Spatial Join" intersect 50 feet. The bus service streets are properly selected. Thank you so much for helping and being a sounding board. Sometimes you just kind of have to group think out loud to get where you need to be.

View solution in original post

8 Replies
JeffThomasILM
Occasional Contributor II

Assuming you have a common field between bus routes and streets (street name?), you could join the streets layer to the bus routes layer and uncheck "keep all target features". That will hide any streets that aren't matched with a bus route.

0 Kudos
IanHarper
New Contributor II

Unfortunately the bus routes were made with GPS data so I only have Polylines with with shape information. I was hoping there would be a tool that would let me take what that overlaps and use it as kind of a clipping mask for data.

0 Kudos
JeffThomasILM
Occasional Contributor II

It's tough to link one layer to another if there's no attribute or geometry match between them. You could create a buffer (width TBD) on your bus routes and do a spatial join with streets to pick up street attributes, but that's going to be tough with cross streets. Presumably your bus routes are on arterial streets; could you filter your streets on some sort of road classification?

0 Kudos
IanHarper
New Contributor II

The buses travel on all types of roads, they also travel on main roads and cross streets. It might be quicker for me to do this manually in illustrator. I was really hoping there was a way to interoperate the bus path in a way that it would be like, "this line is over top this street until it turns and covers up this street." since there are no offsets or wandering paths.

0 Kudos
IanHarper
New Contributor II

So the street lines are one item with no name labels, the bus routes are one item with no name labels, the street labels are one item that seem to be placed with no coordinate data, so could I just do a spatial join of the street names to the bus routes with the only output field being the street name TextString not keeping all target features? I think it might work like a clipping path I just have to figure out which "Match Option" to use

0 Kudos
JeffThomasILM
Occasional Contributor II

Unfortunately, the bus routes would need to geometrically match the streets exactly. There may be some ways to get them to align, but in the end it's probably no quicker or easier than doing it manually, sorry! I'm still not entirely sure what you're trying to do. Assign street names to bus routes? So that only those street names are labeled?

One last idea. You did mention you envision "clipping" the street data. You might be able to do that. Create as thin of a buffer on your bus routes as you can to get the traversed streets in their entirety. Clip the streets and export them as a new feature class. This will still include very short segments of cross streets, but you can set a minimum feature length for labeling, which hopefully would result in a pretty clean selection of streets that actually have bus routes.

IanHarper
New Contributor II

I'm trying to only label the streets that are serviced by the bus routes.

The spatial join kind of worked. For some reason it only picked up 1 street name using "Share line segment with" I think I just need to play around with the match options to find the right one.

0 Kudos
IanHarper
New Contributor II

Okay so using "Spatial Join" intersect 50 feet. The bus service streets are properly selected. Thank you so much for helping and being a sounding board. Sometimes you just kind of have to group think out loud to get where you need to be.