line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Geo::GoogleEarth::Pluggable::Contrib::LinearRing; |
2
|
1
|
|
|
1
|
|
5128
|
use base qw{Geo::GoogleEarth::Pluggable::Placemark}; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
625
|
|
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::LinearRing - Geo::GoogleEarth::Pluggable LinearRing Object |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use Geo::GoogleEarth::Pluggable; |
16
|
|
|
|
|
|
|
my $document=Geo::GoogleEarth::Pluggable->new(); |
17
|
|
|
|
|
|
|
$document->LinearRing(); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 DESCRIPTION |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Geo::GoogleEarth::Pluggable::Contrib::LinearRing is a L with a few other methods. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 USAGE |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my $placemark=$document->LinearRing(name=>"LinearRing Name", |
26
|
|
|
|
|
|
|
coordinates=>[[lat,lon,alt], |
27
|
|
|
|
|
|
|
[lat,lon,alt],...]); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 new |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
my $placemark=$document->LinearRing(); |
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(outerBoundaryIs=>{}, |
49
|
|
|
|
|
|
|
E(LinearRing=>{}, |
50
|
|
|
|
|
|
|
E(coordinates=>{}, $coordinates))); |
51
|
|
|
|
|
|
|
return E(Polygon=>{}, @element); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 BUGS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Please log on RT and send to the geo-perl email list. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SUPPORT |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Try geo-perl email list. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 AUTHOR |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Michael R. Davis (mrdvt92) |
65
|
|
|
|
|
|
|
CPAN ID: MRDVT |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This program is free software licensed under the... |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The BSD License |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The full text of the license can be found in the LICENSE file included with this module. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SEE ALSO |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
L, L, L |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |