Commit 8d732b04 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

drawing polygon

parent e87e79ed
......@@ -46,7 +46,7 @@ def rasterWkt(wkt, inputfile, outputfile):
#Set up polygon raster
polygonRaster.GetRasterBand(1).SetNoDataValue(-99)
polygonRaster.GetRasterBand(1).WriteArray(np.zeros(cols*rows))
polygonRaster.GetRasterBand(1).WriteArray(np.zeros((cols,rows)))
polygonRaster.GetRasterBand(1).FlushCache()
polygonRaster.SetGeoTransform(geotransform)
......
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