<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)