Find curve intersection points in lat lon between rivers and satellite traces on a map

1 回表示 (過去 30 日間)
Hello, I have a set of (lon,lat) points defining the course of a river. Then I also have a set of (lon, lat) points defining the traces of satellite measurements on-ground. All are discrete finite points but of course both are in reality continuous (e.g. the river has infinite points). I want to find the intersections between both curves. It seems to be a curve intersection problem solvable with polyxpoly, but I get erratic intersections which do not make sense. Maybe because the satellite traces are not really a 'curve'? It seems so, it closes the curves of the traces which gives the erratic points
I attach a mat file with exemplary lat lon data to intersect. The provided river in fact does not intersect the satellite traces, but instead I get one invalid one. Thank you
  2 件のコメント
KSSV
KSSV 2022 年 6 月 15 日
The river points falls very much with in the satelite points. They are not intersecting. How do you expect to get intersection point(s)?
Albert Zurita
Albert Zurita 2022 年 6 月 15 日
Yes in this case there is no intersection. But using polyxpoly i get one point in the river. Can you plot the red dots instead with a line? There is why I find a fake intersection

サインインしてコメントする。

採用された回答

KSSV
KSSV 2022 年 6 月 15 日
  2 件のコメント
Albert Zurita
Albert Zurita 2022 年 6 月 15 日
That is excellent! It works perfectly. I am wondering what could be the solution for the real case where instead of the satellite traces being a 1D line defined by points being an actual trace of a certain width, which would be then defined by two points (e.g. the left and the right edges of the 2D polygon). I would need to find then the intersection of the river with this '2D curve' let's call it. I can try to reformulate the problem easier.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScenario Generation and Visualization についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by