Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Dictionary support for 19115-1 #216

Merged
merged 18 commits into from
Sep 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
require 'bundler/gem_tasks'
require 'rake/testtask'

# Rake::TestTask.new do |t|
# t.libs << 'test'
# t.test_files = FileList[
# 'test/writers/iso19115-2/tc*.rb'
# ]
# t.verbose = true
# end

Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList[
Expand All @@ -22,15 +30,3 @@ end

desc 'Run tests'
task :default => :test

# 'test/readers/fgdc/tc*.rb',
# 'test/readers/mdJson/tc*.rb',
# 'test/readers/sbJson/tc*.rb',
# 'test/writers/fgdc/tc*.rb',
# 'test/writers/html/tc*.rb',
# 'test/writers/iso19110/tc*.rb',
# 'test/writers/iso19115-1/tc*.rb',
# 'test/writers/iso19115-2/tc*.rb',
# 'test/writers/mdJson/tc*.rb',
# 'test/writers/sbJson/tc*.rb',
# 'test/translator/tc*.rb'
2 changes: 1 addition & 1 deletion adiwg-mdtranslator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "thor", "~> 0.19"
spec.add_runtime_dependency "uuidtools", "~> 2.1"
spec.add_runtime_dependency "json-schema", "~> 2.7"
spec.add_runtime_dependency "adiwg-mdjson_schemas", ">= 2.6"
spec.add_runtime_dependency "adiwg-mdjson_schemas", ">= 2.7"
spec.add_runtime_dependency "adiwg-mdcodes", "~> 2.7"
spec.add_runtime_dependency "jbuilder", "~> 2.5"
spec.add_runtime_dependency "kramdown", "~> 1.13"
Expand Down
108 changes: 108 additions & 0 deletions lib/adiwg/mdtranslator/internal/acquisition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"acquisition": [
{
"plan": [
{
"planId": "plan ID",
"planType": "MI_GeometryTypeCode",
"status": "MD_ProgressCode",
"citation": {},
"planOperation": ["operationId"],
"satisfiedRequirement": ["requirementId"]
}
],
"requirement": [
{
"requirementId": "requirement ID",
"citation": {},
"identifier": {},
"requestor": [],
"recipient": [],
"priority": "MI_PriorityCode",
"requestedDate": {
"requestedDateOfCollection": "2019-06-10T16:01:00",
"latestAcceptableDate": "2019-06-13:T16:02:00"
},
"expiryDate": "2019-06-10T15:50:00",
"satisfiedPlan": ["planId"]
}
],
"objective": [
{
"objectiveId": "objective ID",
"identifier": [],
"priority": "objective priority",
"objectiveType": ["MI_ObjectiveTypeCode"],
"function": ["objective function one"],
"extent": [],
"objectiveOccurrence": ["eventId"],
"pass": ["passId"],
"sensingInstrument": ["instrumentId"]
}
],
"platform": [
{
"platformId": "platform ID",
"citation": {},
"identifier": {},
"description": "platform description",
"sponsor": [],
"instrument": ["instrumentId"]
}
],
"instrument": [
{
"instrumentId": "instrument ID",
"citation": [],
"identifier": {},
"instrumentType": "instrument type",
"description": "instrument description",
"mountedOn": "platformId"
}
],
"operation": [
{
"operationId": "operation ID",
"description": "operation description",
"citation": {},
"identifier": {},
"status": "MD_ProgressCode",
"operationType": "MI_OperationTypeCode",
"objective": ["objectiveId"],
"parentOperation": "operationId",
"childOperation": ["operationId"],
"plan": "planId",
"platform": ["platformId"],
"significantEvent": ["eventId"]
}
],
"event": [
{
"eventId": "event ID",
"identifier": {},
"trigger": "MI_TriggerCode",
"context": "MI_ContextCode",
"sequence": "MI_SequenceCode",
"time": "2019-06-10T16:07:00",
"expectedObjective": ["objectiveId"],
"relatedPass": "passId",
"relatedSensor": ["instrumentId"]
}
],
"pass": [
{
"passId": "pass ID",
"identifier": {},
"extent": {},
"relatedEvent": ["eventId"]
}
],
"environment": {
"averageAirTemperature": 9.9,
"maxRelativeHumidity": 9.9,
"maxAltitude": 9.9,
"meteorologicalConditions": "meteorological conditions"
}
}
]
}
Loading