Commit 895bb8a7 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

wkt raster

parent dd90b14e
...@@ -56,7 +56,7 @@ def getPolygonArray(image, wkt): ...@@ -56,7 +56,7 @@ def getPolygonArray(image, wkt):
# feature.SetGeometry(geometry) # feature.SetGeometry(geometry)
# layer.CreateFeature(feature) # layer.CreateFeature(feature)
layer = data_source.getLayer() layer = data_source.GetLayer()
gdal.RasterizeLayer(polygonRaster, [1], layer, burn_values=[255]) gdal.RasterizeLayer(polygonRaster, [1], layer, burn_values=[255])
polygonRaster.GetRasterBand(1).FlushCache() polygonRaster.GetRasterBand(1).FlushCache()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment