Commit 57c6e363 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb l2

parent e1a8da46
...@@ -56,7 +56,7 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -56,7 +56,7 @@ def rasterWkt(wkt, inputfile, outputfile):
srs = osr.SpatialReference() srs = osr.SpatialReference()
srs.ImportFromEPSG(4326) srs.ImportFromEPSG(4326)
layer = data_source.CreateLayer(layerName, srs, ogr.wkbPolygon) layer = data_source.CreateLayer("wkt", srs, ogr.wkbPolygon)
geometry = ogr.CreateGeometryFromWkt(wkt) geometry = ogr.CreateGeometryFromWkt(wkt)
feature = ogr.Feature(layer.GetLayerDefn()) feature = ogr.Feature(layer.GetLayerDefn())
feature.SetGeometry(geometry) feature.SetGeometry(geometry)
......
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