Geographic coordinate system intersection

iammark

New member
Joined
Jul 26, 2011
Messages
1
I have a program that takes in a user input of three or more 2-tuples of longitude and latitude. I am trying to find all the intersected/bounded quadrilateral coordinates in a table (each quadrilateral has 4 2-tuples of longitudes and latitudes) by the polygon constructed with the inputted coordinates.

It needs to cover the whole Earth (both poles) and be as precise as possible.

I tried converting it the spherical coordinates (using a fixed height), but then had no idea what to do next.

I am pretty sure this has been done before, but I can't find it by googling.

I am using Java, but Python would work too.

I found a way to check whether the polygons intersect if they are cartesian.

Thanks a lot!
Mark
 
Top