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
@@ -0,0 +1,179 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# data attribute
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-11-03 added new elements for fgdc
|
6
|
+
# Stan Smith 2017-04-05 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-03-26 original script
|
8
|
+
|
9
|
+
require_relative 'html_timePeriod'
|
10
|
+
require_relative 'html_citation'
|
11
|
+
|
12
|
+
module ADIWG
|
13
|
+
module Mdtranslator
|
14
|
+
module Writers
|
15
|
+
module Simple_html
|
16
|
+
|
17
|
+
class Html_EntityAttribute
|
18
|
+
|
19
|
+
def initialize(html)
|
20
|
+
@html = html
|
21
|
+
end
|
22
|
+
|
23
|
+
def writeHtml(hAttribute)
|
24
|
+
|
25
|
+
# classes used
|
26
|
+
periodClass = Html_TimePeriod.new(@html)
|
27
|
+
citationClass = Html_Citation.new(@html)
|
28
|
+
|
29
|
+
# entity attribute - common name
|
30
|
+
unless hAttribute[:attributeName].nil?
|
31
|
+
@html.em('Name: ')
|
32
|
+
@html.text!(hAttribute[:attributeName])
|
33
|
+
@html.br
|
34
|
+
end
|
35
|
+
|
36
|
+
# entity attribute - code name
|
37
|
+
unless hAttribute[:attributeCode].nil?
|
38
|
+
@html.em('Code: ')
|
39
|
+
@html.text!(hAttribute[:attributeCode])
|
40
|
+
@html.br
|
41
|
+
end
|
42
|
+
|
43
|
+
# entity attribute - aliases
|
44
|
+
hAttribute[:attributeAlias].each do |otherName|
|
45
|
+
@html.em('Alias: ')
|
46
|
+
@html.text!(otherName)
|
47
|
+
@html.br
|
48
|
+
end
|
49
|
+
|
50
|
+
# entity attribute - definition
|
51
|
+
unless hAttribute[:attributeDefinition].nil?
|
52
|
+
@html.em('Definition: ')
|
53
|
+
@html.div(:class => 'block') do
|
54
|
+
@html.text!(hAttribute[:attributeDefinition])
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# entity attribute - datatype
|
59
|
+
unless hAttribute[:dataType].nil?
|
60
|
+
@html.em('Datatype: ')
|
61
|
+
@html.text!(hAttribute[:dataType])
|
62
|
+
@html.br
|
63
|
+
end
|
64
|
+
|
65
|
+
# entity attribute - allow nulls {Boolean}
|
66
|
+
@html.em('Allow NULL Values: ')
|
67
|
+
@html.text!(hAttribute[:allowNull].to_s)
|
68
|
+
@html.br
|
69
|
+
|
70
|
+
# entity attribute - must be unique {Boolean}
|
71
|
+
@html.em('Attribute Values Must Be Unique: ')
|
72
|
+
@html.text!(hAttribute[:mustBeUnique].to_s)
|
73
|
+
@html.br
|
74
|
+
|
75
|
+
# entity attribute - unit of measure
|
76
|
+
unless hAttribute[:unitOfMeasure].nil?
|
77
|
+
@html.em('Unit of Measure: ')
|
78
|
+
@html.text!(hAttribute[:unitOfMeasure])
|
79
|
+
@html.br
|
80
|
+
end
|
81
|
+
|
82
|
+
# entity attribute - measure resolution {real}
|
83
|
+
unless hAttribute[:measureResolution].nil?
|
84
|
+
@html.em('Unit of Measure Resolution: ')
|
85
|
+
@html.text!(hAttribute[:measureResolution].to_s)
|
86
|
+
@html.br
|
87
|
+
end
|
88
|
+
|
89
|
+
# entity attribute - case sensitive {Boolean}
|
90
|
+
@html.em('Value is Case Sensitive: ')
|
91
|
+
@html.text!(hAttribute[:isCaseSensitive].to_s)
|
92
|
+
@html.br
|
93
|
+
|
94
|
+
# entity attribute - field width {integer}
|
95
|
+
unless hAttribute[:fieldWidth].nil?
|
96
|
+
@html.em('Field Width: ')
|
97
|
+
@html.text!(hAttribute[:fieldWidth].to_s)
|
98
|
+
@html.br
|
99
|
+
end
|
100
|
+
|
101
|
+
# entity attribute - missing value
|
102
|
+
unless hAttribute[:missingValue].nil?
|
103
|
+
@html.em('Missing Value: ')
|
104
|
+
@html.text!(hAttribute[:missingValue])
|
105
|
+
@html.br
|
106
|
+
end
|
107
|
+
|
108
|
+
# entity attribute - domain ID
|
109
|
+
unless hAttribute[:domainId].nil?
|
110
|
+
@html.em('Domain ID: ')
|
111
|
+
@html.text!(hAttribute[:domainId])
|
112
|
+
@html.br
|
113
|
+
end
|
114
|
+
|
115
|
+
# entity attribute - minimum value
|
116
|
+
unless hAttribute[:minValue].nil?
|
117
|
+
@html.em('Minimum Value: ')
|
118
|
+
@html.text!(hAttribute[:minValue].to_s)
|
119
|
+
@html.br
|
120
|
+
end
|
121
|
+
|
122
|
+
# entity attribute - code name
|
123
|
+
unless hAttribute[:maxValue].nil?
|
124
|
+
@html.em('Maximum Value: ')
|
125
|
+
@html.text!(hAttribute[:maxValue].to_s)
|
126
|
+
@html.br
|
127
|
+
end
|
128
|
+
|
129
|
+
# entity attribute - range of values [] {citation}
|
130
|
+
hAttribute[:valueRange].each do |hRange|
|
131
|
+
@html.div do
|
132
|
+
@html.h5('Range of Values', {'class' => 'h5'})
|
133
|
+
@html.div(:class => 'block') do
|
134
|
+
|
135
|
+
# range of values - minimum value
|
136
|
+
unless hRange[:minRangeValue].nil?
|
137
|
+
@html.em('Range Minimum: ')
|
138
|
+
@html.text!(hRange[:minRangeValue].to_s)
|
139
|
+
@html.br
|
140
|
+
end
|
141
|
+
|
142
|
+
# range of values - maximum value
|
143
|
+
unless hRange[:maxRangeValue].nil?
|
144
|
+
@html.em('Range Maximum: ')
|
145
|
+
@html.text!(hRange[:maxRangeValue].to_s)
|
146
|
+
@html.br
|
147
|
+
end
|
148
|
+
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# entity attribute - time period of values {timePeriod}
|
154
|
+
hAttribute[:timePeriod].each do |hPeriod|
|
155
|
+
@html.div do
|
156
|
+
@html.h5('Time Period of Values', {'class' => 'h5'})
|
157
|
+
@html.div(:class => 'block') do
|
158
|
+
periodClass.writeHtml(hPeriod)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# entity attribute - attribute reference {citation}
|
164
|
+
unless hAttribute[:attributeReference].empty?
|
165
|
+
@html.div do
|
166
|
+
@html.h5('Reference', {'class' => 'h5'})
|
167
|
+
@html.div(:class => 'block') do
|
168
|
+
citationClass.writeHtml(hAttribute[:attributeReference])
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
end # writeHtml
|
174
|
+
end # Html_EntityAttribute
|
175
|
+
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# entity foreign key
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-05 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_EntityForeignKey
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hKey)
|
19
|
+
|
20
|
+
# foreign key - attributes []
|
21
|
+
unless hKey[:fkLocalAttributes].empty?
|
22
|
+
@html.em('Local Attribute(s):')
|
23
|
+
@html.div(:class => 'block') do
|
24
|
+
hKey[:fkLocalAttributes].each do |attribute|
|
25
|
+
@html.text!(attribute)
|
26
|
+
@html.br
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# foreign key - referenced entity
|
32
|
+
unless hKey[:fkReferencedEntity].nil?
|
33
|
+
@html.em('Referenced Entity Code: ')
|
34
|
+
@html.text!(hKey[:fkReferencedEntity])
|
35
|
+
@html.br
|
36
|
+
end
|
37
|
+
|
38
|
+
# foreign key - referenced attributes []
|
39
|
+
unless hKey[:fkReferencedAttributes].empty?
|
40
|
+
@html.em('Referenced Attribute(s):')
|
41
|
+
@html.div(:class => 'block') do
|
42
|
+
hKey[:fkReferencedAttributes].each do |attribute|
|
43
|
+
@html.text!(attribute)
|
44
|
+
@html.br
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end # writeHtml
|
50
|
+
end # Html_EntityForeignKey
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# entity index
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-05 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-03-26 original script
|
7
|
+
|
8
|
+
module ADIWG
|
9
|
+
module Mdtranslator
|
10
|
+
module Writers
|
11
|
+
module Simple_html
|
12
|
+
|
13
|
+
class Html_EntityIndex
|
14
|
+
|
15
|
+
def initialize(html)
|
16
|
+
@html = html
|
17
|
+
end
|
18
|
+
|
19
|
+
def writeHtml(hIndex)
|
20
|
+
|
21
|
+
# entity index - name
|
22
|
+
unless hIndex[:indexCode].nil?
|
23
|
+
@html.em('Code: ')
|
24
|
+
@html.text!(hIndex[:indexCode])
|
25
|
+
@html.br
|
26
|
+
end
|
27
|
+
|
28
|
+
# entity index - duplicate {Boolean}
|
29
|
+
@html.em('Allow Duplicates: ')
|
30
|
+
@html.text!(hIndex[:duplicate].to_s)
|
31
|
+
@html.br
|
32
|
+
|
33
|
+
# entity index - attribute names
|
34
|
+
unless hIndex[:attributeNames].empty?
|
35
|
+
@html.em('Index Attribute(s):')
|
36
|
+
@html.div(:class => 'block') do
|
37
|
+
hIndex[:attributeNames].each do |attribute|
|
38
|
+
@html.text!(attribute)
|
39
|
+
@html.br
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end # writeHtml
|
45
|
+
end # Html_EntityIndex
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# extents (geographic, temporal, vertical)
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-06 refactor for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
7
|
+
# Stan Smith 2015-03-31 original script
|
8
|
+
|
9
|
+
require_relative 'html_geographicExtent'
|
10
|
+
require_relative 'html_temporalExtent'
|
11
|
+
require_relative 'html_verticalExtent'
|
12
|
+
|
13
|
+
module ADIWG
|
14
|
+
module Mdtranslator
|
15
|
+
module Writers
|
16
|
+
module Simple_html
|
17
|
+
|
18
|
+
class Html_Extent
|
19
|
+
|
20
|
+
def initialize(html)
|
21
|
+
@html = html
|
22
|
+
end
|
23
|
+
|
24
|
+
def writeHtml(hExtent)
|
25
|
+
|
26
|
+
# classes used
|
27
|
+
geographicClass = Html_GeographicExtent.new(@html)
|
28
|
+
temporalClass = Html_TemporalExtent.new(@html)
|
29
|
+
verticalClass = Html_VerticalExtent.new(@html)
|
30
|
+
|
31
|
+
# extent - description
|
32
|
+
unless hExtent[:description].nil?
|
33
|
+
@html.em('Description: ')
|
34
|
+
@html.div(:class => 'block') do
|
35
|
+
@html.text!(hExtent[:description])
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# extent - geographic extents
|
40
|
+
hExtent[:geographicExtents].each do |hGeographic|
|
41
|
+
@html.div do
|
42
|
+
@html.h5('Geographic Extent', {'class' => 'h5'})
|
43
|
+
@html.div(:class => 'block extent-geographic') do
|
44
|
+
geographicClass.writeHtml(hGeographic)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# extent - temporal extents
|
50
|
+
hExtent[:temporalExtents].each do |hTemporal|
|
51
|
+
@html.div do
|
52
|
+
@html.h5('Temporal Extent', {'class' => 'h5'})
|
53
|
+
@html.div(:class => 'block') do
|
54
|
+
temporalClass.writeHtml(hTemporal)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# extent - vertical extents
|
60
|
+
hExtent[:verticalExtents].each do |hVertical|
|
61
|
+
@html.div do
|
62
|
+
@html.h5('Vertical Extent', {'class' => 'h5'})
|
63
|
+
@html.div(:class => 'block') do
|
64
|
+
verticalClass.writeHtml(hVertical)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end # writeHtml
|
70
|
+
end # Html_Extent
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# feature
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-08 original script
|
6
|
+
|
7
|
+
require_relative 'html_geometryObject'
|
8
|
+
require_relative 'html_boundingBox'
|
9
|
+
require_relative 'html_featureProperties'
|
10
|
+
|
11
|
+
module ADIWG
|
12
|
+
module Mdtranslator
|
13
|
+
module Writers
|
14
|
+
module Simple_html
|
15
|
+
|
16
|
+
class Html_Feature
|
17
|
+
|
18
|
+
def initialize(html)
|
19
|
+
@html = html
|
20
|
+
end
|
21
|
+
|
22
|
+
def writeHtml(hFeature)
|
23
|
+
|
24
|
+
# classes used
|
25
|
+
geometryClass = Html_GeometryObject.new(@html)
|
26
|
+
boxClass = Html_BoundingBox.new(@html)
|
27
|
+
propertyClass = Html_FeatureProperty.new(@html)
|
28
|
+
|
29
|
+
# feature - id
|
30
|
+
unless hFeature[:id].nil?
|
31
|
+
@html.em('ID: ')
|
32
|
+
@html.text!(hFeature[:id])
|
33
|
+
@html.br
|
34
|
+
end
|
35
|
+
|
36
|
+
# feature - geometry object
|
37
|
+
unless hFeature[:geometryObject].empty?
|
38
|
+
@html.div do
|
39
|
+
@html.h5(hFeature[:geometryObject][:type], 'class' => 'h5')
|
40
|
+
@html.div(:class => 'block') do
|
41
|
+
geometryClass.writeHtml(hFeature[:geometryObject])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# feature - user bounding box
|
47
|
+
unless hFeature[:bbox].empty?
|
48
|
+
@html.div do
|
49
|
+
@html.h5('User Provided Bounding Box', 'class' => 'h5')
|
50
|
+
@html.div(:class => 'block') do
|
51
|
+
bbox = {}
|
52
|
+
bbox[:westLongitude] = hFeature[:bbox][0]
|
53
|
+
bbox[:eastLongitude] = hFeature[:bbox][2]
|
54
|
+
bbox[:southLatitude] = hFeature[:bbox][1]
|
55
|
+
bbox[:northLatitude] = hFeature[:bbox][3]
|
56
|
+
boxClass.writeHtml(bbox)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# feature - computed bounding box
|
62
|
+
unless hFeature[:computedBbox].empty?
|
63
|
+
@html.div do
|
64
|
+
@html.h5('Computed Bounding Box', 'class' => 'h5')
|
65
|
+
@html.div(:class => 'block') do
|
66
|
+
boxClass.writeHtml(hFeature[:computedBbox])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# feature - properties
|
72
|
+
unless hFeature[:properties].empty?
|
73
|
+
@html.div do
|
74
|
+
@html.h5('Properties', 'class' => 'h5')
|
75
|
+
@html.div(:class => 'block') do
|
76
|
+
propertyClass.writeHtml(hFeature[:properties])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# feature - native GeoJson
|
82
|
+
unless hFeature[:nativeGeoJson].empty?
|
83
|
+
@html.div do
|
84
|
+
@html.h5('GeoJson', 'class' => 'h5')
|
85
|
+
@html.div(:class => 'block') do
|
86
|
+
@html.text!(hFeature[:nativeGeoJson].to_json)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
end # writeHtml
|
92
|
+
end # Html_Feature
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# feature collection
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-08 original script
|
6
|
+
|
7
|
+
require_relative 'html_feature'
|
8
|
+
require_relative 'html_boundingBox'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_FeatureCollection
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hCollection)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
featureClass = Html_Feature.new(@html)
|
25
|
+
boxClass = Html_BoundingBox.new(@html)
|
26
|
+
|
27
|
+
# feature collection - feature [] {feature}
|
28
|
+
hCollection[:features].each do |feature|
|
29
|
+
@html.div do
|
30
|
+
title = 'Feature'
|
31
|
+
unless feature[:id].nil?
|
32
|
+
title += ': '+feature[:id].to_s
|
33
|
+
end
|
34
|
+
@html.h5(title, 'class' => 'h5')
|
35
|
+
@html.div(:class => 'block') do
|
36
|
+
featureClass.writeHtml(feature)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# feature collection - user bounding box
|
42
|
+
unless hCollection[:bbox].empty?
|
43
|
+
@html.div do
|
44
|
+
@html.h5('User Provided Bounding Box', 'class' => 'h5')
|
45
|
+
@html.div(:class => 'block') do
|
46
|
+
bbox = {}
|
47
|
+
bbox[:westLongitude] = hCollection[:bbox][0]
|
48
|
+
bbox[:eastLongitude] = hCollection[:bbox][2]
|
49
|
+
bbox[:southLatitude] = hCollection[:bbox][1]
|
50
|
+
bbox[:northLatitude] = hCollection[:bbox][3]
|
51
|
+
boxClass.writeHtml(bbox)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# feature collection - computed bounding box
|
57
|
+
unless hCollection[:computedBbox].empty?
|
58
|
+
@html.div do
|
59
|
+
@html.h5('Computed Bounding Box', 'class' => 'h5')
|
60
|
+
@html.div(:class => 'block') do
|
61
|
+
boxClass.writeHtml(hCollection[:computedBbox])
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# feature collection - native GeoJson
|
67
|
+
unless hCollection[:nativeGeoJson].empty?
|
68
|
+
@html.div do
|
69
|
+
@html.h5('GeoJson', 'class' => 'h5')
|
70
|
+
@html.div(:class => 'block') do
|
71
|
+
@html.text!(hCollection[:nativeGeoJson].to_json)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end # writeHtml
|
77
|
+
end # Html_FeatureCollection
|
78
|
+
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# feature properties
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-08 original script
|
6
|
+
|
7
|
+
require_relative 'html_identifier'
|
8
|
+
|
9
|
+
module ADIWG
|
10
|
+
module Mdtranslator
|
11
|
+
module Writers
|
12
|
+
module Simple_html
|
13
|
+
|
14
|
+
class Html_FeatureProperty
|
15
|
+
|
16
|
+
def initialize(html)
|
17
|
+
@html = html
|
18
|
+
end
|
19
|
+
|
20
|
+
def writeHtml(hProperty)
|
21
|
+
|
22
|
+
# classes used
|
23
|
+
identifierClass = Html_Identifier.new(@html)
|
24
|
+
|
25
|
+
# feature properties - name []
|
26
|
+
hProperty[:featureNames].each do |feature|
|
27
|
+
@html.em('Feature Name: ')
|
28
|
+
@html.text!(feature)
|
29
|
+
@html.br
|
30
|
+
end
|
31
|
+
|
32
|
+
# feature properties - description
|
33
|
+
unless hProperty[:description].nil?
|
34
|
+
@html.em('Description: ')
|
35
|
+
@html.div(:class => 'block') do
|
36
|
+
@html.text!(hProperty[:description])
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# feature properties - identifier [] {identifier}
|
41
|
+
hProperty[:identifiers].each do |hIdentifier|
|
42
|
+
@html.div do
|
43
|
+
@html.h5('Identifier', 'class' => 'h5')
|
44
|
+
@html.div(:class => 'block') do
|
45
|
+
identifierClass.writeHtml(hIdentifier)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# feature properties - feature scope {scopeCode}
|
51
|
+
unless hProperty[:featureScope].nil?
|
52
|
+
@html.em('Feature Scope Code: ')
|
53
|
+
@html.text!(hProperty[:featureScope])
|
54
|
+
@html.br
|
55
|
+
end
|
56
|
+
|
57
|
+
# feature properties - acquisition method
|
58
|
+
unless hProperty[:featureScope].nil?
|
59
|
+
@html.em('Acquisition Method: ')
|
60
|
+
@html.div(:class => 'block') do
|
61
|
+
@html.text!(hProperty[:acquisitionMethod])
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end # writeHtml
|
66
|
+
end # Html_FeatureProperty
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# format
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2018-02-05 add 'technicalPrerequisite'
|
6
|
+
# Stan Smith 2017-04-03 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-09-21 added compression method element
|
8
|
+
# Stan Smith 2015-03-27 original script
|
9
|
+
|
10
|
+
require_relative 'html_citation'
|
11
|
+
|
12
|
+
module ADIWG
|
13
|
+
module Mdtranslator
|
14
|
+
module Writers
|
15
|
+
module Simple_html
|
16
|
+
|
17
|
+
class Html_Format
|
18
|
+
|
19
|
+
def initialize(html)
|
20
|
+
@html = html
|
21
|
+
end
|
22
|
+
|
23
|
+
def writeHtml(hFormat)
|
24
|
+
|
25
|
+
# classes used
|
26
|
+
citationClass = Html_Citation.new(@html)
|
27
|
+
|
28
|
+
# resource format - format specification {citation}
|
29
|
+
unless hFormat[:formatSpecification].empty?
|
30
|
+
@html.div do
|
31
|
+
@html.h5(hFormat[:formatSpecification][:title], {'class' => 'h5'})
|
32
|
+
@html.div(:class => 'block') do
|
33
|
+
citationClass.writeHtml(hFormat[:formatSpecification])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# resource format - amendment number
|
39
|
+
unless hFormat[:amendmentNumber].nil?
|
40
|
+
@html.em('Amendment Number: ')
|
41
|
+
@html.text!(hFormat[:amendmentNumber])
|
42
|
+
@html.br
|
43
|
+
end
|
44
|
+
|
45
|
+
# resource format - compression method
|
46
|
+
unless hFormat[:compressionMethod].nil?
|
47
|
+
@html.em('Compression Method: ')
|
48
|
+
@html.text!(hFormat[:compressionMethod])
|
49
|
+
@html.br
|
50
|
+
end
|
51
|
+
|
52
|
+
# distribution - technical prerequisite
|
53
|
+
unless hFormat[:technicalPrerequisite].nil?
|
54
|
+
@html.em('Technical Prerequisite:')
|
55
|
+
@html.div(:class => 'block') do
|
56
|
+
@html.text!(hFormat[:technicalPrerequisite])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end # writeHtml
|
61
|
+
end # Html_Format
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|