| 1 | package Geo::GoogleEarth::Pluggable::Contrib::LineString; | ||||||||||
| 2 | 5 | ▶ | use base qw{Geo::GoogleEarth::Pluggable::Placemark}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 5 | ▶ | use XML::LibXML::LazyBuilder qw{E}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 5 | our $VERSION='0.17'; | |||||||||
| 8 | |||||||||||
| 9 | =head1 NAME | ||||||||||
| 10 | |||||||||||
| 11 | Geo::GoogleEarth::Pluggable::Contrib::LineString - Geo::GoogleEarth::Pluggable LineString Object | ||||||||||
| 12 | |||||||||||
| 13 | =head1 SYNOPSIS | ||||||||||
| 14 | |||||||||||
| 15 | use Geo::GoogleEarth::Pluggable; | ||||||||||
| 16 | my $document=Geo::GoogleEarth::Pluggable->new(); | ||||||||||
| 17 | $document->LineString(); | ||||||||||
| 18 | |||||||||||
| 19 | =head1 DESCRIPTION | ||||||||||
| 20 | |||||||||||
| 21 | Geo::GoogleEarth::Pluggable::Contrib::LineString is a L<Geo::GoogleEarth::Pluggable::Placemark> with a few other methods. | ||||||||||
| 22 | |||||||||||
| 23 | =head1 USAGE | ||||||||||
| 24 | |||||||||||
| 25 | my $placemark=$document->LineString(name=>"LineString Name", | ||||||||||
| 26 | coordinates=>[[lat,lon,alt], | ||||||||||
| 27 | [lat,lon,alt],...]); | ||||||||||
| 28 | |||||||||||
| 29 | =head1 CONSTRUCTOR | ||||||||||
| 30 | |||||||||||
| 31 | =head2 new | ||||||||||
| 32 | |||||||||||
| 33 | my $placemark=$document->LineString(); | ||||||||||
| 34 | |||||||||||
| 35 | =head1 METHODS | ||||||||||
| 36 | |||||||||||
| 37 | =head2 subnode | ||||||||||
| 38 | |||||||||||
| 39 | =cut | ||||||||||
| 40 | |||||||||||
| 41 | 0 | ▶ | sub subnode { | ||||||||
|
Subroutine
subnode: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 42 | 0 | my $self=shift; | |||||||||
| 43 | 0 | my %data=%$self; | |||||||||
| 44 | 0 | ▶ | $data{"tessellate"}=1 unless defined $data{"tessellate"}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | 0 | my $coordinates=$self->coordinates_stringify($data{"coordinates"}); | |||||||||
| 46 | 0 | my @element=(); | |||||||||
| 47 | 0 | push @element, E(tessellate=>{}, $data{"tessellate"}); | |||||||||
| 48 | 0 | push @element, E(coordinates=>{}, $coordinates); | |||||||||
| 49 | 0 | return E(LineString=>{}, @element); | |||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | =head1 BUGS | ||||||||||
| 53 | |||||||||||
| 54 | Please log on RT and send to the geo-perl email list. | ||||||||||
| 55 | |||||||||||
| 56 | =head1 SUPPORT | ||||||||||
| 57 | |||||||||||
| 58 | Try geo-perl email list. | ||||||||||
| 59 | |||||||||||
| 60 | =head1 AUTHOR | ||||||||||
| 61 | |||||||||||
| 62 | Michael R. Davis (mrdvt92) | ||||||||||
| 63 | CPAN ID: MRDVT | ||||||||||
| 64 | |||||||||||
| 65 | =head1 COPYRIGHT | ||||||||||
| 66 | |||||||||||
| 67 | This program is free software licensed under the... | ||||||||||
| 68 | |||||||||||
| 69 | The BSD License | ||||||||||
| 70 | |||||||||||
| 71 | The full text of the license can be found in the | ||||||||||
| 72 | LICENSE file included with this module. | ||||||||||
| 73 | |||||||||||
| 74 | =head1 SEE ALSO | ||||||||||
| 75 | |||||||||||
| 76 | L<Geo::GoogleEarth::Pluggable>, L<XML::LibXML::LazyBuilder>, L<Geo::GoogleEarth::Pluggable::Placemark> | ||||||||||
| 77 | |||||||||||
| 78 | =cut | ||||||||||
| 79 | |||||||||||
| 80 | 5 | 1; | |||||||||