adiwg-mdtranslator 2.18.2 → 2.19.0.pre.beta.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +14 -0
  3. data/.gitignore +2 -1
  4. data/Gemfile.lock +86 -0
  5. data/Rakefile +1 -1
  6. data/adiwg-mdtranslator.gemspec +6 -6
  7. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +27 -11
  8. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +149 -0
  9. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb +2 -2
  10. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +1 -1
  11. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +8 -7
  12. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQuality.rb +4 -4
  13. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQualityReport.rb +8 -16
  14. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_evaluationMethod.rb +1 -1
  15. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_legalConstraint.rb +8 -8
  16. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityMeasure.rb +34 -0
  17. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityResultFile.rb +72 -0
  18. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_rangeElementDescription.rb +2 -2
  19. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_responsibleParty.rb +1 -1
  20. data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_contact.rb +13 -0
  21. data/lib/adiwg/mdtranslator/version.rb +1 -1
  22. data/lib/adiwg/mdtranslator/writers/fgdc/classes/{class_quality.rb → class_dataQuality.rb} +14 -10
  23. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb +3 -3
  24. data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +5 -1
  25. data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +32 -0
  26. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb +39 -18
  27. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQualityReport.rb +385 -0
  28. data/lib/adiwg/mdtranslator/writers/html/sections/html_rangeElementDescription.rb +2 -2
  29. data/lib/adiwg/mdtranslator/writers/html/sections/html_resultFile.rb +60 -0
  30. data/lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb +18 -10
  31. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_additionalDocument.rb +3 -3
  32. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_address.rb +4 -4
  33. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_algorithm.rb +4 -4
  34. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_associatedResource.rb +4 -4
  35. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attribute.rb +4 -4
  36. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attributeGroup.rb +4 -4
  37. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_baseUnit.rb +2 -2
  38. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_boundingBox.rb +4 -4
  39. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_browseGraphic.rb +4 -4
  40. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_citation.rb +4 -4
  41. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_codelist.rb +2 -2
  42. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraint.rb +4 -4
  43. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraintCommon.rb +2 -2
  44. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_contact.rb +3 -3
  45. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_conventionalUnit.rb +2 -2
  46. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_coverageDescription.rb +3 -3
  47. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataIdentification.rb +5 -5
  48. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQuality.rb +9 -2
  49. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_dataQualityReport.rb +269 -0
  50. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_date.rb +4 -4
  51. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_definitionUnit.rb +2 -2
  52. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_derivedUnit.rb +2 -2
  53. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dimension.rb +4 -4
  54. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distribution.rb +2 -2
  55. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distributor.rb +4 -4
  56. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_email.rb +2 -2
  57. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_extent.rb +2 -2
  58. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_feature.rb +4 -4
  59. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCatalog.rb +3 -3
  60. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCollection.rb +2 -2
  61. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureProperties.rb +2 -2
  62. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_format.rb +4 -4
  63. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_fraction.rb +4 -4
  64. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gcoDateTime.rb +2 -2
  65. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicElement.rb +4 -4
  66. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicExtent.rb +2 -2
  67. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometricObjects.rb +3 -3
  68. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometryCollection.rb +4 -4
  69. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georectified.rb +4 -4
  70. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georeferenceable.rb +4 -4
  71. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gmlIdentifier.rb +2 -2
  72. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_grid.rb +4 -4
  73. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gridRepresentation.rb +1 -1
  74. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_identifier.rb +4 -4
  75. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_imageDescription.rb +2 -2
  76. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_individual.rb +4 -4
  77. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_keyword.rb +4 -4
  78. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leProcessStep.rb +4 -4
  79. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leSource.rb +2 -2
  80. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_legalConstraints.rb +3 -3
  81. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liProcessStep.rb +4 -4
  82. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liSource.rb +2 -2
  83. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineString.rb +2 -2
  84. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineage.rb +2 -2
  85. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_locale.rb +4 -4
  86. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_maintenance.rb +4 -4
  87. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdBand.rb +2 -2
  88. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdMetadata.rb +7 -7
  89. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_measure.rb +4 -4
  90. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_medium.rb +2 -2
  91. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_miBand.rb +2 -2
  92. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiLine.rb +2 -2
  93. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPoint.rb +2 -2
  94. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPolygon.rb +2 -2
  95. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_nominalResolution.rb +4 -4
  96. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_onlineResource.rb +4 -4
  97. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_orderProcess.rb +2 -2
  98. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_organization.rb +4 -4
  99. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_partyIdentifier.rb +4 -4
  100. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_phone.rb +3 -3
  101. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_point.rb +2 -2
  102. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_polygon.rb +2 -2
  103. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processReport.rb +4 -4
  104. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processStep.rb +2 -2
  105. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processing.rb +4 -4
  106. data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_qualityResultFile.rb +55 -0
  107. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeDimension.rb +4 -4
  108. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeElementDescription.rb +5 -5
  109. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_referenceSystem.rb +3 -3
  110. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_releasability.rb +2 -2
  111. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_resolution.rb +2 -2
  112. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_responsibility.rb +4 -4
  113. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_sampleDimension.rb +4 -4
  114. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scope.rb +4 -4
  115. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scopeDescription.rb +2 -2
  116. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_securityConstraints.rb +4 -4
  117. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_series.rb +2 -2
  118. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_source.rb +2 -2
  119. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_spatialRepresentation.rb +2 -2
  120. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_temporalExtent.rb +2 -2
  121. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timeInstant.rb +2 -2
  122. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timePeriod.rb +2 -2
  123. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_transferOptions.rb +2 -2
  124. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_unitsOfMeasure.rb +2 -2
  125. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_usage.rb +4 -4
  126. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_useConstraints.rb +2 -2
  127. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_vectorRepresentation.rb +2 -2
  128. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_verticalExtent.rb +4 -4
  129. data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer.rb → iso19115_3/iso19115_3_writer.rb} +10 -10
  130. data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer_messages_eng.yml → iso19115_3/iso19115_3_writer_messages_eng.yml} +1 -1
  131. data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/readme.md +3 -3
  132. data/lib/adiwg/mdtranslator/writers/iso19115_3/version.rb +12 -0
  133. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_allocation.rb +1 -1
  134. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +30 -0
  135. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQuality.rb +3 -1
  136. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb +12 -10
  137. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +3 -3
  138. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb +2 -2
  139. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb +1 -1
  140. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_metadata.rb +1 -1
  141. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityMeasure.rb +4 -3
  142. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityResultFile.rb +23 -0
  143. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_standaloneQualityReport.rb +31 -0
  144. data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb +10 -0
  145. data/lib/adiwg/mdtranslator/writers/simple_html/readme.md +19 -0
  146. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +49 -0
  147. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +48 -0
  148. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +114 -0
  149. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +73 -0
  150. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +201 -0
  151. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +51 -0
  152. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb +68 -0
  153. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +319 -0
  154. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_boundingBox.rb +69 -0
  155. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +165 -0
  156. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +50 -0
  157. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedDataItem.rb +50 -0
  158. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +118 -0
  159. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +234 -0
  160. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coordinateResolution.rb +47 -0
  161. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +81 -0
  162. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +126 -0
  163. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +79 -0
  164. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQualityReport.rb +385 -0
  165. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_date.rb +42 -0
  166. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_datetime.rb +42 -0
  167. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dimension.rb +69 -0
  168. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +58 -0
  169. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +66 -0
  170. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_document.rb +63 -0
  171. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +108 -0
  172. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +64 -0
  173. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_duration.rb +68 -0
  174. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +169 -0
  175. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +179 -0
  176. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb +55 -0
  177. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityIndex.rb +50 -0
  178. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +75 -0
  179. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +97 -0
  180. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +82 -0
  181. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +71 -0
  182. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +66 -0
  183. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +60 -0
  184. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +71 -0
  185. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +79 -0
  186. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +110 -0
  187. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb +47 -0
  188. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +71 -0
  189. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +78 -0
  190. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +46 -0
  191. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +105 -0
  192. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +91 -0
  193. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +75 -0
  194. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +76 -0
  195. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_head.rb +55 -0
  196. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +81 -0
  197. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +102 -0
  198. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_inlineCss.css +237 -0
  199. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +68 -0
  200. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_legalConstraint.rb +49 -0
  201. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb +87 -0
  202. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_locale.rb +47 -0
  203. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb +96 -0
  204. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_measure.rb +47 -0
  205. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb +90 -0
  206. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +198 -0
  207. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +56 -0
  208. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_nominalResolution.rb +51 -0
  209. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_obliqueLinePoint.rb +37 -0
  210. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_onlineResource.rb +74 -0
  211. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb +62 -0
  212. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb +47 -0
  213. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +171 -0
  214. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +89 -0
  215. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_projectionParameters.rb +261 -0
  216. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +40 -0
  217. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_referenceSystemParameters.rb +65 -0
  218. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb +63 -0
  219. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb +40 -0
  220. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +485 -0
  221. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb +38 -0
  222. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +81 -0
  223. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resultFile.rb +60 -0
  224. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +60 -0
  225. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb +54 -0
  226. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_securityConstraint.rb +57 -0
  227. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +155 -0
  228. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialReference.rb +70 -0
  229. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb +77 -0
  230. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialResolution.rb +95 -0
  231. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +156 -0
  232. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomyClass.rb +75 -0
  233. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_temporalExtent.rb +65 -0
  234. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb +82 -0
  235. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInterval.rb +40 -0
  236. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +128 -0
  237. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb +94 -0
  238. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb +118 -0
  239. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorObject.rb +40 -0
  240. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb +62 -0
  241. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb +70 -0
  242. data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb +62 -0
  243. data/lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb +44 -0
  244. data/lib/adiwg/mdtranslator/writers/simple_html/version.rb +19 -0
  245. data/lib/adiwg/mdtranslator_cli.rb +2 -2
  246. metadata +241 -125
  247. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +0 -181
  248. data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQualityReport.rb +0 -95
  249. data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +0 -15
@@ -1,5 +1,5 @@
1
1
  # ISO <<Class>> BaseUnit
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-08 copied from 19115_2 writer
@@ -7,7 +7,7 @@
7
7
  module ADIWG
8
8
  module Mdtranslator
9
9
  module Writers
10
- module Iso19115_1
10
+ module Iso19115_3
11
11
 
12
12
  class BaseUnit
13
13
 
@@ -1,22 +1,22 @@
1
1
  # ISO <<Class>> EX_GeographicBoundingBox
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-19 original script
6
6
 
7
- require_relative '../iso19115_1_writer'
7
+ require_relative '../iso19115_3_writer'
8
8
 
9
9
  module ADIWG
10
10
  module Mdtranslator
11
11
  module Writers
12
- module Iso19115_1
12
+ module Iso19115_3
13
13
 
14
14
  class EX_GeographicBoundingBox
15
15
 
16
16
  def initialize(xml, hResponseObj)
17
17
  @xml = xml
18
18
  @hResponseObj = hResponseObj
19
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
19
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
20
20
  end
21
21
 
22
22
  def writeXML(hBBox)
@@ -1,24 +1,24 @@
1
1
  # ISO <<Class>> MD_BrowseGraphic
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-15 original script
6
6
 
7
- require_relative '../iso19115_1_writer'
7
+ require_relative '../iso19115_3_writer'
8
8
  require_relative 'class_constraint'
9
9
  require_relative 'class_onlineResource'
10
10
 
11
11
  module ADIWG
12
12
  module Mdtranslator
13
13
  module Writers
14
- module Iso19115_1
14
+ module Iso19115_3
15
15
 
16
16
  class MD_BrowseGraphic
17
17
 
18
18
  def initialize(xml, hResponseObj)
19
19
  @xml = xml
20
20
  @hResponseObj = hResponseObj
21
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
21
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
22
22
  end
23
23
 
24
24
  def writeXML(hGraphic, inContext = nil)
@@ -1,10 +1,10 @@
1
1
  # ISO <<Class>> CI_Citation
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-13 original script
6
6
 
7
- require_relative '../iso19115_1_writer'
7
+ require_relative '../iso19115_3_writer'
8
8
  require_relative 'class_codelist'
9
9
  require_relative 'class_responsibility'
10
10
  require_relative 'class_date'
@@ -16,14 +16,14 @@ require_relative 'class_browseGraphic'
16
16
  module ADIWG
17
17
  module Mdtranslator
18
18
  module Writers
19
- module Iso19115_1
19
+ module Iso19115_3
20
20
 
21
21
  class CI_Citation
22
22
 
23
23
  def initialize(xml, hResponseObj)
24
24
  @xml = xml
25
25
  @hResponseObj = hResponseObj
26
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
26
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
27
27
  end
28
28
 
29
29
  def writeXML(hCitation, inContext = nil)
@@ -1,5 +1,5 @@
1
1
  # ISO <<CodeLists>>
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # from http://mdtranslator.adiwg.org/api/codelists?format=xml
5
5
  # History:
@@ -10,7 +10,7 @@ require 'adiwg-mdcodes'
10
10
  module ADIWG
11
11
  module Mdtranslator
12
12
  module Writers
13
- module Iso19115_1
13
+ module Iso19115_3
14
14
 
15
15
  class MD_Codelist
16
16
 
@@ -1,10 +1,10 @@
1
1
  # ISO <<Class>> MD_Constraint
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-15 original script
6
6
 
7
- require_relative '../iso19115_1_writer'
7
+ require_relative '../iso19115_3_writer'
8
8
  require_relative 'class_useConstraints'
9
9
  require_relative 'class_legalConstraints'
10
10
  require_relative 'class_securityConstraints'
@@ -12,14 +12,14 @@ require_relative 'class_securityConstraints'
12
12
  module ADIWG
13
13
  module Mdtranslator
14
14
  module Writers
15
- module Iso19115_1
15
+ module Iso19115_3
16
16
 
17
17
  class Constraint
18
18
 
19
19
  def initialize(xml, hResponseObj)
20
20
  @xml = xml
21
21
  @hResponseObj = hResponseObj
22
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
22
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
23
23
  end
24
24
 
25
25
  def writeXML(hConstraint, inContext = nil)
@@ -1,5 +1,5 @@
1
1
  # ISO <<Class>> MD_Constraints (Use Constraint)
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-15 original script
@@ -13,7 +13,7 @@ require_relative 'class_responsibility'
13
13
  module ADIWG
14
14
  module Mdtranslator
15
15
  module Writers
16
- module Iso19115_1
16
+ module Iso19115_3
17
17
 
18
18
  class ConstraintCommon
19
19
 
@@ -1,5 +1,5 @@
1
1
  # ISO <<Class>> CI_Contact
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-14 original script
@@ -12,7 +12,7 @@ require_relative 'class_onlineResource'
12
12
  module ADIWG
13
13
  module Mdtranslator
14
14
  module Writers
15
- module Iso19115_1
15
+ module Iso19115_3
16
16
 
17
17
  class CI_Contact
18
18
 
@@ -58,7 +58,7 @@ module ADIWG
58
58
  end
59
59
 
60
60
  # contact - email address [] {CI_Address}
61
- # in 19115-1 email addresses are associated with mailing addresses
61
+ # in 19115-3 email addresses are associated with mailing addresses
62
62
  # in mdJson email addresses are associated with the contact
63
63
  # so email addresses are written into a separate address block for the contact
64
64
  unless hContact[:eMailList].empty?
@@ -1,5 +1,5 @@
1
1
  # ISO <<Class>> ConventionalUnit
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-08 copied from 19115_2 writer
@@ -7,7 +7,7 @@
7
7
  module ADIWG
8
8
  module Mdtranslator
9
9
  module Writers
10
- module Iso19115_1
10
+ module Iso19115_3
11
11
 
12
12
  class ConventionalUnit
13
13
 
@@ -1,5 +1,5 @@
1
1
  # ISO <<abstract class>> coverage description
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-05 original script.
@@ -10,14 +10,14 @@ require_relative 'class_attributeGroup'
10
10
  module ADIWG
11
11
  module Mdtranslator
12
12
  module Writers
13
- module Iso19115_1
13
+ module Iso19115_3
14
14
 
15
15
  class MD_CoverageDescription
16
16
 
17
17
  def initialize(xml, hResponseObj)
18
18
  @xml = xml
19
19
  @hResponseObj = hResponseObj
20
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
20
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
21
21
  end
22
22
 
23
23
  def writeXML(hCoverage)
@@ -1,12 +1,12 @@
1
1
  # ISO <<Class>> MD_DataIdentification
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-21 original script
6
6
 
7
7
  require 'adiwg/mdtranslator/internal/internal_metadata_obj'
8
8
  require 'adiwg/mdtranslator/internal/module_codelistFun'
9
- require_relative '../iso19115_1_writer'
9
+ require_relative '../iso19115_3_writer'
10
10
  require_relative 'class_codelist'
11
11
  require_relative 'class_citation'
12
12
  require_relative 'class_responsibility'
@@ -25,14 +25,14 @@ require_relative 'class_locale'
25
25
  module ADIWG
26
26
  module Mdtranslator
27
27
  module Writers
28
- module Iso19115_1
28
+ module Iso19115_3
29
29
 
30
30
  class MD_DataIdentification
31
31
 
32
32
  def initialize(xml, hResponseObj)
33
33
  @xml = xml
34
34
  @hResponseObj = hResponseObj
35
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
35
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
36
36
  end
37
37
 
38
38
  def writeXML(hMetadata)
@@ -173,7 +173,7 @@ module ADIWG
173
173
  end
174
174
  end
175
175
  end
176
- # only allow valid ISO 19115-1 topic categories to be written
176
+ # only allow valid ISO 19115-3 topic categories to be written
177
177
  aTopics.each do |topic|
178
178
  if CodelistFun.validateItem('iso_topicCategory', topic)
179
179
  @xml.tag!('mri:topicCategory') do
@@ -4,7 +4,7 @@ require_relative 'class_citation'
4
4
  module ADIWG
5
5
  module Mdtranslator
6
6
  module Writers
7
- module Iso19115_1
7
+ module Iso19115_3
8
8
 
9
9
  class DQ_DataQuality
10
10
  def initialize(xml, hResponseObj)
@@ -17,12 +17,19 @@ module ADIWG
17
17
  reportClass = DataQualityReport.new(@xml, @hResponseObj)
18
18
  citationClass = CI_Citation.new(@xml, @hResponseObj)
19
19
 
20
+ codeListValue = nil
21
+ unless hDataQuality[:scope].empty?
22
+ unless hDataQuality[:scope][:scopeCode].nil?
23
+ codeListValue = hDataQuality[:scope][:scopeCode]
24
+ end
25
+ end
26
+
20
27
  @xml.tag!('mdq:DQ_DataQuality') do
21
28
 
22
29
  @xml.tag!('mdq:scope') do
23
30
  @xml.tag!('mcc:MD_Scope') do
24
31
  @xml.tag!('mcc:level') do
25
- @xml.tag!('mcc:MD_ScopeCode', codeList: "http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode", codeListValue: "series")
32
+ @xml.tag!('mcc:MD_ScopeCode', codeList: "http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode", codeListValue: codeListValue)
26
33
  end
27
34
  end
28
35
  end
@@ -0,0 +1,269 @@
1
+ require_relative '../iso19115_3_writer'
2
+ require_relative 'class_format'
3
+ require_relative 'class_qualityResultFile'
4
+ require_relative 'class_date'
5
+ require_relative 'class_scope'
6
+ require_relative 'class_spatialRepresentation'
7
+ require_relative 'class_coverageDescription'
8
+ require_relative 'class_codelist'
9
+ require_relative 'class_identifier'
10
+ require_relative 'class_citation'
11
+
12
+ module ADIWG
13
+ module Mdtranslator
14
+ module Writers
15
+ module Iso19115_3
16
+
17
+ class DataQualityReport
18
+ def initialize(xml, hResponseObj)
19
+ @xml = xml
20
+ @hResponseObj = hResponseObj
21
+ end
22
+
23
+ def writeXML(hReport)
24
+ # require 'pry'; binding.pry
25
+
26
+ formatClass = MD_Format.new(@xml, @hResponseObj)
27
+ qualityResultFileClass = QualityResultFile.new(@xml, @hResponseObj)
28
+ dateClass = CI_Date.new(@xml, @hResponseObj)
29
+ scopeClass = MD_Scope.new(@xml, @hResponseObj)
30
+ spatialRepresentationClass = SpatialRepresentation.new(@xml, @hResponseObj)
31
+ coverageDescriptionClass = MD_CoverageDescription.new(@xml, @hResponseObj)
32
+ codeListClass = MD_Codelist.new(@xml, @hResponseObj)
33
+ identifierClass = MD_Identifier.new(@xml, @hResponseObj)
34
+ citationClass = CI_Citation.new(@xml, @hResponseObj)
35
+
36
+ @xml.tag!('mdq:report') do
37
+ @xml.tag!("mdq:#{hReport[:type]}") do
38
+
39
+ # standaloneQualityReportDetails
40
+ unless hReport[:standaloneQualityReportDetails].nil?
41
+ @xml.tag!('mdq:standaloneQualityReportDetails') do
42
+ @xml.tag!('gco:CharacterString', hReport[:standaloneQualityReportDetails])
43
+ end
44
+ end
45
+
46
+ # qualityMeasure {}
47
+ qualityMeasure = hReport[:qualityMeasure]
48
+ unless qualityMeasure.empty?
49
+ @xml.tag!('mdq:measure') do
50
+ @xml.tag!('mdq:DQ_MeasureReference') do
51
+ unless qualityMeasure[:identifier].empty?
52
+ @xml.tag!('mdq:measureIdentification') do
53
+ identifierClass.writeXML(qualityMeasure[:identifier])
54
+ end
55
+ end
56
+ unless qualityMeasure[:nameOfMeasure].nil?
57
+ qualityMeasure[:nameOfMeasure].each do |value|
58
+ @xml.tag!('mdq:nameOfMeasure') do
59
+ @xml.tag!('gco:CharacterString', value)
60
+ end
61
+ end
62
+ end
63
+ unless qualityMeasure[:description].nil?
64
+ @xml.tag!('mdq:measureDescription') do
65
+ @xml.tag!('gco:CharacterString', qualityMeasure[:description])
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end # qualityMeasure
71
+
72
+ # evaluationMethod {}
73
+ evaluationMethod = hReport[:evaluationMethod]
74
+ unless evaluationMethod.empty?
75
+ @xml.tag!('mdq:evaluationMethod') do
76
+ @xml.tag!('mdq:DQ_EvaluationMethod') do
77
+ unless evaluationMethod[:dateTime].empty?
78
+ evaluationMethod[:dateTime].each do |dateTime|
79
+ dateTimeValue = DateTime.parse(dateTime).strftime('%Y-%m-%dT%H:%M:%S')
80
+ @xml.tag!('mdq:dateTime') do
81
+ @xml.tag!('gco:DateTime', dateTimeValue)
82
+ end
83
+ end
84
+ end
85
+ unless evaluationMethod[:methodDescription].nil?
86
+ @xml.tag!('mdq:evaluationMethodDescription') do
87
+ @xml.tag!('gco:CharacterString', evaluationMethod[:methodDescription])
88
+ end
89
+ end
90
+ unless evaluationMethod[:evaluationProcedure].empty?
91
+ @xml.tag!('mdq:evaluationProcedure') do
92
+ citationClass.writeXML(evaluationMethod[:evaluationProcedure])
93
+ end
94
+ end
95
+ unless evaluationMethod[:referenceDocuments].empty?
96
+ evaluationMethod[:referenceDocuments].each do |citation|
97
+ @xml.tag!('mdq:referenceDoc') do
98
+ citationClass.writeXML(citation)
99
+ end
100
+ end
101
+ end
102
+ # TODO the following will not work until the iso_evaluationMethodType codelist is added to mdCodes
103
+ # unless evaluationMethod[:evaluationMethodType].nil?
104
+ # @xml.tag!('mdq:evaluationMethodType') do
105
+ # codeListClass.writeXML('mcc', 'iso_evaluationMethodType', evaluationMethod[:evaluationMethodType])
106
+ # end
107
+ # end
108
+ end
109
+ end
110
+ end # evaluationMethod
111
+
112
+ # conformanceResult []
113
+ unless hReport[:conformanceResult].empty?
114
+ hReport[:conformanceResult].each do |conformanceResult|
115
+ @xml.tag!('mdq:result') do
116
+ @xml.tag!('mdq:DQ_ConformanceResult') do
117
+ unless conformanceResult[:dateTime].nil?
118
+ dateTimeValue = DateTime.parse(conformanceResult[:dateTime]).strftime('%Y-%m-%dT%H:%M:%S')
119
+ @xml.tag!('mdq:dateTime') do
120
+ @xml.tag!('gco:DateTime', dateTimeValue)
121
+ end
122
+ end
123
+ unless conformanceResult[:scope].empty?
124
+ @xml.tag!('mdq:resultScope') do
125
+ scopeClass.writeXML(conformanceResult[:scope])
126
+ end
127
+ end
128
+ unless conformanceResult[:specification].empty?
129
+ @xml.tag!('mdq:specification') do
130
+ citationClass.writeXML(conformanceResult[:specification])
131
+ end
132
+ end
133
+ unless conformanceResult[:explanation].nil?
134
+ @xml.tag!('mdq:explanation') do
135
+ @xml.tag!('gco:CharacterString', conformanceResult[:explanation])
136
+ end
137
+ end
138
+ unless conformanceResult[:pass].nil?
139
+ @xml.tag!('mdq:pass') do
140
+ @xml.tag!('gco:Boolean', conformanceResult[:pass])
141
+ end
142
+ end
143
+ end
144
+ end
145
+ end
146
+ end # conformanceResult
147
+
148
+ # descriptiveResult []
149
+ unless hReport[:descriptiveResult].empty?
150
+ hReport[:descriptiveResult].each do |descriptiveResult|
151
+ @xml.tag!('mdq:result') do
152
+ @xml.tag!('mdq:DQ_DescriptiveResult') do
153
+ unless descriptiveResult[:dateTime].nil?
154
+ dateTimeValue = DateTime.parse(descriptiveResult[:dateTime]).strftime('%Y-%m-%dT%H:%M:%S')
155
+ @xml.tag!('mdq:dateTime') do
156
+ @xml.tag!('gco:DateTime', dateTimeValue)
157
+ end
158
+ end
159
+ unless descriptiveResult[:scope].empty?
160
+ @xml.tag!('mdq:resultScope') do
161
+ scopeClass.writeXML(descriptiveResult[:scope])
162
+ end
163
+ end
164
+ unless descriptiveResult[:statement].nil?
165
+ @xml.tag!('mdq:statement') do
166
+ @xml.tag!('gco:CharacterString', descriptiveResult[:statement])
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
172
+ end # descriptiveResult
173
+
174
+ # quantitativeResult []
175
+ unless hReport[:quantitativeResult].empty?
176
+ hReport[:quantitativeResult].each do |quantitativeResult|
177
+ @xml.tag!('mdq:result') do
178
+ @xml.tag!('mdq:DQ_QuantitativeResult') do
179
+ unless quantitativeResult[:dateTime].nil?
180
+ dateTimeValue = DateTime.parse(quantitativeResult[:dateTime]).strftime('%Y-%m-%dT%H:%M:%S')
181
+ @xml.tag!('mdq:dateTime') do
182
+ @xml.tag!('gco:DateTime', dateTimeValue)
183
+ end
184
+ end
185
+ unless quantitativeResult[:scope].empty?
186
+ @xml.tag!('mdq:resultScope') do
187
+ scopeClass.writeXML(quantitativeResult[:scope])
188
+ end
189
+ end
190
+ unless quantitativeResult[:values].empty?
191
+ quantitativeResult[:values].each do |value|
192
+ @xml.tag!('mdq:value') do
193
+ @xml.tag!('gco:Record', value)
194
+ end
195
+ end
196
+ end
197
+ unless quantitativeResult[:valueUnits].nil?
198
+ @xml.tag!('mdq:valueUnit') do
199
+ @xml.tag!('gml:UnitDefinition') do
200
+ @xml.tag!('gml:identifier', {'codeSpace' => 'units'}, quantitativeResult[:valueUnits])
201
+ end
202
+ end
203
+ end
204
+ unless quantitativeResult[:valueRecordType].nil?
205
+ @xml.tag!('mdq:valueType') do
206
+ @xml.tag!('gco:RecordType', quantitativeResult[:valueRecordType])
207
+ end
208
+ end
209
+ end
210
+ end
211
+ end
212
+ end # quantitativeResult
213
+
214
+ # coverageResult []
215
+ unless hReport[:coverageResult].empty?
216
+ hReport[:coverageResult].each do |coverageResult|
217
+ @xml.tag!('mdq:result') do
218
+ @xml.tag!('mdq:QE_CoverageResult') do
219
+ unless coverageResult[:dateTime].nil?
220
+ dateTimeValue = DateTime.parse(coverageResult[:dateTime]).strftime('%Y-%m-%dT%H:%M:%S')
221
+ @xml.tag!('mdq:dateTime') do
222
+ @xml.tag!('gco:DateTime', dateTimeValue)
223
+ end
224
+ end
225
+ unless coverageResult[:scope].empty?
226
+ @xml.tag!('mdq:resultScope') do
227
+ scopeClass.writeXML(coverageResult[:scope])
228
+ end
229
+ end
230
+ unless coverageResult[:spatialRepresentationType].nil?
231
+ @xml.tag!('mdq:spatialRepresentationType') do
232
+ codeListClass.writeXML('mcc', 'iso_spatialRepresentation', coverageResult[:spatialRepresentationType])
233
+ end
234
+ end
235
+ unless coverageResult[:resultFile].empty?
236
+ @xml.tag!('mdq:resultFile') do
237
+ qualityResultFileClass.writeXML(coverageResult[:resultFile])
238
+ end
239
+ end
240
+ unless coverageResult[:spatialRepresentation].empty?
241
+ @xml.tag!('mdq:resultSpatialRepresentation') do
242
+ spatialRepresentationClass.writeXML(coverageResult[:spatialRepresentation])
243
+ end
244
+ end
245
+ unless coverageResult[:resultContentDescription].empty?
246
+ @xml.tag!('mdq:resultContentDescription') do
247
+ coverageDescriptionClass.writeXML(coverageResult[:resultContentDescription])
248
+ end
249
+ end
250
+ unless coverageResult[:resourceFormat].empty?
251
+ @xml.tag!('mdq:resultFormat') do
252
+ formatClass.writeXML(coverageResult[:resourceFormat])
253
+ end
254
+ end
255
+ end
256
+ end
257
+ end
258
+ end # coverageResult
259
+
260
+ end # mdq:<type>
261
+ end # mdq:report
262
+
263
+ end # writeXML
264
+
265
+ end # DataQualityReport class
266
+ end
267
+ end
268
+ end
269
+ end
@@ -1,24 +1,24 @@
1
1
  # ISO <<Class>> CI_Date
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-03-14 original script
6
6
 
7
- require_relative '../iso19115_1_writer'
7
+ require_relative '../iso19115_3_writer'
8
8
  require_relative 'class_codelist'
9
9
  require_relative 'class_gcoDateTime'
10
10
 
11
11
  module ADIWG
12
12
  module Mdtranslator
13
13
  module Writers
14
- module Iso19115_1
14
+ module Iso19115_3
15
15
 
16
16
  class CI_Date
17
17
 
18
18
  def initialize(xml, hResponseObj)
19
19
  @xml = xml
20
20
  @hResponseObj = hResponseObj
21
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
21
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
22
22
  end
23
23
 
24
24
  def writeXML(hDate, inContext = nil)
@@ -1,5 +1,5 @@
1
1
  # ISO <<Class>> UnitDefinition
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-08 copied from 19115_2 writer
@@ -7,7 +7,7 @@
7
7
  module ADIWG
8
8
  module Mdtranslator
9
9
  module Writers
10
- module Iso19115_1
10
+ module Iso19115_3
11
11
 
12
12
  class UnitDefinition
13
13
 
@@ -1,5 +1,5 @@
1
1
  # ISO <<Class>> DerivedUnit
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-08 copied from 19115_2 writer
@@ -7,7 +7,7 @@
7
7
  module ADIWG
8
8
  module Mdtranslator
9
9
  module Writers
10
- module Iso19115_1
10
+ module Iso19115_3
11
11
 
12
12
  class DerivedUnit
13
13
 
@@ -1,24 +1,24 @@
1
1
  # ISO <<Class>> MD_Dimension
2
- # 19115-1 writer output in XML
2
+ # 19115-3 writer output in XML
3
3
 
4
4
  # History:
5
5
  # Stan Smith 2019-04-16 original script.
6
6
 
7
- require_relative '../iso19115_1_writer'
7
+ require_relative '../iso19115_3_writer'
8
8
  require_relative 'class_codelist'
9
9
  require_relative 'class_measure'
10
10
 
11
11
  module ADIWG
12
12
  module Mdtranslator
13
13
  module Writers
14
- module Iso19115_1
14
+ module Iso19115_3
15
15
 
16
16
  class MD_Dimension
17
17
 
18
18
  def initialize(xml, hResponseObj)
19
19
  @xml = xml
20
20
  @hResponseObj = hResponseObj
21
- @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1
21
+ @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
22
22
  end
23
23
 
24
24
  def writeXML(hDim, inContext = nil)