salem.Grid.to_geometry

Grid.to_geometry(to_crs=None)[source]

Makes a geometrical representation of the grid (e.g. for drawing).

This can come also handy when doing shape-to-raster operations.

TODO: currently returns one polygon for each grid point, but this could do more.

Returns:
a geopandas.GeoDataFrame