Commit f6fdb829 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

wkt raster

parent d842af3d
...@@ -118,7 +118,7 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -118,7 +118,7 @@ def rasterWkt(wkt, inputfile, outputfile):
# 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")
for b in range(1, output.RasterCount+1): for b in range(1, output.RasterCount+1):
np_input = np_polygon & inputImage.GetRasterBand(b).ReadAsArray(0,0,cols,rows) np_input = np_polygon & inputImage.GetRasterBand(b).ReadAsArray(0,0,cols,rows)
...@@ -131,9 +131,9 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -131,9 +131,9 @@ def rasterWkt(wkt, inputfile, outputfile):
print("end") print("end")
#Close files #Close files
# feature = None feature = None
# data_source = None data_source = None
# polygonRaster = None polygonRaster = None
output = None output = None
inputImage = None inputImage = None
......
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