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

wkt raster

parent 6403b201
...@@ -37,7 +37,7 @@ def getPolygonArray(image, wkt_geom): ...@@ -37,7 +37,7 @@ def getPolygonArray(image, wkt_geom):
srs = osr.SpatialReference() srs = osr.SpatialReference()
srs.ImportFromEPSG(4326) srs.ImportFromWkt(image.GetProjection())
layer = data_source.CreateLayer("wkt", srs, ogr.wkbPolygon) layer = data_source.CreateLayer("wkt", srs, ogr.wkbPolygon)
geometry = ogr.CreateGeometryFromWkt(wkt_geom) geometry = ogr.CreateGeometryFromWkt(wkt_geom)
feature = ogr.Feature(layer.GetLayerDefn()) feature = ogr.Feature(layer.GetLayerDefn())
......
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