Re: intersection of lat/long represented segments



On 23 Aug., 16:40, claudegps <claude...@xxxxxxxxx> wrote:
On 23 Ago, 15:47, korcs <konrad.lind...@xxxxxxx> wrote:

Hi,

do you know how can I calculate the intersection of lat/long
represented segments?
Are there any best practices,or you can just transform them into
cartesian segments and then use a standard cartesian intersection
function?

I do this coversion: passing to cartesian makes things easy.
I use one of the lat/lon coord as 0.0 in cartesian and then I calc the
cartesian coords for the other points.

I am programming an app in java, where I need the intersection test,
does somebody know any package to do it?

I wrote something in python... if you want I can share it. But you
need python to run the script :-)

claudewww.claudegps.altervista.org

Hi Claude,

thanks for your reply.

It would be quite cool if you shared the algorithm. I have googled
quite a lot to find the solution to change the lat/long coordinates to
x,y, but I did not find anywhere a formula.

So if you could tell me the formula, it would be a great help.

Best,

korcs

.



Relevant Pages