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

rgb l2

parent 32255c22
...@@ -60,6 +60,7 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -60,6 +60,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:#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