geetools.FeatureCollectionAccessor.toImage#
- geetools.FeatureCollectionAccessor.toImage(color=0, width='')#
Paint the current FeatureCollection to an Image.
It’s simply a wrapper on Image.paint() method
- Parameters:
color (Union[geetools.types.ee_str, geetools.types.ee_int]) – The pixel value to paint into every band of the input image, either as a number which will be used for all features, or the name of a numeric property to take from each feature in the collection.
width (Union[geetools.types.ee_str, geetools.types.ee_int]) – Line width, either as a number which will be the line width for all geometries, or the name of a numeric property to take from each feature in the collection. If unspecified, the geometries will be filled instead of outlined.
- Return type:
ee.Image