geopandas.GeoSeries.total_bounds#
- property GeoSeries.total_bounds#
返回包含以下内容的元组
minx
,miny
,maxx
,maxy
作为整体的序列边界的值。看见
GeoSeries.bounds
数列中包含的几何图形的界限。示例
>>> from shapely.geometry import Point, Polygon, LineString >>> d = {'geometry': [Point(3, -1), Polygon([(0, 0), (1, 1), (1, 0)]), ... LineString([(0, 1), (1, 2)])]} >>> gdf = geopandas.GeoDataFrame(d, crs="EPSG:4326") >>> gdf.total_bounds array([ 0., -1., 3., 2.])