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.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/Rakefile +1 -2
- data/adiwg-mdtranslator.gemspec +23 -23
- data/bin/mdtranslator +187 -155
- data/lib/adiwg/mdtranslator.rb +63 -38
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +123 -5
- data/lib/adiwg/mdtranslator/internal/module_coordinates.rb +55 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb +98 -70
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +13 -11
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_additionalDocumentation.rb +13 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_address.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_associatedResource.rb +22 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_boundingBox.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_browseGraphic.rb +11 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_citation.rb +28 -9
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_classedData.rb +49 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_classedDataItem.rb +53 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_contacts.rb +14 -12
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_coverageInfo.rb +83 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_coverageItem.rb +136 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dataDictionary.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dataQuality.rb +17 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dateTime.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_descriptiveKeyword.rb +22 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dictionaryInfo.rb +18 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_digitalTransferOption.rb +80 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_dimension.rb +81 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_distributionInfo.rb +89 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_distributionOrder.rb +62 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_domain.rb +24 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_domainItem.rb +23 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entity.rb +26 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityAttribute.rb +24 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityForeignKey.rb +20 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityIndex.rb +20 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_extent.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geoCoordSystem.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geoProperties.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geographicElement.rb +20 -18
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_gridInfo.rb +67 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_imageInfo.rb +119 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_legalConstraint.rb +7 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_lineString.rb +5 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_lineage.rb +11 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_locale.rb +57 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_mdJson.rb +10 -9
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_medium.rb +73 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadata.rb +14 -12
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadataExtension.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadataInfo.rb +35 -15
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_onlineResource.rb +7 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_phone.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_point.rb +5 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_polygon.rb +5 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_processStep.rb +19 -6
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resolution.rb +7 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceFormat.rb +12 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceIdentifier.rb +30 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceInfo.rb +70 -33
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceMaintenance.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceSpecificUsage.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_responsibleParty.rb +10 -8
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_securityConstraint.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_sensorInfo.rb +69 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_source.rb +11 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_spatialReference.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_taxonClass.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_taxonomy.rb +11 -9
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_temporalElement.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_timeInstant.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_timePeriod.rb +6 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_verticalElement.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_voucher.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/version.rb +19 -0
- data/lib/adiwg/mdtranslator/readers/mdReaders.rb +21 -18
- data/lib/adiwg/mdtranslator/version.rb +15 -1
- data/lib/adiwg/mdtranslator/writers/html/html_writer.rb +11 -8
- data/lib/adiwg/mdtranslator/writers/html/md_html_writer.rb +21 -18
- data/lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb +48 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_associatedResource.rb +73 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +84 -135
- data/lib/adiwg/mdtranslator/writers/html/sections/html_citation.rb +18 -8
- data/lib/adiwg/mdtranslator/writers/html/sections/html_classedData.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_classedDataItem.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +5 -9
- data/lib/adiwg/mdtranslator/writers/html/sections/html_coverageInfo.rb +88 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_coverageItem.rb +139 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataDictionary.rb +13 -12
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataLineage.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataSource.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dimension.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_distributor.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_domain.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_entity.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_extent.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_format.rb +7 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/html/sections/html_gridInfo.rb +65 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_head.rb +18 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_imageInfo.rb +120 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_inlineCss.css +13 -20
- data/lib/adiwg/mdtranslator/writers/html/sections/html_keyword.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_medium.rb +19 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_metadataInfo.rb +22 -9
- data/lib/adiwg/mdtranslator/writers/html/sections/html_orderProcess.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_processStep.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceContact.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceGeneral.rb +25 -14
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceId.rb +30 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb +194 -129
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceMaint.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceOther.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceUsage.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_responsibleParty.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_sensorInfo.rb +66 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_taxonomy.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_temporalElement.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_timeInstant.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_timePeriod.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_transferOption.rb +29 -4
- data/lib/adiwg/mdtranslator/writers/html/version.rb +17 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +17 -16
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_address.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_baseUnit.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_codelist.rb +8 -3
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_contact.rb +16 -25
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_conventionalUnit.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_definitionUnit.rb +39 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_derivedUnit.rb +46 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureAttribute.rb +17 -14
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureConstraint.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureType.rb +16 -12
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_listedValue.rb +9 -18
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_multiplicity.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_onlineResource.rb +13 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_responsibleParty.rb +16 -12
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_telephone.rb +9 -5
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_unitsOfMeasure.rb +262 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +36 -16
- data/lib/adiwg/mdtranslator/writers/iso19110/version.rb +14 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +73 -37
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_address.rb +116 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_aggregateInformation.rb +13 -9
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_band.rb +165 -0
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_baseUnit.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_boundingPolygon.rb +14 -10
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_browseGraphic.rb +9 -5
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_citation.rb +31 -16
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_codelist.rb +56 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_contact.rb +87 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_contentInfo.rb +111 -0
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_conventionalUnit.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_dataIdentification.rb +106 -59
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_dataQuality.rb +11 -7
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_date.rb +8 -5
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_definitionUnit.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_derivedUnit.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_digitalTransferOptions.rb +92 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dimension.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_distribution.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_distributor.rb +44 -22
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_enumerationList.rb +7 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_extent.rb +18 -14
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_format.rb +18 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicBoundingBox.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicDescription.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicElement.rb +10 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_gridInfo.rb +80 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_identifier.rb +10 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_imageDescription.rb +157 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_keyword.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_legalConstraints.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_lineString.rb +13 -10
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_lineage.rb +14 -10
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_locale.rb +67 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_maintenanceInformation.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_medium.rb +30 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_metadataExtension.rb +19 -15
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_multiGeometry.rb +22 -17
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_onlineResource.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_point.rb +12 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_polygon.rb +14 -11
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_processStep.rb +12 -9
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_rangeElementDescription.rb +88 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_referenceSystem.rb +52 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_resolution.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_resourceIdentifier.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_responsibleParty.rb +106 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_securityConstraints.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_source.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_standardOrderProcess.rb +11 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_taxonClassification.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_taxonSystem.rb +18 -14
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_telephone.rb +92 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_temporalExtent.rb +10 -6
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_timeInstant.rb +9 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_timePeriod.rb +10 -8
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_unitsOfMeasure.rb +48 -25
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_usage.rb +11 -7
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_useConstraints.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_verticalExtent.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_vouchers.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +32 -19
- data/lib/adiwg/mdtranslator/writers/iso19115_2/version.rb +17 -0
- data/lib/adiwg/mdtranslator/writers/mdWriters.rb +21 -24
- data/test/readers/mdJson/v1/tc_reader_mdjson_additionalDocumentation.rb +116 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_address.rb +111 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_associatedResource.rb +157 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_browseGraphic.rb +119 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_citation.rb +143 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_contact.rb +138 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_dataQuality.rb +111 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_dateTime.rb +159 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_descriptiveKeyword.rb +115 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_dictionaryInfo.rb +121 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_digitalTransferOption.rb +94 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_distributionOrder.rb +103 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_domain.rb +130 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_domainItem.rb +98 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entity.rb +134 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entityAttribute.rb +154 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entityForeignKey.rb +100 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entityIndex.rb +99 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_legalConstraint.rb +104 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_lineage.rb +117 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_medium.rb +98 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_metadataInfo.rb +141 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_onlineResource.rb +110 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_phone.rb +112 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_processStep.rb +118 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_resolution.rb +77 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_source.rb +117 -0
- data/test/readers/mdJson/v1/tc_translation_19110.rb +57 -0
- data/test/readers/mdJson/{v1_0/tc_translation.rb → v1/tc_translation_19115_2.rb} +16 -31
- data/test/writers/iso19115_2/tc_writer_iso19115_2_address.rb +22 -15
- metadata +219 -140
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_coordinates.rb +0 -63
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_distributionInfo.rb +0 -161
- data/lib/adiwg/mdtranslator/writers/html/sections/logo150.txt +0 -25
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +0 -62
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +0 -74
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceIdentifier.rb +0 -53
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +0 -40
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_additionalDocumentation.rb +0 -85
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_address.rb +0 -100
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_associatedResource.rb +0 -101
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_browseGraphic.rb +0 -86
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_citation.rb +0 -116
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_contact.rb +0 -138
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_dictionaryInfo.rb +0 -95
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_domain.rb +0 -99
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_onlineResource.rb +0 -92
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_phone.rb +0 -110
@@ -7,17 +7,22 @@
|
|
7
7
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
8
8
|
# Stan Smith 2014-12-15 replaced NOAA CT_CodelistCatalogue with mdTranslator CT_CodelistCatalogue
|
9
9
|
# Stan Smith 2015-06-12 refactored to use mdCodes gem for codelist contents
|
10
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
11
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
12
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
10
13
|
|
11
14
|
require 'adiwg-mdcodes'
|
12
15
|
|
13
16
|
module ADIWG
|
14
17
|
module Mdtranslator
|
15
18
|
module Writers
|
16
|
-
module
|
19
|
+
module Iso19115_2
|
17
20
|
|
18
21
|
class MD_EnumerationList
|
19
|
-
|
22
|
+
|
23
|
+
def initialize(xml, responseObj)
|
20
24
|
@xml = xml
|
25
|
+
@responseObj = responseObj
|
21
26
|
end
|
22
27
|
|
23
28
|
def writeXML(codeList, codeName)
|
@@ -9,30 +9,34 @@
|
|
9
9
|
# Stan Smith 2014-05-29 ... added new class for geographicElement
|
10
10
|
# Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
|
11
11
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
12
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
13
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
14
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
12
15
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
16
|
+
require_relative 'class_geographicElement'
|
17
|
+
require_relative 'class_geographicDescription'
|
18
|
+
require_relative 'class_temporalExtent'
|
19
|
+
require_relative 'class_verticalExtent'
|
17
20
|
|
18
21
|
module ADIWG
|
19
22
|
module Mdtranslator
|
20
23
|
module Writers
|
21
|
-
module
|
24
|
+
module Iso19115_2
|
22
25
|
|
23
26
|
class EX_Extent
|
24
27
|
|
25
|
-
def initialize(xml)
|
28
|
+
def initialize(xml, responseObj)
|
26
29
|
@xml = xml
|
30
|
+
@responseObj = responseObj
|
27
31
|
end
|
28
32
|
|
29
33
|
def writeXML(hExtent)
|
30
34
|
|
31
35
|
# classes used
|
32
|
-
tempExtClass =
|
33
|
-
vertExtClass =
|
34
|
-
geoEleClass =
|
35
|
-
geoEleIdClass =
|
36
|
+
tempExtClass = EX_TemporalExtent.new(@xml, @responseObj)
|
37
|
+
vertExtClass = EX_VerticalExtent.new(@xml, @responseObj)
|
38
|
+
geoEleClass = GeographicElement.new(@xml, @responseObj)
|
39
|
+
geoEleIdClass = EX_GeographicDescription.new(@xml, @responseObj)
|
36
40
|
|
37
41
|
@xml.tag!('gmd:EX_Extent') do
|
38
42
|
|
@@ -42,7 +46,7 @@ module ADIWG
|
|
42
46
|
@xml.tag!('gmd:description') do
|
43
47
|
@xml.tag!('gco:CharacterString', s)
|
44
48
|
end
|
45
|
-
elsif
|
49
|
+
elsif @responseObj[:writerShowTags]
|
46
50
|
@xml.tag!('gmd:description')
|
47
51
|
end
|
48
52
|
|
@@ -54,7 +58,7 @@ module ADIWG
|
|
54
58
|
geoEleClass.writeXML(hGeoElement)
|
55
59
|
end
|
56
60
|
end
|
57
|
-
elsif
|
61
|
+
elsif @responseObj[:writerShowTags]
|
58
62
|
@xml.tag!('gmd:geographicElement')
|
59
63
|
end
|
60
64
|
|
@@ -76,7 +80,7 @@ module ADIWG
|
|
76
80
|
tempExtClass.writeXML(hTempElement)
|
77
81
|
end
|
78
82
|
end
|
79
|
-
elsif
|
83
|
+
elsif @responseObj[:writerShowTags]
|
80
84
|
@xml.tag!('gmd:temporalElement')
|
81
85
|
end
|
82
86
|
|
@@ -88,7 +92,7 @@ module ADIWG
|
|
88
92
|
vertExtClass.writeXML(hVertElement)
|
89
93
|
end
|
90
94
|
end
|
91
|
-
elsif
|
95
|
+
elsif @responseObj[:writerShowTags]
|
92
96
|
@xml.tag!('gmd:verticalElement')
|
93
97
|
end
|
94
98
|
end
|
@@ -4,16 +4,21 @@
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2013-08-26 original script
|
6
6
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
7
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
8
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
9
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
10
|
+
# Stan Smith 2015-09-15 added compression method element
|
7
11
|
|
8
12
|
module ADIWG
|
9
13
|
module Mdtranslator
|
10
14
|
module Writers
|
11
|
-
module
|
15
|
+
module Iso19115_2
|
12
16
|
|
13
17
|
class MD_Format
|
14
18
|
|
15
|
-
def initialize(xml)
|
19
|
+
def initialize(xml, responseObj)
|
16
20
|
@xml = xml
|
21
|
+
@responseObj = responseObj
|
17
22
|
end
|
18
23
|
|
19
24
|
def writeXML(rFormat)
|
@@ -39,6 +44,17 @@ module ADIWG
|
|
39
44
|
@xml.tag!('gco:CharacterString', s)
|
40
45
|
end
|
41
46
|
end
|
47
|
+
|
48
|
+
# format - compression method
|
49
|
+
s = rFormat[:compressionMethod]
|
50
|
+
if !s.nil?
|
51
|
+
@xml.tag!('gmd:fileDecompressionTechnique') do
|
52
|
+
@xml.tag!('gco:CharacterString', s)
|
53
|
+
end
|
54
|
+
elsif @responseObj[:writerShowTags]
|
55
|
+
@xml.tag!('gmd:fileDecompressionTechnique')
|
56
|
+
end
|
57
|
+
|
42
58
|
end
|
43
59
|
|
44
60
|
end
|
data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicBoundingBox.rb
RENAMED
@@ -5,16 +5,20 @@
|
|
5
5
|
# Stan Smith 2013-11-01 original script
|
6
6
|
# Stan Smith 2014-05-30 hElement attributes changed for version 0.5.0
|
7
7
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
8
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
9
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
10
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
8
11
|
|
9
12
|
module ADIWG
|
10
13
|
module Mdtranslator
|
11
14
|
module Writers
|
12
|
-
module
|
15
|
+
module Iso19115_2
|
13
16
|
|
14
17
|
class EX_GeographicBoundingBox
|
15
18
|
|
16
|
-
def initialize(xml)
|
19
|
+
def initialize(xml, responseObj)
|
17
20
|
@xml = xml
|
21
|
+
@responseObj = responseObj
|
18
22
|
end
|
19
23
|
|
20
24
|
def writeXML(hElement)
|
data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicDescription.rb
RENAMED
@@ -5,24 +5,28 @@
|
|
5
5
|
# Stan Smith 2013-06-03 original script
|
6
6
|
# Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
|
7
7
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
8
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
9
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
10
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
8
11
|
|
9
|
-
|
12
|
+
require_relative 'class_identifier'
|
10
13
|
|
11
14
|
module ADIWG
|
12
15
|
module Mdtranslator
|
13
16
|
module Writers
|
14
|
-
module
|
17
|
+
module Iso19115_2
|
15
18
|
|
16
19
|
class EX_GeographicDescription
|
17
20
|
|
18
|
-
def initialize(xml)
|
21
|
+
def initialize(xml, responseObj)
|
19
22
|
@xml = xml
|
23
|
+
@responseObj = responseObj
|
20
24
|
end
|
21
25
|
|
22
26
|
def writeXML(hElement)
|
23
27
|
|
24
28
|
# classes used
|
25
|
-
idClass =
|
29
|
+
idClass = MD_Identifier.new(@xml, @responseObj)
|
26
30
|
|
27
31
|
@xml.tag!('gmd:EX_GeographicDescription') do
|
28
32
|
@xml.tag!('gmd:geographicIdentifier') do
|
@@ -6,26 +6,30 @@
|
|
6
6
|
# Stan Smith 2014-05-30 added multi-point, multi-linestring, multi-polygon support
|
7
7
|
# Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
|
8
8
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
9
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
10
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
11
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
9
12
|
|
10
|
-
|
11
|
-
|
13
|
+
require_relative 'class_geographicBoundingBox'
|
14
|
+
require_relative 'class_boundingPolygon'
|
12
15
|
|
13
16
|
module ADIWG
|
14
17
|
module Mdtranslator
|
15
18
|
module Writers
|
16
|
-
module
|
19
|
+
module Iso19115_2
|
17
20
|
|
18
21
|
class GeographicElement
|
19
22
|
|
20
|
-
def initialize(xml)
|
23
|
+
def initialize(xml, responseObj)
|
21
24
|
@xml = xml
|
25
|
+
@responseObj = responseObj
|
22
26
|
end
|
23
27
|
|
24
28
|
def writeXML(hGeoElement)
|
25
29
|
|
26
30
|
# classes used
|
27
|
-
geoBBoxClass =
|
28
|
-
geoBPolyClass =
|
31
|
+
geoBBoxClass = EX_GeographicBoundingBox.new(@xml, @responseObj)
|
32
|
+
geoBPolyClass = EX_BoundingPolygon.new(@xml, @responseObj)
|
29
33
|
|
30
34
|
geoType = hGeoElement[:elementGeometry][:geoType]
|
31
35
|
case geoType
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# ISO <<Class>> MD_GridSpatialRepresentation
|
2
|
+
# writer output in XML
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-07-30 original script.
|
6
|
+
|
7
|
+
require_relative 'class_dimension'
|
8
|
+
|
9
|
+
module ADIWG
|
10
|
+
module Mdtranslator
|
11
|
+
module Writers
|
12
|
+
module Iso19115_2
|
13
|
+
|
14
|
+
class MD_GridInfo
|
15
|
+
|
16
|
+
def initialize(xml, responseObj)
|
17
|
+
@xml = xml
|
18
|
+
@responseObj = responseObj
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeXML(hGridInfo)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
codelistClass = MD_Codelist.new(@xml, @responseObj)
|
25
|
+
dimClass = MD_Dimension.new(@xml, @responseObj)
|
26
|
+
|
27
|
+
@xml.tag!('gmd:MD_GridSpatialRepresentation') do
|
28
|
+
|
29
|
+
# spatial grid information - number of dimensions - required
|
30
|
+
s = hGridInfo[:dimensions]
|
31
|
+
if !s.nil?
|
32
|
+
@xml.tag!('gmd:numberOfDimensions') do
|
33
|
+
@xml.tag!('gco:Integer', s)
|
34
|
+
end
|
35
|
+
elsif @responseObj[:writerShowTags]
|
36
|
+
@xml.tag!('gmd:numberOfDimensions')
|
37
|
+
end
|
38
|
+
|
39
|
+
# spatial grid information - axis dimension properties
|
40
|
+
aDims = hGridInfo[:dimensionInfo]
|
41
|
+
if !aDims.empty?
|
42
|
+
aDims.each do |hDimInfo|
|
43
|
+
@xml.tag!('gmd:axisDimensionProperties') do
|
44
|
+
dimClass.writeXML(hDimInfo)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
elsif @responseObj[:writerShowTags]
|
48
|
+
@xml.tag!('gmd:axisDimensionProperties')
|
49
|
+
end
|
50
|
+
|
51
|
+
# spatial grid information - cell geometry
|
52
|
+
s = hGridInfo[:dimensionGeometry]
|
53
|
+
if !s.nil?
|
54
|
+
@xml.tag!('gmd:cellGeometry') do
|
55
|
+
codelistClass.writeXML('iso_cellGeometry', s)
|
56
|
+
end
|
57
|
+
elsif @responseObj[:writerShowTags]
|
58
|
+
@xml.tag!('gmd:cellGeometry')
|
59
|
+
end
|
60
|
+
|
61
|
+
# spatial grid information - transformation parameters availability - required - default false
|
62
|
+
s = hGridInfo[:dimensionTransformParams]
|
63
|
+
@xml.tag!('gmd:transformationParameterAvailability') do
|
64
|
+
if s
|
65
|
+
@xml.tag!('gco:Boolean', 'true')
|
66
|
+
else
|
67
|
+
@xml.tag!('gco:Boolean', 'false')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -7,18 +7,22 @@
|
|
7
7
|
# Stan Smith 2014-05-28 revised for json schema 0.5.0
|
8
8
|
# Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
|
9
9
|
# Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
|
10
|
+
# Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj)
|
11
|
+
# Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
|
12
|
+
# Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
|
10
13
|
|
11
|
-
|
14
|
+
require_relative 'class_citation'
|
12
15
|
|
13
16
|
module ADIWG
|
14
17
|
module Mdtranslator
|
15
18
|
module Writers
|
16
|
-
module
|
19
|
+
module Iso19115_2
|
17
20
|
|
18
21
|
class MD_Identifier
|
19
22
|
|
20
|
-
def initialize(xml)
|
23
|
+
def initialize(xml, responseObj)
|
21
24
|
@xml = xml
|
25
|
+
@responseObj = responseObj
|
22
26
|
end
|
23
27
|
|
24
28
|
def writeXML(hResID)
|
@@ -26,7 +30,7 @@ module ADIWG
|
|
26
30
|
# the authority for the identifier is a citation block
|
27
31
|
|
28
32
|
# classes used in MD_Metadata
|
29
|
-
citationClass =
|
33
|
+
citationClass = CI_Citation.new(@xml, @responseObj)
|
30
34
|
|
31
35
|
@xml.tag!('gmd:MD_Identifier') do
|
32
36
|
|
@@ -36,7 +40,7 @@ module ADIWG
|
|
36
40
|
@xml.tag!('gmd:authority') do
|
37
41
|
citationClass.writeXML(hCitation)
|
38
42
|
end
|
39
|
-
elsif
|
43
|
+
elsif @responseObj[:writerShowTags]
|
40
44
|
@xml.tag!('gmd:authority')
|
41
45
|
end
|
42
46
|
|
@@ -46,7 +50,7 @@ module ADIWG
|
|
46
50
|
@xml.tag!('gmd:code') do
|
47
51
|
@xml.tag!('gco:CharacterString', s)
|
48
52
|
end
|
49
|
-
elsif
|
53
|
+
elsif @responseObj[:writerShowTags]
|
50
54
|
@xml.tag!('gmd:code')
|
51
55
|
end
|
52
56
|
|
@@ -0,0 +1,157 @@
|
|
1
|
+
# ISO <<Class>> image description
|
2
|
+
# writer output in XML
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-08-27 original script
|
6
|
+
|
7
|
+
require_relative 'class_codelist'
|
8
|
+
require_relative 'class_resourceIdentifier'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Iso19115_2
|
14
|
+
|
15
|
+
class ImageDescription
|
16
|
+
|
17
|
+
def initialize(xml, responseObj)
|
18
|
+
@xml = xml
|
19
|
+
@responseObj = responseObj
|
20
|
+
end
|
21
|
+
|
22
|
+
def writeXML(hContent)
|
23
|
+
|
24
|
+
# classes used
|
25
|
+
codelistClass = MD_Codelist.new(@xml, @responseObj)
|
26
|
+
resIdClass = RS_Identifier.new(@xml, @responseObj)
|
27
|
+
|
28
|
+
hImage = hContent[:imageInfo]
|
29
|
+
|
30
|
+
# image description - illumination elevation angle
|
31
|
+
s = hImage[:illuminationElevationAngle]
|
32
|
+
if !s.nil?
|
33
|
+
@xml.tag!('gmd:illuminationElevationAngle') do
|
34
|
+
@xml.tag!('gco:Real', s)
|
35
|
+
end
|
36
|
+
elsif @responseObj[:writerShowTags]
|
37
|
+
@xml.tag!('gmd:illuminationElevationAngle')
|
38
|
+
end
|
39
|
+
|
40
|
+
# image description - illumination azimuth angle
|
41
|
+
s = hImage[:illuminationAzimuthAngle]
|
42
|
+
if !s.nil?
|
43
|
+
@xml.tag!('gmd:illuminationAzimuthAngle') do
|
44
|
+
@xml.tag!('gco:Real', s)
|
45
|
+
end
|
46
|
+
elsif @responseObj[:writerShowTags]
|
47
|
+
@xml.tag!('gmd:illuminationAzimuthAngle')
|
48
|
+
end
|
49
|
+
|
50
|
+
# image description - image condition - MD_ImageConditionCode
|
51
|
+
s = hImage[:imageCondition]
|
52
|
+
if !s.nil?
|
53
|
+
@xml.tag!('gmd:imagingCondition') do
|
54
|
+
codelistClass.writeXML('iso_imageCondition',s)
|
55
|
+
end
|
56
|
+
elsif @responseObj[:writerShowTags]
|
57
|
+
@xml.tag!('gmd:imagingCondition')
|
58
|
+
end
|
59
|
+
|
60
|
+
# image description - image quality code - RS_Identifier
|
61
|
+
resId = hImage[:imageQuality]
|
62
|
+
if !resId.empty?
|
63
|
+
@xml.tag!('gmd:imageQualityCode') do
|
64
|
+
resIdClass.writeXML(resId)
|
65
|
+
end
|
66
|
+
elsif @responseObj[:writerShowTags]
|
67
|
+
@xml.tag!('gmd:imageQualityCode')
|
68
|
+
end
|
69
|
+
|
70
|
+
# image description - cloud cover percentage
|
71
|
+
s = hImage[:cloudCoverPercent]
|
72
|
+
if !s.nil?
|
73
|
+
@xml.tag!('gmd:cloudCoverPercentage') do
|
74
|
+
@xml.tag!('gco:Real', s)
|
75
|
+
end
|
76
|
+
elsif @responseObj[:writerShowTags]
|
77
|
+
@xml.tag!('gmd:cloudCoverPercentage')
|
78
|
+
end
|
79
|
+
|
80
|
+
# image description - processing level code (from coverageItem)- RS_Identifier
|
81
|
+
resId = hContent[:processingLevel]
|
82
|
+
if !resId.empty?
|
83
|
+
@xml.tag!('gmd:processingLevelCode') do
|
84
|
+
resIdClass.writeXML(resId)
|
85
|
+
end
|
86
|
+
elsif @responseObj[:writerShowTags]
|
87
|
+
@xml.tag!('gmd:processingLevelCode')
|
88
|
+
end
|
89
|
+
|
90
|
+
# image description - compression generation quality
|
91
|
+
s = hImage[:compressionQuantity]
|
92
|
+
if !s.nil?
|
93
|
+
@xml.tag!('gmd:compressionGenerationQuantity') do
|
94
|
+
@xml.tag!('gco:Integer', s)
|
95
|
+
end
|
96
|
+
elsif @responseObj[:writerShowTags]
|
97
|
+
@xml.tag!('gmd:compressionGenerationQuantity')
|
98
|
+
end
|
99
|
+
|
100
|
+
# image description - triangulation indicator
|
101
|
+
s = hImage[:triangulationInfo]
|
102
|
+
if !s.nil?
|
103
|
+
@xml.tag!('gmd:triangulationIndicator') do
|
104
|
+
@xml.tag!('gco:Boolean', s)
|
105
|
+
end
|
106
|
+
elsif @responseObj[:writerShowTags]
|
107
|
+
@xml.tag!('gmd:triangulationIndicator')
|
108
|
+
end
|
109
|
+
|
110
|
+
# image description - radiometric calibration data availability
|
111
|
+
s = hImage[:radiometricCalibrationInfo]
|
112
|
+
if !s.nil?
|
113
|
+
@xml.tag!('gmd:radiometricCalibrationDataAvailability') do
|
114
|
+
@xml.tag!('gco:Boolean', s)
|
115
|
+
end
|
116
|
+
elsif @responseObj[:writerShowTags]
|
117
|
+
@xml.tag!('gmd:radiometricCalibrationDataAvailability')
|
118
|
+
end
|
119
|
+
|
120
|
+
# image description - camera calibration information availability
|
121
|
+
s = hImage[:cameraCalibrationInfo]
|
122
|
+
if !s.nil?
|
123
|
+
@xml.tag!('gmd:cameraCalibrationInformationAvailability') do
|
124
|
+
@xml.tag!('gco:Boolean', s)
|
125
|
+
end
|
126
|
+
elsif @responseObj[:writerShowTags]
|
127
|
+
@xml.tag!('gmd:cameraCalibrationInformationAvailability')
|
128
|
+
end
|
129
|
+
|
130
|
+
# image description - film distortion information availability
|
131
|
+
s = hImage[:filmDistortionInfo]
|
132
|
+
if !s.nil?
|
133
|
+
@xml.tag!('gmd:filmDistortionInformationAvailability') do
|
134
|
+
@xml.tag!('gco:Boolean', s)
|
135
|
+
end
|
136
|
+
elsif @responseObj[:writerShowTags]
|
137
|
+
@xml.tag!('gmd:filmDistortionInformationAvailability')
|
138
|
+
end
|
139
|
+
|
140
|
+
# image description - lens distortion information availability
|
141
|
+
s = hImage[:lensDistortionInfo]
|
142
|
+
if !s.nil?
|
143
|
+
@xml.tag!('gmd:lensDistortionInformationAvailability') do
|
144
|
+
@xml.tag!('gco:Boolean', s)
|
145
|
+
end
|
146
|
+
elsif @responseObj[:writerShowTags]
|
147
|
+
@xml.tag!('gmd:lensDistortionInformationAvailability')
|
148
|
+
end
|
149
|
+
|
150
|
+
end
|
151
|
+
|
152
|
+
end
|
153
|
+
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|