def to_geopandas(raster, **kwargs):
df = to_pandas(raster, **kwargs)<EOL>df['<STR_LIT>'] = df.apply(squares, georaster=raster, axis=<NUM_LIT:1>)<EOL>df = gp.GeoDataFrame(df, crs=from_string(raster.projection.ExportToProj4()))<EOL>return df<EOL>
Convert GeoRaster to GeoPandas DataFrame, which can be easily exported to other types of files
and used to do other types of operations.
The DataFrame has the geometry (Polygon), row, col, value, x, and y values for each cell
Usage:
    df = gr.to_geopandas(raster)