Get min/max lat and long values from geodataframe
Individual POLYGON
s in geometry
column are shapely
objects, so you can use .bounds
method on this object to get a tuple of (minx, miny, maxx, maxy)
.
from shapely.geometry import Polygon
poly = Polygon([[1,2], [2,5], [4,6], [5,3], [1,2]])
poly.bounds
# out: (1.0, 2.0, 5.0, 6.0)