Commit 2a9d021d authored by Cédric Traizet's avatar Cédric Traizet

BUG: check geometry validity before computing intersection to avoid errors due...

BUG: check geometry validity before computing intersection to avoid errors due to self intersecting polygons in geos 3.8
parent 33a2da0d
Pipeline #3068 failed with stages
in 65 minutes and 29 seconds
......@@ -245,7 +245,7 @@ void OGRLayerStreamStitchingFilter<TInputImage>::ProcessStreamingLine(bool line,
{
FeatureStruct upper = upperStreamFeatureList[u];
FeatureStruct lower = lowerStreamFeatureList[l];
if (!(upper.feat == lower.feat))
if (!(upper.feat == lower.feat) && upper.feat.GetGeometry()->IsValid() && lower.feat.GetGeometry()->IsValid())
{
if (ogr::Intersects(*upper.feat.GetGeometry(), *lower.feat.GetGeometry()))
{
......
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