dividing coastline into equal interval

Answers (1)
0 votes
6 Comments
Assuming that the distances are such that Euclidean approximation is good enough, and assuming that the coast is continuous:
You can calculate the total distance along the coast using
D = sum(sqrt(diff(X).^2 + diff(Y).^2))
This allows you to calculate the fractional increment such that the adjacent distance is 50 km.
I said "assuming that the coast is continuous". It appears that works for your situation. It would be a nuisance if it did not, partly because it would not be defined what distance should be measured over any jump in the coast.
Looking at the map, I am not certain that using Euclidean approximation of the total distance would be good enough for your purposes. On the other hand, interparc expects Euclidean coordinates I expect.
You might need to convert map coordinates to some kind of linear coordinates before using interparc
Categories
Find more on Axes Transformations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!