Check if a geopoint with latitude and longitude is within a shapefile

Another option is to use Shapely (a Python library based on GEOS, the engine for PostGIS) and Fiona (which is basically for reading/writing files): import fiona import shapely with fiona.open(“path/to/shapefile.shp”) as fiona_collection: # In this case, we’ll assume the shapefile only has one record/layer (e.g., the shapefile # is just for the borders of a … Read more