This is the code that I am using to print the bounds of my shapefile.
import fiona import shapely import shapely.geometry fc = fiona.open("filename.shp") shapefile_record = fc.next() shape = shapely.geometry.asShape(shapefile_record['geometry']) polygon = shapefile_record['geometry'] print polygon.bounds
However, I keep getting an error that says:
AttributeError: 'dict' object has no attribute 'bounds'
Can someone guide me as to where I am wrong?