OGR Layer Algebra Mixed Fields If Precreated
|Reported by:||warmerdam||Owned by:||warmerdam|
When using OGRLayer::Intersection() with an output layer that has the fields precreated, then handling of fields from the method layer is mixed up.
The problem is demonstrated in the second test of algebra_intersection() in autotest/ogr/ogr_layer_algebra.py after the patch. The fix is in set_result_schema() in ogrlayer.cpp.