I have 2 point datasets. One shows a number of offshore locations. The other is the location of a number of ports in the UK.
I want to get the name and distance to the nearest port for each offshore location. I am not allowed to cross over land (I have a polygon of the UK).
I have access to ArcMap 10.2.2 advanced and AGOL.
I am very experienced with ModelBuilder but have little to no experience with Python.
I have looked at the Near tool, but this does not allow for barriers.
The only method I can think of is:
- Create a raster that incorporates the area that all my points fall within
- Assign a value of 1 to the land and a value of 0 to the sea
- Run some sort of cost analysis
Using this method, I can't think of a way that would let me generate lines showing the "route" between my offshore points and the port locations.
I imagine a Python solution would be best, but I am open to suggestions.