Extract contours

operators.image.extract_contours(client, input_file='file.tif', value=0.5, output_file='file.shp', values_subset='', instance_type='x2large')
Extract contours from a georeferenced image and save them as a shapefile.

extract_contours( client,
input_file=’file.tif’,
value=0.5,
output_file=’file.shp’,
values_subset=’’,
instance_type=’x2large’ )
Parameters:
  • input_file – Input georeferenced image file

  • value – Contour value

  • output_file – Output shapefile

  • values_subset – Subset of contour values, default is all values

  • instance_type – type of cloud instance used for processing