Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 a shapefile of a county. I am interested in computing its distance to a line, which I've been doing using Near. I want to know the coordinates on the line that produces the minimum distance. How do I obtain the coordinates?

I use ArcMap in ArcGIS 10.1

share|improve this question
up vote 2 down vote accepted

I suggest using the optional LOCATION argument to create and populate NEAR_X and NEAR_Y fields as described in the help for Near:

"Specifies whether x- and y-coordinates of the nearest location of the near feature will be written to new fields NEAR_X and NEAR_Y, respectively.

  • NO_LOCATION —Specifies that the x- and y-coordinates of the nearest location will not be written. This is the default.
  • LOCATION —Specifies that the x- and y-coordinates of the nearest location will be written to NEAR_X and NEAR_Y fields."
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.