line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2008 by Mark Overmeer. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 1.05. |
5
|
2
|
|
|
2
|
|
31142
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
79
|
|
6
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
94
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Geo::ISO19139::2005; |
9
|
2
|
|
|
2
|
|
12
|
use vars '$VERSION'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
158
|
|
10
|
|
|
|
|
|
|
$VERSION = '0.10'; |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
12
|
use base 'Geo::GML'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
2897
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use Geo::ISO19139::Util qw/:2005/; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Log::Report 'geo-iso', syntax => 'SHORT'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use XML::Compile::Cache (); |
19
|
|
|
|
|
|
|
use XML::Compile::Util qw/unpack_type pack_type/; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my $xsd = __FILE__; |
22
|
|
|
|
|
|
|
$xsd =~ s!/2005+\.pm$!/xsd!; |
23
|
|
|
|
|
|
|
my @xsd = glob("$xsd/2005/*/*.xsd"); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub init($) |
27
|
|
|
|
|
|
|
{ my ($self, $args) = @_; |
28
|
|
|
|
|
|
|
$self->{GI9_version} = $args->{version} || '2005'; |
29
|
|
|
|
|
|
|
$args->{version} = $args->{gml_version} || '3.2.1'; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
my $pref = $args->{prefixes} ||= {}; |
32
|
|
|
|
|
|
|
$pref->{gco} ||= NS_GCO_2005; |
33
|
|
|
|
|
|
|
$pref->{gmd} ||= NS_GMD_2005; |
34
|
|
|
|
|
|
|
$pref->{gmx} ||= NS_GMX_2005; |
35
|
|
|
|
|
|
|
$pref->{gsr} ||= NS_GSR_2005; |
36
|
|
|
|
|
|
|
$pref->{gss} ||= NS_GSS_2005; |
37
|
|
|
|
|
|
|
$pref->{gts} ||= NS_GTS_2005; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
$self->SUPER::init($args); |
40
|
|
|
|
|
|
|
$self->importDefinitions(\@xsd); |
41
|
|
|
|
|
|
|
$self; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub gmlVersion() {shift->SUPER::version} |
46
|
|
|
|
|
|
|
sub version() {shift->{GI9_version}} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |