Commit fc4f6f25 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

DEBUG: ROI check problem.

parent 1d062852
......@@ -176,11 +176,13 @@ def checkRoiInS1Acquisition(s1file, roifile):
isIntersecting = False
dsv = gdal.Open(roifile)
roi_geom = getRasterExtentAsGeometry(dsv, to_wgs84=True)
print(roi_geom.ExportToWkt())
dsi = ogr.Open(os.path.dirname(s1file) + os.sep + os.pardir + os.sep + 'preview' + os.sep + 'map-overlay.kml')
lyi = dsi.GetLayer()
for g in lyi:
in_geom = g.GetGeometryRef()
isIntersecting = in_geom.Intersects(roi_geom)
print(in_geom.ExportToWkt())
dsv = None
dsi = None
return isIntersecting
......
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