adiwg-mdtranslator 2.18.1 → 2.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +84 -0
- data/Rakefile +1 -1
- data/adiwg-mdtranslator.gemspec +5 -5
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalPlanar.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialDomain.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_distribution.rb +8 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_responsibleParty.rb +1 -1
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_distribution.rb +24 -2
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_entityDetail.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb +1 -0
- data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialDomain.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +32 -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_1 → iso19115_3}/classes/class_dataQualityReport.rb +1 -1
- 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 +24 -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_1 → iso19115_3}/classes/class_rangeDimension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/{iso19115_1 → iso19115_3}/classes/class_rangeElementDescription.rb +4 -4
- 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/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 +324 -0
- data/lib/adiwg/mdtranslator/writers/simple_html/sections/html_bodyScript.js +317 -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 +202 -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 +60 -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 +120 -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_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 +221 -115
- data/lib/adiwg/mdtranslator/writers/iso19115_1/version.rb +0 -15
@@ -0,0 +1,42 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# datetime
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-03-25 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_Datetime
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hDatetime)
|
19
|
+
|
20
|
+
date = hDatetime[:dateTime]
|
21
|
+
dateRes = hDatetime[:dateResolution]
|
22
|
+
dateStr = ''
|
23
|
+
|
24
|
+
unless date.nil?
|
25
|
+
case dateRes
|
26
|
+
when 'Y', 'YM', 'YMD'
|
27
|
+
dateStr = AdiwgDateTimeFun.stringDateFromDateTime(date, dateRes)
|
28
|
+
else
|
29
|
+
dateStr = AdiwgDateTimeFun.stringDateTimeFromDateTime(date, dateRes)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# datetime - return string
|
34
|
+
dateStr.to_s
|
35
|
+
|
36
|
+
end # writeHtml
|
37
|
+
end # Html_Datetime
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# dimension information
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-28 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-07-31 original script
|
7
|
+
|
8
|
+
require_relative 'html_measure'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_Dimension
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hDimension)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
measureClass = Html_Measure.new(@html)
|
25
|
+
|
26
|
+
# dimension - type
|
27
|
+
unless hDimension[:dimensionType].nil?
|
28
|
+
@html.em('Type: ')
|
29
|
+
@html.text!(hDimension[:dimensionType])
|
30
|
+
@html.br
|
31
|
+
end
|
32
|
+
|
33
|
+
# dimension - title
|
34
|
+
unless hDimension[:dimensionTitle].nil?
|
35
|
+
@html.em('Title: ')
|
36
|
+
@html.text!(hDimension[:dimensionTitle])
|
37
|
+
@html.br
|
38
|
+
end
|
39
|
+
|
40
|
+
# dimension - description
|
41
|
+
unless hDimension[:dimensionDescription].nil?
|
42
|
+
@html.em('Description: ')
|
43
|
+
@html.div(:class => 'block') do
|
44
|
+
@html.text!(hDimension[:dimensionDescription])
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# dimension - size
|
49
|
+
unless hDimension[:dimensionSize].nil?
|
50
|
+
@html.em('Number of elements along Axis: ')
|
51
|
+
@html.text!(hDimension[:dimensionSize].to_s)
|
52
|
+
@html.br
|
53
|
+
end
|
54
|
+
|
55
|
+
# dimension - resolution {resolution}
|
56
|
+
unless hDimension[:resolution].empty?
|
57
|
+
@html.em('Resolution:')
|
58
|
+
@html.div(:class => 'block') do
|
59
|
+
measureClass.writeHtml(hDimension[:resolution])
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end # writeHtml
|
64
|
+
end # Html_Dimension
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# distribution
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2018-01-29 add liabilityStatement
|
6
|
+
# Stan Smith 2017-04-04 original script
|
7
|
+
|
8
|
+
require_relative 'html_distributor'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_Distribution
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hDistribution)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
distributorClass = Html_Distributor.new(@html)
|
25
|
+
|
26
|
+
# distribution - description
|
27
|
+
unless hDistribution[:description].nil?
|
28
|
+
@html.em('Description:')
|
29
|
+
@html.div(:class => 'block') do
|
30
|
+
@html.text!(hDistribution[:description])
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# distribution - liability statement
|
35
|
+
unless hDistribution[:liabilityStatement].nil?
|
36
|
+
@html.em('Liability Statement:')
|
37
|
+
@html.div(:class => 'block') do
|
38
|
+
@html.text!(hDistribution[:liabilityStatement])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# distribution - distributor [] {distributor}
|
43
|
+
hDistribution[:distributor].each do |hDistributor|
|
44
|
+
@html.div do
|
45
|
+
@html.div('Distributor', {'class' => 'h5'})
|
46
|
+
@html.div(:class => 'block') do
|
47
|
+
distributorClass.writeHtml(hDistributor)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end # writeHtml
|
53
|
+
end # Html_Distribution
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# distributor
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-04 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-08-21 original script
|
7
|
+
|
8
|
+
require_relative 'html_responsibility'
|
9
|
+
require_relative 'html_orderProcess'
|
10
|
+
require_relative 'html_transferOption'
|
11
|
+
|
12
|
+
module ADIWG
|
13
|
+
module Mdtranslator
|
14
|
+
module Writers
|
15
|
+
module Simple_html
|
16
|
+
|
17
|
+
class Html_Distributor
|
18
|
+
|
19
|
+
def initialize(html)
|
20
|
+
@html = html
|
21
|
+
end
|
22
|
+
|
23
|
+
def writeHtml(hDistributor)
|
24
|
+
|
25
|
+
# classes used
|
26
|
+
responsibilityClass = Html_Responsibility.new(@html)
|
27
|
+
orderClass = Html_OrderProcess.new(@html)
|
28
|
+
transferClass = Html_TransferOption.new(@html)
|
29
|
+
|
30
|
+
# distributor - contact {responsibility}
|
31
|
+
unless hDistributor[:contact].empty?
|
32
|
+
@html.div do
|
33
|
+
@html.div('Contact', {'class' => 'h5'})
|
34
|
+
@html.div(:class => 'block') do
|
35
|
+
responsibilityClass.writeHtml(hDistributor[:contact])
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# distributor - order process [] {orderProcess}
|
41
|
+
hDistributor[:orderProcess].each do |hOrder|
|
42
|
+
@html.div do
|
43
|
+
@html.div('Order Process', {'class' => 'h5'})
|
44
|
+
@html.div(:class => 'block') do
|
45
|
+
orderClass.writeHtml(hOrder)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# distributor - transfer options [] {transferOption}
|
51
|
+
hDistributor[:transferOptions].each do |hTransfer|
|
52
|
+
@html.div do
|
53
|
+
@html.div('Transfer Option', {'class' => 'h5'})
|
54
|
+
@html.div(:class => 'block') do
|
55
|
+
transferClass.writeHtml(hTransfer)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end # writeHtml
|
61
|
+
end # Html_Distributor
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# HTML writer
|
2
|
+
|
3
|
+
# History:
|
4
|
+
# Stan Smith 2017-03-22 refactor for mdTranslator 2.0
|
5
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
6
|
+
# Stan Smith 2015-06-23 replace global ($response) with passed in object (responseObj)
|
7
|
+
# Stan Smith 2015-04-07 replaced instruct! with declare! and html to
|
8
|
+
# ... conform with w3 html encoding declarations
|
9
|
+
# Stan Smith 2015-03-23 original script
|
10
|
+
|
11
|
+
require_relative 'html_head'
|
12
|
+
require_relative 'html_body'
|
13
|
+
|
14
|
+
module ADIWG
|
15
|
+
module Mdtranslator
|
16
|
+
module Writers
|
17
|
+
module Simple_html
|
18
|
+
|
19
|
+
class Html_Document
|
20
|
+
|
21
|
+
def initialize(html, intObj)
|
22
|
+
@html = html
|
23
|
+
@@intObj = intObj
|
24
|
+
end
|
25
|
+
|
26
|
+
def writeHtml(responseObj)
|
27
|
+
|
28
|
+
# classes used
|
29
|
+
htmlHead = Html_Head.new(@html)
|
30
|
+
htmlBody = Html_Body.new(@html)
|
31
|
+
|
32
|
+
version = responseObj[:translatorVersion]
|
33
|
+
cssLink = responseObj[:writerCSSlink]
|
34
|
+
|
35
|
+
# write the html document
|
36
|
+
metadata = @html.declare! :DOCTYPE, :html
|
37
|
+
@html.html(:lang => 'en') do
|
38
|
+
htmlHead.writeHtml(version, cssLink)
|
39
|
+
htmlBody.writeHtml(version, @@intObj)
|
40
|
+
end
|
41
|
+
|
42
|
+
return metadata
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
# find contact in contact array and return the contact hash
|
47
|
+
def self.getContact(contactId)
|
48
|
+
|
49
|
+
@@intObj[:contacts].each do |hCont|
|
50
|
+
if hCont[:contactId] == contactId
|
51
|
+
return hCont
|
52
|
+
end
|
53
|
+
end
|
54
|
+
return {}
|
55
|
+
|
56
|
+
end
|
57
|
+
|
58
|
+
end # Html_Document
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# domain
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-11-03 added domainReference
|
6
|
+
# Stan Smith 2017-04-05 refactored for mdTranslator 2.0
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
8
|
+
# Stan Smith 2015-03-26 original script
|
9
|
+
|
10
|
+
require_relative 'html_domainItem'
|
11
|
+
require_relative 'html_citation'
|
12
|
+
|
13
|
+
module ADIWG
|
14
|
+
module Mdtranslator
|
15
|
+
module Writers
|
16
|
+
module Simple_html
|
17
|
+
|
18
|
+
class Html_Domain
|
19
|
+
|
20
|
+
def initialize(html)
|
21
|
+
@html = html
|
22
|
+
end
|
23
|
+
|
24
|
+
def writeHtml(aDomains)
|
25
|
+
|
26
|
+
# classes used
|
27
|
+
itemClass = Html_DomainItem.new(@html)
|
28
|
+
citationClass = Html_Citation.new(@html)
|
29
|
+
|
30
|
+
aDomains.each do |hDomain|
|
31
|
+
|
32
|
+
dName = 'domain'
|
33
|
+
dName = hDomain[:domainCode] unless hDomain[:domainCode].nil?
|
34
|
+
dName = hDomain[:domainName] unless hDomain[:domainName].nil?
|
35
|
+
|
36
|
+
type = 'UNREPRESENTABLE'
|
37
|
+
type = 'CODESET' unless hDomain[:domainReference].empty?
|
38
|
+
type = 'ENUMERATED' unless hDomain[:domainItems].empty?
|
39
|
+
|
40
|
+
@html.div do
|
41
|
+
@html.div(dName, {'class' => 'h5'})
|
42
|
+
@html.div(:class => 'block') do
|
43
|
+
|
44
|
+
# domain - type
|
45
|
+
@html.em('Domain Type: ')
|
46
|
+
@html.text!(type)
|
47
|
+
@html.br
|
48
|
+
|
49
|
+
# domain - id
|
50
|
+
unless hDomain[:domainId].nil?
|
51
|
+
@html.em('ID: ')
|
52
|
+
@html.text!(hDomain[:domainId])
|
53
|
+
@html.br
|
54
|
+
end
|
55
|
+
|
56
|
+
# domain - name
|
57
|
+
unless hDomain[:domainName].nil?
|
58
|
+
@html.em('Name: ')
|
59
|
+
@html.text!(hDomain[:domainName])
|
60
|
+
@html.br
|
61
|
+
end
|
62
|
+
|
63
|
+
# domain - code
|
64
|
+
unless hDomain[:domainCode].nil?
|
65
|
+
@html.em('Code: ')
|
66
|
+
@html.text!(hDomain[:domainCode])
|
67
|
+
@html.br
|
68
|
+
end
|
69
|
+
|
70
|
+
# domain - description
|
71
|
+
unless hDomain[:domainDescription].nil?
|
72
|
+
@html.em('Description: ')
|
73
|
+
@html.div(:class => 'block') do
|
74
|
+
@html.text!(hDomain[:domainDescription])
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# domain - domain reference {citation}
|
79
|
+
unless hDomain[:domainReference].empty?
|
80
|
+
@html.div do
|
81
|
+
@html.div('Reference', {'class' => 'h5'})
|
82
|
+
@html.div(:class => 'block') do
|
83
|
+
citationClass.writeHtml(hDomain[:domainReference])
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# domain - domain items [] {domainItem}
|
89
|
+
hDomain[:domainItems].each do |hItem|
|
90
|
+
@html.div do
|
91
|
+
@html.div(hItem[:itemValue], {'class' => 'h5'})
|
92
|
+
@html.div(:class => 'block') do
|
93
|
+
itemClass.writeHtml(hItem)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end # aDomain
|
102
|
+
end # writeHtml
|
103
|
+
end # Html_Domain
|
104
|
+
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# domain item
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-04-05 refactored for mdTranslator 2.0
|
6
|
+
# Stan Smith 2015-03-26 original script
|
7
|
+
|
8
|
+
require_relative 'html_citation'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Simple_html
|
14
|
+
|
15
|
+
class Html_DomainItem
|
16
|
+
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hItem)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
citationClass = Html_Citation.new(@html)
|
25
|
+
|
26
|
+
# domain item - common name
|
27
|
+
unless hItem[:itemName].nil?
|
28
|
+
@html.em('Name: ')
|
29
|
+
@html.text!(hItem[:itemName])
|
30
|
+
@html.br
|
31
|
+
end
|
32
|
+
|
33
|
+
# domain item - value
|
34
|
+
unless hItem[:itemValue].nil?
|
35
|
+
@html.em('Value: ')
|
36
|
+
@html.text!(hItem[:itemValue])
|
37
|
+
@html.br
|
38
|
+
end
|
39
|
+
|
40
|
+
# domain item - definition
|
41
|
+
unless hItem[:itemDefinition].nil?
|
42
|
+
@html.em('Definition: ')
|
43
|
+
@html.div(:class => 'block') do
|
44
|
+
@html.text!(hItem[:itemDefinition])
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# domain item - reference {citation}
|
49
|
+
unless hItem[:itemReference].empty?
|
50
|
+
@html.div do
|
51
|
+
@html.div('Reference', {'class' => 'h5'})
|
52
|
+
@html.div(:class => 'block') do
|
53
|
+
citationClass.writeHtml(hItem[:itemReference])
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end # writeHtml
|
59
|
+
end # Html_DomainItem
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# duration
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2017-03-27 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Simple_html
|
11
|
+
|
12
|
+
class Html_Duration
|
13
|
+
|
14
|
+
def initialize(html)
|
15
|
+
@html = html
|
16
|
+
end
|
17
|
+
|
18
|
+
def writeHtml(hDuration)
|
19
|
+
|
20
|
+
# duration - years
|
21
|
+
unless hDuration[:years] == 0
|
22
|
+
@html.em('Years: ')
|
23
|
+
@html.text!(hDuration[:years].to_s)
|
24
|
+
@html.br
|
25
|
+
end
|
26
|
+
|
27
|
+
# duration - months
|
28
|
+
unless hDuration[:months] == 0
|
29
|
+
@html.em('Months: ')
|
30
|
+
@html.text!(hDuration[:months].to_s)
|
31
|
+
@html.br
|
32
|
+
end
|
33
|
+
|
34
|
+
# duration - days
|
35
|
+
unless hDuration[:days] == 0
|
36
|
+
@html.em('Days: ')
|
37
|
+
@html.text!(hDuration[:days].to_s)
|
38
|
+
@html.br
|
39
|
+
end
|
40
|
+
|
41
|
+
# duration - hours
|
42
|
+
unless hDuration[:hours] == 0
|
43
|
+
@html.em('Hours: ')
|
44
|
+
@html.text!(hDuration[:hours].to_s)
|
45
|
+
@html.br
|
46
|
+
end
|
47
|
+
|
48
|
+
# duration - minutes
|
49
|
+
unless hDuration[:minutes] == 0
|
50
|
+
@html.em('Minutes: ')
|
51
|
+
@html.text!(hDuration[:minutes].to_s)
|
52
|
+
@html.br
|
53
|
+
end
|
54
|
+
|
55
|
+
# duration - seconds
|
56
|
+
unless hDuration[:seconds] == 0
|
57
|
+
@html.em('Seconds: ')
|
58
|
+
@html.text!(hDuration[:seconds].to_s)
|
59
|
+
@html.br
|
60
|
+
end
|
61
|
+
|
62
|
+
end # writeHtml
|
63
|
+
end # Html_Duration
|
64
|
+
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|