Jump to content

drift along converging lines


cat3appr

Recommended Posts

Hello,

 

I have a plot of 2 navigations , red and blue, of 2 ships that are converging and diverging.  Most of the time they are almost parallel.

Is there a way to calculate the maximum drift along the 2 lines?    Even or also  in QGIS

 

NOTE -  the command must take into account   the drift over a certain range  only,  say on a 100m range, or else , as there are different passages of the lines, 

the command would see also  the far most  drift from lines too far apart...please see the photos

 

many thanks!

image001 (10).png

image003 (1).png

Edited by cat3appr
Link to comment
Share on other sites

For a lisp answer its pretty straight forward use the Vl command Getclosestpointto you just walk along one of the plines and check the 90deg distance to the other pline. You use the VL Getpointatdist to walk along say at incremments, if the pline is a collection of points then you can use the Pline vertices. 

 

This has been asked before here thinking what search phrase to use. distance between 2 plines ?

 

(setq ptclose (vlax-curve-getclosestpointto obj2 pt))
(setq dist (distance ptclose pt))

 

Edited by BIGAL
Link to comment
Share on other sites

No I haven't found anything similar, please note, as I explained, it  cannot be something that just keeps into account the distance between 2 lines, please see the screenshots... there are multiple passages of the lines same DWG, look at the first screenshot and you will understand why the lisp you suggested won't work.

thank you  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...