I have a list of coordinates points(x,y) of some multipolygon like this:
[[x1,y1][x2,y2][x3,y3] ... [xN,yN]]
Also can convert between lat/lon and UTM coord systems.
When we use gdal.Raesterize like on this answer:
gdal.RasterizeLayer(raster_dataset, [1], shape_layer, None, None, [1], ['ALL_TOUCHED=TRUE'])
we get third argument in this method shape_layer from .shp file:
shape_datasource = ogr.Open(file_name.shp)
shape_layer = shape_datasource.GetLayer()
So, how can I use gdal.RasterizeLayer() with my list of coordinates to make mask for image instead shape_layer?