GeoPandas

Creating GeoDataFrame from DataFrame with coordinates or wkt

The usage of Python in GeoSpatial field has exponentially grown. Almost every GIS desktop software provide python integration. QGIS, famous open source GIS software, has python interface. Python has many open source GIS libraries for example GDAL, Fiona, GeoPandas, RasterIO, Shapely, Xarray Spatial etc. These libraries can process both raster as well as vector data. …

Creating GeoDataFrame from DataFrame with coordinates or wkt Read More »

Rasterize vector data using GeoPandas and GeoCube

In this tutorial, we are gonna convert a Polygon and Points vector data into raster format by using GeoPandas and GeoCube in python. To get full source code for this tutorial, click here. All the related Polygon and Point data used in this tutorial are in repository. Before rasterizing the vector, we will set up …

Rasterize vector data using GeoPandas and GeoCube Read More »

Merging multiple shapefiles into one shapefile using python and GeoPandas

GeoPandas is one of the most famous python GIS library that can automate your GIS workflows. GeoPandas provides good functionality and features to create really good geoprocessing tools like geospatial analysis, reading/writing from/to postgis database, transforming GIS data between different formats etc. In this tutorial, we will learn how to merge multiple shapefiles into one …

Merging multiple shapefiles into one shapefile using python and GeoPandas Read More »

Create fishnet grid using Python, GeoPandas and Shapely

There are many use cases in GIS where we need to compute parameters or aggregate information based on fishnet. One of the use case is to aggregate information for million of points on fishnet. Then use this aggregated fishnet layer to render on map. This aggregated fishnet layer will be more intuitive in nature than …

Create fishnet grid using Python, GeoPandas and Shapely Read More »

Polygonize Raster using Rioxarray and GeoPandas

Rioxarray is python library which combines xarray and rasterio library for raster analysis. Xarray is open source and python packages that makes working with labelled multi dimensional array very efficient. RasterIO is open source and python package based on gdal to read/write and analyze raster data. Rioxarray extends xarray with rasterio accessor. One of the …

Polygonize Raster using Rioxarray and GeoPandas Read More »

Import shapefiles using GeoPandas and PsycoPG2.

GeoPandas is great python library to process your vector data. It has direct support for postgis database where you can directly read/write from/to postgis database. GeoPandas internally uses SqlAlchemy API to manage database specific operations like reading from PostGIS, writing to PostGIS etc. SqlAlchemy can be used for almost all the databases out there like …

Import shapefiles using GeoPandas and PsycoPG2. Read More »

Import Shapefile to PostgreSQL/PostGIS database using GeoPandas/Python

The usage of Python in GeoSpatial field has exponentially grown. Almost every GIS desktop software provide python integration. QGIS, famous open source GIS software, has python interface. Python has many open source GIS libraries for example GDAL, Fiona, GeoPandas, RasterIO, Shapely, Xarray Spatial etc. These libraries can process both raster as well as vector data. …

Import Shapefile to PostgreSQL/PostGIS database using GeoPandas/Python Read More »

%%footer%%