Geo::EOP - Earth Observation Products EOP
Geo::EOP is a Geo::GML is a XML::Compile::Cache is a XML::Compile::Schema is a XML::Compile
use Geo::EOP ':eop1.1'; my $eop = Geo::EOP->new(eop_version => '1.1'); # see XML::Compile::Cache on how to use readers and writers my $data = $eop->reader("gml:GridCoverage")->($xmlmsg); my $xml = $eop->writer($sometype)->($doc, $perldata); # or without help of the cache, XML::Compile::Schema my $r = $gml->compile(READER => $sometype); my $data = $r->($xml); # read a eop data file. Autodetects the version used. my ($type, $data) = $eop->from('data.xml'); my ($type, $data) = Geo::EOP->from('data.xml'); print "Root type: $type\n"; print "EOP version: $data->{version}\n"; # huge overview on all defined elements $gml->printIndex;
Provides access to the EOP definitions specified as XML schemas, based on GML. Up to version 1.0, these schemas where named 'HMA' (Heterogeneous EO Missions Accessibility), and the development is still part of these ESA efforts for standardization.
BE WARNED that HMA1.0 and EOP 1.1/1.2 are only using a subset of GML version 3.1.1, due to problems with some software tools. This limitation will probably be removed in 1.3 (or whatever the next version will be named).
The first releases of this module will not powerful, but hopefully people contribute. For instance, an example conversion script between various versions is very welcome! It would be nice to help each other. I will clean-up the implementation, to make it publishable, but do not have the knowledge about needed to implement the converter itself.
Extends "DESCRIPTION" in Geo::GML.
Extends "METHODS" in Geo::GML.
Extends "Constructors" in Geo::GML.
Read a EOP structure from a data source, which can be anything acceptable by dataToXML(): a XML::LibXML::Element, XML as string or ref-string, filename, filehandle or known namespace.
Returned is the product (the type of the root node) and the parsed data-structure. The EOP version used for decoding is autodetected, unless specified.
See examples/read_eop.pl
example:
my ($type, $data) = $eop->from('data.xml'); my ($type, $data) = Geo::EOP->from('data.xml');
-Option --Defined in --Default allow_undeclared Geo::GML <true> any_element XML::Compile::Cache ATTEMPT block_namespace XML::Compile::Schema [] eop_version <required> hook XML::Compile::Schema undef hooks XML::Compile::Schema [] ignore_unused_tags XML::Compile::Schema <false> key_rewrite XML::Compile::Schema [] opts_readers XML::Compile::Cache [] opts_rw XML::Compile::Cache <some> opts_writers XML::Compile::Cache [] parser_options XML::Compile <many> prefixes Geo::GML undef schema_dirs XML::Compile undef typemap XML::Compile::Cache {} units <none> version Geo::GML <required> xsi_type XML::Compile::Cache {}
Only used when the object is created directly from this base-class. It determines which EOP syntax is to be used. Can be a VERSION like "1.1" or a NAMESPACE URI like 'NS_EOP_11'.
See "Units". Only if you specify your preference in units of measurement, some automatic translations will be performed.
Extends "Accessors" in Geo::GML.
Inherited, see "Accessors" in XML::Compile::Schema
Inherited, see "Accessors" in XML::Compile
Inherited, see "Accessors" in XML::Compile::Cache
Inherited, see "Accessors" in Geo::GML
EOP/HMA version, for instance '1.0'.
Extends "Prefix management" in Geo::GML.
Inherited, see "Prefix management" in XML::Compile::Cache
Extends "Compilers" in Geo::GML.
Inherited, see "Compilers" in XML::Compile::Cache
Inherited, see "Compilers" in XML::Compile::Schema
Inherited, see "Compilers" in XML::Compile
Inherited, see "Compilers" in Geo::GML
Extends "Helpers" in Geo::GML.
Inherited, see "Helpers" in Geo::GML::GeoPoint
Extends "Administration" in Geo::GML.
Inherited, see "Administration" in XML::Compile::Cache
Inherited, see "Administration" in XML::Compile::Schema
Inherited, see "Administration" in XML::Compile
List all the elements which can be produced with the schema. By default, this only shows the elements and excludes the abstract elements from the list. The selected FILEHANDLE is the default to print to.
-Option --Defined in --Default show_declared XML::Compile::Cache <true>
Extends "DETAILS" in Geo::GML.
Extends "Distribution collection overview" in Geo::GML.
Extends "Comparison" in Geo::GML.
Extends "Collecting definitions" in Geo::GML.
Extends "Addressing components" in Geo::GML.
Extends "Representing data-structures" in Geo::GML.
Extends "Schema hooks" in Geo::GML.
Extends "Typemaps" in Geo::GML.
Extends "Handling xsi:type" in Geo::GML.
Extends "Key rewrite" in Geo::GML.
GML is careful about its units, which is nice but verbose. Therefore, this module gives you a way to set your preferences. The reader will simplify the structure, re-calculating the values found into the units of measure you prefer, according to UCUM (http://aurora.regenstrief.org/ucum)
my $eop = Geo::EOP->new(... , units => { distance => 'm' , angle => 'deg' } );
Available conversions:
Will be applied to all AngleType elements
Will be applied to all MeasureType elements
Will be applied to all elements with a name ending on "Percentage". I am not sure about the float... cannot find the uom name.
float
Extends "DESCRIPTIONS" in Geo::GML.
This module is part of Geo-EOP distribution version 0.50, built on July 21, 2015. Website: http://perl.overmeer.net/geo/ All modules in this suite: "Geo::GML", "Geo::ISO19139", "Geo::EOP", "Geo::Point", "Geo::Proj4", "Geo::WKT", and "Math::Polygon".
Please post questions or ideas to https://list.hut.fi/mailman/listinfo/geo-perl|the Geo-Perl mailinglist
Copyrights of the perl code and the related documentation by 2008-2015 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
The included schemas are copyrighted by the Open Geospatial Consortium, Inc. They are unmodified copied from the files at http://schemas.opengis.net. Read OGCs disclaimer and copyright statements on documentation and software at http://www.opengeospatial.org/ogc/legal. The license text is also included in this CPAN distribution.
To install Geo::EOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::EOP
CPAN shell
perl -MCPAN -e shell install Geo::EOP
For more information on module installation, please visit the detailed CPAN module installation guide.