salem.read_shapefile

salem.read_shapefile(fpath, cached=False)[source]

Reads a shapefile using geopandas.

For convenience, it adds four columns to the dataframe: [min_x, max_x, min_y, max_y]

Because reading a shapefile can take a long time, Salem provides a caching utility (cached=True). This will save a pickle of the shapefile in the cache directory.