adiwg-mdtranslator 2.0.0rc2 → 2.0.0rc3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,62 +2,62 @@
2
2
 
3
3
  # History:
4
4
  # version 2
5
- # Stan Smith 2017-04-22 removed 'intObj = ' from new object definitions
6
- # Stan Smith 2017-02-15 added newResourceType
7
- # Stan Smith 2017-02-09 added newMetadataRepository
8
- # Stan Smith 2017-01-20 refactored newDataDictionary
9
- # Stan Smith 2016-11-10 added computedBbox to newGeographicExtent, newGeometryCollection
10
- # Stan Smith 2016-11-10 added computedBbox to newGeometryFeature, newFeatureCollection
11
- # Stan Smith 2016-11-02 added newSchema
12
- # Stan Smith 2016-10-30 added newAllocation, newFunding
13
- # Stan Smith 2016-10-25 added newFeatureCollection
14
- # Stan Smith 2016-10-25 added newGeoJson
15
- # Stan Smith 2016-10-25 added newGeometryCollection
16
- # Stan Smith 2016-10-25 added newGeometryFeature
17
- # Stan Smith 2016-10-25 added newGeometryObject
18
- # Stan Smith 2016-10-25 added newGeometryProperties
19
- # Stan Smith 2016-10-23 renamed newResourceMaint to newMaintenance
20
- # Stan Smith 2016-10-21 added newDistribution
21
- # Stan Smith 2016-10-21 renamed newDistOrder to newOrderProcess
22
- # Stan Smith 2016-10-21 renamed newDigitalTransOption to newTransferOption
23
- # Stan Smith 2016-10-20 deleted newDictionaryInfo, move element to newDataDictionary
24
- # Stan Smith 2016-10-19 added newSpatialRepresentation
25
- # Stan Smith 2016-10-19 added newGeorectifiedInfo
26
- # Stan Smith 2016-10-19 added newVectorInfo, newVectorObject
27
- # Stan Smith 2016-10-18 deleted newCoverageInfo, newCoverageItem
28
- # Stan Smith 2016-10-18 added newAttributeGroup
29
- # Stan Smith 2016-10-18 deleted newClassedData, newClassedDataItem
30
- # Stan Smith 2016-10-17 added elements to newLineage
31
- # Stan Smith 2016-10-17 added elements to newDataSource
32
- # Stan Smith 2016-10-16 removed newResolution
33
- # Stan Smith 2016-10-16 added newMeasure
34
- # Stan Smith 2016-10-16 added newSpatialResolution
35
- # Stan Smith 2016-10-15 renamed newDataProcess Step to newProcessStep
36
- # Stan Smith 2016-10-15 added newConstraints object
37
- # Stan Smith 2016-10-15 added constraint object to newSecurityConstraint
38
- # Stan Smith 2016-10-15 added constraint object to newLegalConstraint
39
- # Stan Smith 2016-10-15 added newConstraint object
40
- # Stan Smith 2016-10-15 added newRelease object
41
- # Stan Smith 2016-10-14 added newScope object
42
- # Stan Smith 2016-10-14 added newTimeInterval object
43
- # Stan Smith 2016-10-13 added newScopeDescription object
44
- # Stan Smith 2016-10-13 added attributes to newCitation for mdJson 2.0
45
- # Stan Smith 2016-10-13 renamed newResourceId to newIdentifier, dropped identifierType
46
- # Stan Smith 2016-10-12 renamed newBrowseGraphic to newGraphic, added graphicConstraint []
47
- # Stan Smith 2016-10-12 added newSeries object
48
- # Stan Smith 2016-10-12 added newDate object
49
- # Stan Smith 2016-10-11 renamed newDataUsage to newResourceUsage
50
- # Stan Smith 2016-10-09 add newParty
51
- # Stan Smith 2016-10-08 removed dateType from dateTime object
52
- # Stan Smith 2016-10-01 made phone service types an array
53
- # Stan Smith 2016-10-03 added duration object
5
+ # Stan Smith 2017-04-22 removed 'intObj = ' from new object definitions
6
+ # Stan Smith 2017-02-15 added newResourceType
7
+ # Stan Smith 2017-02-09 added newMetadataRepository
8
+ # Stan Smith 2017-01-20 refactored newDataDictionary
9
+ # Stan Smith 2016-11-10 added computedBbox to newGeographicExtent, newGeometryCollection
10
+ # Stan Smith 2016-11-10 added computedBbox to newGeometryFeature, newFeatureCollection
11
+ # Stan Smith 2016-11-02 added newSchema
12
+ # Stan Smith 2016-10-30 added newAllocation, newFunding
13
+ # Stan Smith 2016-10-25 added newFeatureCollection
14
+ # Stan Smith 2016-10-25 added newGeoJson
15
+ # Stan Smith 2016-10-25 added newGeometryCollection
16
+ # Stan Smith 2016-10-25 added newGeometryFeature
17
+ # Stan Smith 2016-10-25 added newGeometryObject
18
+ # Stan Smith 2016-10-25 added newGeometryProperties
19
+ # Stan Smith 2016-10-23 renamed newResourceMaint to newMaintenance
20
+ # Stan Smith 2016-10-21 added newDistribution
21
+ # Stan Smith 2016-10-21 renamed newDistOrder to newOrderProcess
22
+ # Stan Smith 2016-10-21 renamed newDigitalTransOption to newTransferOption
23
+ # Stan Smith 2016-10-20 deleted newDictionaryInfo, move element to newDataDictionary
24
+ # Stan Smith 2016-10-19 added newSpatialRepresentation
25
+ # Stan Smith 2016-10-19 added newGeorectifiedInfo
26
+ # Stan Smith 2016-10-19 added newVectorInfo, newVectorObject
27
+ # Stan Smith 2016-10-18 deleted newCoverageInfo, newCoverageItem
28
+ # Stan Smith 2016-10-18 added newAttributeGroup
29
+ # Stan Smith 2016-10-18 deleted newClassedData, newClassedDataItem
30
+ # Stan Smith 2016-10-17 added elements to newLineage
31
+ # Stan Smith 2016-10-17 added elements to newDataSource
32
+ # Stan Smith 2016-10-16 removed newResolution
33
+ # Stan Smith 2016-10-16 added newMeasure
34
+ # Stan Smith 2016-10-16 added newSpatialResolution
35
+ # Stan Smith 2016-10-15 renamed newDataProcess Step to newProcessStep
36
+ # Stan Smith 2016-10-15 added newConstraints object
37
+ # Stan Smith 2016-10-15 added constraint object to newSecurityConstraint
38
+ # Stan Smith 2016-10-15 added constraint object to newLegalConstraint
39
+ # Stan Smith 2016-10-15 added newConstraint object
40
+ # Stan Smith 2016-10-15 added newRelease object
41
+ # Stan Smith 2016-10-14 added newScope object
42
+ # Stan Smith 2016-10-14 added newTimeInterval object
43
+ # Stan Smith 2016-10-13 added newScopeDescription object
44
+ # Stan Smith 2016-10-13 added attributes to newCitation for mdJson 2.0
45
+ # Stan Smith 2016-10-13 renamed newResourceId to newIdentifier, dropped identifierType
46
+ # Stan Smith 2016-10-12 renamed newBrowseGraphic to newGraphic, added graphicConstraint []
47
+ # Stan Smith 2016-10-12 added newSeries object
48
+ # Stan Smith 2016-10-12 added newDate object
49
+ # Stan Smith 2016-10-11 renamed newDataUsage to newResourceUsage
50
+ # Stan Smith 2016-10-09 add newParty
51
+ # Stan Smith 2016-10-08 removed dateType from dateTime object
52
+ # Stan Smith 2016-10-01 made phone service types an array
53
+ # Stan Smith 2016-10-03 added duration object
54
54
 
55
55
  # version 1
56
- # Stan Smith 2015-07-23 added gridInfo, gridDimension for 1.3.0
57
- # Stan Smith 2015-07-28 added locale for 1.3.0
58
- # Stan Smith 2015-08-19 added coverageInfo, imageInfo, sensorInfo, coverageItem,
59
- # ... classifiedData, and classedDataItem for 1.3.0
60
- # Stan Smith 2015-09-18 extended distributionInfo sections for 1.3.0
56
+ # Stan Smith 2015-07-23 added gridInfo, gridDimension for 1.3.0
57
+ # Stan Smith 2015-07-28 added locale for 1.3.0
58
+ # Stan Smith 2015-08-19 added coverageInfo, imageInfo, sensorInfo, coverageItem,
59
+ # ... classifiedData, and classedDataItem for 1.3.0
60
+ # Stan Smith 2015-09-18 extended distributionInfo sections for 1.3.0
61
61
 
62
62
  # version 0
63
63
  # Stan Smith 2013-08-09 original script
@@ -88,899 +88,899 @@
88
88
  # Stan Smith 2013-11-20 added data quality
89
89
  # Stan Smith 2013-11-20 modified citation
90
90
  # Stan Smith 2013-12-16 added phone book
91
- # Stan Smith 2014-04-23 added protocol and doi to online resource
92
- # Stan Smith 2014-04-24 added schema to newBase
93
- # Stan Smith 2014-04-24 renamed newDataId to newResourceInfo
94
- # Stan Smith 2014-04-24 reorganized newMetadata, newResourceInfo
95
- # Stan Smith 2014-04-24 added newMetadataInfo
96
- # Stan Smith 2014-04-25 modified newCitation for json schema 0.3.0
97
- # Stan Smith 2014-04-25 added resource Ids to newCitation
98
- # Stan Smith 2014-04-30 reorganized geometry blocks for json schema 0.3.0
99
- # Stan Smith 2014-05-02 added associatedResource
100
- # Stan Smith 2014-05-02 added additionalDocument
101
- # Stan Smith 2014-05-28 modified resourceId & responsibleParty for schema 0.5.0
102
- # Stan Smith 2014-08-15 modified citation, onlineResource, resourceId for 0.6.0
103
- # Stan Smith 2014-09-03 added spatialReferenceSystems for name, EPSG, and WKT for 0.6.0
104
- # Stan Smith 2014-11-06 added resourceType to resourceInfo for 0.9.0
105
- # Stan Smith 2014-11-06 removed metadataScope from metadataInfo for 0.9.0
106
- # Stan Smith 2014-11-06 added newAdditionalDocumentation
107
- # Stan Smith 2014-12-01 added data dictionary
108
- # Stan Smith 2015-02-17 add entity and attribute alias
109
- # Stan Smith 2015-02-17 added support for multiple data dictionaries
91
+ # Stan Smith 2014-04-23 added protocol and doi to online resource
92
+ # Stan Smith 2014-04-24 added schema to newBase
93
+ # Stan Smith 2014-04-24 renamed newDataId to newResourceInfo
94
+ # Stan Smith 2014-04-24 reorganized newMetadata, newResourceInfo
95
+ # Stan Smith 2014-04-24 added newMetadataInfo
96
+ # Stan Smith 2014-04-25 modified newCitation for json schema 0.3.0
97
+ # Stan Smith 2014-04-25 added resource Ids to newCitation
98
+ # Stan Smith 2014-04-30 reorganized geometry blocks for json schema 0.3.0
99
+ # Stan Smith 2014-05-02 added associatedResource
100
+ # Stan Smith 2014-05-02 added additionalDocument
101
+ # Stan Smith 2014-05-28 modified resourceId & responsibleParty for schema 0.5.0
102
+ # Stan Smith 2014-08-15 modified citation, onlineResource, resourceId for 0.6.0
103
+ # Stan Smith 2014-09-03 added spatialReferenceSystems for name, EPSG, and WKT for 0.6.0
104
+ # Stan Smith 2014-11-06 added resourceType to resourceInfo for 0.9.0
105
+ # Stan Smith 2014-11-06 removed metadataScope from metadataInfo for 0.9.0
106
+ # Stan Smith 2014-11-06 added newAdditionalDocumentation
107
+ # Stan Smith 2014-12-01 added data dictionary
108
+ # Stan Smith 2015-02-17 add entity and attribute alias
109
+ # Stan Smith 2015-02-17 added support for multiple data dictionaries
110
110
 
111
111
  class InternalMetadata
112
112
 
113
- # initialize Boolean - false
114
- # initialize scalar - nil
115
- # initialize hash - {}
116
- # initialize array - []
117
-
118
- def initialize
119
- end
120
-
121
- def newBase
122
- {
123
- schema: {},
124
- contacts: [],
125
- metadata: {},
126
- dataDictionaries: [],
127
- metadataRepositories: []
128
- }
129
- end
130
-
131
- def newSchema
132
- {
133
- name: nil,
134
- version: nil
135
- }
136
- end
137
-
138
- def newDate
139
- {
140
- date: nil,
141
- dateResolution: nil,
142
- dateType: nil,
143
- description: nil
144
- }
145
- end
146
-
147
- def newDateTime
148
- {
149
- dateTime: nil,
150
- dateResolution: nil
151
- }
152
- end
153
-
154
- def newContact
155
- {
156
- contactId: nil,
157
- isOrganization: false,
158
- name: nil,
159
- positionName: nil,
160
- memberOfOrgs: [],
161
- logos: [],
162
- phones: [],
163
- addresses: [],
164
- eMailList: [],
165
- onlineResources: [],
166
- hoursOfService: [],
167
- contactInstructions: nil,
168
- contactType: nil
169
- }
170
- end
171
-
172
- def newPhone
173
- {
174
- phoneName: nil,
175
- phoneNumber: nil,
176
- phoneServiceTypes: []
177
- }
178
- end
179
-
180
- def newAddress
181
- {
182
- addressTypes: [],
183
- description: nil,
184
- deliveryPoints: [],
185
- city: nil,
186
- adminArea: nil,
187
- postalCode: nil,
188
- country: nil
189
- }
190
- end
191
-
192
- def newMetadata
193
- {
194
- metadataInfo: {},
195
- resourceInfo: {},
196
- lineageInfo: [],
197
- distributorInfo: [],
198
- associatedResources: [],
199
- additionalDocuments: [],
200
- funding: []
201
- }
202
- end
203
-
204
- def newMetadataInfo
205
- {
206
- metadataIdentifier: {},
207
- parentMetadata: {},
208
- defaultMetadataLocale: {},
209
- otherMetadataLocales: [],
210
- metadataContacts: [],
211
- metadataDates: [],
212
- metadataLinkages: [],
213
- metadataMaintenance: {},
214
- alternateMetadataReferences: [],
215
- metadataStatus: nil,
216
- extensions: []
217
- }
218
- end
219
-
220
- def newResponsibility
221
- {
222
- roleName: nil,
223
- roleExtents: [],
224
- parties: []
225
- }
226
- end
227
-
228
- def newParty
229
- {
230
- contactId: nil,
231
- contactIndex: nil,
232
- contactType: nil,
233
- organizationMembers: []
234
- }
235
- end
236
-
237
- def newOnlineResource
238
- {
239
- olResURI: nil,
240
- olResProtocol: nil,
241
- olResName: nil,
242
- olResDesc: nil,
243
- olResFunction: nil
244
- }
245
- end
246
-
247
- def newResourceInfo
248
- {
249
- resourceTypes: [],
250
- citation: {},
251
- abstract: nil,
252
- shortAbstract: nil,
253
- purpose: nil,
254
- credits: [],
255
- timePeriod: {},
256
- status: [],
257
- topicCategories: [],
258
- pointOfContacts: [],
259
- spatialReferenceSystems: [],
260
- spatialRepresentationTypes: [],
261
- spatialRepresentations: [],
262
- spatialResolutions: [],
263
- temporalResolutions: [],
264
- extents: [],
265
- coverageDescriptions: [],
266
- taxonomy: {},
267
- graphicOverviews: [],
268
- resourceFormats: [],
269
- keywords: [],
270
- resourceUsages: [],
271
- constraints: [],
272
- defaultResourceLocale: {},
273
- otherResourceLocales: [],
274
- resourceMaintenance: [],
275
- environmentDescription: nil,
276
- supplementalInfo: nil
277
- }
278
- end
279
-
280
- def newCitation
281
- {
282
- title: nil,
283
- alternateTitles: [],
284
- dates: [],
285
- edition: nil,
286
- responsibleParties: [],
287
- presentationForms: [],
288
- identifiers: [],
289
- series: {},
290
- otherDetails: [],
291
- onlineResources: [],
292
- browseGraphics: []
293
- }
294
- end
295
-
296
-
297
- def newIdentifier
298
- # handles MD_Identifier (ISO 19115-2 & -1)
299
- # handles RS_ Identifier (ISO 19115-2)
300
- # handles gmlIdentifier
301
- {
302
- identifier: nil,
303
- namespace: nil,
304
- version: nil,
305
- description: nil,
306
- citation: {}
307
- }
308
- end
309
-
310
- def newMaintenance
311
- {
312
- frequency: nil,
313
- dates: [],
314
- scopes: [],
315
- notes: [],
316
- contacts: []
317
- }
318
- end
319
-
320
- def newKeyword
321
- {
322
- keywords: [],
323
- keywordType: nil,
324
- thesaurus: {}
325
- }
326
- end
327
-
328
- def newKeywordObject
329
- {
330
- keyword: nil,
331
- keywordId: nil
332
- }
333
- end
334
-
335
- def newConstraint
336
- {
337
- type: nil,
338
- useLimitation: [],
339
- scope: {},
340
- graphic: [],
341
- reference: [],
342
- releasability: {},
343
- responsibleParty: [],
344
- legalConstraint: {},
345
- securityConstraint: {}
346
- }
347
- end
348
-
349
- def newLegalConstraint
350
- {
351
- accessCodes: [],
352
- useCodes: [],
353
- otherCons: []
354
- }
355
- end
356
-
357
- def newSecurityConstraint
358
- {
359
- classCode: nil,
360
- userNote: nil,
361
- classSystem: nil,
362
- handling: nil
363
- }
364
- end
365
-
366
- def newRelease
367
- {
368
- addressee: [],
369
- statement: nil,
370
- disseminationConstraint: []
371
- }
372
- end
373
-
374
- def newDistribution
375
- {
376
- description: nil,
377
- distributor: []
378
- }
379
- end
380
-
381
- def newDistributor
382
- {
383
- contact: {},
384
- orderProcess: [],
385
- transferOptions: []
386
- }
387
- end
388
-
389
- def newOrderProcess
390
- {
391
- fees: nil,
392
- plannedAvailability: {},
393
- orderingInstructions: nil,
394
- turnaround: nil
395
- }
396
- end
397
-
398
- def newTransferOption
399
- {
400
- unitsOfDistribution: nil,
401
- transferSize: nil,
402
- onlineOptions: [],
403
- offlineOptions: [],
404
- transferFrequency: {},
405
- distributionFormats: []
406
- }
407
- end
408
-
409
- def newMedium
410
- {
411
- mediumSpecification: {},
412
- density: nil,
413
- units: nil,
414
- numberOfVolumes: nil,
415
- mediumFormat: [],
416
- note: nil,
417
- identifier: {}
418
- }
419
- end
420
-
421
- def newResourceFormat
422
- {
423
- formatSpecification: {},
424
- amendmentNumber: nil,
425
- compressionMethod: nil
426
- }
427
- end
428
-
429
- def newGraphic
430
- {
431
- graphicName: nil,
432
- graphicDescription: nil,
433
- graphicType: nil,
434
- graphicConstraints: [],
435
- graphicURI: []
436
- }
437
- end
438
-
439
- def newSpatialReferenceSystem
440
- {
441
- systemType: nil,
442
- systemIdentifier: {}
443
- }
444
- end
445
-
446
- def newSpatialResolution
447
- {
448
- scaleFactor: nil,
449
- measure: {},
450
- levelOfDetail: nil
451
- }
452
- end
453
-
454
- def newMeasure
455
- {
456
- type: nil,
457
- value: nil,
458
- unitOfMeasure: nil
459
- }
460
- end
461
-
462
- def newExtent
463
- {
464
- description: nil,
465
- geographicExtents: [],
466
- temporalExtents: [],
467
- verticalExtents: []
468
- }
469
- end
470
-
471
- def newGeographicExtent
472
- {
473
- containsData: true,
474
- identifier: {},
475
- boundingBox: {},
476
- geographicElements: [],
477
- nativeGeoJson: [],
478
- computedBbox: {}
479
- }
480
- end
481
-
482
- def newBoundingBox
483
- {
484
- westLongitude: nil,
485
- eastLongitude: nil,
486
- southLatitude: nil,
487
- northLatitude: nil
488
- }
489
- end
490
-
491
- def newGeometryObject
492
- {
493
- type: nil,
494
- coordinates: [],
495
- nativeGeoJson: {}
496
- }
497
- end
498
-
499
- def newGeometryCollection
500
- {
501
- type: nil,
502
- bbox: [],
503
- geometryObjects: [],
504
- computedBbox: [],
505
- nativeGeoJson: {}
506
- }
507
- end
508
-
509
- def newGeometryProperties
510
- {
511
- featureNames: [],
512
- description: nil,
513
- identifiers: [],
514
- featureScope: nil,
515
- acquisitionMethod: nil
516
- }
517
- end
518
-
519
- def newGeometryFeature
520
- {
521
- type: nil,
522
- id: nil,
523
- bbox: [],
524
- geometryObject: {},
525
- properties: {},
526
- computedBbox: [],
527
- nativeGeoJson: {}
528
- }
529
- end
530
-
531
- def newFeatureCollection
532
- {
533
- type: nil,
534
- bbox: [],
535
- features: [],
536
- computedBbox: [],
537
- nativeGeoJson: {}
538
- }
539
- end
540
-
541
- def newTemporalExtent
542
- {
543
- timeInstant: {},
544
- timePeriod: {}
545
- }
546
- end
547
-
548
- def newTimeInstant
549
- {
550
- timeId: nil,
551
- description: nil,
552
- identifier: {},
553
- instantNames: [],
554
- timeInstant: {}
555
- }
556
- end
557
-
558
- def newTimePeriod
559
- {
560
- timeId: nil,
561
- description: nil,
562
- identifier: {},
563
- periodNames: [],
564
- startDateTime: {},
565
- endDateTime: {},
566
- timeInterval: {},
567
- duration: {}
568
- }
569
- end
570
-
571
- def newDuration
572
- {
573
- years: nil,
574
- months: nil,
575
- days: nil,
576
- hours: nil,
577
- minutes: nil,
578
- seconds: nil
579
- }
580
- end
581
-
582
- def newTimeInterval
583
- {
584
- interval: nil,
585
- units: nil
586
- }
587
- end
588
-
589
- def newVerticalExtent
590
- {
591
- description: nil,
592
- minValue: nil,
593
- maxValue: nil,
594
- crsId: {}
595
- }
596
- end
597
-
598
- def newResourceUsage
599
- {
600
- specificUsage: nil,
601
- temporalExtents: [],
602
- userLimitation: nil,
603
- limitationResponses: [],
604
- identifiedIssue: {},
605
- additionalDocumentation: [],
606
- userContacts: []
607
- }
608
- end
609
-
610
- def newTaxonomy
611
- {
612
- taxonSystem: [],
613
- generalScope: nil,
614
- idReferences: [],
615
- observers: [],
616
- idProcedure: nil,
617
- idCompleteness: nil,
618
- vouchers: [],
619
- taxonClass: {}
620
- }
621
- end
622
-
623
- def newTaxonSystem
624
- {
625
- citation: {},
626
- modifications: nil
627
- }
628
- end
629
-
630
- def newTaxonVoucher
631
- {
632
- specimen: nil,
633
- repository: {}
634
- }
635
- end
636
-
637
- def newTaxonClass
638
- {
639
- taxonId: nil,
640
- taxonRank: nil,
641
- taxonValue: nil,
642
- commonNames: [],
643
- subClasses: []
644
- }
645
- end
646
-
647
- def newLineage
648
- {
649
- statement: nil,
650
- resourceScope: {},
651
- lineageCitation: [],
652
- dataSources: [],
653
- processSteps: []
654
- }
655
- end
656
-
657
- def newProcessStep
658
- {
659
- stepId: nil,
660
- description: nil,
661
- rationale: nil,
662
- timePeriod: {},
663
- processors: [],
664
- references: [],
665
- scope: {}
666
- }
667
- end
668
-
669
- def newDataSource
670
- {
671
- description: nil,
672
- sourceCitation: {},
673
- metadataCitation: [],
674
- spatialResolution: {},
675
- referenceSystem: {},
676
- sourceSteps: [],
677
- scope: {}
678
- }
679
- end
680
-
681
- def newMetadataExtension
682
- {
683
- onLineResource: {},
684
- name: nil,
685
- shortName: nil,
686
- definition: nil,
687
- obligation: nil,
688
- dataType: nil,
689
- maxOccurrence: nil,
690
- parentEntities: [],
691
- rule: nil,
692
- rationales: [],
693
- sourceOrganization: nil,
694
- sourceURI: nil,
695
- sourceRole: nil
696
- }
697
- end
698
-
699
- def newAssociatedResource
700
- {
701
- resourceTypes: [],
702
- associationType: nil,
703
- initiativeType: nil,
704
- resourceCitation: {},
705
- metadataCitation: {}
706
- }
707
- end
708
-
709
- def newAdditionalDocumentation
710
- {
711
- resourceTypes: [],
712
- citation: []
713
- }
714
- end
715
-
716
- def newDataDictionary
717
- {
718
- citation: {},
719
- subjects: [],
720
- recommendedUses: [],
721
- locales: [],
722
- responsibleParty: {},
723
- dictionaryFormat: nil,
724
- includedWithDataset: false,
725
- domains: [],
726
- entities: []
727
- }
728
- end
729
-
730
- def newDictionaryDomain
731
- {
732
- domainId: nil,
733
- domainName: nil,
734
- domainCode: nil,
735
- domainDescription: nil,
736
- domainItems: []
737
- }
738
- end
739
-
740
- def newDomainItem
741
- {
742
- itemName: nil,
743
- itemValue: nil,
744
- itemDefinition: nil
745
- }
746
- end
747
-
748
- def newEntity
749
- {
750
- entityId: nil,
751
- entityName: nil,
752
- entityCode: nil,
753
- entityAlias: [],
754
- entityDefinition: nil,
755
- primaryKey: [],
756
- indexes: [],
757
- attributes: [],
758
- foreignKeys: []
759
- }
760
- end
761
-
762
- def newEntityIndex
763
- {
764
- indexCode: nil,
765
- duplicate: false,
766
- attributeNames: []
767
- }
768
- end
769
-
770
- def newEntityAttribute
771
- {
772
- attributeName: nil,
773
- attributeCode: nil,
774
- attributeAlias: [],
775
- attributeDefinition: nil,
776
- dataType: nil,
777
- allowNull: false,
778
- allowMany: false,
779
- unitOfMeasure: nil,
780
- domainId: nil,
781
- minValue: nil,
782
- maxValue: nil
783
- }
784
- end
785
-
786
- def newEntityForeignKey
787
- {
788
- fkLocalAttributes: [],
789
- fkReferencedEntity: nil,
790
- fkReferencedAttributes: []
791
- }
792
- end
793
-
794
- def newSpatialRepresentation
795
- {
796
- gridRepresentation: {},
797
- vectorRepresentation: {},
798
- georectifiedRepresentation: {},
799
- georeferenceableRepresentation: {}
800
- }
801
- end
802
-
803
- def newGridInfo
804
- {
805
- numberOfDimensions: nil,
806
- dimension: [],
807
- cellGeometry: nil,
808
- transformationParameterAvailable: false
809
- }
810
- end
811
-
812
- def newDimension
813
- {
814
- dimensionType: nil,
815
- dimensionTitle: nil,
816
- dimensionDescription: nil,
817
- dimensionSize: nil,
818
- resolution: {}
819
- }
820
- end
821
-
822
- def newVectorInfo
823
- {
824
- topologyLevel: nil,
825
- vectorObject: []
826
- }
827
- end
828
-
829
- def newVectorObject
830
- {
831
- objectType: nil,
832
- objectCount: nil
833
- }
834
- end
835
-
836
- def newGeorectifiedInfo
837
- {
838
- gridRepresentation: {},
839
- checkPointAvailable: false,
840
- checkPointDescription: nil,
841
- cornerPoints: [],
842
- centerPoint: [],
843
- pointInPixel: nil,
844
- transformationDimensionDescription: nil,
845
- transformationDimensionMapping: nil
846
- }
847
- end
848
-
849
- def newGeoreferenceableInfo
850
- {
851
- gridRepresentation: {},
852
- controlPointAvailable: false,
853
- orientationParameterAvailable: false,
854
- orientationParameterDescription: nil,
855
- georeferencedParameter: nil,
856
- parameterCitation: []
857
- }
858
- end
859
-
860
- def newCoverageDescription
861
- {
862
- coverageName: nil,
863
- coverageDescription: nil,
864
- processingLevelCode: {},
865
- attributeGroups: [],
866
- imageDescription: {}
867
- }
868
- end
869
-
870
- def newAttributeGroup
871
- {
872
- attributeContentTypes: [],
873
- attributes: []
874
- }
875
- end
876
-
877
- def newAttribute
878
- {
879
- sequenceIdentifier: nil,
880
- sequenceIdentifierType: nil,
881
- attributeDescription: nil,
882
- attributeIdentifiers: [],
883
- minValue: nil,
884
- maxValue: nil,
885
- units: nil,
886
- scaleFactor: nil,
887
- offset: nil,
888
- meanValue: nil,
889
- numberOfValues: nil,
890
- standardDeviation: nil,
891
- bitsPerValue: nil,
892
- boundMin: nil,
893
- boundMax: nil,
894
- boundUnits: nil,
895
- peakResponse: nil,
896
- toneGradations: nil,
897
- bandBoundaryDefinition: nil,
898
- nominalSpatialResolution: nil,
899
- transferFunctionType: nil,
900
- transmittedPolarization: nil,
901
- detectedPolarization: nil
902
- }
903
- end
904
-
905
- def newImageDescription
906
- {
907
- illuminationElevationAngle: nil,
908
- illuminationAzimuthAngle: nil,
909
- imagingCondition: nil,
910
- imageQualityCode: {},
911
- cloudCoverPercent: nil,
912
- compressionQuantity: nil,
913
- triangulationIndicator: false,
914
- radiometricCalibrationAvailable: false,
915
- cameraCalibrationAvailable: false,
916
- filmDistortionAvailable: false,
917
- lensDistortionAvailable: false
918
- }
919
- end
920
-
921
- def newLocale
922
- {
923
- languageCode: nil,
924
- countryCode: nil,
925
- characterEncoding: nil
926
- }
927
- end
928
-
929
- def newSeries
930
- {
931
- seriesName: nil,
932
- seriesIssue: nil,
933
- issuePage: nil
934
- }
935
- end
936
-
937
- def newScope
938
- {
939
- scopeCode: nil,
940
- scopeDescriptions: [],
941
- extents: []
942
- }
943
- end
944
-
945
- def newScopeDescription
946
- {
947
- dataset: nil,
948
- attributes: nil,
949
- features: nil,
950
- other: nil
951
- }
952
- end
953
-
954
- def newAllocation
955
- {
956
- amount: nil,
957
- currency: nil,
958
- sourceId: nil,
959
- recipientId: nil,
960
- matching: false,
961
- comment: nil
962
- }
963
- end
964
-
965
- def newFunding
966
- {
967
- allocations: [],
968
- timePeriod: {}
969
- }
970
- end
971
-
972
- def newMetadataRepository
973
- {
974
- repository: nil,
975
- metadataStandard: nil
976
- }
977
- end
978
-
979
- def newResourceType
980
- {
981
- type: nil,
982
- name: nil
983
- }
984
- end
113
+ # initialize Boolean - false
114
+ # initialize scalar - nil
115
+ # initialize hash - {}
116
+ # initialize array - []
117
+
118
+ def initialize
119
+ end
120
+
121
+ def newBase
122
+ {
123
+ schema: {},
124
+ contacts: [],
125
+ metadata: {},
126
+ dataDictionaries: [],
127
+ metadataRepositories: []
128
+ }
129
+ end
130
+
131
+ def newSchema
132
+ {
133
+ name: nil,
134
+ version: nil
135
+ }
136
+ end
137
+
138
+ def newDate
139
+ {
140
+ date: nil,
141
+ dateResolution: nil,
142
+ dateType: nil,
143
+ description: nil
144
+ }
145
+ end
146
+
147
+ def newDateTime
148
+ {
149
+ dateTime: nil,
150
+ dateResolution: nil
151
+ }
152
+ end
153
+
154
+ def newContact
155
+ {
156
+ contactId: nil,
157
+ isOrganization: false,
158
+ name: nil,
159
+ positionName: nil,
160
+ memberOfOrgs: [],
161
+ logos: [],
162
+ phones: [],
163
+ addresses: [],
164
+ eMailList: [],
165
+ onlineResources: [],
166
+ hoursOfService: [],
167
+ contactInstructions: nil,
168
+ contactType: nil
169
+ }
170
+ end
171
+
172
+ def newPhone
173
+ {
174
+ phoneName: nil,
175
+ phoneNumber: nil,
176
+ phoneServiceTypes: []
177
+ }
178
+ end
179
+
180
+ def newAddress
181
+ {
182
+ addressTypes: [],
183
+ description: nil,
184
+ deliveryPoints: [],
185
+ city: nil,
186
+ adminArea: nil,
187
+ postalCode: nil,
188
+ country: nil
189
+ }
190
+ end
191
+
192
+ def newMetadata
193
+ {
194
+ metadataInfo: {},
195
+ resourceInfo: {},
196
+ lineageInfo: [],
197
+ distributorInfo: [],
198
+ associatedResources: [],
199
+ additionalDocuments: [],
200
+ funding: []
201
+ }
202
+ end
203
+
204
+ def newMetadataInfo
205
+ {
206
+ metadataIdentifier: {},
207
+ parentMetadata: {},
208
+ defaultMetadataLocale: {},
209
+ otherMetadataLocales: [],
210
+ metadataContacts: [],
211
+ metadataDates: [],
212
+ metadataLinkages: [],
213
+ metadataMaintenance: {},
214
+ alternateMetadataReferences: [],
215
+ metadataStatus: nil,
216
+ extensions: []
217
+ }
218
+ end
219
+
220
+ def newResponsibility
221
+ {
222
+ roleName: nil,
223
+ roleExtents: [],
224
+ parties: []
225
+ }
226
+ end
227
+
228
+ def newParty
229
+ {
230
+ contactId: nil,
231
+ contactIndex: nil,
232
+ contactType: nil,
233
+ organizationMembers: []
234
+ }
235
+ end
236
+
237
+ def newOnlineResource
238
+ {
239
+ olResURI: nil,
240
+ olResProtocol: nil,
241
+ olResName: nil,
242
+ olResDesc: nil,
243
+ olResFunction: nil
244
+ }
245
+ end
246
+
247
+ def newResourceInfo
248
+ {
249
+ resourceTypes: [],
250
+ citation: {},
251
+ abstract: nil,
252
+ shortAbstract: nil,
253
+ purpose: nil,
254
+ credits: [],
255
+ timePeriod: {},
256
+ status: [],
257
+ topicCategories: [],
258
+ pointOfContacts: [],
259
+ spatialReferenceSystems: [],
260
+ spatialRepresentationTypes: [],
261
+ spatialRepresentations: [],
262
+ spatialResolutions: [],
263
+ temporalResolutions: [],
264
+ extents: [],
265
+ coverageDescriptions: [],
266
+ taxonomy: {},
267
+ graphicOverviews: [],
268
+ resourceFormats: [],
269
+ keywords: [],
270
+ resourceUsages: [],
271
+ constraints: [],
272
+ defaultResourceLocale: {},
273
+ otherResourceLocales: [],
274
+ resourceMaintenance: [],
275
+ environmentDescription: nil,
276
+ supplementalInfo: nil
277
+ }
278
+ end
279
+
280
+ def newCitation
281
+ {
282
+ title: nil,
283
+ alternateTitles: [],
284
+ dates: [],
285
+ edition: nil,
286
+ responsibleParties: [],
287
+ presentationForms: [],
288
+ identifiers: [],
289
+ series: {},
290
+ otherDetails: [],
291
+ onlineResources: [],
292
+ browseGraphics: []
293
+ }
294
+ end
295
+
296
+
297
+ def newIdentifier
298
+ # handles MD_Identifier (ISO 19115-2 & -1)
299
+ # handles RS_ Identifier (ISO 19115-2)
300
+ # handles gmlIdentifier
301
+ {
302
+ identifier: nil,
303
+ namespace: nil,
304
+ version: nil,
305
+ description: nil,
306
+ citation: {}
307
+ }
308
+ end
309
+
310
+ def newMaintenance
311
+ {
312
+ frequency: nil,
313
+ dates: [],
314
+ scopes: [],
315
+ notes: [],
316
+ contacts: []
317
+ }
318
+ end
319
+
320
+ def newKeyword
321
+ {
322
+ keywords: [],
323
+ keywordType: nil,
324
+ thesaurus: {}
325
+ }
326
+ end
327
+
328
+ def newKeywordObject
329
+ {
330
+ keyword: nil,
331
+ keywordId: nil
332
+ }
333
+ end
334
+
335
+ def newConstraint
336
+ {
337
+ type: nil,
338
+ useLimitation: [],
339
+ scope: {},
340
+ graphic: [],
341
+ reference: [],
342
+ releasability: {},
343
+ responsibleParty: [],
344
+ legalConstraint: {},
345
+ securityConstraint: {}
346
+ }
347
+ end
348
+
349
+ def newLegalConstraint
350
+ {
351
+ accessCodes: [],
352
+ useCodes: [],
353
+ otherCons: []
354
+ }
355
+ end
356
+
357
+ def newSecurityConstraint
358
+ {
359
+ classCode: nil,
360
+ userNote: nil,
361
+ classSystem: nil,
362
+ handling: nil
363
+ }
364
+ end
365
+
366
+ def newRelease
367
+ {
368
+ addressee: [],
369
+ statement: nil,
370
+ disseminationConstraint: []
371
+ }
372
+ end
373
+
374
+ def newDistribution
375
+ {
376
+ description: nil,
377
+ distributor: []
378
+ }
379
+ end
380
+
381
+ def newDistributor
382
+ {
383
+ contact: {},
384
+ orderProcess: [],
385
+ transferOptions: []
386
+ }
387
+ end
388
+
389
+ def newOrderProcess
390
+ {
391
+ fees: nil,
392
+ plannedAvailability: {},
393
+ orderingInstructions: nil,
394
+ turnaround: nil
395
+ }
396
+ end
397
+
398
+ def newTransferOption
399
+ {
400
+ unitsOfDistribution: nil,
401
+ transferSize: nil,
402
+ onlineOptions: [],
403
+ offlineOptions: [],
404
+ transferFrequency: {},
405
+ distributionFormats: []
406
+ }
407
+ end
408
+
409
+ def newMedium
410
+ {
411
+ mediumSpecification: {},
412
+ density: nil,
413
+ units: nil,
414
+ numberOfVolumes: nil,
415
+ mediumFormat: [],
416
+ note: nil,
417
+ identifier: {}
418
+ }
419
+ end
420
+
421
+ def newResourceFormat
422
+ {
423
+ formatSpecification: {},
424
+ amendmentNumber: nil,
425
+ compressionMethod: nil
426
+ }
427
+ end
428
+
429
+ def newGraphic
430
+ {
431
+ graphicName: nil,
432
+ graphicDescription: nil,
433
+ graphicType: nil,
434
+ graphicConstraints: [],
435
+ graphicURI: []
436
+ }
437
+ end
438
+
439
+ def newSpatialReferenceSystem
440
+ {
441
+ systemType: nil,
442
+ systemIdentifier: {}
443
+ }
444
+ end
445
+
446
+ def newSpatialResolution
447
+ {
448
+ scaleFactor: nil,
449
+ measure: {},
450
+ levelOfDetail: nil
451
+ }
452
+ end
453
+
454
+ def newMeasure
455
+ {
456
+ type: nil,
457
+ value: nil,
458
+ unitOfMeasure: nil
459
+ }
460
+ end
461
+
462
+ def newExtent
463
+ {
464
+ description: nil,
465
+ geographicExtents: [],
466
+ temporalExtents: [],
467
+ verticalExtents: []
468
+ }
469
+ end
470
+
471
+ def newGeographicExtent
472
+ {
473
+ containsData: true,
474
+ identifier: {},
475
+ boundingBox: {},
476
+ geographicElements: [],
477
+ nativeGeoJson: [],
478
+ computedBbox: {}
479
+ }
480
+ end
481
+
482
+ def newBoundingBox
483
+ {
484
+ westLongitude: nil,
485
+ eastLongitude: nil,
486
+ southLatitude: nil,
487
+ northLatitude: nil
488
+ }
489
+ end
490
+
491
+ def newGeometryObject
492
+ {
493
+ type: nil,
494
+ coordinates: [],
495
+ nativeGeoJson: {}
496
+ }
497
+ end
498
+
499
+ def newGeometryCollection
500
+ {
501
+ type: nil,
502
+ bbox: [],
503
+ geometryObjects: [],
504
+ computedBbox: [],
505
+ nativeGeoJson: {}
506
+ }
507
+ end
508
+
509
+ def newGeometryProperties
510
+ {
511
+ featureNames: [],
512
+ description: nil,
513
+ identifiers: [],
514
+ featureScope: nil,
515
+ acquisitionMethod: nil
516
+ }
517
+ end
518
+
519
+ def newGeometryFeature
520
+ {
521
+ type: nil,
522
+ id: nil,
523
+ bbox: [],
524
+ geometryObject: {},
525
+ properties: {},
526
+ computedBbox: [],
527
+ nativeGeoJson: {}
528
+ }
529
+ end
530
+
531
+ def newFeatureCollection
532
+ {
533
+ type: nil,
534
+ bbox: [],
535
+ features: [],
536
+ computedBbox: [],
537
+ nativeGeoJson: {}
538
+ }
539
+ end
540
+
541
+ def newTemporalExtent
542
+ {
543
+ timeInstant: {},
544
+ timePeriod: {}
545
+ }
546
+ end
547
+
548
+ def newTimeInstant
549
+ {
550
+ timeId: nil,
551
+ description: nil,
552
+ identifier: {},
553
+ instantNames: [],
554
+ timeInstant: {}
555
+ }
556
+ end
557
+
558
+ def newTimePeriod
559
+ {
560
+ timeId: nil,
561
+ description: nil,
562
+ identifier: {},
563
+ periodNames: [],
564
+ startDateTime: {},
565
+ endDateTime: {},
566
+ timeInterval: {},
567
+ duration: {}
568
+ }
569
+ end
570
+
571
+ def newDuration
572
+ {
573
+ years: nil,
574
+ months: nil,
575
+ days: nil,
576
+ hours: nil,
577
+ minutes: nil,
578
+ seconds: nil
579
+ }
580
+ end
581
+
582
+ def newTimeInterval
583
+ {
584
+ interval: nil,
585
+ units: nil
586
+ }
587
+ end
588
+
589
+ def newVerticalExtent
590
+ {
591
+ description: nil,
592
+ minValue: nil,
593
+ maxValue: nil,
594
+ crsId: {}
595
+ }
596
+ end
597
+
598
+ def newResourceUsage
599
+ {
600
+ specificUsage: nil,
601
+ temporalExtents: [],
602
+ userLimitation: nil,
603
+ limitationResponses: [],
604
+ identifiedIssue: {},
605
+ additionalDocumentation: [],
606
+ userContacts: []
607
+ }
608
+ end
609
+
610
+ def newTaxonomy
611
+ {
612
+ taxonSystem: [],
613
+ generalScope: nil,
614
+ idReferences: [],
615
+ observers: [],
616
+ idProcedure: nil,
617
+ idCompleteness: nil,
618
+ vouchers: [],
619
+ taxonClass: {}
620
+ }
621
+ end
622
+
623
+ def newTaxonSystem
624
+ {
625
+ citation: {},
626
+ modifications: nil
627
+ }
628
+ end
629
+
630
+ def newTaxonVoucher
631
+ {
632
+ specimen: nil,
633
+ repository: {}
634
+ }
635
+ end
636
+
637
+ def newTaxonClass
638
+ {
639
+ taxonId: nil,
640
+ taxonRank: nil,
641
+ taxonValue: nil,
642
+ commonNames: [],
643
+ subClasses: []
644
+ }
645
+ end
646
+
647
+ def newLineage
648
+ {
649
+ statement: nil,
650
+ resourceScope: {},
651
+ lineageCitation: [],
652
+ dataSources: [],
653
+ processSteps: []
654
+ }
655
+ end
656
+
657
+ def newProcessStep
658
+ {
659
+ stepId: nil,
660
+ description: nil,
661
+ rationale: nil,
662
+ timePeriod: {},
663
+ processors: [],
664
+ references: [],
665
+ scope: {}
666
+ }
667
+ end
668
+
669
+ def newDataSource
670
+ {
671
+ description: nil,
672
+ sourceCitation: {},
673
+ metadataCitation: [],
674
+ spatialResolution: {},
675
+ referenceSystem: {},
676
+ sourceSteps: [],
677
+ scope: {}
678
+ }
679
+ end
680
+
681
+ def newMetadataExtension
682
+ {
683
+ onLineResource: {},
684
+ name: nil,
685
+ shortName: nil,
686
+ definition: nil,
687
+ obligation: nil,
688
+ dataType: nil,
689
+ maxOccurrence: nil,
690
+ parentEntities: [],
691
+ rule: nil,
692
+ rationales: [],
693
+ sourceOrganization: nil,
694
+ sourceURI: nil,
695
+ sourceRole: nil
696
+ }
697
+ end
698
+
699
+ def newAssociatedResource
700
+ {
701
+ resourceTypes: [],
702
+ associationType: nil,
703
+ initiativeType: nil,
704
+ resourceCitation: {},
705
+ metadataCitation: {}
706
+ }
707
+ end
708
+
709
+ def newAdditionalDocumentation
710
+ {
711
+ resourceTypes: [],
712
+ citation: []
713
+ }
714
+ end
715
+
716
+ def newDataDictionary
717
+ {
718
+ citation: {},
719
+ subjects: [],
720
+ recommendedUses: [],
721
+ locales: [],
722
+ responsibleParty: {},
723
+ dictionaryFormat: nil,
724
+ includedWithDataset: false,
725
+ domains: [],
726
+ entities: []
727
+ }
728
+ end
729
+
730
+ def newDictionaryDomain
731
+ {
732
+ domainId: nil,
733
+ domainName: nil,
734
+ domainCode: nil,
735
+ domainDescription: nil,
736
+ domainItems: []
737
+ }
738
+ end
739
+
740
+ def newDomainItem
741
+ {
742
+ itemName: nil,
743
+ itemValue: nil,
744
+ itemDefinition: nil
745
+ }
746
+ end
747
+
748
+ def newEntity
749
+ {
750
+ entityId: nil,
751
+ entityName: nil,
752
+ entityCode: nil,
753
+ entityAlias: [],
754
+ entityDefinition: nil,
755
+ primaryKey: [],
756
+ indexes: [],
757
+ attributes: [],
758
+ foreignKeys: []
759
+ }
760
+ end
761
+
762
+ def newEntityIndex
763
+ {
764
+ indexCode: nil,
765
+ duplicate: false,
766
+ attributeNames: []
767
+ }
768
+ end
769
+
770
+ def newEntityAttribute
771
+ {
772
+ attributeName: nil,
773
+ attributeCode: nil,
774
+ attributeAlias: [],
775
+ attributeDefinition: nil,
776
+ dataType: nil,
777
+ allowNull: false,
778
+ allowMany: false,
779
+ unitOfMeasure: nil,
780
+ domainId: nil,
781
+ minValue: nil,
782
+ maxValue: nil
783
+ }
784
+ end
785
+
786
+ def newEntityForeignKey
787
+ {
788
+ fkLocalAttributes: [],
789
+ fkReferencedEntity: nil,
790
+ fkReferencedAttributes: []
791
+ }
792
+ end
793
+
794
+ def newSpatialRepresentation
795
+ {
796
+ gridRepresentation: {},
797
+ vectorRepresentation: {},
798
+ georectifiedRepresentation: {},
799
+ georeferenceableRepresentation: {}
800
+ }
801
+ end
802
+
803
+ def newGridInfo
804
+ {
805
+ numberOfDimensions: nil,
806
+ dimension: [],
807
+ cellGeometry: nil,
808
+ transformationParameterAvailable: false
809
+ }
810
+ end
811
+
812
+ def newDimension
813
+ {
814
+ dimensionType: nil,
815
+ dimensionTitle: nil,
816
+ dimensionDescription: nil,
817
+ dimensionSize: nil,
818
+ resolution: {}
819
+ }
820
+ end
821
+
822
+ def newVectorInfo
823
+ {
824
+ topologyLevel: nil,
825
+ vectorObject: []
826
+ }
827
+ end
828
+
829
+ def newVectorObject
830
+ {
831
+ objectType: nil,
832
+ objectCount: nil
833
+ }
834
+ end
835
+
836
+ def newGeorectifiedInfo
837
+ {
838
+ gridRepresentation: {},
839
+ checkPointAvailable: false,
840
+ checkPointDescription: nil,
841
+ cornerPoints: [],
842
+ centerPoint: [],
843
+ pointInPixel: nil,
844
+ transformationDimensionDescription: nil,
845
+ transformationDimensionMapping: nil
846
+ }
847
+ end
848
+
849
+ def newGeoreferenceableInfo
850
+ {
851
+ gridRepresentation: {},
852
+ controlPointAvailable: false,
853
+ orientationParameterAvailable: false,
854
+ orientationParameterDescription: nil,
855
+ georeferencedParameter: nil,
856
+ parameterCitation: []
857
+ }
858
+ end
859
+
860
+ def newCoverageDescription
861
+ {
862
+ coverageName: nil,
863
+ coverageDescription: nil,
864
+ processingLevelCode: {},
865
+ attributeGroups: [],
866
+ imageDescription: {}
867
+ }
868
+ end
869
+
870
+ def newAttributeGroup
871
+ {
872
+ attributeContentTypes: [],
873
+ attributes: []
874
+ }
875
+ end
876
+
877
+ def newAttribute
878
+ {
879
+ sequenceIdentifier: nil,
880
+ sequenceIdentifierType: nil,
881
+ attributeDescription: nil,
882
+ attributeIdentifiers: [],
883
+ minValue: nil,
884
+ maxValue: nil,
885
+ units: nil,
886
+ scaleFactor: nil,
887
+ offset: nil,
888
+ meanValue: nil,
889
+ numberOfValues: nil,
890
+ standardDeviation: nil,
891
+ bitsPerValue: nil,
892
+ boundMin: nil,
893
+ boundMax: nil,
894
+ boundUnits: nil,
895
+ peakResponse: nil,
896
+ toneGradations: nil,
897
+ bandBoundaryDefinition: nil,
898
+ nominalSpatialResolution: nil,
899
+ transferFunctionType: nil,
900
+ transmittedPolarization: nil,
901
+ detectedPolarization: nil
902
+ }
903
+ end
904
+
905
+ def newImageDescription
906
+ {
907
+ illuminationElevationAngle: nil,
908
+ illuminationAzimuthAngle: nil,
909
+ imagingCondition: nil,
910
+ imageQualityCode: {},
911
+ cloudCoverPercent: nil,
912
+ compressionQuantity: nil,
913
+ triangulationIndicator: false,
914
+ radiometricCalibrationAvailable: false,
915
+ cameraCalibrationAvailable: false,
916
+ filmDistortionAvailable: false,
917
+ lensDistortionAvailable: false
918
+ }
919
+ end
920
+
921
+ def newLocale
922
+ {
923
+ languageCode: nil,
924
+ countryCode: nil,
925
+ characterEncoding: nil
926
+ }
927
+ end
928
+
929
+ def newSeries
930
+ {
931
+ seriesName: nil,
932
+ seriesIssue: nil,
933
+ issuePage: nil
934
+ }
935
+ end
936
+
937
+ def newScope
938
+ {
939
+ scopeCode: nil,
940
+ scopeDescriptions: [],
941
+ extents: []
942
+ }
943
+ end
944
+
945
+ def newScopeDescription
946
+ {
947
+ dataset: nil,
948
+ attributes: nil,
949
+ features: nil,
950
+ other: nil
951
+ }
952
+ end
953
+
954
+ def newAllocation
955
+ {
956
+ amount: nil,
957
+ currency: nil,
958
+ sourceId: nil,
959
+ recipientId: nil,
960
+ matching: false,
961
+ comment: nil
962
+ }
963
+ end
964
+
965
+ def newFunding
966
+ {
967
+ allocations: [],
968
+ timePeriod: {}
969
+ }
970
+ end
971
+
972
+ def newMetadataRepository
973
+ {
974
+ repository: nil,
975
+ metadataStandard: nil
976
+ }
977
+ end
978
+
979
+ def newResourceType
980
+ {
981
+ type: nil,
982
+ name: nil
983
+ }
984
+ end
985
985
 
986
986
  end