line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Geo::JSON::CRS; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.006'; # VERSION |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: Co-ordinate Reference System object |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
96714
|
use Moo; |
|
3
|
|
|
|
|
53008
|
|
|
3
|
|
|
|
|
20
|
|
8
|
|
|
|
|
|
|
with 'Geo::JSON::Role::ToJson'; |
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
9904
|
use Types::Standard qw/ HashRef /; |
|
3
|
|
|
|
|
191462
|
|
|
3
|
|
|
|
|
51
|
|
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
3
|
|
3307
|
use Geo::JSON; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
412
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has type => ( |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
required => 1, |
17
|
|
|
|
|
|
|
isa => sub { |
18
|
|
|
|
|
|
|
die "CRS type must be either 'name' or 'link'" |
19
|
|
|
|
|
|
|
unless $_[0] && ( $_[0] eq 'name' || $_[0] eq 'link' ); |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has properties => ( is => 'ro', isa => HashRef, required => 1 ); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |