GIS::D...:Polar(3pm)

๐Ÿ“ฆ
version 0.20 ยท 6 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

โœจ GIS::Distance::Polar โœจ

okay so bestie, welcome to GIS::Distance::Polar โ€” she's part of the User Contributed Perl Documentation for the GIS::Distance family, and she does polar coordinate flat-earth distance calculations. ๐Ÿ’– buckle up.


๐Ÿฆ‹ NAME ๐Ÿฆ‹

GIS::Distance::Polar โ€” polar coordinate flat-earth distance calculations. that's her. that's the whole name. slay.


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so supposedly this is a formula to better calculate distances at the poles. like, that's the pitch. allegedly. ๐Ÿ™ˆ

but here's the tea, and I need you to hear me on this: while it is implemented, this formula has not been tested much. if you use it, PLEASE share your results with the author. literally begging. ๐Ÿฅบ

and ngl, it's looking rough. the author tested this formula's results versus GIS::Distance::Vincenty, and it appears that this formula is broken (or the implementation is) โ€” you can see the whole thing play out in t/polar.t. ๐Ÿ’€ no cap.

also, a faster (XS) version of this formula is available as GIS::Distance::Fast::Polar. so like, if speed is your main character moment, that's your girl.

and fyi: normally this module is not used directly. instead GIS::Distance is used, which in turn interfaces with the various formula classes. so you're probably supposed to go through the front door, not the window. ๐ŸชŸโœจ


๐Ÿงฎ FORMULA ๐Ÿงฎ

here's the math, bestie. verbatim, because numbers do not play:

a = pi/2 - lat1
b = pi/2 - lat2
c = sqrt( a^2 + b^2 - 2 * a * b * cos(lon2 - lon1) )
d = R * c

๐Ÿซถ SUPPORT ๐Ÿซถ

See "SUPPORT" in GIS::Distance. they got you. ๐Ÿ’…


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

See "AUTHORS" in GIS::Distance. credit where credit is due, periodt.


๐Ÿ’œ LICENSE ๐Ÿ’œ

See "LICENSE" in GIS::Distance. read it, love it, respect it. ๐Ÿ“œ


and that's the whole page, babe. this little doc shipped with perl v5.36.0 and is dated 2023-10-21 โ€” so if you're reading this in the future, just know she's a vintage icon. ๐ŸŽ€ mwah, go calculate some distances (carefully, apparently). โœจ๐ŸŒˆ

๐Ÿ“ฆ where this page comes from