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)

def to_geopandas(raster, **kwargs):
    """
    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)
    """
    df = to_pandas(raster, **kwargs)
    df['geometry'] = df.apply(squares, georaster=raster, axis=1)
    df = gp.GeoDataFrame(df, crs=from_string(raster.projection.ExportToProj4()))
    return df