line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Geo::JSON::MultiPolygon; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.006'; # VERSION |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: object representing a geojson MultiPolygon |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
9490
|
use Moo; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
25
|
|
8
|
|
|
|
|
|
|
extends 'Geo::JSON::Base'; |
9
|
|
|
|
|
|
|
with 'Geo::JSON::Role::Geometry'; |
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
1359
|
use Geo::JSON::Types -types; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
88
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has '+coordinates' => ( isa => Polygons ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub all_positions { |
16
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
return [ |
19
|
2
|
|
|
|
|
3
|
map { @{$_} } |
|
2
|
|
|
|
|
17
|
|
|
2
|
|
|
|
|
14
|
|
20
|
1
|
|
|
|
|
5
|
map { @{$_} } @{ $self->coordinates } |
|
2
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
21
|
|
|
|
|
|
|
]; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |