Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Spatial Joins: distance between center of polygon and line. Am I going about this correctly?
Post Body

Hi all,

I am attempting a spatial join, and am wondering if I am going about this the correct way (using Arcmap). The goal: I have two shapefiles on counties(polygons) and on highways(lines). I want ultimately a dataset for each county that lists the distance between the center of the county and the nearest highway. I have the shapefiles in long/lat projections, so a spatial join right away is in terms of degrees and not a linear physical distance. My problem here is just not having a baseline in order to make sure I am doing this correctly, or that the end distance points I receive are what I ultimately want in the end. I wanted to list the steps I took, and hopefully get comments/advice on if I am doing this correctly or what I should do differently:

  1. I converted the counties into centroids using the 'feature to point' tools, and used the 'inside' option to ensure the centroids are restricted to being within the county borders.
  2. I used the project tool to change the projections from wgs 1984 into Mercator projections (The country I am dealing with is on the equator, so I think this is a safe way to go about this). I did this for both the centroids and the highways to create new layers ( I am unsure if this is the step I am supposed to take).
  3. From the new centroid layer, I went to joins, used the converted highway layer as the the layer i wish to join, and used the option "Each point will be given all the attributes of the point in the layer being joined that is closest to it, and a distance field showing how close that point is (in the units of the target layer)

The numbers I am getting on the surface seem correct, and looking at the properties, the join output does seem to be under the right projection (Mercator) and Linear unit (Meter). But I am wondering if anything in these steps seems obviously wrong, and if there are standard practices to verify my end output.

Thank you all! any advice would be appreciated

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
30,775
Link Karma
5,726
Comment Karma
24,790
Profile updated: 3 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago