Geometric operations¶
Overlay analysis¶
The aim here is to make an overlay analysis where we select only specific polygon cells from the data based on the borders of municipality of Helsinki.
Let’s first read the data.
import geopandas as gpd
import matplotlib.pyplot as plt
# File paths
border_fp = "/home/geo/data/Helsinki_borders.shp"
grid_fp = "/home/geo/data/TravelTimes_to_5975375_RailwayStation.shp"
# Read files
grid = gpd.read_file(grid_fp)
hel = gpd.read_file(border_fp)
Let’s check that the coordinate systems match.
In [1]: hel.crs
Out[1]: {'init': 'epsg:3067'}
In [2]: grid.crs