Skip to content

GeoPandas

GeoPandas is an open source project to make working with geospatial data in python easier. GeoPandas extends the datatypes used by pandas to allow spatial operations on geometric types. Geometric operations are performed by shapely. Geopandas further depends on fiona for file access and descartes and matplotlib for plotting.

geopandas and cartopy example

import geopandas as gpd

# ...

self.axes.add_image(self.tiles, 16)
self.axes.coastlines('10m')

self.tram_line = gpd.read_file(os.path.join(os.getcwd(), 'res', '트램선로.geojson'))
self.axes.add_geometries(self.tram_line.geometry, crs=ccrs.PlateCarree(), facecolor='none', edgecolor='k')

See also

Favorite site