Commit 4709ef0e authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb l2

parent 580f79b2
...@@ -44,9 +44,9 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -44,9 +44,9 @@ def rasterWkt(wkt, inputfile, outputfile):
output.GetRasterBand(1).WriteArray(np_intput) output.GetRasterBand(1).WriteArray(np_intput)
output.GetRasterBand(1).FlushCache() output.GetRasterBand(1).FlushCache()
output.SetGeoTransform(geotransform) output.SetGeoTransform(geotransform)
wkt = intput.GetProjection()
sr = osr.SpatialReference() sr = osr.SpatialReference()
sr.ImportFromWkt(wkt) sr.ImportFromWkt(intput.GetProjection())
output.SetProjection(sr.ExportToWkt()) output.SetProjection(sr.ExportToWkt())
......
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