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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +14 -0
- data/.gitignore +2 -1
- data/Gemfile.lock +86 -0
- data/Rakefile +1 -1
- data/adiwg-mdtranslator.gemspec +6 -6
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +27 -11
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dataQuality.rb +149 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb +2 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +8 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQuality.rb +4 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_dataQualityReport.rb +8 -16
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_evaluationMethod.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_legalConstraint.rb +8 -8
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityMeasure.rb +34 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_qualityResultFile.rb +72 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_rangeElementDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_responsibleParty.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_contact.rb +13 -0
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/{class_quality.rb → class_dataQuality.rb} +14 -10
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +5 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +32 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb +39 -18
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataQualityReport.rb +385 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_rangeElementDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resultFile.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb +18 -10
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_additionalDocument.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_address.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_algorithm.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_associatedResource.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attribute.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_attributeGroup.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_baseUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_boundingBox.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_browseGraphic.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_citation.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_codelist.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraint.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_constraintCommon.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_contact.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_conventionalUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_coverageDescription.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataIdentification.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dataQuality.rb +9 -2
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_dataQualityReport.rb +269 -0
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_date.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_definitionUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_derivedUnit.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_dimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distribution.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_distributor.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_email.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_extent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_feature.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCatalog.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureCollection.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_featureProperties.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_format.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_fraction.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gcoDateTime.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicElement.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geographicExtent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometricObjects.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_geometryCollection.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georectified.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_georeferenceable.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gmlIdentifier.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_grid.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_gridRepresentation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_identifier.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_imageDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_individual.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_keyword.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leProcessStep.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_leSource.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_legalConstraints.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liProcessStep.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_liSource.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineString.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_lineage.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_locale.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_maintenance.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdBand.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_mdMetadata.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_measure.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_medium.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_miBand.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiLine.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPoint.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_multiPolygon.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_nominalResolution.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_onlineResource.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_orderProcess.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_organization.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_partyIdentifier.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_phone.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_point.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_polygon.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processReport.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processStep.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_processing.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_qualityResultFile.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeDimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeElementDescription.rb +5 -5
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_referenceSystem.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_releasability.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_resolution.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_responsibility.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_sampleDimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scope.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scopeDescription.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_securityConstraints.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_series.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_source.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_spatialRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_temporalExtent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timeInstant.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_timePeriod.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_transferOptions.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_unitsOfMeasure.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_usage.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_useConstraints.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_vectorRepresentation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_verticalExtent.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer.rb → iso19115_3/iso19115_3_writer.rb} +10 -10
- data/lib/adiwg/mdtranslator/writers/{iso19115_1/iso19115_1_writer_messages_eng.yml → iso19115_3/iso19115_3_writer_messages_eng.yml} +1 -1
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/readme.md +3 -3
- data/lib/adiwg/mdtranslator/writers/iso19115_3/version.rb +12 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_allocation.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +30 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQuality.rb +3 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb +12 -10
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_metadata.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityMeasure.rb +4 -3
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_qualityResultFile.rb +23 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_standaloneQualityReport.rb +31 -0
- data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb +10 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/readme.md +19 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb +49 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb +48 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb +114 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb +73 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb +201 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb +51 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb +319 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_boundingBox.rb +69 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb +165 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedDataItem.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb +118 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb +234 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coordinateResolution.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb +126 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb +79 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQualityReport.rb +385 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_date.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_datetime.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_dimension.rb +69 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb +58 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb +66 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_document.rb +63 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb +108 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb +64 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_duration.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb +169 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb +179 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityIndex.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb +97 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb +82 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb +66 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb +79 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb +110 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb +78 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb +46 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb +105 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb +91 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb +76 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_head.rb +55 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb +102 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_inlineCss.css +237 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_legalConstraint.rb +49 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb +87 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_locale.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb +96 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_measure.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb +90 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb +198 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb +56 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_nominalResolution.rb +51 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_obliqueLinePoint.rb +37 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_onlineResource.rb +74 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb +47 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb +171 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb +89 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_projectionParameters.rb +261 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_referenceSystemParameters.rb +65 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb +63 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb +485 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb +38 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb +81 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_resultFile.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb +60 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb +54 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_securityConstraint.rb +57 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb +155 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialReference.rb +70 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb +77 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialResolution.rb +95 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb +156 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomyClass.rb +75 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_temporalExtent.rb +65 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb +82 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInterval.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb +128 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb +118 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorObject.rb +40 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb +70 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb +44 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/version.rb +19 -0
- data/lib/adiwg/mdtranslator_cli.rb +2 -2
- metadata +241 -125
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +0 -181
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQualityReport.rb +0 -95
- data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +0 -15
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_referenceSystem.rb
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ISO <<Class>> MD_ReferenceSystem
|
2
2
|
# writer
|
3
|
-
# 19115-
|
3
|
+
# 19115-3 output for XML
|
4
4
|
|
5
5
|
# History:
|
6
6
|
# Stan Smith 2019-03-19 original script
|
@@ -12,14 +12,14 @@ require_relative 'class_identifier'
|
|
12
12
|
module ADIWG
|
13
13
|
module Mdtranslator
|
14
14
|
module Writers
|
15
|
-
module
|
15
|
+
module Iso19115_3
|
16
16
|
|
17
17
|
class MD_ReferenceSystem
|
18
18
|
|
19
19
|
def initialize(xml, hResponseObj)
|
20
20
|
@xml = xml
|
21
21
|
@hResponseObj = hResponseObj
|
22
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
22
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
23
23
|
end
|
24
24
|
|
25
25
|
def writeXML(hSystem, inContext = nil)
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_releasability.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> MD_Releasability
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-18 original script
|
@@ -10,7 +10,7 @@ require_relative 'class_codelist'
|
|
10
10
|
module ADIWG
|
11
11
|
module Mdtranslator
|
12
12
|
module Writers
|
13
|
-
module
|
13
|
+
module Iso19115_3
|
14
14
|
|
15
15
|
class MD_Releasability
|
16
16
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> MD_Resolution
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-21 original script
|
@@ -10,7 +10,7 @@ require_relative 'class_fraction'
|
|
10
10
|
module ADIWG
|
11
11
|
module Mdtranslator
|
12
12
|
module Writers
|
13
|
-
module
|
13
|
+
module Iso19115_3
|
14
14
|
|
15
15
|
class MD_Resolution
|
16
16
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_responsibility.rb
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
# ISO <<Class>> CI_Responsibility
|
2
|
-
# 19115-
|
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 '../
|
7
|
+
require_relative '../iso19115_3_writer'
|
8
8
|
require_relative 'class_codelist'
|
9
9
|
require_relative 'class_extent'
|
10
10
|
require_relative 'class_individual'
|
@@ -13,14 +13,14 @@ require_relative 'class_organization'
|
|
13
13
|
module ADIWG
|
14
14
|
module Mdtranslator
|
15
15
|
module Writers
|
16
|
-
module
|
16
|
+
module Iso19115_3
|
17
17
|
|
18
18
|
class CI_Responsibility
|
19
19
|
|
20
20
|
def initialize(xml, hResponseObj)
|
21
21
|
@xml = xml
|
22
22
|
@hResponseObj = hResponseObj
|
23
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
23
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
24
24
|
end
|
25
25
|
|
26
26
|
def writeXML(hResponsibility, inContext = nil)
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_sampleDimension.rb
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
# ISO <<Class>> MD_SampleDimension attributes
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-04-08 original script.
|
6
6
|
|
7
|
-
require_relative '../
|
7
|
+
require_relative '../iso19115_3_writer'
|
8
8
|
require_relative 'class_unitsOfMeasure'
|
9
9
|
require_relative 'class_rangeElementDescription'
|
10
10
|
|
11
11
|
module ADIWG
|
12
12
|
module Mdtranslator
|
13
13
|
module Writers
|
14
|
-
module
|
14
|
+
module Iso19115_3
|
15
15
|
|
16
16
|
class MD_SampleDimension
|
17
17
|
|
18
18
|
def initialize(xml, hResponseObj)
|
19
19
|
@xml = xml
|
20
20
|
@hResponseObj = hResponseObj
|
21
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
21
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
22
22
|
end
|
23
23
|
|
24
24
|
def writeXML(hAttribute, inContext = nil)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# ISO <<Class>> MD_Scope
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-18 original script
|
6
6
|
|
7
|
-
require_relative '../
|
7
|
+
require_relative '../iso19115_3_writer'
|
8
8
|
require_relative 'class_codelist'
|
9
9
|
require_relative 'class_extent'
|
10
10
|
require_relative 'class_scopeDescription'
|
@@ -12,14 +12,14 @@ require_relative 'class_scopeDescription'
|
|
12
12
|
module ADIWG
|
13
13
|
module Mdtranslator
|
14
14
|
module Writers
|
15
|
-
module
|
15
|
+
module Iso19115_3
|
16
16
|
|
17
17
|
class MD_Scope
|
18
18
|
|
19
19
|
def initialize(xml, responseObj)
|
20
20
|
@xml = xml
|
21
21
|
@hResponseObj = responseObj
|
22
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
22
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
23
23
|
end
|
24
24
|
|
25
25
|
def writeXML(hScope, inContext = nil)
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_scopeDescription.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> MD_ScopeDimension
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-16 original script
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module ADIWG
|
8
8
|
module Mdtranslator
|
9
9
|
module Writers
|
10
|
-
module
|
10
|
+
module Iso19115_3
|
11
11
|
|
12
12
|
class MD_ScopeDescription
|
13
13
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_securityConstraints.rb
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
# ISO <<Class>> MD_SecurityConstraints
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-18 original script.
|
6
6
|
|
7
|
-
require_relative '../
|
7
|
+
require_relative '../iso19115_3_writer'
|
8
8
|
require_relative 'class_codelist'
|
9
9
|
require_relative 'class_constraintCommon'
|
10
10
|
|
11
11
|
module ADIWG
|
12
12
|
module Mdtranslator
|
13
13
|
module Writers
|
14
|
-
module
|
14
|
+
module Iso19115_3
|
15
15
|
|
16
16
|
class MD_SecurityConstraints
|
17
17
|
|
18
18
|
def initialize(xml, hResponseObj)
|
19
19
|
@xml = xml
|
20
20
|
@hResponseObj = hResponseObj
|
21
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
21
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
22
22
|
end
|
23
23
|
|
24
24
|
def writeXML(hConstraint, inContext = nil)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> CI_Series
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-15 original script
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module ADIWG
|
8
8
|
module Mdtranslator
|
9
9
|
module Writers
|
10
|
-
module
|
10
|
+
module Iso19115_3
|
11
11
|
|
12
12
|
class CI_Series
|
13
13
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Abstract>> Source
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-09-27 original script.
|
@@ -10,7 +10,7 @@ require_relative 'class_leSource'
|
|
10
10
|
module ADIWG
|
11
11
|
module Mdtranslator
|
12
12
|
module Writers
|
13
|
-
module
|
13
|
+
module Iso19115_3
|
14
14
|
|
15
15
|
class Source
|
16
16
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_spatialRepresentation.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> CI_Series
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-04-16 original script
|
@@ -12,7 +12,7 @@ require_relative 'class_georeferenceable'
|
|
12
12
|
module ADIWG
|
13
13
|
module Mdtranslator
|
14
14
|
module Writers
|
15
|
-
module
|
15
|
+
module Iso19115_3
|
16
16
|
|
17
17
|
class SpatialRepresentation
|
18
18
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_temporalExtent.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> EX_TemporalExtent
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-19 original script
|
@@ -10,7 +10,7 @@ require_relative 'class_timePeriod'
|
|
10
10
|
module ADIWG
|
11
11
|
module Mdtranslator
|
12
12
|
module Writers
|
13
|
-
module
|
13
|
+
module Iso19115_3
|
14
14
|
|
15
15
|
class EX_TemporalExtent
|
16
16
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> TimeInstant
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-19 original script.
|
@@ -9,7 +9,7 @@ require_relative 'class_gmlIdentifier'
|
|
9
9
|
module ADIWG
|
10
10
|
module Mdtranslator
|
11
11
|
module Writers
|
12
|
-
module
|
12
|
+
module Iso19115_3
|
13
13
|
|
14
14
|
class TimeInstant
|
15
15
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> TimePeriod
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-19 original script.
|
@@ -9,7 +9,7 @@ require_relative 'class_gmlIdentifier'
|
|
9
9
|
module ADIWG
|
10
10
|
module Mdtranslator
|
11
11
|
module Writers
|
12
|
-
module
|
12
|
+
module Iso19115_3
|
13
13
|
|
14
14
|
class TimePeriod
|
15
15
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_transferOptions.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> MD_DigitalTransferOptions
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-04-10 original script
|
@@ -11,7 +11,7 @@ require_relative 'class_format'
|
|
11
11
|
module ADIWG
|
12
12
|
module Mdtranslator
|
13
13
|
module Writers
|
14
|
-
module
|
14
|
+
module Iso19115_3
|
15
15
|
|
16
16
|
class MD_DigitalTransferOptions
|
17
17
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_unitsOfMeasure.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> UnitsOfMeasure
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-04-08 copied from 19115_2 writer
|
@@ -12,7 +12,7 @@ require_relative 'class_definitionUnit'
|
|
12
12
|
module ADIWG
|
13
13
|
module Mdtranslator
|
14
14
|
module Writers
|
15
|
-
module
|
15
|
+
module Iso19115_3
|
16
16
|
|
17
17
|
class UnitsOfMeasure
|
18
18
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# ISO <<Class>> MD_Usage
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-25 original script.
|
6
6
|
|
7
|
-
require_relative '../
|
7
|
+
require_relative '../iso19115_3_writer'
|
8
8
|
require_relative 'class_timeInstant'
|
9
9
|
require_relative 'class_timePeriod'
|
10
10
|
require_relative 'class_responsibility'
|
@@ -13,14 +13,14 @@ require_relative 'class_citation'
|
|
13
13
|
module ADIWG
|
14
14
|
module Mdtranslator
|
15
15
|
module Writers
|
16
|
-
module
|
16
|
+
module Iso19115_3
|
17
17
|
|
18
18
|
class MD_Usage
|
19
19
|
|
20
20
|
def initialize(xml, hResponseObj)
|
21
21
|
@xml = xml
|
22
22
|
@hResponseObj = hResponseObj
|
23
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
23
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
24
24
|
end
|
25
25
|
|
26
26
|
def writeXML(hUsage)
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_useConstraints.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> MD_Constraints (Use Constraint)
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-03-18 original script
|
@@ -9,7 +9,7 @@ require_relative 'class_constraintCommon'
|
|
9
9
|
module ADIWG
|
10
10
|
module Mdtranslator
|
11
11
|
module Writers
|
12
|
-
module
|
12
|
+
module Iso19115_3
|
13
13
|
|
14
14
|
class MD_Constraints
|
15
15
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_vectorRepresentation.rb
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ISO <<Class>> MD_VectorSpatialRepresentation
|
2
|
-
# 19115-
|
2
|
+
# 19115-3 writer output in XML
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2019-04-16 original script.
|
@@ -11,7 +11,7 @@ require_relative 'class_scope'
|
|
11
11
|
module ADIWG
|
12
12
|
module Mdtranslator
|
13
13
|
module Writers
|
14
|
-
module
|
14
|
+
module Iso19115_3
|
15
15
|
|
16
16
|
class MD_VectorSpatialRepresentation
|
17
17
|
|
data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_verticalExtent.rb
RENAMED
@@ -1,23 +1,23 @@
|
|
1
1
|
# ISO <<Class>> EX_VerticalExtent
|
2
|
-
# 19115-
|
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 '../
|
7
|
+
require_relative '../iso19115_3_writer'
|
8
8
|
require_relative 'class_referenceSystem'
|
9
9
|
|
10
10
|
module ADIWG
|
11
11
|
module Mdtranslator
|
12
12
|
module Writers
|
13
|
-
module
|
13
|
+
module Iso19115_3
|
14
14
|
|
15
15
|
class EX_VerticalExtent
|
16
16
|
|
17
17
|
def initialize(xml, hResponseObj)
|
18
18
|
@xml = xml
|
19
19
|
@hResponseObj = hResponseObj
|
20
|
-
@NameSpace = ADIWG::Mdtranslator::Writers::
|
20
|
+
@NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
|
21
21
|
end
|
22
22
|
|
23
23
|
def writeXML(hVertEle)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Writer - internal data structure to ISO 19115-
|
1
|
+
# Writer - internal data structure to ISO 19115-3:2014
|
2
2
|
|
3
3
|
# History:
|
4
4
|
# Stan Smith 2019-03-12 original script
|
@@ -9,14 +9,14 @@
|
|
9
9
|
# party - multiple contactInfo{}
|
10
10
|
|
11
11
|
require 'builder'
|
12
|
-
require 'adiwg/mdtranslator/writers/
|
12
|
+
require 'adiwg/mdtranslator/writers/iso19115_3/version'
|
13
13
|
require 'adiwg/mdtranslator/internal/module_dateTimeFun'
|
14
14
|
require_relative 'classes/class_mdMetadata'
|
15
15
|
|
16
16
|
module ADIWG
|
17
17
|
module Mdtranslator
|
18
18
|
module Writers
|
19
|
-
module
|
19
|
+
module Iso19115_3
|
20
20
|
|
21
21
|
def self.startWriter(intObj, hResponseObj)
|
22
22
|
|
@@ -25,18 +25,18 @@ module ADIWG
|
|
25
25
|
@hResponseObj = hResponseObj
|
26
26
|
|
27
27
|
# load error message array
|
28
|
-
file = File.join(File.dirname(__FILE__), '
|
28
|
+
file = File.join(File.dirname(__FILE__), 'iso19115_3_writer_messages_eng') + '.yml'
|
29
29
|
hMessageList = YAML.load_file(file)
|
30
30
|
@aMessagesList = hMessageList['messageList']
|
31
31
|
|
32
32
|
# set the format of the output file based on the writer specified
|
33
33
|
hResponseObj[:writerOutputFormat] = 'xml'
|
34
|
-
hResponseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::
|
34
|
+
hResponseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::Iso19115_3::VERSION
|
35
35
|
|
36
36
|
# create new XML document
|
37
37
|
@xml = Builder::XmlMarkup.new(indent: 3)
|
38
38
|
|
39
|
-
# start writing the ISO 19115-
|
39
|
+
# start writing the ISO 19115-3 XML record
|
40
40
|
metadataWriter = MD_Metadata.new(@xml, hResponseObj)
|
41
41
|
metadata = metadataWriter.writeXML(intObj)
|
42
42
|
|
@@ -69,7 +69,7 @@ module ADIWG
|
|
69
69
|
message = findMessage(messageId)
|
70
70
|
unless message.nil?
|
71
71
|
message += ': CONTEXT is ' + context unless context.nil?
|
72
|
-
@hResponseObj[:writerMessages] << 'ERROR: ISO-19115-
|
72
|
+
@hResponseObj[:writerMessages] << 'ERROR: ISO-19115-3 writer: ' + message
|
73
73
|
@hResponseObj[:writerPass] = false
|
74
74
|
end
|
75
75
|
end
|
@@ -83,10 +83,10 @@ module ADIWG
|
|
83
83
|
issueError(messageId, context)
|
84
84
|
else
|
85
85
|
@xml.tag!(tag, {'gco:nilReason' => 'missing'})
|
86
|
-
@hResponseObj[:writerMessages] << 'WARNING: ISO-19115-
|
86
|
+
@hResponseObj[:writerMessages] << 'WARNING: ISO-19115-3 writer: ' + message
|
87
87
|
end
|
88
88
|
else
|
89
|
-
@hResponseObj[:writerMessages] << 'WARNING: ISO-19115-
|
89
|
+
@hResponseObj[:writerMessages] << 'WARNING: ISO-19115-3 writer: ' + message
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
@@ -95,7 +95,7 @@ module ADIWG
|
|
95
95
|
message = findMessage(messageId)
|
96
96
|
unless message.nil?
|
97
97
|
message += ': CONTEXT is ' + context unless context.nil?
|
98
|
-
@hResponseObj[:writerMessages] << 'NOTICE: ISO-19115-
|
98
|
+
@hResponseObj[:writerMessages] << 'NOTICE: ISO-19115-3 writer: ' + message
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
|
2
|
-
##
|
2
|
+
## iso19115_3
|
3
3
|
|
4
|
-
### Writer for ISO 19115-
|
4
|
+
### Writer for ISO 19115-3:2014 Geographic Metadata
|
5
5
|
|
6
|
-
The mdTranslator
|
6
|
+
The mdTranslator iso19115_3 writer implements approximately 95% of
|
7
7
|
the for ISO 19115-3:2014 standard. Efforts were made to include all
|
8
8
|
elements of the ISO standard that support general data descriptions
|
9
9
|
to ensure generation of health and robust project and data metadata
|
@@ -28,8 +28,8 @@ module ADIWG
|
|
28
28
|
json.recipientId hAllocation[:recipientId]
|
29
29
|
json.responsibleParty @Namespace.json_map(hAllocation[:responsibleParties], ResponsibleParty)
|
30
30
|
json.matching hAllocation[:matching]
|
31
|
-
json.onlineResource @Namespace.json_map(hAllocation[:onlineResources], OnlineResource)
|
32
31
|
json.comment hAllocation[:comment]
|
32
|
+
json.onlineResource @Namespace.json_map(hAllocation[:onlineResources], OnlineResource)
|
33
33
|
end
|
34
34
|
|
35
35
|
end # build
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'jbuilder'
|
2
|
+
require_relative 'mdJson_scope'
|
3
|
+
require_relative 'mdJson_spatialRepresentation'
|
4
|
+
require_relative 'mdJson_format'
|
5
|
+
require_relative 'mdJson_qualityResultFile'
|
6
|
+
require_relative 'mdJson_coverageDescription'
|
7
|
+
|
8
|
+
module ADIWG
|
9
|
+
module Mdtranslator
|
10
|
+
module Writers
|
11
|
+
module MdJson
|
12
|
+
|
13
|
+
module CoverageResult
|
14
|
+
def self.build(hCoverageResult)
|
15
|
+
Jbuilder.new do |json|
|
16
|
+
json.dateTime hCoverageResult[:dateTime]
|
17
|
+
json.scope Scope.build(hCoverageResult[:scope]) unless hCoverageResult[:scope].empty?
|
18
|
+
json.spatialRepresentationType hCoverageResult[:spatialRepresentationType]
|
19
|
+
json.spatialRepresentation SpatialRepresentation.build(hCoverageResult[:spatialRepresentation]) unless hCoverageResult[:spatialRepresentation].empty?
|
20
|
+
json.resultContentDescription CoverageDescription.build(hCoverageResult[:resultContentDescription]) unless hCoverageResult[:resultContentDescription].empty?
|
21
|
+
json.resourceFormat Format.build(hCoverageResult[:resourceFormat]) unless hCoverageResult[:resourceFormat].empty?
|
22
|
+
json.resultFile QualityResultFile.build(hCoverageResult[:resultFile]) unless hCoverageResult[:resultFile].empty?
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -3,6 +3,8 @@
|
|
3
3
|
require 'jbuilder'
|
4
4
|
require_relative 'mdJson_scope'
|
5
5
|
require_relative 'mdJson_dataQualityReport'
|
6
|
+
require_relative 'mdJson_citation'
|
7
|
+
require_relative 'mdJson_standaloneQualityReport'
|
6
8
|
|
7
9
|
module ADIWG
|
8
10
|
module Mdtranslator
|
@@ -17,7 +19,7 @@ module ADIWG
|
|
17
19
|
Jbuilder.new do |json|
|
18
20
|
json.scope Scope.build(hDataQuality[:scope])
|
19
21
|
json.systemIdentifier hDataQuality[:systemIdentifier]
|
20
|
-
json.standaloneQualityReport hDataQuality[:
|
22
|
+
json.standaloneQualityReport StandaloneQualityReport.build(hDataQuality[:standaloneReport]) unless hDataQuality[:standaloneReport].nil?
|
21
23
|
json.report @Namespace.json_map(hDataQuality[:report], DataQualityReport)
|
22
24
|
end
|
23
25
|
|
@@ -1,9 +1,10 @@
|
|
1
1
|
require 'jbuilder'
|
2
|
-
require_relative 'mdJson_conformanceResult'
|
3
|
-
require_relative 'mdJson_descriptiveResult'
|
4
2
|
require_relative 'mdJson_qualityMeasure'
|
5
|
-
require_relative 'mdJson_quantitativeResult'
|
6
3
|
require_relative 'mdJson_evaluationMethod'
|
4
|
+
require_relative 'mdJson_quantitativeResult'
|
5
|
+
require_relative 'mdJson_descriptiveResult'
|
6
|
+
require_relative 'mdJson_conformanceResult'
|
7
|
+
require_relative 'mdJson_coverageResult'
|
7
8
|
|
8
9
|
module ADIWG
|
9
10
|
module Mdtranslator
|
@@ -16,13 +17,14 @@ module ADIWG
|
|
16
17
|
|
17
18
|
def self.build(hReport)
|
18
19
|
Jbuilder.new do |json|
|
19
|
-
json.type hReport[:type]
|
20
|
-
json.
|
21
|
-
json.
|
22
|
-
json.evaluationMethod EvaluationMethod.build(hReport[:evaluationMethod]) unless hReport[:evaluationMethod].
|
23
|
-
json.
|
24
|
-
json.
|
25
|
-
|
20
|
+
json.type hReport[:type] unless hReport[:type].nil?
|
21
|
+
json.standaloneQualityReportDetails hReport[:standaloneQualityReportDetails] unless hReport[:standaloneQualityReportDetails].nil?
|
22
|
+
json.qualityMeasure QualityMeasure.build(hReport[:qualityMeasure]) unless hReport[:qualityMeasure].empty?
|
23
|
+
json.evaluationMethod EvaluationMethod.build(hReport[:evaluationMethod]) unless hReport[:evaluationMethod].empty?
|
24
|
+
json.quantitativeResult @Namespace.json_map(hReport[:quantitativeResult], QuantitativeResult) unless hReport[:quantitativeResult].empty?
|
25
|
+
json.descriptiveResult @Namespace.json_map(hReport[:descriptiveResult], DescriptiveResult) unless hReport[:descriptiveResult].empty?
|
26
|
+
json.conformanceResult @Namespace.json_map(hReport[:conformanceResult], ConformanceResult) unless hReport[:conformanceResult].empty?
|
27
|
+
json.coverageResult @Namespace.json_map(hReport[:coverageResult], CoverageResult) unless hReport[:coverageResult].empty?
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -9,9 +9,9 @@ module ADIWG
|
|
9
9
|
module DescriptiveResult
|
10
10
|
def self.build(hResult)
|
11
11
|
Jbuilder.new do |json|
|
12
|
-
json.dateTime hResult[:dateTime]
|
13
|
-
json.scope Scope.build(hResult[:scope]) unless hResult[:scope].
|
14
|
-
json.statement hResult[:statement]
|
12
|
+
json.dateTime hResult[:dateTime] unless hResult[:dateTime].nil?
|
13
|
+
json.scope Scope.build(hResult[:scope]) unless hResult[:scope].empty?
|
14
|
+
json.statement hResult[:statement] unless hResult[:statement].nil?
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -20,9 +20,9 @@ module ADIWG
|
|
20
20
|
def self.build(hFunding)
|
21
21
|
|
22
22
|
Jbuilder.new do |json|
|
23
|
-
json.description hFunding[:description]
|
24
|
-
json.timePeriod TimePeriod.build(hFunding[:timePeriod]) unless hFunding[:timePeriod].empty?
|
25
23
|
json.allocation @Namespace.json_map(hFunding[:allocations], Allocation)
|
24
|
+
json.timePeriod TimePeriod.build(hFunding[:timePeriod]) unless hFunding[:timePeriod].empty?
|
25
|
+
json.description hFunding[:description]
|
26
26
|
end
|
27
27
|
|
28
28
|
end # build
|