Page 1 of 1

calculate the area of an irregular polygon given latitude and longitude coordinates

Posted: Sat May 25, 2019 10:34 am
by danielrr
I have the geographic coordinates of a large collection of places on Earth. I am trying to determine which the area covered by each one of them.

For example:

GroupA: "35.4042","33.7833"; "35.4042","33.7833"; "38.3937","23.7931"
GroupB: "38.4625","23.5907"; "35.4042","33.7833"; "38.3937","23.7931";"38.5833","22.6667"
GroupC: "37.3991","25.2664"; "35.4042","33.7833"; "38.3937","23.7931"; "37.8531","15.2879"

etc.

Do you know how to solve this math problem with LC?

Re: calculate the area of an irregular polygon given latitude and longitude coordinates

Posted: Sat May 25, 2019 2:12 pm
by [-hh]
You could use the answer from here
https://stackoverflow.com/questions/478 ... -longitude

This is Java (SphericalUtil.ComputeSignedArea method from Google's Maps Utils) or C# and is easily translated to LC.