line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Geo::GoogleEarth::Pluggable::Contrib::LineString; |
2
|
1
|
|
|
1
|
|
1308
|
use base qw{Geo::GoogleEarth::Pluggable::Placemark}; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
3
|
|
|
|
|
|
|
use XML::LibXML::LazyBuilder qw{E}; |
4
|
|
|
|
|
|
|
use warnings; |
5
|
|
|
|
|
|
|
use strict; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION='0.09'; |
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 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
|
|
|
|
|
|
|
sub subnode { |
42
|
|
|
|
|
|
|
my $self=shift; |
43
|
|
|
|
|
|
|
my %data=%$self; |
44
|
|
|
|
|
|
|
$data{"tessellate"}=1 unless defined $data{"tessellate"}; |
45
|
|
|
|
|
|
|
my $coordinates=$self->coordinates_stringify($data{"coordinates"}); |
46
|
|
|
|
|
|
|
my @element=(); |
47
|
|
|
|
|
|
|
push @element, E(tessellate=>{}, $data{"tessellate"}); |
48
|
|
|
|
|
|
|
push @element, E(coordinates=>{}, $coordinates); |
49
|
|
|
|
|
|
|
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, L, L |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
1; |