Commit 8b776e57 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

feature style

parent 35367b95
......@@ -65,8 +65,9 @@ def rasterWkt(wkt, inputfile, outputfile):
layer = data_source.CreateLayer("wkt", srs, ogr.wkbPolygon)
geometry = ogr.CreateGeometryFromWkt(wkt)
feature = ogr.Feature(layer.GetLayerDefn())
feature.SetGeometry(geometry)
feature.SetStyleString("PEN(c:#FF0000,w:5px);")
feature.SetGeometry(geometry)
layer.CreateFeature(feature)
gdal.RasterizeLayer(output, [1], layer, burn_values=[0])
......
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