comparing two data sets and extract specific data from one of them

조회 수: 1 (최근 30일)
bero latef
bero latef 2019년 8월 21일
댓글: bero latef 2019년 8월 21일
Hello everyone i am working on geodata of railway tracks and i have two files now in shape format and i am reading that normally and plotting that normaly, what i am asking for now i have tunnel data which represented by lines and i have the track data which represented with more than one track so i need to extract from the track data the real tracks which is pathing through a tunnel.
please see the attached photo for clear understanding , the blue lines represent the the track data and the red lines represent the tunnel data , what i need the two blue line which is pathing through that tunnel to be extracted in different data set, thats only an example the data set really large.
Thanks and regards Tunnel and tracks.PNG

채택된 답변

KSSV
KSSV 2019년 8월 21일
편집: KSSV 2019년 8월 21일
YOu can make your blue lines a closed polygon.......and use inpolygon to get the points lying inside and on the blue lines. Read about inpolygon.
  댓글 수: 3
KSSV
KSSV 2019년 8월 21일
Use knnsearch ..get the distance and decide..
bero latef
bero latef 2019년 8월 21일
Any other idea because machine learning toolbox not available in my matlab license

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by