Overview
Teaching: 35 min Exercises: 0 minQuestions
What additional capabilities does GeoPandas provide, including data access, plotting and analysis?
How does it integrate with other common Python tools?
How do GeoPandas data objects integrate with analyses of raster data over vector geospatial features?
Objectives
Explore additional GeoPandas capabilities in reading from PostGIS and using its plot method.
Learn how to dissolve (aggregate) polygons into larger units, and apply spatial joins across GeoDataFrames, as examples of GeoPandas spatial operators.
Learn how to explore project (CRS) information and reproject.
Plot choropleth maps
Using folium to create interactive maps from a GeoDataFrame
Explore simple but powerful capabilities offered by the rasterstats package to generate summaries and statistics of raster properties over vector features, and explore these via GeoPandas.
Emilio Mayorga, University of Washington. 2019-9-8
We covered the basics of GeoPandas in the previous episode and notebook. Here, we’ll extend that introduction to illustrate additional aspects of GeoPandas and its interactions with other Python libraries, covering fancier mapping, reprojection, analysis (unitary and binary spatial operators), raster zonal stats + GeoPandas.
tutorial_contents/vector/notebooks/geopandas_advanced.ipynb
.rasterstats
and rasterio. rasterio
will be a pretty important component of your raster handling and manipulation toolbox. And it interacts with the GeoJSON-like objects we’ve examined; for example, see its features module.xarray
that you’ll see in the nDarrays tutorialKey Points
GeoPandas offers powerful capabilities and interacts with other tools.
GeoJSON and the common
__geo_interface__
enable convenient and widespread geospatial data object exchange across geospatial packages in Python.