[relate] Fix relate(MLs,A) - reset state in handler per Ls.

In turns handling code reset exit_watcher and other state variables when
new linestring is detected and previous one was handled.
This commit is contained in:
Adam Wulkiewicz
2015-01-23 17:10:44 +01:00
parent 2493f07792
commit 2ac11443fa

View File

@@ -787,6 +787,15 @@ struct linear_areal
}
}
// If post-last-ip apply() was called this wouldn't be needed
if ( first_in_range )
{
m_exit_watcher.reset();
m_boundary_counter = 0;
m_first_from_unknown = false;
m_first_from_unknown_boundary_detected = false;
}
// i/u, c/u
if ( op == overlay::operation_intersection
|| op == overlay::operation_continue ) // operation_boundary/operation_boundary_intersection