Commit 21b0f8fb authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

drawing polygon

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