@classmethod
def from_raster(cls, raster, properties, product='visual'):
    """Initialize a GeoFeature object with a GeoRaster

        Parameters
        ----------
        raster : GeoRaster
            the raster in the feature
        properties : dict
            Properties.
        product : str
            product associated to the raster
        """
    footprint = raster.footprint()
    assets = raster.to_assets(product=product)
    return cls(footprint, properties, assets)
