salem.transform_geopandas

salem.transform_geopandas(gdf, to_crs=<pyproj.Proj object at 0x7f02c81c1a10>, inplace=True)

Reprojects a geopandas dataframe.

Parameters:

gdf : geopandas.DataFrame

the dataframe to transform (must have a crs attribute)

to_crs : crs

the crs into which the dataframe must be transformed

inplace : bool

the original dataframe will be overwritten (default)

Returns:

A projected dataframe