| Geo-GoogleEarth-Pluggable-Plugin-GreatCircle documentation | view source | Contained in the Geo-GoogleEarth-Pluggable-Plugin-GreatCircle distribution. |
Geo::GoogleEarth::Pluggable::Plugin::GreatCircle - Great Circle plugin for Geo::GoogleEarth::Pluggable
use Geo::GoogleEarth::Pluggable; my $document=Geo::GoogleEarth::Pluggable->new; my $arc=$document->GreatCircleArcSegment(%data);
Calculates the Great Circle Arc between two points and creates points in between so that Google Earth can display it as "straight" lines and it still looks like a Great Circle Arc.
Returns a LineString object.
my $list=$folder->GreatCircleArcSegment(
startPoint=>{lat=>39,lon=>-77},
endPoint=>{lat=>40,lon=>-76});
my @list=$folder->GreatCircleArcSegment(
name=>"My Great Circle", #name passed through to LineString
startPoint=>{lat=>39,lon=>-77},
endPoint=>{lat=>40,lon=>-76},
span=>5000);
startPoint and endPoint can be any valid scalar structure supported by GPS::Point->newMulti() constructor
Log on RT and send to geo-perl email list
Michael R. Davis CPAN ID: MRDVT STOP, LLC domain=>michaelrdavis,tld=>com,account=>perl http://www.stopllc.com/
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
| Geo-GoogleEarth-Pluggable-Plugin-GreatCircle documentation | view source | Contained in the Geo-GoogleEarth-Pluggable-Plugin-GreatCircle distribution. |