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

wkt raster

parent b2960b92
...@@ -27,7 +27,7 @@ def createLayer(wkt, layerName="wkt"): ...@@ -27,7 +27,7 @@ def createLayer(wkt, layerName="wkt"):
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
def getPolygonArray(image, wkt): def getPolygonArray(image, wkt):
rows, cols, geotransform = image.RasterYSize, image.RasterXSize, image.GetGeoTransform() rows, cols, geotransform = image.RasterYSize, image.RasterXSize, image.GetGeoTransform()
print(rows, cols, geotransform)
sr = osr.SpatialReference() sr = osr.SpatialReference()
sr.ImportFromWkt(image.GetProjection()) sr.ImportFromWkt(image.GetProjection())
......
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