line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Geo::GoogleEarth::Pluggable::Contrib::LineString; |
2
|
5
|
|
|
5
|
|
852
|
use base qw{Geo::GoogleEarth::Pluggable::Placemark}; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
447
|
|
3
|
5
|
|
|
5
|
|
30
|
use XML::LibXML::LazyBuilder qw{E}; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
187
|
|
4
|
5
|
|
|
5
|
|
22
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
112
|
|
5
|
5
|
|
|
5
|
|
22
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
702
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
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 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
|
0
|
|
|
0
|
1
|
|
my $self=shift; |
43
|
0
|
|
|
|
|
|
my %data=%$self; |
44
|
0
|
0
|
|
|
|
|
$data{"tessellate"}=1 unless defined $data{"tessellate"}; |
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, L, L |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
1; |