adiwg-mdtranslator 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -1
  3. data/adiwg-mdtranslator.gemspec +1 -1
  4. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +12 -6
  5. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_albers.rb +2 -1
  6. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_azimuthEquidistant.rb +2 -1
  7. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_common.rb +2 -2
  8. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_equidistantConic.rb +2 -1
  9. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_equirectangular.rb +2 -1
  10. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_generalVertical.rb +2 -1
  11. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_gnomonic.rb +2 -1
  12. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_lambertConic.rb +2 -1
  13. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_lambertEqualArea.rb +2 -1
  14. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_mercator.rb +2 -1
  15. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_millerCylinder.rb +2 -1
  16. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_modifiedAlaska.rb +2 -1
  17. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_obliqueMercator.rb +2 -1
  18. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_orthographic.rb +2 -1
  19. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_parameters.rb +2 -1
  20. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_polarStereo.rb +2 -1
  21. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_polyconic.rb +2 -1
  22. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_robinson.rb +2 -1
  23. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_sinusoidal.rb +2 -1
  24. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_spaceOblique.rb +2 -1
  25. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_stereographic.rb +2 -1
  26. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_transverseMercator.rb +2 -1
  27. data/lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_vanDerGrinten.rb +2 -1
  28. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_geodeticReference.rb +82 -0
  29. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_geographicResolution.rb +57 -0
  30. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalPlanar.rb +2 -2
  31. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalReference.rb +12 -113
  32. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_keyword.rb +9 -27
  33. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_localSystem.rb +53 -0
  34. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapCoordinateInfo.rb +1 -0
  35. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapGridSystem.rb +27 -15
  36. data/lib/adiwg/mdtranslator/readers/fgdc/modules/{module_mapLocalSystem.rb → module_mapLocalPlanar.rb} +3 -14
  37. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb +1 -1
  38. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_taxonSystem.rb +1 -1
  39. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalAltitude.rb +4 -6
  40. data/lib/adiwg/mdtranslator/readers/fgdc/modules/{module_verticalReference.rb → module_verticalDatum.rb} +0 -0
  41. data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalDepth.rb +4 -7
  42. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_geodetic.rb +95 -0
  43. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_keyword.rb +1 -14
  44. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_projectionParameters.rb +29 -8
  45. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_referenceSystemParameters.rb +5 -5
  46. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_resourceInfo.rb +15 -3
  47. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_spatialReference.rb +16 -4
  48. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_verticalDatum.rb +8 -23
  49. data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_tag.rb +2 -2
  50. data/lib/adiwg/mdtranslator/version.rb +4 -1
  51. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_citation.rb +1 -0
  52. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateRange.rb +6 -1
  53. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateSingle.rb +5 -1
  54. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb +18 -5
  55. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_geodeticReference.rb +62 -0
  56. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_geographicResolution.rb +56 -0
  57. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_keyword.rb +1 -0
  58. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_localSystem.rb +45 -0
  59. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_mapCoordinateInfo.rb +167 -0
  60. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_mapProjection.rb +374 -0
  61. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarReference.rb +372 -0
  62. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb +1 -0
  63. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialReference.rb +134 -0
  64. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomySystem.rb +8 -11
  65. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_timePeriod.rb +8 -8
  66. data/lib/adiwg/mdtranslator/writers/fgdc/classes/class_verticalDatum.rb +120 -0
  67. data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +12 -2
  68. data/lib/adiwg/mdtranslator/writers/html/sections/html_geodeticParameters.rb +85 -0
  69. data/lib/adiwg/mdtranslator/writers/html/sections/html_keyword.rb +5 -1
  70. data/lib/adiwg/mdtranslator/writers/html/sections/html_projectionParameters.rb +36 -15
  71. data/lib/adiwg/mdtranslator/writers/html/sections/html_referenceSystemParameters.rb +6 -6
  72. data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb +1 -2
  73. data/lib/adiwg/mdtranslator/writers/html/sections/html_verticalDatumParameters.rb +7 -0
  74. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_crs.rb +21 -8
  75. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataIdentification.rb +332 -321
  76. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_keyword.rb +8 -8
  77. data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_projectionParameters.rb +1 -1
  78. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geodeticParameters.rb +34 -0
  79. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_projectionParameters.rb +5 -2
  80. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_spatialReference.rb +1 -0
  81. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_spatialReferenceParameters.rb +2 -2
  82. data/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_tag.rb +1 -1
  83. metadata +20 -9
  84. data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_ellipsoid.rb +0 -78
  85. data/lib/adiwg/mdtranslator/writers/html/sections/html_ellipsoidParameters.rb +0 -68
  86. data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb +0 -32
@@ -2,14 +2,14 @@
2
2
  # 19115-2 writer output in XML
3
3
 
4
4
  # History:
5
- # Stan Smith 2016-12-12 refactored for mdTranslator/mdJson 2.0
6
- # Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
7
- # Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
8
- # Stan Smith 2015-06-22 replace global ($response) with passed in object (hResponseObj)
9
- # Stan Smith 2015-06-11 change all codelists to use 'class_codelist' method
10
- # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
11
- # Stan Smith 2014-08-21 removed keyword thesaurus link; use citation onlineResource
12
- # Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
5
+ # Stan Smith 2016-12-12 refactored for mdTranslator/mdJson 2.0
6
+ # Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS
7
+ # Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes
8
+ # Stan Smith 2015-06-22 replace global ($response) with passed in object (hResponseObj)
9
+ # Stan Smith 2015-06-11 change all codelists to use 'class_codelist' method
10
+ # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers
11
+ # Stan Smith 2014-08-21 removed keyword thesaurus link; use citation onlineResource
12
+ # Stan Smith 2014-07-08 modify require statements to function in RubyGem structure
13
13
  # Stan Smith 2013-09-18 original script
14
14
 
15
15
  require_relative 'class_codelist'
@@ -27,7 +27,7 @@ module ADIWG
27
27
  @xml.tag!('gmd:MD_ProjectionParameters') do
28
28
 
29
29
  # projection parameters - zone {integer}
30
- i = hProjection[:zone]
30
+ i = hProjection[:gridZone]
31
31
  unless i.nil?
32
32
  @xml.tag!('gmd:zone') do
33
33
  @xml.tag!('gco:integer', i.to_s)
@@ -0,0 +1,34 @@
1
+ # mdJson 2.0 writer - spatial reference system ellipsoid parameters
2
+
3
+ # History:
4
+ # Stan Smith 2017-10-24 original script
5
+
6
+ require 'jbuilder'
7
+ require_relative 'mdJson_identifier'
8
+
9
+ module ADIWG
10
+ module Mdtranslator
11
+ module Writers
12
+ module MdJson
13
+
14
+ module GeodeticParameters
15
+
16
+ def self.build(hGeodetic)
17
+
18
+ Jbuilder.new do |json|
19
+ json.datumIdentifier Identifier.build(hGeodetic[:datumIdentifier]) unless hGeodetic[:datumIdentifier].empty?
20
+ json.datumName hGeodetic[:datumName]
21
+ json.ellipsoidIdentifier Identifier.build(hGeodetic[:ellipsoidIdentifier]) unless hGeodetic[:ellipsoidIdentifier].empty?
22
+ json.ellipsoidName hGeodetic[:ellipsoidName]
23
+ json.semiMajorAxis hGeodetic[:semiMajorAxis]
24
+ json.axisUnits hGeodetic[:axisUnits]
25
+ json.denominatorOfFlatteningRatio hGeodetic[:denominatorOfFlatteningRatio]
26
+ end
27
+
28
+ end # build
29
+ end # EllipsoidParameters
30
+
31
+ end
32
+ end
33
+ end
34
+ end
@@ -20,8 +20,11 @@ module ADIWG
20
20
 
21
21
  Jbuilder.new do |json|
22
22
  json.projectionIdentifier Identifier.build(hProjection[:projectionIdentifier]) unless hProjection[:projectionIdentifier].empty?
23
+ json.gridSystem hProjection[:gridSystem]
24
+ json.gridSystemName hProjection[:gridSystemName]
25
+ json.gridZone hProjection[:gridZone]
26
+ json.projection hProjection[:projection]
23
27
  json.projectionName hProjection[:projectionName]
24
- json.zone hProjection[:zone]
25
28
  json.standardParallel1 hProjection[:standardParallel1]
26
29
  json.standardParallel2 hProjection[:standardParallel2]
27
30
  json.longitudeOfCentralMeridian hProjection[:longitudeOfCentralMeridian]
@@ -44,8 +47,8 @@ module ADIWG
44
47
  json.landsatPath hProjection[:landsatPath]
45
48
  json.localPlanarDescription hProjection[:localPlanarDescription]
46
49
  json.localPlanarGeoreference hProjection[:localPlanarGeoreference]
47
- json.otherProjectionDescription hProjection[:otherProjectionDescription]
48
50
  json.otherGridDescription hProjection[:otherGridDescription]
51
+ json.otherProjectionDescription hProjection[:otherProjectionDescription]
49
52
  end
50
53
 
51
54
  end # build
@@ -20,6 +20,7 @@ module ADIWG
20
20
  Jbuilder.new do |json|
21
21
  json.referenceSystemType hSystem[:systemType]
22
22
  json.referenceSystemIdentifier Identifier.build(hSystem[:systemIdentifier]) unless hSystem[:systemIdentifier].empty?
23
+ json.referenceSystemWKT hSystem[:systemWKT]
23
24
  json.referenceSystemParameterSet SpatialReferenceParameters.build(hSystem[:systemParameterSet]) unless hSystem[:systemParameterSet].empty?
24
25
  end
25
26
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'jbuilder'
7
7
  require_relative 'mdJson_projectionParameters'
8
- require_relative 'mdJson_ellipsoidParameters'
8
+ require_relative 'mdJson_geodeticParameters'
9
9
  require_relative 'mdJson_verticalDatumParameters'
10
10
 
11
11
  module ADIWG
@@ -19,7 +19,7 @@ module ADIWG
19
19
 
20
20
  Jbuilder.new do |json|
21
21
  json.projection ProjectionParameters.build(hSystem[:projection]) unless hSystem[:projection].empty?
22
- json.ellipsoid EllipsoidParameters.build(hSystem[:ellipsoid]) unless hSystem[:ellipsoid].empty?
22
+ json.geodetic GeodeticParameters.build(hSystem[:geodetic]) unless hSystem[:geodetic].empty?
23
23
  json.verticalDatum VerticalDatumParameters.build(hSystem[:verticalDatum]) unless hSystem[:verticalDatum].empty?
24
24
  end
25
25
 
@@ -21,7 +21,7 @@ module ADIWG
21
21
  hTag[:name] = keyword
22
22
  hTag[:scheme] = namespace unless namespace.nil?
23
23
  if theme == 'isoTopicCategory'
24
- hTag[:type] = hTag[:scheme] = 'ISO 19115 Topic Categories'
24
+ hTag[:type] = hTag[:scheme] = 'ISO 19115 Topic Category'
25
25
  end
26
26
  return hTag
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-29 00:00:00.000000000 Z
12
+ date: 2018-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -143,14 +143,14 @@ dependencies:
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 2.3.2
146
+ version: 2.4.0
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 2.3.2
153
+ version: 2.4.0
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: jbuilder
156
156
  requirement: !ruby/object:Gem::Requirement
@@ -273,15 +273,18 @@ files:
273
273
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_entityOverview.rb
274
274
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_enumerated.rb
275
275
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb
276
+ - lib/adiwg/mdtranslator/readers/fgdc/modules/module_geodeticReference.rb
277
+ - lib/adiwg/mdtranslator/readers/fgdc/modules/module_geographicResolution.rb
276
278
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_geologicAge.rb
277
279
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalPlanar.rb
278
280
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_horizontalReference.rb
279
281
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_identification.rb
280
282
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_keyword.rb
281
283
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_lineage.rb
284
+ - lib/adiwg/mdtranslator/readers/fgdc/modules/module_localSystem.rb
282
285
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapCoordinateInfo.rb
283
286
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapGridSystem.rb
284
- - lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapLocalSystem.rb
287
+ - lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapLocalPlanar.rb
285
288
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_mapProjection.rb
286
289
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_metadataInfo.rb
287
290
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_methodology.rb
@@ -309,8 +312,8 @@ files:
309
312
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_timePeriod.rb
310
313
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_transferInfo.rb
311
314
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalAltitude.rb
315
+ - lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalDatum.rb
312
316
  - lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalDepth.rb
313
- - lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalReference.rb
314
317
  - lib/adiwg/mdtranslator/readers/fgdc/readme.md
315
318
  - lib/adiwg/mdtranslator/readers/fgdc/version.rb
316
319
  - lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb
@@ -337,7 +340,6 @@ files:
337
340
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_domain.rb
338
341
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_domainItem.rb
339
342
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_duration.rb
340
- - lib/adiwg/mdtranslator/readers/mdJson/modules/module_ellipsoid.rb
341
343
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_entity.rb
342
344
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_entityAttribute.rb
343
345
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_entityForeignKey.rb
@@ -347,6 +349,7 @@ files:
347
349
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_format.rb
348
350
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_funding.rb
349
351
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_geoJson.rb
352
+ - lib/adiwg/mdtranslator/readers/mdJson/modules/module_geodetic.rb
350
353
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_geographicExtent.rb
351
354
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_geographicResolution.rb
352
355
  - lib/adiwg/mdtranslator/readers/mdJson/modules/module_geologicAge.rb
@@ -448,14 +451,20 @@ files:
448
451
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_dateSingle.rb
449
452
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_description.rb
450
453
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_fgdc.rb
454
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_geodeticReference.rb
455
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_geographicResolution.rb
451
456
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_geologicAge.rb
452
457
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_geologicRange.rb
453
458
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_identification.rb
454
459
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_keyword.rb
455
460
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_lineage.rb
461
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_localSystem.rb
462
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_mapCoordinateInfo.rb
463
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_mapProjection.rb
456
464
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_method.rb
457
465
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_methodKeywords.rb
458
466
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_phone.rb
467
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_planarReference.rb
459
468
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb
460
469
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_publisher.rb
461
470
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_quality.rb
@@ -464,12 +473,14 @@ files:
464
473
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_source.rb
465
474
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialDomain.rb
466
475
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialOrganization.rb
476
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_spatialReference.rb
467
477
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_status.rb
468
478
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomy.rb
469
479
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomyClassification.rb
470
480
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomyKeywords.rb
471
481
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_taxonomySystem.rb
472
482
  - lib/adiwg/mdtranslator/writers/fgdc/classes/class_timePeriod.rb
483
+ - lib/adiwg/mdtranslator/writers/fgdc/classes/class_verticalDatum.rb
473
484
  - lib/adiwg/mdtranslator/writers/fgdc/fgdc_writer.rb
474
485
  - lib/adiwg/mdtranslator/writers/fgdc/readme.md
475
486
  - lib/adiwg/mdtranslator/writers/fgdc/version.rb
@@ -501,7 +512,6 @@ files:
501
512
  - lib/adiwg/mdtranslator/writers/html/sections/html_domain.rb
502
513
  - lib/adiwg/mdtranslator/writers/html/sections/html_domainItem.rb
503
514
  - lib/adiwg/mdtranslator/writers/html/sections/html_duration.rb
504
- - lib/adiwg/mdtranslator/writers/html/sections/html_ellipsoidParameters.rb
505
515
  - lib/adiwg/mdtranslator/writers/html/sections/html_entity.rb
506
516
  - lib/adiwg/mdtranslator/writers/html/sections/html_entityAttribute.rb
507
517
  - lib/adiwg/mdtranslator/writers/html/sections/html_entityForeignKey.rb
@@ -512,6 +522,7 @@ files:
512
522
  - lib/adiwg/mdtranslator/writers/html/sections/html_featureProperties.rb
513
523
  - lib/adiwg/mdtranslator/writers/html/sections/html_format.rb
514
524
  - lib/adiwg/mdtranslator/writers/html/sections/html_funding.rb
525
+ - lib/adiwg/mdtranslator/writers/html/sections/html_geodeticParameters.rb
515
526
  - lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb
516
527
  - lib/adiwg/mdtranslator/writers/html/sections/html_geographicExtent.rb
517
528
  - lib/adiwg/mdtranslator/writers/html/sections/html_geographicResolution.rb
@@ -711,7 +722,6 @@ files:
711
722
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_domain.rb
712
723
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_domainItem.rb
713
724
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_duration.rb
714
- - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb
715
725
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_entity.rb
716
726
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_entityAttribute.rb
717
727
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_entityForeignKey.rb
@@ -719,6 +729,7 @@ files:
719
729
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_extent.rb
720
730
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_format.rb
721
731
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
732
+ - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geodeticParameters.rb
722
733
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
723
734
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicResolution.rb
724
735
  - lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geologicAge.rb
@@ -1,78 +0,0 @@
1
- # unpack spatial reference system ellipsoid
2
- # Reader - ADIwg JSON to internal data structure
3
-
4
- # History:
5
- # Stan Smith 2017-10-23 original script
6
-
7
- require_relative 'module_identifier'
8
-
9
- module ADIWG
10
- module Mdtranslator
11
- module Readers
12
- module MdJson
13
-
14
- module Ellipsoid
15
-
16
- def self.unpack(hEllipsoid, responseObj)
17
-
18
- # return nil object if input is empty
19
- if hEllipsoid.empty?
20
- responseObj[:readerExecutionMessages] << 'Ellipsoid object is empty'
21
- responseObj[:readerExecutionPass] = false
22
- return nil
23
- end
24
-
25
- # instance classes needed in script
26
- intMetadataClass = InternalMetadata.new
27
- intEllipsoid = intMetadataClass.newEllipsoid
28
-
29
- # ellipsoid - identifier {identifier}
30
- if hEllipsoid.has_key?('ellipsoidIdentifier')
31
- unless hEllipsoid['ellipsoidIdentifier'].empty?
32
- hReturn = Identifier.unpack(hEllipsoid['ellipsoidIdentifier'], responseObj)
33
- unless hReturn.nil?
34
- intEllipsoid[:ellipsoidIdentifier] = hReturn
35
- end
36
- end
37
- end
38
-
39
- # ellipsoid - ellipsoid name (required)
40
- if hEllipsoid.has_key?('ellipsoidName')
41
- intEllipsoid[:ellipsoidName] = hEllipsoid['ellipsoidName']
42
- end
43
- if intEllipsoid[:ellipsoidName].nil? || intEllipsoid[:ellipsoidName] == ''
44
- responseObj[:readerExecutionMessages] << 'Ellipsoid name is missing'
45
- responseObj[:readerExecutionPass] = false
46
- return nil
47
- end
48
-
49
- # ellipsoid - semi-major axis
50
- if hEllipsoid.has_key?('semiMajorAxis')
51
- if hEllipsoid['semiMajorAxis'] != ''
52
- intEllipsoid[:semiMajorAxis] = hEllipsoid['semiMajorAxis']
53
- end
54
- end
55
-
56
- # ellipsoid - axis units
57
- if hEllipsoid.has_key?('axisUnits')
58
- if hEllipsoid['axisUnits'] != ''
59
- intEllipsoid[:axisUnits] = hEllipsoid['axisUnits']
60
- end
61
- end
62
-
63
- # ellipsoid - denominator of flattening ratio
64
- if hEllipsoid.has_key?('denominatorOfFlatteningRatio')
65
- if hEllipsoid['denominatorOfFlatteningRatio'] != ''
66
- intEllipsoid[:denominatorOfFlatteningRatio] = hEllipsoid['denominatorOfFlatteningRatio']
67
- end
68
- end
69
-
70
- return intEllipsoid
71
- end
72
-
73
- end
74
-
75
- end
76
- end
77
- end
78
- end
@@ -1,68 +0,0 @@
1
- # HTML writer
2
- # spatial reference system ellipsoid parameters
3
-
4
- # History:
5
- # Stan Smith 2017-10-24 original script
6
-
7
- require_relative 'html_identifier'
8
-
9
- module ADIWG
10
- module Mdtranslator
11
- module Writers
12
- module Html
13
-
14
- class Html_EllipsoidParameters
15
-
16
- def initialize(html)
17
- @html = html
18
- end
19
-
20
- def writeHtml(hEllipsoid)
21
-
22
- # classes used
23
- identifierClass = Html_Identifier.new(@html)
24
-
25
- # ellipsoid parameters - ellipsoid name
26
- unless hEllipsoid[:ellipsoidName].nil?
27
- @html.em('Ellipsoid Name: ')
28
- @html.text!(hEllipsoid[:ellipsoidName])
29
- @html.br
30
- end
31
-
32
- # ellipsoid parameters - semi-major axis
33
- unless hEllipsoid[:semiMajorAxis].nil?
34
- @html.em('Semi-major Axis: ')
35
- @html.text!(hEllipsoid[:semiMajorAxis].to_s)
36
- @html.br
37
- end
38
-
39
- # ellipsoid parameters - axis units
40
- unless hEllipsoid[:axisUnits].nil?
41
- @html.em('Axis Units: ')
42
- @html.text!(hEllipsoid[:axisUnits])
43
- @html.br
44
- end
45
-
46
- # ellipsoid parameters - denominator of flattening ratio
47
- unless hEllipsoid[:denominatorOfFlatteningRatio].nil?
48
- @html.em('Denominator or Flattening Ratio: ')
49
- @html.text!(hEllipsoid[:denominatorOfFlatteningRatio].to_s)
50
- end
51
-
52
- # ellipsoid parameters - ellipsoid identifier
53
- unless hEllipsoid[:ellipsoidIdentifier].empty?
54
- @html.details do
55
- @html.summary('Ellipsoid Identifier', {'id' => 'ellipsoid-identifier', 'class' => 'h5'})
56
- @html.section(:class => 'block') do
57
- identifierClass.writeHtml(hEllipsoid[:ellipsoidIdentifier])
58
- end
59
- end
60
- end
61
-
62
- end # writeHtml
63
- end # Html_ProjectionParameters
64
-
65
- end
66
- end
67
- end
68
- end
@@ -1,32 +0,0 @@
1
- # mdJson 2.0 writer - spatial reference system ellipsoid parameters
2
-
3
- # History:
4
- # Stan Smith 2017-10-24 original script
5
-
6
- require 'jbuilder'
7
- require_relative 'mdJson_identifier'
8
-
9
- module ADIWG
10
- module Mdtranslator
11
- module Writers
12
- module MdJson
13
-
14
- module EllipsoidParameters
15
-
16
- def self.build(hEllipsoid)
17
-
18
- Jbuilder.new do |json|
19
- json.ellipsoidIdentifier Identifier.build(hEllipsoid[:ellipsoidIdentifier]) unless hEllipsoid[:ellipsoidIdentifier].empty?
20
- json.ellipsoidName hEllipsoid[:ellipsoidName]
21
- json.semiMajorAxis hEllipsoid[:semiMajorAxis]
22
- json.axisUnits hEllipsoid[:axisUnits]
23
- json.denominatorOfFlatteningRatio hEllipsoid[:denominatorOfFlatteningRatio]
24
- end
25
-
26
- end # build
27
- end # EllipsoidParameters
28
-
29
- end
30
- end
31
- end
32
- end