This lesson is still being designed and assembled (Pre-Alpha version)

Open and Plot Shapefiles in Python


Teaching: 20 min
Exercises: 10 min
  • How can I distinguish between and visualize point, line and polygon vector data?

  • Know the difference between point, line, and polygon vector elements.

  • Load point, line, and polygon shapefiles with geopandas.

  • Access the attributes of a spatial object with gepandas.


Key Points

  • Shapefile metadata include geometry type, CRS, and extent.

  • Load spatial objects into Python with the geopandas.read_file() method.

  • Spatial objects can be plotted directly with geopandas.GeoDataFrame.plot().