Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

geopandas bbox

from shapely.geometry import Point, Polygon, LineString
>>> d = {'geometry': [Point(2, 1), Polygon([(0, 0), (1, 1), (1, 0)]),
... LineString([(0, 1), (1, 2)])]}
>>> gdf = geopandas.GeoDataFrame(d, crs="EPSG:4326")
>>> gdf.bounds
   minx  miny  maxx  maxy
0   2.0   1.0   2.0   1.0
1   0.0   0.0   1.0   1.0
2   0.0   1.0   1.0   2.0
Comment

PREVIOUS NEXT
Code Example
Python :: find element by partial link text selenium python 
Python :: django template many to many count 
Python :: how to find most occurring items in sequence python 
Python :: how to classify numbers in python 
Python :: why do we need to preprocess data 
Python :: commend in .env 
Python :: Python create time slot within duration 
Python :: python iterate through lists itertools 
Python :: python Access both key and value using items() 
Python :: Random parola uretme 
Python :: python get screen dpi 
Python :: reveal a defined function in python 
Python :: when i press tab it shows ipynb_checkpoints/ in jupyter notebook 
Python :: python dash bootstrap buttons with icons 
Python :: cv2 put font on center 
Python :: oauthlib python error 
Python :: make a copy for parsing dataframe python 
Python :: django template child data in nested loop 
Python :: python code to display a grid of data table 
Python :: numpy symmetrize array 
Python :: PN generator 
Python :: dont print pip jupyter 
Python :: Center labels matplotlib histogram 
Python :: Python ValueError in strptime() 
Python :: How to provide type hinting in UserDict? 
Python :: sample mapping in pandas 
Python :: poisson random data 
Python :: disable gpu in jupyter notebook 
Python :: what is PaasLib 
Python :: change legend facecolor 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =