Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two tables. One of route lines, with associated Zip Codes, and another of Zip Code boundaries. Some of the lines cross over their Zip boundaries. Below is zoomed in picture demonstrating my problem.

enter image description here

The areas circled in gray are where I would have to go in and change the boundaries to encompass the route. They are color coded by Zip Code.

Is there a select by attributes solution to this, that would show me which lines are outside of their respective zones?

I am using ArcMap 10.2, Thanks for any possible help!

share|improve this question
up vote 2 down vote accepted

A quick way to do this would be to create a Spatial Join operation where you join the Zip Code polygons (which should have a zip attribute) to the lines (which have a similar zip attribute). Then you could just query the lines where lines_zip <> polys_zip. Once you were done, you could then use Delete Field to drop the polygon fields you no longer need.

Depending on your use case, you could even create a simple ModelBuilder tool that would automate this process for you, if you needed to repeat it regularly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.