Polygon to image

operators.image.polygon_to_image(client, geotiff_file='in.tif', pickle_file='in.pickle', output_file='out.tif', instance_type='x2large')
Generate an image of a multipolygon filled inside.

polygon_to_image( client,
geotiff_file=’in.tif’,
pickle_file=’in.pickle’,
output_file=’out.tif’,
instance_type=’x2large’ )
Parameters:
  • geotiff_file – Geotiff file with size and resolution information

  • pickle_file – Pickle file containing the Shapely polygon

  • output_file – Output georeferenced TIFF image

  • instance_type – type of cloud instance used for processing