How do I extract attributes from a polygon shapefile for specific locations?

I have a shapefile in which each polygon represents an ecoregion of North America, with multiple attributes for each polygon (including the name and ID number for each ecoregion). I would like to extract these attributes for specific points, but I can't figure out how to do it. As an example, the lat/lon coordinates for one of the points I'm interested in are 34.88, -111.57. How would I extract the name of the ecoregion for this point using the shapefile?

Answers (1)

Try Kelly Kearney's interpshapefile.

1 Comment

Thanks. Follow-up question: the shapefile is in a projected coordinate system, but my point locations are geographic coordinates. In order to use interpshapefile, they would have to be in a common coordinate system, correct? Is there a simple way to convert the shapefile to geographic coordinates in MATLAB?

Sign in to comment.

Asked:

on 22 Nov 2015

Commented:

on 23 Nov 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!