polygonise raster gdal code example
Example 1: polygonise raster gdal
gdal.Polygonize(band, None, outLayer, 0, [], callback=None )
Example 2: polygonise raster gdal
newField = ogr.FieldDefn('MYFLD', ogr.OFTInteger)
outLayer.CreateField(newField)