Geo::GoogleEarth::Pluggable::Plugin::GreatCircle - Great Circle plugin for Geo::GoogleEarth::Pluggable


Geo-GoogleEarth-Pluggable-Plugin-GreatCircle documentation  | view source Contained in the Geo-GoogleEarth-Pluggable-Plugin-GreatCircle distribution.

Index


NAME

Top

Geo::GoogleEarth::Pluggable::Plugin::GreatCircle - Great Circle plugin for Geo::GoogleEarth::Pluggable

SYNOPSIS

Top

  use Geo::GoogleEarth::Pluggable;
  my $document=Geo::GoogleEarth::Pluggable->new;
  my $arc=$document->GreatCircleArcSegment(%data);

DESCRIPTION

Top

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.

USAGE

Top

METHODS

Top

GreatCircleArcSegment

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

BUGS

Top

Log on RT and send to geo-perl email list

SUPPORT

Top

AUTHOR

Top

  Michael R. Davis
  CPAN ID: MRDVT
  STOP, LLC
  domain=>michaelrdavis,tld=>com,account=>perl
  http://www.stopllc.com/

COPYRIGHT

Top

SEE ALSO

Top


Geo-GoogleEarth-Pluggable-Plugin-GreatCircle documentation  | view source Contained in the Geo-GoogleEarth-Pluggable-Plugin-GreatCircle distribution.