Friday, 19 April 2019

python - How to map a point to a polygon label from a shapefile


I have a shapefile that breaks the city of San Francisco up into a number of different districts depending on who your supervisor is.


I need to make a lookup tool that takes a single long lat value and says which supervisor district the point lies in. The supervisor district is one of the attributes of the shapefile.


How would I go about doing this in an efficient manner?


Edit 1: Seems like something like this is what I'm looking for. Trying to figure out how I access the attributes once an intersection is found




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...