adiwg-mdtranslator 2.14.2 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +20 -5
- data/Rakefile +2 -0
- data/adiwg-mdtranslator.gemspec +2 -1
- data/lib/adiwg/mdtranslator.rb +1 -0
- data/lib/adiwg/mdtranslator/internal/module_codelistFun.rb +26 -0
- data/lib/adiwg/mdtranslator/internal/module_coordinates.rb +3 -0
- data/lib/adiwg/mdtranslator/internal/module_dateTimeFun.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_date.rb +0 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dateTime.rb +0 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_keyword.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_taxonSystem.rb +2 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_contact.rb +0 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_date.rb +0 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dateTime.rb +0 -2
- data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_provenance.rb +0 -1
- data/lib/adiwg/mdtranslator/version.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_attribute.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_citation.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateRange.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateSingle.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_method.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_methodKeywords.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_transferInfo.rb +0 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_taxonomy.rb +1 -3
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_additionalDocument.rb +48 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_address.rb +90 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_associatedResource.rb +84 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_attribute.rb +107 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_attributeGroup.rb +69 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_baseUnit.rb +38 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_boundingBox.rb +70 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_browseGraphic.rb +95 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_citation.rb +205 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_codelist.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_constraint.rb +51 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_constraintCommon.rb +104 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_contact.rb +119 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_conventionalUnit.rb +64 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_coverageDescription.rb +84 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataIdentification.rb +347 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_date.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_definitionUnit.rb +35 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_derivedUnit.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dimension.rb +72 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_distribution.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_distributor.rb +77 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_email.rb +44 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_extent.rb +85 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_feature.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureCollection.rb +56 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureProperties.rb +64 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_format.rb +74 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_fraction.rb +46 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gcoDateTime.rb +45 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geographicElement.rb +77 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geographicExtent.rb +96 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geometricObjects.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geometryCollection.rb +97 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_georectified.rb +121 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_georeferenceable.rb +87 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gmlIdentifier.rb +32 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_grid.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gridRepresentation.rb +36 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_identifier.rb +95 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_imageDescription.rb +175 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_individual.rb +85 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_keyword.rb +78 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_legalConstraints.rb +87 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_lineString.rb +76 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_lineage.rb +97 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_locale.rb +67 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_maintenance.rb +101 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_mdBand.rb +82 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_mdMetadata.rb +372 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_measure.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_medium.rb +113 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_miBand.rb +90 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiLine.rb +84 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiPoint.rb +84 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiPolygon.rb +84 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_onlineResource.rb +91 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_orderProcess.rb +79 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_organization.rb +106 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_phone.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_point.rb +77 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_polygon.rb +95 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_processStep.rb +130 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_rangeDimension.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_referenceSystem.rb +92 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_releasability.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_resolution.rb +97 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_responsibility.rb +91 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_sampleDimension.rb +127 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_scope.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_scopeDescription.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_securityConstraints.rb +97 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_series.rb +63 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_source.rb +125 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_spatialRepresentation.rb +61 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_temporalExtent.rb +53 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_timeInstant.rb +80 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_timePeriod.rb +113 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_transferOptions.rb +107 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_unitsOfMeasure.rb +258 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_usage.rb +134 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_useConstraints.rb +41 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_vectorRepresentation.rb +61 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_verticalExtent.rb +70 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/iso19115_1_writer.rb +105 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/iso19115_1_writer_messages_eng.yml +132 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/readme.md +12 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +15 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_citation.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataIdentification.rb +42 -39
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataQuality.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distributor.rb +3 -1
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_extension.rb +12 -7
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_miMetadata.rb +2 -3
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_referenceSystem.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_resolution.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_responsibleParty.rb +42 -35
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_spatialRepresentation.rb +4 -10
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer_messages_eng.yml +5 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/readme.md +2 -2
- data/lib/adiwg/mdtranslator/writers/iso19115_2/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdWriters.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_citation.rb +0 -1
- data/lib/adiwg/mdtranslator_cli.rb +2 -1
- metadata +93 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_gmlIdentifier.rb +0 -55
@@ -1,10 +1,10 @@
|
|
1
|
-
# ISO <<Class>>
|
1
|
+
# ISO <<Class>> MD_GridSpatialRepresentation
|
2
2
|
# 19115-2 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2016-12-14 original script
|
6
6
|
|
7
|
-
require_relative '
|
7
|
+
require_relative 'class_gridRepresentation'
|
8
8
|
require_relative 'class_vectorRepresentation'
|
9
9
|
require_relative 'class_georectified'
|
10
10
|
require_relative 'class_georeferenceable'
|
@@ -24,20 +24,14 @@ module ADIWG
|
|
24
24
|
def writeXML(hRepresentation)
|
25
25
|
|
26
26
|
# classes used
|
27
|
-
gridClass =
|
27
|
+
gridClass = MD_GridSpatialRepresentation.new(@xml, @hResponseObj)
|
28
28
|
vectorClass = MD_VectorSpatialRepresentation.new(@xml, @hResponseObj)
|
29
29
|
rectifiedClass = MD_Georectified.new(@xml, @hResponseObj)
|
30
30
|
referenceClass = MD_Georeferenceable.new(@xml, @hResponseObj)
|
31
31
|
|
32
32
|
# spatial representation - grid
|
33
|
-
# write MD_GridSpatialRepresentation tag here
|
34
|
-
# ... it is not written in the Grid class since the
|
35
|
-
# ... Grid attributes are also written into georectified
|
36
|
-
# ... and georeferenceable classes
|
37
33
|
unless hRepresentation[:gridRepresentation].empty?
|
38
|
-
|
39
|
-
gridClass.writeXML(hRepresentation[:gridRepresentation], 'spatial representation')
|
40
|
-
end
|
34
|
+
gridClass.writeXML(hRepresentation[:gridRepresentation])
|
41
35
|
end
|
42
36
|
|
43
37
|
# spatial representation - vector
|
@@ -81,6 +81,7 @@ messageList:
|
|
81
81
|
- {id: 260, message: "process step description is missing"}
|
82
82
|
|
83
83
|
- {id: 270, message: "responsible party role is missing"}
|
84
|
+
- {id: 270, message: "responsible party is missing"}
|
84
85
|
|
85
86
|
- {id: 280, message: "scope level (code) is missing"}
|
86
87
|
|
@@ -111,3 +112,7 @@ messageList:
|
|
111
112
|
- {id: 351, message: "attribute sequence identifier type is missing"}
|
112
113
|
|
113
114
|
- {id: 360, message: "measure type is invalid; must be one of [distance, length, angle, measure, scale]"}
|
115
|
+
|
116
|
+
- {id: 370, message: "invalid obligation code"}
|
117
|
+
|
118
|
+
- {id: 380, message: "invalid topic category"}
|
@@ -4,9 +4,9 @@
|
|
4
4
|
### Writer for ISO 19115-2:2009 Geographic Metadata
|
5
5
|
|
6
6
|
The mdTranslator iso19115_2 writer implements approximately 95% of
|
7
|
-
the for ISO 19115-2
|
7
|
+
the for ISO 19139:2007 and 19115-2:2009 standards. Efforts were made to include all
|
8
8
|
elements of the ISO standard that support general data descriptions
|
9
9
|
to ensure generation of health and robust project and data metadata
|
10
10
|
records. The sections of 19115-2 not supported by the mdTranslator
|
11
11
|
writer are the 'quantitative' section for data quality, portrayal
|
12
|
-
catalog reference, and application schema information.
|
12
|
+
catalog reference, acquisition, and application schema information.
|
@@ -6,8 +6,8 @@
|
|
6
6
|
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
7
7
|
# Stan Smith 2015-06-22 replace global ($response) with passed in object (hResponseObj)
|
8
8
|
# Stan Smith 2015-03-04 changed method of setting $WriterNS
|
9
|
-
# Stan Smith
|
10
|
-
# Stan Smith
|
9
|
+
# Stan Smith 2014-12-16 generalized handleWriter to use :writerName
|
10
|
+
# Stan Smith 2012-12-11 original script
|
11
11
|
|
12
12
|
module ADIWG
|
13
13
|
module Mdtranslator
|
@@ -16,13 +16,13 @@ module ADIWG
|
|
16
16
|
def self.handleWriter(intObj, hResponseObj)
|
17
17
|
|
18
18
|
# use ':writerRequested' from hResponseObj to build directory path to writer
|
19
|
-
#
|
20
|
-
# writer's code
|
21
|
-
#
|
19
|
+
# all writers must be in the folder 'lib/adiwg/mdtranslator/writers/'
|
20
|
+
# place a particular writer's code in a folder by the same name as the writer
|
21
|
+
# the writer must contain a starting point module named '{writer}_writer.rb'
|
22
22
|
# '{writer}_writer.rb' must have a method named 'startWriter()'
|
23
23
|
# 'startWriter()' must pass two parameters (intObj, hResponseObj)
|
24
|
-
# all writer modules and classes must
|
25
|
-
# writer namespace is 'ADIWG::Mdtranslator::Writers::{writer}'
|
24
|
+
# all of the {writer's} modules and classes must be contained in a unique private namespace
|
25
|
+
# the writer's namespace is 'ADIWG::Mdtranslator::Writers::{writer}'
|
26
26
|
|
27
27
|
# the writer's high-level
|
28
28
|
thisDir = File.dirname(File.expand_path(__FILE__))
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# ADIwg mdTranslator - Thor CLI for mdtranslator
|
3
3
|
|
4
4
|
# History:
|
5
|
+
# Stan Smith 2019-04-11 add 'iso19115-1' option to writer enum list
|
5
6
|
# Stan Smith 2018-05-04 add support for reader execution messages
|
6
7
|
# Stan Smith 2018-04-07 add 'fgdc' option to reader and writer enum list
|
7
8
|
# Stan Smith 2018-02-26 add 'forceValid' parameter
|
@@ -38,7 +39,7 @@ and to choose the level of validation for mdJson input files.
|
|
38
39
|
:enum => %w{mdJson sbJson fgdc}, :required => true
|
39
40
|
method_option :writer, :aliases => '-w',
|
40
41
|
:desc => 'Writer to create your output metadata file, leave blank to validate input only',
|
41
|
-
:enum => %w{
|
42
|
+
:enum => %w{fgdc html iso19110 iso19115_1 iso19115_2 mdJson sbJson }
|
42
43
|
method_option :validate, :aliases => '-v', :desc => 'Specify level of validation to be performed',
|
43
44
|
:enum => %w{none normal strict}, :default => 'normal'
|
44
45
|
method_option :forceValid, :aliases => '-f', :desc => 'Insert tags for required elements missing from input',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adiwg-mdtranslator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stan Smith
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '2'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- lib/adiwg-mdtranslator.rb
|
235
235
|
- lib/adiwg/mdtranslator.rb
|
236
236
|
- lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb
|
237
|
+
- lib/adiwg/mdtranslator/internal/module_codelistFun.rb
|
237
238
|
- lib/adiwg/mdtranslator/internal/module_coordinates.rb
|
238
239
|
- lib/adiwg/mdtranslator/internal/module_dateTimeFun.rb
|
239
240
|
- lib/adiwg/mdtranslator/readers/fgdc/fgdc_reader.rb
|
@@ -366,7 +367,6 @@ files:
|
|
366
367
|
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_geometryProperties.rb
|
367
368
|
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_georectifiedRepresentation.rb
|
368
369
|
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_georeferenceableRepresentation.rb
|
369
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_gmlIdentifier.rb
|
370
370
|
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_graphic.rb
|
371
371
|
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_gridRepresentation.rb
|
372
372
|
- lib/adiwg/mdtranslator/readers/mdJson/modules/module_identifier.rb
|
@@ -630,6 +630,94 @@ files:
|
|
630
630
|
- lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer_messages_eng.yml
|
631
631
|
- lib/adiwg/mdtranslator/writers/iso19110/readme.md
|
632
632
|
- lib/adiwg/mdtranslator/writers/iso19110/version.rb
|
633
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_additionalDocument.rb
|
634
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_address.rb
|
635
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_associatedResource.rb
|
636
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_attribute.rb
|
637
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_attributeGroup.rb
|
638
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_baseUnit.rb
|
639
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_boundingBox.rb
|
640
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_browseGraphic.rb
|
641
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_citation.rb
|
642
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_codelist.rb
|
643
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_constraint.rb
|
644
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_constraintCommon.rb
|
645
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_contact.rb
|
646
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_conventionalUnit.rb
|
647
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_coverageDescription.rb
|
648
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataIdentification.rb
|
649
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_date.rb
|
650
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_definitionUnit.rb
|
651
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_derivedUnit.rb
|
652
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dimension.rb
|
653
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_distribution.rb
|
654
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_distributor.rb
|
655
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_email.rb
|
656
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_extent.rb
|
657
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_feature.rb
|
658
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureCollection.rb
|
659
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureProperties.rb
|
660
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_format.rb
|
661
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_fraction.rb
|
662
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gcoDateTime.rb
|
663
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geographicElement.rb
|
664
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geographicExtent.rb
|
665
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geometricObjects.rb
|
666
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geometryCollection.rb
|
667
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_georectified.rb
|
668
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_georeferenceable.rb
|
669
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gmlIdentifier.rb
|
670
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_grid.rb
|
671
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gridRepresentation.rb
|
672
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_identifier.rb
|
673
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_imageDescription.rb
|
674
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_individual.rb
|
675
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_keyword.rb
|
676
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_legalConstraints.rb
|
677
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_lineString.rb
|
678
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_lineage.rb
|
679
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_locale.rb
|
680
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_maintenance.rb
|
681
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_mdBand.rb
|
682
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_mdMetadata.rb
|
683
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_measure.rb
|
684
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_medium.rb
|
685
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_miBand.rb
|
686
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiLine.rb
|
687
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiPoint.rb
|
688
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiPolygon.rb
|
689
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_onlineResource.rb
|
690
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_orderProcess.rb
|
691
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_organization.rb
|
692
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_phone.rb
|
693
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_point.rb
|
694
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_polygon.rb
|
695
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_processStep.rb
|
696
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_rangeDimension.rb
|
697
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_referenceSystem.rb
|
698
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_releasability.rb
|
699
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_resolution.rb
|
700
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_responsibility.rb
|
701
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_sampleDimension.rb
|
702
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_scope.rb
|
703
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_scopeDescription.rb
|
704
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_securityConstraints.rb
|
705
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_series.rb
|
706
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_source.rb
|
707
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_spatialRepresentation.rb
|
708
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_temporalExtent.rb
|
709
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_timeInstant.rb
|
710
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_timePeriod.rb
|
711
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_transferOptions.rb
|
712
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_unitsOfMeasure.rb
|
713
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_usage.rb
|
714
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_useConstraints.rb
|
715
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_vectorRepresentation.rb
|
716
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_verticalExtent.rb
|
717
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/iso19115_1_writer.rb
|
718
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/iso19115_1_writer_messages_eng.yml
|
719
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/readme.md
|
720
|
+
- lib/adiwg/mdtranslator/writers/iso19115_1/version.rb
|
633
721
|
- lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_address.rb
|
634
722
|
- lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_aggregateInformation.rb
|
635
723
|
- lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_attribute.rb
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# unpack GML identifier
|
2
|
-
# Reader - ADIwg JSON to internal data structure
|
3
|
-
|
4
|
-
# History:
|
5
|
-
# Stan Smith 2018-06-20 refactored error and warning messaging
|
6
|
-
# Stan Smith 2016-11-30 original script
|
7
|
-
|
8
|
-
# TODO verify this method is not used
|
9
|
-
|
10
|
-
module ADIWG
|
11
|
-
module Mdtranslator
|
12
|
-
module Readers
|
13
|
-
module MdJson
|
14
|
-
|
15
|
-
module GMLIdentifier
|
16
|
-
|
17
|
-
def self.unpack(hIdentifier, responseObj)
|
18
|
-
|
19
|
-
@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson
|
20
|
-
|
21
|
-
# return nil object if input is empty
|
22
|
-
if hIdentifier.empty?
|
23
|
-
@MessagePath.issueWarning(420, responseObj)
|
24
|
-
return nil
|
25
|
-
end
|
26
|
-
|
27
|
-
# instance classes needed in script
|
28
|
-
intMetadataClass = InternalMetadata.new
|
29
|
-
intIdentifier = intMetadataClass.newIdentifier
|
30
|
-
|
31
|
-
# gml identifier - identifier (required)
|
32
|
-
if hIdentifier.has_key?('identifier')
|
33
|
-
intIdentifier[:identifier] = hIdentifier['identifier']
|
34
|
-
end
|
35
|
-
if intIdentifier[:identifier].nil? || intIdentifier[:identifier] == ''
|
36
|
-
@MessagePath.issueError(421, responseObj)
|
37
|
-
end
|
38
|
-
|
39
|
-
# gml identifier - namespace (required)
|
40
|
-
if hIdentifier.has_key?('namespace')
|
41
|
-
intIdentifier[:namespace] = hIdentifier['namespace']
|
42
|
-
end
|
43
|
-
if intIdentifier[:namespace].nil? || intIdentifier[:namespace] == ''
|
44
|
-
@MessagePath.issueError(422, responseObj)
|
45
|
-
end
|
46
|
-
|
47
|
-
return intIdentifier
|
48
|
-
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|