adiwg-mdtranslator 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/Rakefile +1 -2
  4. data/adiwg-mdtranslator.gemspec +23 -23
  5. data/bin/mdtranslator +187 -155
  6. data/lib/adiwg/mdtranslator.rb +63 -38
  7. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +123 -5
  8. data/lib/adiwg/mdtranslator/internal/module_coordinates.rb +55 -0
  9. data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb +98 -70
  10. data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +13 -11
  11. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_additionalDocumentation.rb +13 -3
  12. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_address.rb +3 -1
  13. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_associatedResource.rb +22 -4
  14. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_boundingBox.rb +3 -1
  15. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_browseGraphic.rb +11 -1
  16. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_citation.rb +28 -9
  17. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_classedData.rb +49 -0
  18. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_classedDataItem.rb +53 -0
  19. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_contacts.rb +14 -12
  20. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_coverageInfo.rb +83 -0
  21. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_coverageItem.rb +136 -0
  22. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dataDictionary.rb +9 -7
  23. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dataQuality.rb +17 -3
  24. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dateTime.rb +3 -1
  25. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_descriptiveKeyword.rb +22 -5
  26. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dictionaryInfo.rb +18 -3
  27. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_digitalTransferOption.rb +80 -0
  28. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_dimension.rb +81 -0
  29. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_distributionInfo.rb +89 -0
  30. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_distributionOrder.rb +62 -0
  31. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_domain.rb +24 -5
  32. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_domainItem.rb +23 -4
  33. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entity.rb +26 -7
  34. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityAttribute.rb +24 -1
  35. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityForeignKey.rb +20 -1
  36. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityIndex.rb +20 -1
  37. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_extent.rb +9 -7
  38. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geoCoordSystem.rb +3 -1
  39. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geoProperties.rb +9 -7
  40. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geographicElement.rb +20 -18
  41. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_gridInfo.rb +67 -0
  42. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_imageInfo.rb +119 -0
  43. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_legalConstraint.rb +7 -1
  44. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_lineString.rb +5 -4
  45. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_lineage.rb +11 -5
  46. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_locale.rb +57 -0
  47. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_mdJson.rb +10 -9
  48. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_medium.rb +73 -0
  49. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadata.rb +14 -12
  50. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadataExtension.rb +3 -1
  51. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadataInfo.rb +35 -15
  52. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_onlineResource.rb +7 -1
  53. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_phone.rb +3 -1
  54. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_point.rb +5 -4
  55. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_polygon.rb +5 -4
  56. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_processStep.rb +19 -6
  57. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resolution.rb +7 -1
  58. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceFormat.rb +12 -1
  59. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceIdentifier.rb +30 -5
  60. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceInfo.rb +70 -33
  61. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceMaintenance.rb +5 -3
  62. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceSpecificUsage.rb +5 -3
  63. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_responsibleParty.rb +10 -8
  64. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_securityConstraint.rb +3 -1
  65. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_sensorInfo.rb +69 -0
  66. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_source.rb +11 -5
  67. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_spatialReference.rb +3 -1
  68. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_taxonClass.rb +3 -1
  69. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_taxonomy.rb +11 -9
  70. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_temporalElement.rb +9 -7
  71. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_timeInstant.rb +5 -3
  72. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_timePeriod.rb +6 -4
  73. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_verticalElement.rb +3 -1
  74. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_voucher.rb +5 -3
  75. data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/version.rb +19 -0
  76. data/lib/adiwg/mdtranslator/readers/mdReaders.rb +21 -18
  77. data/lib/adiwg/mdtranslator/version.rb +15 -1
  78. data/lib/adiwg/mdtranslator/writers/html/html_writer.rb +11 -8
  79. data/lib/adiwg/mdtranslator/writers/html/md_html_writer.rb +21 -18
  80. data/lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb +48 -0
  81. data/lib/adiwg/mdtranslator/writers/html/sections/html_associatedResource.rb +73 -0
  82. data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +84 -135
  83. data/lib/adiwg/mdtranslator/writers/html/sections/html_citation.rb +18 -8
  84. data/lib/adiwg/mdtranslator/writers/html/sections/html_classedData.rb +50 -0
  85. data/lib/adiwg/mdtranslator/writers/html/sections/html_classedDataItem.rb +50 -0
  86. data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +5 -9
  87. data/lib/adiwg/mdtranslator/writers/html/sections/html_coverageInfo.rb +88 -0
  88. data/lib/adiwg/mdtranslator/writers/html/sections/html_coverageItem.rb +139 -0
  89. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataDictionary.rb +13 -12
  90. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataLineage.rb +5 -4
  91. data/lib/adiwg/mdtranslator/writers/html/sections/html_dataSource.rb +5 -4
  92. data/lib/adiwg/mdtranslator/writers/html/sections/html_dimension.rb +71 -0
  93. data/lib/adiwg/mdtranslator/writers/html/sections/html_distributor.rb +62 -0
  94. data/lib/adiwg/mdtranslator/writers/html/sections/html_domain.rb +3 -2
  95. data/lib/adiwg/mdtranslator/writers/html/sections/html_entity.rb +5 -4
  96. data/lib/adiwg/mdtranslator/writers/html/sections/html_extent.rb +7 -6
  97. data/lib/adiwg/mdtranslator/writers/html/sections/html_format.rb +7 -1
  98. data/lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb +7 -7
  99. data/lib/adiwg/mdtranslator/writers/html/sections/html_gridInfo.rb +65 -0
  100. data/lib/adiwg/mdtranslator/writers/html/sections/html_head.rb +18 -3
  101. data/lib/adiwg/mdtranslator/writers/html/sections/html_imageInfo.rb +120 -0
  102. data/lib/adiwg/mdtranslator/writers/html/sections/html_inlineCss.css +13 -20
  103. data/lib/adiwg/mdtranslator/writers/html/sections/html_keyword.rb +3 -2
  104. data/lib/adiwg/mdtranslator/writers/html/sections/html_medium.rb +19 -2
  105. data/lib/adiwg/mdtranslator/writers/html/sections/html_metadataInfo.rb +22 -9
  106. data/lib/adiwg/mdtranslator/writers/html/sections/html_orderProcess.rb +3 -2
  107. data/lib/adiwg/mdtranslator/writers/html/sections/html_processStep.rb +5 -4
  108. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceContact.rb +3 -2
  109. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceGeneral.rb +25 -14
  110. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceId.rb +30 -3
  111. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb +194 -129
  112. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceMaint.rb +3 -2
  113. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceOther.rb +7 -6
  114. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceUsage.rb +3 -2
  115. data/lib/adiwg/mdtranslator/writers/html/sections/html_responsibleParty.rb +3 -2
  116. data/lib/adiwg/mdtranslator/writers/html/sections/html_sensorInfo.rb +66 -0
  117. data/lib/adiwg/mdtranslator/writers/html/sections/html_taxonomy.rb +7 -6
  118. data/lib/adiwg/mdtranslator/writers/html/sections/html_temporalElement.rb +7 -6
  119. data/lib/adiwg/mdtranslator/writers/html/sections/html_timeInstant.rb +3 -2
  120. data/lib/adiwg/mdtranslator/writers/html/sections/html_timePeriod.rb +3 -2
  121. data/lib/adiwg/mdtranslator/writers/html/sections/html_transferOption.rb +29 -4
  122. data/lib/adiwg/mdtranslator/writers/html/version.rb +17 -0
  123. data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +17 -16
  124. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_address.rb +12 -8
  125. data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_baseUnit.rb +42 -0
  126. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_codelist.rb +8 -3
  127. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_contact.rb +16 -25
  128. data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_conventionalUnit.rb +68 -0
  129. data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_definitionUnit.rb +39 -0
  130. data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_derivedUnit.rb +46 -0
  131. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureAttribute.rb +17 -14
  132. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureConstraint.rb +6 -2
  133. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureType.rb +16 -12
  134. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_listedValue.rb +9 -18
  135. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_multiplicity.rb +8 -4
  136. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_onlineResource.rb +13 -9
  137. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_responsibleParty.rb +16 -12
  138. data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_telephone.rb +9 -5
  139. data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_unitsOfMeasure.rb +262 -0
  140. data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +36 -16
  141. data/lib/adiwg/mdtranslator/writers/iso19110/version.rb +14 -0
  142. data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +73 -37
  143. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_address.rb +116 -0
  144. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_aggregateInformation.rb +13 -9
  145. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_band.rb +165 -0
  146. data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_baseUnit.rb +6 -6
  147. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_boundingPolygon.rb +14 -10
  148. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_browseGraphic.rb +9 -5
  149. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_citation.rb +31 -16
  150. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_codelist.rb +56 -0
  151. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_contact.rb +87 -0
  152. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_contentInfo.rb +111 -0
  153. data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_conventionalUnit.rb +6 -6
  154. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_dataIdentification.rb +106 -59
  155. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_dataQuality.rb +11 -7
  156. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_date.rb +8 -5
  157. data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_definitionUnit.rb +7 -7
  158. data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_derivedUnit.rb +6 -6
  159. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_digitalTransferOptions.rb +92 -0
  160. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dimension.rb +68 -0
  161. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_distribution.rb +8 -4
  162. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_distributor.rb +44 -22
  163. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_enumerationList.rb +7 -2
  164. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_extent.rb +18 -14
  165. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_format.rb +18 -2
  166. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicBoundingBox.rb +6 -2
  167. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicDescription.rb +8 -4
  168. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicElement.rb +10 -6
  169. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_gridInfo.rb +80 -0
  170. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_identifier.rb +10 -6
  171. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_imageDescription.rb +157 -0
  172. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_keyword.rb +12 -8
  173. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_legalConstraints.rb +12 -8
  174. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_lineString.rb +13 -10
  175. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_lineage.rb +14 -10
  176. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_locale.rb +67 -0
  177. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_maintenanceInformation.rb +12 -8
  178. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_medium.rb +30 -9
  179. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_metadataExtension.rb +19 -15
  180. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_multiGeometry.rb +22 -17
  181. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_onlineResource.rb +94 -0
  182. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_point.rb +12 -9
  183. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_polygon.rb +14 -11
  184. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_processStep.rb +12 -9
  185. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_rangeElementDescription.rb +88 -0
  186. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_referenceSystem.rb +52 -0
  187. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_resolution.rb +6 -2
  188. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_resourceIdentifier.rb +94 -0
  189. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_responsibleParty.rb +106 -0
  190. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_securityConstraints.rb +12 -8
  191. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_source.rb +12 -8
  192. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_standardOrderProcess.rb +11 -9
  193. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_taxonClassification.rb +8 -4
  194. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_taxonSystem.rb +18 -14
  195. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_telephone.rb +92 -0
  196. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_temporalExtent.rb +10 -6
  197. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_timeInstant.rb +9 -8
  198. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_timePeriod.rb +10 -8
  199. data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_unitsOfMeasure.rb +48 -25
  200. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_usage.rb +11 -7
  201. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_useConstraints.rb +6 -2
  202. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_verticalExtent.rb +6 -2
  203. data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_vouchers.rb +8 -4
  204. data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +32 -19
  205. data/lib/adiwg/mdtranslator/writers/iso19115_2/version.rb +17 -0
  206. data/lib/adiwg/mdtranslator/writers/mdWriters.rb +21 -24
  207. data/test/readers/mdJson/v1/tc_reader_mdjson_additionalDocumentation.rb +116 -0
  208. data/test/readers/mdJson/v1/tc_reader_mdjson_address.rb +111 -0
  209. data/test/readers/mdJson/v1/tc_reader_mdjson_associatedResource.rb +157 -0
  210. data/test/readers/mdJson/v1/tc_reader_mdjson_browseGraphic.rb +119 -0
  211. data/test/readers/mdJson/v1/tc_reader_mdjson_citation.rb +143 -0
  212. data/test/readers/mdJson/v1/tc_reader_mdjson_contact.rb +138 -0
  213. data/test/readers/mdJson/v1/tc_reader_mdjson_dataQuality.rb +111 -0
  214. data/test/readers/mdJson/v1/tc_reader_mdjson_dateTime.rb +159 -0
  215. data/test/readers/mdJson/v1/tc_reader_mdjson_descriptiveKeyword.rb +115 -0
  216. data/test/readers/mdJson/v1/tc_reader_mdjson_dictionaryInfo.rb +121 -0
  217. data/test/readers/mdJson/v1/tc_reader_mdjson_digitalTransferOption.rb +94 -0
  218. data/test/readers/mdJson/v1/tc_reader_mdjson_distributionOrder.rb +103 -0
  219. data/test/readers/mdJson/v1/tc_reader_mdjson_domain.rb +130 -0
  220. data/test/readers/mdJson/v1/tc_reader_mdjson_domainItem.rb +98 -0
  221. data/test/readers/mdJson/v1/tc_reader_mdjson_entity.rb +134 -0
  222. data/test/readers/mdJson/v1/tc_reader_mdjson_entityAttribute.rb +154 -0
  223. data/test/readers/mdJson/v1/tc_reader_mdjson_entityForeignKey.rb +100 -0
  224. data/test/readers/mdJson/v1/tc_reader_mdjson_entityIndex.rb +99 -0
  225. data/test/readers/mdJson/v1/tc_reader_mdjson_legalConstraint.rb +104 -0
  226. data/test/readers/mdJson/v1/tc_reader_mdjson_lineage.rb +117 -0
  227. data/test/readers/mdJson/v1/tc_reader_mdjson_medium.rb +98 -0
  228. data/test/readers/mdJson/v1/tc_reader_mdjson_metadataInfo.rb +141 -0
  229. data/test/readers/mdJson/v1/tc_reader_mdjson_onlineResource.rb +110 -0
  230. data/test/readers/mdJson/v1/tc_reader_mdjson_phone.rb +112 -0
  231. data/test/readers/mdJson/v1/tc_reader_mdjson_processStep.rb +118 -0
  232. data/test/readers/mdJson/v1/tc_reader_mdjson_resolution.rb +77 -0
  233. data/test/readers/mdJson/v1/tc_reader_mdjson_source.rb +117 -0
  234. data/test/readers/mdJson/v1/tc_translation_19110.rb +57 -0
  235. data/test/readers/mdJson/{v1_0/tc_translation.rb → v1/tc_translation_19115_2.rb} +16 -31
  236. data/test/writers/iso19115_2/tc_writer_iso19115_2_address.rb +22 -15
  237. metadata +219 -140
  238. data/lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_coordinates.rb +0 -63
  239. data/lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_distributionInfo.rb +0 -161
  240. data/lib/adiwg/mdtranslator/writers/html/sections/logo150.txt +0 -25
  241. data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +0 -62
  242. data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +0 -74
  243. data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceIdentifier.rb +0 -53
  244. data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +0 -40
  245. data/test/readers/mdJson/v1_0/tc_reader_mdjson_additionalDocumentation.rb +0 -85
  246. data/test/readers/mdJson/v1_0/tc_reader_mdjson_address.rb +0 -100
  247. data/test/readers/mdJson/v1_0/tc_reader_mdjson_associatedResource.rb +0 -101
  248. data/test/readers/mdJson/v1_0/tc_reader_mdjson_browseGraphic.rb +0 -86
  249. data/test/readers/mdJson/v1_0/tc_reader_mdjson_citation.rb +0 -116
  250. data/test/readers/mdJson/v1_0/tc_reader_mdjson_contact.rb +0 -138
  251. data/test/readers/mdJson/v1_0/tc_reader_mdjson_dictionaryInfo.rb +0 -95
  252. data/test/readers/mdJson/v1_0/tc_reader_mdjson_domain.rb +0 -99
  253. data/test/readers/mdJson/v1_0/tc_reader_mdjson_onlineResource.rb +0 -92
  254. data/test/readers/mdJson/v1_0/tc_reader_mdjson_phone.rb +0 -110
@@ -1,63 +0,0 @@
1
- # repack coordinates
2
- # Reader - ADIwg JSON V1 to internal data structure
3
-
4
- # History:
5
- # Stan Smith 2013-11-07 original script
6
- # Stan Smith 2013-11-13 added getDimension
7
- # Stan Smith 2014-05-23 added getLevels
8
- # Stan Smith 2014-12-15 refactored to handle namespacing readers and writers
9
-
10
- module ADIWG
11
- module Mdtranslator
12
- module Readers
13
- module MdJson
14
-
15
- module Coordinates
16
-
17
- # repack coordinate array into single string for ISO
18
- def self.unpack(aCoords)
19
- s = ''
20
- i = 0
21
- coordCount = aCoords.length
22
- aCoords.each do |coord|
23
- if coord.kind_of?(Array)
24
- s = s + unpack(coord)
25
- else
26
- i += 1
27
- s = s + coord.to_s
28
- if i < coordCount
29
- s = s + ','
30
- end
31
- s = s + ' '
32
- end
33
- end
34
-
35
- return s
36
- end
37
-
38
- # get the number of dimensions in a coordinate array
39
- def self.getDimension(aCoords)
40
- if aCoords[0].kind_of?(Array)
41
- coordDim = getDimension(aCoords[0])
42
- else
43
- coordDim = aCoords.length
44
- end
45
-
46
- return coordDim
47
- end
48
-
49
- # get the number of levels in the coordinate array
50
- def self.getLevels(aCoords)
51
- i = 1
52
- if aCoords[0].kind_of?(Array)
53
- i = i + getLevels(aCoords[0])
54
- end
55
- return i
56
- end
57
-
58
- end
59
-
60
- end
61
- end
62
- end
63
- end
@@ -1,161 +0,0 @@
1
- # unpack distribution info
2
- # Reader - ADIwg JSON V1 to internal data structure
3
-
4
- # History:
5
- # Stan Smith 2013-09-23 original script
6
- # Stan Smith 2013-11-27 changed to receive single distributor rather than array
7
- # Stan Smith 2013-12-18 changed to unpack contact using responsible party
8
- # Stan Smith 2014-05-02 changed to support responsible party as hash, not array
9
- # Stan Smith 2014-07-08 resolve require statements using Mdtranslator.reader_module
10
- # Stan Smith 2014-12-15 refactored to handle namespacing readers and writers
11
-
12
- require $ReaderNS.readerModule('module_onlineResource')
13
- require $ReaderNS.readerModule('module_dateTime')
14
- require $ReaderNS.readerModule('module_responsibleParty')
15
-
16
- module ADIWG
17
- module Mdtranslator
18
- module Readers
19
- module MdJson
20
-
21
- module DistributionInfo
22
-
23
- def self.unpack(hDistributor)
24
-
25
- # instance classes needed in script
26
- intMetadataClass = InternalMetadata.new
27
- intDistributor = intMetadataClass.newDistributor
28
-
29
- # distributor - distribution contact
30
- if hDistributor.has_key?('distributorContact')
31
- hContact = hDistributor['distributorContact']
32
- unless hContact.empty?
33
- intDistributor[:distContact] = $ReaderNS::ResponsibleParty.unpack(hContact)
34
- end
35
- end
36
-
37
- # distributor - distribution order process
38
- if hDistributor.has_key?('distributionOrderProcess')
39
- aDistOrder = hDistributor['distributionOrderProcess']
40
- unless aDistOrder.empty?
41
- aDistOrder.each do |distOrderProcess|
42
-
43
- intDistOrder = intMetadataClass.newDistOrder
44
-
45
- if distOrderProcess.has_key?('fees')
46
- s = distOrderProcess['fees']
47
- if s != ''
48
- intDistOrder[:fees] = s
49
- end
50
- end
51
-
52
- if distOrderProcess.has_key?('plannedAvailabilityDateTime')
53
- s = distOrderProcess['plannedAvailabilityDateTime']
54
- if s != ''
55
- intDistOrder[:plannedDateTime] = $ReaderNS::DateTime.unpack(s)
56
- end
57
- end
58
-
59
- if distOrderProcess.has_key?('orderingInstructions')
60
- s = distOrderProcess['orderingInstructions']
61
- if s != ''
62
- intDistOrder[:orderInstructions] = s
63
- end
64
- end
65
-
66
- if distOrderProcess.has_key?('turnaround')
67
- s = distOrderProcess['turnaround']
68
- if s != ''
69
- intDistOrder[:turnaround] = s
70
- end
71
- end
72
-
73
- intDistributor[:distOrderProc] << intDistOrder
74
-
75
- end
76
- end
77
- end
78
-
79
- # distributor - distribution format
80
- if hDistributor.has_key?('distributorFormat')
81
- aDistFormat = hDistributor['distributorFormat']
82
- unless aDistFormat.empty?
83
-
84
- aDistFormat.each do |distFormat|
85
- intResFormat = intMetadataClass.newResourceFormat
86
-
87
- if distFormat.has_key?('formatName')
88
- s = distFormat['formatName']
89
- if s != ''
90
- intResFormat[:formatName] = s
91
- end
92
- end
93
-
94
- if distFormat.has_key?('version')
95
- s = distFormat['version']
96
- if s != ''
97
- intResFormat[:formatVersion] = s
98
- end
99
- end
100
-
101
- intDistributor[:distFormat] << intResFormat
102
- end
103
- end
104
- end
105
-
106
- # distributor - distribution transfer options
107
- if hDistributor.has_key?('distributorTransferOptions')
108
- aDistTransOpt = hDistributor['distributorTransferOptions']
109
- unless aDistTransOpt.empty?
110
-
111
- aDistTransOpt.each do |distTransOpt|
112
- intTransOpt = intMetadataClass.newDigitalTransOption
113
-
114
- if distTransOpt.has_key?('online')
115
- aOnlineOption = distTransOpt['online']
116
- aOnlineOption.each do |hOlOption|
117
- intTransOpt[:online] << $ReaderNS::OnlineResource.unpack(hOlOption)
118
- end
119
- end
120
-
121
- if distTransOpt.has_key?('offline')
122
- intOfflineOpt = intMetadataClass.newMedium
123
- distOfflineOpt = distTransOpt['offline']
124
- if distOfflineOpt.has_key?('name')
125
- s = distOfflineOpt['name']
126
- if s != ''
127
- intOfflineOpt[:mediumName] = s
128
- end
129
- end
130
-
131
- if distOfflineOpt.has_key?('mediumFormat')
132
- s = distOfflineOpt['mediumFormat']
133
- if s != ''
134
- intOfflineOpt[:mediumFormat] = s
135
- end
136
- end
137
-
138
- if distOfflineOpt.has_key?('mediumNote')
139
- s = distOfflineOpt['mediumNote']
140
- if s != ''
141
- intOfflineOpt[:mediumNote] = s
142
- end
143
- end
144
-
145
- intTransOpt[:offline] = intOfflineOpt
146
- end
147
-
148
- intDistributor[:distTransOption] << intTransOpt
149
- end
150
- end
151
- end
152
-
153
- return intDistributor
154
- end
155
-
156
- end
157
-
158
- end
159
- end
160
- end
161
- end
@@ -1,25 +0,0 @@
1
- data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAnCAMAAADaSUEAAAADAFBMVEVVVVVVVVVVVVVTU1NVVVVbWVVVVVVVVVVVVVX
2
- /vFn/v1f/qlVVvN5Z1v9a2P9UVFRVVVX/vFld0f9VVVVZ1f9Z1v9Z1/9Y1f9Z1v//vVj/v0D/vFn/vllX1/9Z1v//vFhZ1////fv//fhY1f//+vF94P//8
3
- t1d1v//+/T//v3/vln/vFj/vFlZ1v//vln2/f//x3Pk+P//vl3/vlr/vVn/v13+///7/v//v1X/v13z/P/5/v//vVlZ1v9Z1v//vlr/vVpY1v9Z1v//vVn
4
- /vVn/vFla0v//u1da1v9Z1/9Y1/9a1///uV1Z1f9V1f//vFpc2P//vFn/vVhAv/9VVVVVVVVVVVVVVVVVVVVTU1NSUlJVVVVRUVFVVVVVVVVUVFRVVVVVV
5
- VX/uV1a1/9Y1v//vlpY1v9X1v9c1/9Z1/9X1v9Z1v9Y1f9Z2f//vln/vVj/vFZY1v//u1hf2P9d2P9Z1v//wF//vVn/vVn/vlr/vVr/vVf/vln/vlr/uVh
6
- Z1v9Z1v//vVn/vln/vVlZ1v9Z1v9Y3P9a1///vVlZ1/9a1v9a1f//vVn/vVn/vVld2P9Z1v9mzP9Y1/9VVVVVVVVWVlZVVVVVVVVaWlpVVVVUVFRXV1dVV
7
- VVVVVVVVVVUVFRVVVVVVVVVVVVVVVVVVVVVVVVVVVVZ1v9UVFRVVVVUVFRZ1v//vlpZ1f//vVhJ2/9Z1v9Z1v9Z1v//vllV2v//vlpZ1v//wlX/vVr/vln
8
- /vVr/vln/vVn/vVn/vlta1v9a1f//uFn/vVla1v9Z1v9Z1v//vFn/vFj/vllVVVVVVVVVVVVVVVVWVlZVVVVVVVVVVVVAj49VVVVVVVVZ1v9Z1///vVlZ1
9
- v9Z1v9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVFRVVVVVVVVVVVVUVFRJSUn/uVD/vVlTU1NVVVWt////vVlVVVVVVVVVVVVVVVVVVVVVVVVUVFRVVVV
10
- VVVVUVFRVVVVVVVVVVVVVVVUAAAD///9VVVVZ1v//vVnZrUQXAAAA/HRSTlMtCNYu0II5wqg5LQYP4kE6XXYWf7LyX0Nk2wRFvyajmbf49G7rejzi8fyBs
11
- H52w/Kfad3mnt/9+Qzi7vXOj9LvVbPC04S0ESm5coVSFt0GeidylgTz3PLHmSYQ0QrZn2oSBgszTF+tNAw5R6YxFJNbGp4x2N772cDx6fUjfKgd55vlu9m
12
- /1w7MyOroW4qu3yHGBVm731bt+gs+PThGzrx8orGzd/iBYNpDZoinJhgTB2eAtZsJUu8VIG654vPsJPUqDuHl+pPmP/ca6zTFa9i+IAGECf74QdH0HMtiD
13
- llLrdSpHraWiwQB+QzkAfz+I+kD9pWUuG8V/JCS8AASyBUDAAAENUlEQVRYw8XXZVQbaRQGYNbd3d3d3d2t7u7u7q7b4tKFokWKFmuxIl1ssVLclsVDCIG
14
- QlHn3zeyPFJ0Jp2x7JvdX5rt3cp589843J1ZQLLbNDE7ZUvjDzvjkpO2hG4IfGKjWShlS0KwPthr7xfoH51iU9ePuT+KNsnH7dIuxjobsMpqPEMuwEvyT5
15
- TRnkj7cMi00wmg0zj6mPGtuylIZ0/pv95vSqsn++cZpSrMOfBMhNeV//d1vvWom32CcpSwrYavMTi3c33/0fHyClGQdLJKiig5K62bmT1GOdSBFZqsKf5Y
16
- rXRiiGOvL32VUG2QfOtz1sFKsbdtlGrjbTLGqUCHWDJm9umO62fLZyrCOfSpzft5ovv4FRViqUKlq6ZQBbrhbEdZjMtMePNDPuHMwrLasrJvhe7Y7xp+nK
17
- uGMVOUPuGZlufYtzPH2rgCAo7eaY7WWAQAccruWR43BYbIDeTqdTkOm63Q6v963tZbpy1p7XTd2XwQVSlU+M4A2shMAWhv154rLyUMAMBfAmAmtfVmCIIy
18
- oMlAYZ3u1hkL2TQBcdFoy3Y7sAAD8Tf4DAPAVhKs8MtMrYWtHkuqhnY1ArSBkuwvUlnibvvCJxYuXLHkqadfOiKL45HzTuM9BF6sinSRpU1OGGi1pEAR3X
19
- N8x3JNUa9wygGJBEHwPN2mtSHpc6VJFZlY4+5FVQLma2tKRadkS1l+kpj3vilK0OKUVO5c3kR5AO5lZ4VyqprYYAJ58/OlHH3nm36548633Xnr3FXSzqh3
20
- TijNsbUgv6DvIqpwcvaqSHKevc7SjpxOqSbrleflZkWwB2sh2YCTJOriTIwBTE/uz/sCkeqB0uHZIibUNWQu0m5qjIY8AiNwoiqIois2pMR/FrnztnTdeX
21
- bbsZVUPqzxziLbEeihZ093EiQYyA0AlWYtqkqcBnGN1ku1AC8k6uJJNFWmXlcizAgG9geoWOFT2ZjWRR4D646IkYhegm1VmT1rhtBtZAziRTfrcCdCRZxu
22
- RoaHBZSBWrpeGtLceK8uqvxbA+EsNBuHQ5VLWGqlKDEcPC6VVBsOw0SVkDYC8sfY0ZGPibaPVak8Oq3RED2uQh9I1AQMkC5qlqtf71VxS7NDrgdaPygWAO
23
- n1O4wUdp1OvM59btEKq2vz2/zqSB8u6xXwqYKVUtW8dFGE9NMlcZl2iVHUiCsqw9saZSfx5SqraGAeFWHuiZZfr18hMe2IAlGJ9vENu9XuZ80r8IhCKsaL
24
- EqefXwOaf6qEcC8dXLOq3Evm5TANPFQBKsuIaYsL77NTaBimqYc9JKMvC86J4/333mj4H/rJZZqjEvasBpVl4VhTFVcvXbnr/xCo5k7ipALAAC/MbRLMR8
25
- +tXgGVYWB0mD2teHn0SsBgLiJp3j+RFExZ+kUy4kD9kC+bPe25HYmpq7L7PXgyLLojExYz/AG+Iov3/SF92AAAAAElFTkSuQmCC
@@ -1,62 +0,0 @@
1
- # ISO <<Class>> MD_DigitalTransferOptions
2
- # writer output in XML
3
-
4
- # History:
5
- # Stan Smith 2013-09-26 original script
6
- # Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
7
- # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
8
-
9
- require 'class_onlineResource'
10
- require 'class_medium'
11
-
12
- module ADIWG
13
- module Mdtranslator
14
- module Writers
15
- module Iso
16
-
17
- class MD_DigitalTransferOptions
18
-
19
- def initialize(xml)
20
- @xml = xml
21
- end
22
-
23
- def writeXML(transOption)
24
-
25
- # classes used
26
- olResClass = $IsoNS::CI_OnlineResource.new(@xml)
27
- medClass = $IsoNS::MD_Medium.new(@xml)
28
-
29
- @xml.tag!('gmd:MD_DigitalTransferOptions') do
30
-
31
- # digital transfer options - online [] - CI_OnlineResource
32
- aOnTranOpts = transOption[:online]
33
- if !aOnTranOpts.empty?
34
- aOnTranOpts.each do |olTranOpt|
35
- @xml.tag!('gmd:onLine') do
36
- olResClass.writeXML(olTranOpt)
37
- end
38
- end
39
- elsif $showAllTags
40
- @xml.tag!('gmd:onLine')
41
- end
42
-
43
- # digital transfer options - offline - MD_Medium
44
- hOffTranOpt = transOption[:offline]
45
- if !hOffTranOpt.empty?
46
- @xml.tag!('gmd:offLine') do
47
- medClass.writeXML(hOffTranOpt)
48
- end
49
- elsif $showAllTags
50
- @xml.tag!('gmd:offLine')
51
- end
52
-
53
- end
54
-
55
- end
56
-
57
- end
58
-
59
- end
60
- end
61
- end
62
- end
@@ -1,74 +0,0 @@
1
- # ISO <<Class>> GenericMetaData
2
- # writer output in XML
3
- # generic metadata only supports ...
4
- # time instant
5
- # time period
6
-
7
- # History:
8
- # Stan Smith 2013-11-04 original script
9
- # Stan Smith 2014-07-08 class no longer used
10
- # ... use replaced by creating new geographic extents for geometries
11
- # ... containing supplemental identifier, temporal, and vertical information
12
- # Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
13
- # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
14
-
15
- require 'module_dateTimeFun'
16
- require 'class_timeInstant'
17
- require 'class_timePeriod'
18
-
19
- module ADIWG
20
- module Mdtranslator
21
- module Writers
22
- module Iso
23
-
24
- class GenericMetaData
25
-
26
- def initialize(xml)
27
- @xml = xml
28
- end
29
-
30
- def writeXML(aTempExt)
31
-
32
- # classes used
33
- timeIClass = $IsoNS::TimeInstant.new(@xml)
34
- timePClass = $IsoNS::TimePeriod.new(@xml)
35
-
36
- @xml.tag!('gml:GenericMetaData') do
37
-
38
- aTempExt.each do |hTempExt|
39
-
40
- # metadata - data
41
- hTimeD = hTempExt[:date]
42
- unless hTimeD.empty?
43
- date = hTimeD[:dateTime]
44
- dateResolution = hTimeD[:dateResolution]
45
- s = AdiwgDateTimeFun.stringDateFromDateTime(date, dateResolution)
46
- if s != 'ERROR'
47
- @xml.tag!('gco:Date', s)
48
- end
49
- end
50
-
51
- # metadata - time instant
52
- hTimeI = hTempExt[:timeInstant]
53
- unless hTimeI.empty?
54
- timeIClass.writeXML(hTimeI)
55
- end
56
-
57
- # metadata - time period
58
- hTimeP = hTempExt[:timePeriod]
59
- unless hTimeP.empty?
60
- timePClass.writeXML(hTimeP)
61
- end
62
-
63
- end
64
-
65
- end
66
-
67
- end
68
-
69
- end
70
-
71
- end
72
- end
73
- end
74
- end
@@ -1,53 +0,0 @@
1
- # ISO <<Class>> RS_Identifier
2
- # writer
3
- # output for ISO 19115-2 XML
4
-
5
- # History:
6
- # Stan Smith 2014-09-03 original script
7
- # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
8
-
9
- module ADIWG
10
- module Mdtranslator
11
- module Writers
12
- module Iso
13
-
14
- class RS_Identifier
15
-
16
- def initialize(xml)
17
- @xml = xml
18
- end
19
-
20
- def writeXML(refId, refType)
21
-
22
- @xml.tag!('gmd:RS_Identifier') do
23
-
24
- # identity - code - required
25
- # identifiers can be name, epsg number, wkt
26
- case refType
27
- when 'name'
28
- @xml.tag!('gmd:code') do
29
- @xml.tag!('gco:CharacterString', refId)
30
- end
31
-
32
- when 'epsg'
33
- @xml.tag!('gmd:code') do
34
- s = 'urn:ocg:def:crs:EPSG::' + refId.to_s
35
- @xml.tag!('gco:CharacterString', s)
36
- end
37
-
38
- when 'wkt'
39
- @xml.tag!('gmd:code') do
40
- s = 'WKT::' + refId
41
- @xml.tag!('gco:CharacterString', s)
42
- end
43
- end
44
- end
45
-
46
- end
47
-
48
- end
49
-
50
- end
51
- end
52
- end
53
- end
@@ -1,40 +0,0 @@
1
- # ISO <<Class>> MD_ReferenceSystem
2
- # writer
3
- # output for ISO 19115-2 XML
4
-
5
- # History:
6
- # Stan Smith 2014-09-03 original script
7
- # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
8
-
9
- require 'class_referenceIdentifier'
10
-
11
- module ADIWG
12
- module Mdtranslator
13
- module Writers
14
- module Iso
15
-
16
- class MD_ReferenceSystem
17
-
18
- def initialize(xml)
19
- @xml = xml
20
- end
21
-
22
- def writeXML(refSystem, refType)
23
-
24
- # classes used
25
- refIdClass = $IsoNS::RS_Identifier.new(@xml)
26
-
27
- @xml.tag!('gmd:MD_ReferenceSystem') do
28
- @xml.tag!('gmd:referenceSystemIdentifier') do
29
- refIdClass.writeXML(refSystem, refType)
30
- end
31
- end
32
-
33
- end
34
-
35
- end
36
-
37
- end
38
- end
39
- end
40
- end