Wednesday 19 June 2019

r - How to measure similarity of approximately congruent polylines


My initial question was posted here. The answer of whuber provides a nice solution for the case when polylines are congruent.


However, the problem is that my polylines are approximately congruent (an example of the small difference of polylines is marked in black):


enter image description here


The objective is to measure the similarity between two polylines, assuming that small deviations (around 5%) are allowed and must be ignored. So, the similarity between above provided polylines must be close to 100%.


The question is how to measure similarity between such polylines using R? My approach is explained here, however it is very computationally expensive, and the solution of whuber assumes that polylines are congruent, not approximately congruent.





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...