I have a .jpg that is a highway that spans multiple towns, and a shapefile with boundaries of these towns. I have georeferenced the .jpg so that it is aligned with the shapefile of the towns. My ultimate goal is to compute the distance of each town--ideally from its centroid--to the nearest point along this highway.
I am able to convert the georeferenced highway into a shapefile. I have converted the shpaefile of the towns to a set of points to ease the distance calculation. When I do the Near calculation under Toolbox, however, I do not get any distances computed.
When I try to do a Near calculation, I get Null for the distance. When I try a Spatial Join, I get a -1. I cannot figure out what issue I can be having.
I am using Arcmap in ArcGis 10.2.