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

drawing polygon

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