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

Intersects

parent 611def34
...@@ -68,12 +68,10 @@ def rasterWkt(wkt, inputfile, outputfile): ...@@ -68,12 +68,10 @@ def rasterWkt(wkt, inputfile, outputfile):
feature.SetGeometry(geometry) feature.SetGeometry(geometry)
feature.SetStyleString("PEN(c:#FFFF00,w:5px);") feature.SetStyleString("PEN(c:#FFFF00,w:5px);")
layer.CreateFeature(feature) layer.CreateFeature(feature)
feature = None
gdal.RasterizeLayer(output, [1], layer, burn_values=[0])
gdal.RasterizeLayer(output, [1], layer, burn_values=[0])
feature = None
data_source = None data_source = None
output = None output = None
def main(argv): def main(argv):
......
...@@ -73,4 +73,5 @@ find . -name *.xml -type f -delete ...@@ -73,4 +73,5 @@ find . -name *.xml -type f -delete
#done #done
##ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p rgb.mp4 ##ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p rgb.mp4
#L2AproductListToRGB.sh /home/geoint/sentinelImages/L2A/ /home/geoint/imgTemp/ "POLYGON((-89.65513229370117 21.048938357786966,-89.62852478027342 21.047816903874505,-89.6261215209961 21.03339745836918,-89.6465492248535 21.022822311328852,-89.65873718261717 21.039325621609095,-89.65513229370117 21.048938357786966))"
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