Commit 48f0412e authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

wkt raster

parent 650363e7
...@@ -114,7 +114,7 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -114,7 +114,7 @@ def rasterWkt(wkt, inputfile, outputfile):
gdal.RasterizeLayer(polygonRaster, [1], layer, burn_values=[255]) gdal.RasterizeLayer(polygonRaster, [1], layer, burn_values=[255])
polygonRaster.GetRasterBand(1).FlushCache() polygonRaster.GetRasterBand(1).FlushCache()
Draw output image # Draw output image
np_polygon = polygonRaster.GetRasterBand(1).ReadAsArray(0,0,cols,rows) np_polygon = polygonRaster.GetRasterBand(1).ReadAsArray(0,0,cols,rows)
# np_polygon = getPolygonArray(inputImage, wkt) # np_polygon = getPolygonArray(inputImage, wkt)
print("Setup") print("Setup")
......
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