See the attached PolylineAdapter2.PNG for a screenshot showing part of the map generated for a smple test case in which the adaptee has 44 equal length line segments arranged along a straight line and the adapted values are associated with 17 equal length line segments arranged along the same straight line. The coordinates of the starts of the two polylines are the same. The coordinates on the ends of the two polylines are the same.
Adapted.value[0] should be mapped from the whole of adaptee.value[0], value[1] and part of value[2]
Adapted.value[1] should be mapped from the rest of adaptee.value[2], value[3], value[4] and part of value[5]
Adapted.value[2] should be mapped from the rest of adaptee.value[5], value[6], and part of value[7]
...
The calculated Overlap proportion values look wrong. The first one should be 1.0. Pairs of value for the same Source Segment Index should sum to 1.0.
Anonymous
I made these changes to PolylineToPolyline.cs to fix the problem:
The attached screenshot PolylineAdapter3.PNG shows the map generated after these changes.
While the above changes give a correct map in cases where all the adaptee polyline segments are the same length, they do not produce a correct map in the general case. I have reverted those changes (revision 705) as revision 707.
This change (revision 708) fixes the problem with the map:
The attached file PolylineAdapter6.PNG shows the map values after this change.