Commit 065ab9dd authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

feature style

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