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.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +20 -5
  4. data/Rakefile +2 -0
  5. data/adiwg-mdtranslator.gemspec +2 -1
  6. data/lib/adiwg/mdtranslator.rb +1 -0
  7. data/lib/adiwg/mdtranslator/internal/module_codelistFun.rb +26 -0
  8. data/lib/adiwg/mdtranslator/internal/module_coordinates.rb +3 -0
  9. data/lib/adiwg/mdtranslator/internal/module_dateTimeFun.rb +1 -1
  10. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_date.rb +0 -1
  11. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dateTime.rb +0 -1
  12. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_keyword.rb +1 -1
  13. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_taxonSystem.rb +2 -4
  14. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_contact.rb +0 -1
  15. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_date.rb +0 -2
  16. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dateTime.rb +0 -2
  17. data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_provenance.rb +0 -1
  18. data/lib/adiwg/mdtranslator/version.rb +3 -2
  19. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_attribute.rb +0 -1
  20. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_citation.rb +0 -1
  21. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateRange.rb +0 -1
  22. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateSingle.rb +0 -1
  23. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_method.rb +1 -1
  24. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_methodKeywords.rb +1 -1
  25. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb +0 -1
  26. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_transferInfo.rb +0 -1
  27. data/lib/adiwg/mdtranslator/writers/html/sections/html_taxonomy.rb +1 -3
  28. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_additionalDocument.rb +48 -0
  29. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_address.rb +90 -0
  30. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_associatedResource.rb +84 -0
  31. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_attribute.rb +107 -0
  32. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_attributeGroup.rb +69 -0
  33. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_baseUnit.rb +38 -0
  34. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_boundingBox.rb +70 -0
  35. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_browseGraphic.rb +95 -0
  36. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_citation.rb +205 -0
  37. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_codelist.rb +50 -0
  38. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_constraint.rb +51 -0
  39. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_constraintCommon.rb +104 -0
  40. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_contact.rb +119 -0
  41. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_conventionalUnit.rb +64 -0
  42. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_coverageDescription.rb +84 -0
  43. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataIdentification.rb +347 -0
  44. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_date.rb +62 -0
  45. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_definitionUnit.rb +35 -0
  46. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_derivedUnit.rb +42 -0
  47. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dimension.rb +72 -0
  48. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_distribution.rb +62 -0
  49. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_distributor.rb +77 -0
  50. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_email.rb +44 -0
  51. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_extent.rb +85 -0
  52. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_feature.rb +71 -0
  53. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureCollection.rb +56 -0
  54. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureProperties.rb +64 -0
  55. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_format.rb +74 -0
  56. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_fraction.rb +46 -0
  57. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gcoDateTime.rb +45 -0
  58. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geographicElement.rb +77 -0
  59. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geographicExtent.rb +96 -0
  60. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geometricObjects.rb +60 -0
  61. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_geometryCollection.rb +97 -0
  62. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_georectified.rb +121 -0
  63. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_georeferenceable.rb +87 -0
  64. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gmlIdentifier.rb +32 -0
  65. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_grid.rb +71 -0
  66. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_gridRepresentation.rb +36 -0
  67. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_identifier.rb +95 -0
  68. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_imageDescription.rb +175 -0
  69. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_individual.rb +85 -0
  70. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_keyword.rb +78 -0
  71. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_legalConstraints.rb +87 -0
  72. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_lineString.rb +76 -0
  73. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_lineage.rb +97 -0
  74. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_locale.rb +67 -0
  75. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_maintenance.rb +101 -0
  76. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_mdBand.rb +82 -0
  77. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_mdMetadata.rb +372 -0
  78. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_measure.rb +71 -0
  79. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_medium.rb +113 -0
  80. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_miBand.rb +90 -0
  81. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiLine.rb +84 -0
  82. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiPoint.rb +84 -0
  83. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_multiPolygon.rb +84 -0
  84. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_onlineResource.rb +91 -0
  85. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_orderProcess.rb +79 -0
  86. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_organization.rb +106 -0
  87. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_phone.rb +81 -0
  88. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_point.rb +77 -0
  89. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_polygon.rb +95 -0
  90. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_processStep.rb +130 -0
  91. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_rangeDimension.rb +94 -0
  92. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_referenceSystem.rb +92 -0
  93. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_releasability.rb +71 -0
  94. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_resolution.rb +97 -0
  95. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_responsibility.rb +91 -0
  96. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_sampleDimension.rb +127 -0
  97. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_scope.rb +75 -0
  98. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_scopeDescription.rb +75 -0
  99. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_securityConstraints.rb +97 -0
  100. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_series.rb +63 -0
  101. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_source.rb +125 -0
  102. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_spatialRepresentation.rb +61 -0
  103. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_temporalExtent.rb +53 -0
  104. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_timeInstant.rb +80 -0
  105. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_timePeriod.rb +113 -0
  106. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_transferOptions.rb +107 -0
  107. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_unitsOfMeasure.rb +258 -0
  108. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_usage.rb +134 -0
  109. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_useConstraints.rb +41 -0
  110. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_vectorRepresentation.rb +61 -0
  111. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_verticalExtent.rb +70 -0
  112. data/lib/adiwg/mdtranslator/writers/iso19115_1/iso19115_1_writer.rb +105 -0
  113. data/lib/adiwg/mdtranslator/writers/iso19115_1/iso19115_1_writer_messages_eng.yml +132 -0
  114. data/lib/adiwg/mdtranslator/writers/iso19115_1/readme.md +12 -0
  115. data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +15 -0
  116. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_citation.rb +3 -2
  117. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataIdentification.rb +42 -39
  118. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataQuality.rb +2 -2
  119. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distributor.rb +3 -1
  120. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_extension.rb +12 -7
  121. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_miMetadata.rb +2 -3
  122. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_referenceSystem.rb +1 -1
  123. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_resolution.rb +1 -1
  124. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_responsibleParty.rb +42 -35
  125. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_spatialRepresentation.rb +4 -10
  126. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb +1 -1
  127. data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer_messages_eng.yml +5 -0
  128. data/lib/adiwg/mdtranslator/writers/iso19115_2/readme.md +2 -2
  129. data/lib/adiwg/mdtranslator/writers/iso19115_2/version.rb +1 -1
  130. data/lib/adiwg/mdtranslator/writers/mdWriters.rb +7 -7
  131. data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_citation.rb +0 -1
  132. data/lib/adiwg/mdtranslator_cli.rb +2 -1
  133. metadata +93 -5
  134. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_gmlIdentifier.rb +0 -55
@@ -1,10 +1,10 @@
1
- # ISO <<Class>> CI_Series
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 'class_grid'
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 = Grid.new(@xml, @hResponseObj)
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
- @xml.tag!('gmd:MD_GridSpatialRepresentation') do
39
- gridClass.writeXML(hRepresentation[:gridRepresentation], 'spatial representation')
40
- end
34
+ gridClass.writeXML(hRepresentation[:gridRepresentation])
41
35
  end
42
36
 
43
37
  # spatial representation - vector
@@ -33,7 +33,7 @@ module ADIWG
33
33
  end
34
34
  end
35
35
  if aCons.empty?
36
- @xml.tag!('gmd:useLimitation')
36
+ @xml.tag!('gmd:useLimitation') && @hResponseObj[:writerShowTags]
37
37
  end
38
38
 
39
39
  end # gmd:MD_Constraints tag
@@ -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 standard. Efforts were made to include all
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.
@@ -7,7 +7,7 @@ module ADIWG
7
7
  module Writers
8
8
  module Iso19115_2
9
9
 
10
- # current version of html writer
10
+ # current version of ISO 19115-2 writer
11
11
  VERSION = '2.2.0'
12
12
 
13
13
  end
@@ -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 2012-12-16 generalized handleWriter to use :writerName
10
- # Stan Smith 2014-12-11 original script
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
- # writer's high-level folder must be placed in 'lib/adiwg/mdtranslator/writers/'
20
- # writer's code must must be in folder named '{writer}'
21
- # '{writer}' must contain a module named '{writer}_writer.rb'
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 remain in their private namespace
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__))
@@ -3,7 +3,6 @@
3
3
  # History:
4
4
  # Stan Smith 2017-05-16 original script
5
5
 
6
- require 'adiwg/mdtranslator/internal/module_dateTimeFun'
7
6
  require_relative 'sbJson_codelists'
8
7
 
9
8
  module ADIWG
@@ -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{iso19115_2 iso19110 html mdJson sbJson fgdc}
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.14.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: 2018-11-02 00:00:00.000000000 Z
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: '1'
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: '1'
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