Quantcast
Channel: Question and Answer » modelbuilder
Viewing all articles
Browse latest Browse all 135

Calculating Bearing/Direction via Spatial Join?

$
0
0

I was just wondering if it was possible to calculate a bearing field via a spatial join?

Basically I have needed in the past to calculate distances from one singular point (e.g a well) to a number of different closest attributes for different shapefiles (such as environmental sensitivities, so SPAs, SACs, Pipelines etc, therefore ranging all different vector formats.)

I found out you could do this simply by using a spatial join so I created a model using model builder that basically created spatial joins of my input point to every single environmental variable (selecting the CLOSEST parameter), and after merging all the ouput feature classes gives me an output feature classes with the distances of every closest sensitivity.

However, I also need the bearing from the input point to each environmental variable, however I cannot figure out if this is even possible using the current method I’m using, even though it seems like it should be an easy enough variable to include…

I have tried using “Add Field” and “Calculate Field” after the spatial joining but this does not seem to work, so I wonder if there is somehow a way to do it during the spatial joins?

Or any other way?


Viewing all articles
Browse latest Browse all 135

Trending Articles