I have a shape file comprising multiple polygons. These polygons have attributes. I am trying to write a script in Python that takes a co-ordinate point, determines in which polygon it falls, and returns the attributes for that polygon.
So far, using PyShp I've got this, which prints off all the records.
import shapefilesf = shapefile.Reader("England.shp")records = sf.records()print recordsSo I want to pass in a co-ordinates for Buckingham Palace, which is inside a polygon which has the attribute 'Area' value of 'London' and have it return 'London'
Can anyone point me in the right direction?
Ben
أكثر...
So far, using PyShp I've got this, which prints off all the records.
import shapefilesf = shapefile.Reader("England.shp")records = sf.records()print recordsSo I want to pass in a co-ordinates for Buckingham Palace, which is inside a polygon which has the attribute 'Area' value of 'London' and have it return 'London'
Can anyone point me in the right direction?
Ben
أكثر...