[mkgmap-dev] [PATCH v1] garmin_area() style function
From Henning Scholland osm at aighes.de on Sat Aug 10 14:23:47 BST 2013
Am 10.08.2013 13:21, schrieb WanMil: > I think results for lat=x° should equal lat=-x°? This is what I would expect too. See attached ods-worksheet. $ro = 6371.0 //[km] $a = (90.0 - $lat1) * M_PI / 180.0; $b = (90.0 - $lat2) * M_PI / 180.0; $gamma = (abs($lon2 - $lon1)) * M_PI / 180.0; $c = $r0 * acos(cos($a)*cos($b) + sin($a)*sin($b)*cos($gamma)); //length [km] Henning -------------- next part -------------- A non-text attachment was scrubbed... Name: garmin_to_m.ods Type: application/vnd.oasis.opendocument.spreadsheet Size: 23498 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20130810/b5d061d5/attachment-0001.ods
- Previous message: [mkgmap-dev] [PATCH v1] garmin_area() style function
- Next message: [mkgmap-dev] [PATCH v1] garmin_area() style function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list