I'm working on a geo project and have some question about that. I draw line with latitude longitude data like the picture below. 1,2,3 are the position I get from db. I want to draw line on that route (A,B are the start and end of the line) and get the intersection data (intersection position or distance to the A or B) from that. What is the rational way for this process?
-
Please try to make the question as clear as possible. What is the role of A and B? Are they both given, together with 1, 2, 3? Distance to the A or B of which object?Giorgos Altanis– Giorgos Altanis2017-04-02 19:08:57 +00:00Commented Apr 2, 2017 at 19:08
-
A and B are the position I chose from the project. They are random positions. After creating the line, I will chose A and B. Distance of the intersection position to the A or B. For example the intersection is in the middle of the A and B line so the distance of the intersection position to the A or B will be half of the lenght of the A-B line.Burak– Burak2017-04-02 19:48:44 +00:00Commented Apr 2, 2017 at 19:48
Add a comment
|
1 Answer
You can use coordinate geometry functions. Good sample and documentation here: http://www.mathopenref.com/coordintersection.html You have 2 line, you need to check both with A-B.
4 Comments
Giorgos Altanis
So you fully understood the question?
mkysoft
The question not clear (finding probability of A-B or finding intersection points), but the solution going same way.
Burak
Thank your for you answer but I just want to know is there any intersection function, method in sql or visual studio.
mkysoft
I don't think so, you need must develop your own.
