adiwg-mdjson_schemas 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/adiwg-json_schemas.gemspec +1 -1
- data/examples/projection.json +28 -2
- data/examples/referenceSystemParameterSet.json +0 -7
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/package.json +1 -1
- data/schema/projection.json +36 -12
- data/schema/referenceSystemParameterSet.json +1 -41
- data/schema/schema.json +1 -1
- data/test/tc_projection.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 210524881f60b4064492a4b480dd53de4f8c2cc8
|
4
|
+
data.tar.gz: 214c5f7fe2472a6a25e7ee305875dce341460487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59b9ee2d72e9f5e23c5802b042b344e268fcbbdf04fbb318c723beea390c6af344031d3c69e41ce61be6614c3bc296320d3d50341058f9df9009e7776c46a0d5
|
7
|
+
data.tar.gz: f565fb2bc11e4c6014930359903ec7576e96f8f79143d8c31a4564ad376a40b4b827514776f3bc94b8d0ad479bcf54dbfe7f89a94baa43190998adcf81647581
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [v2.5.
|
3
|
+
## [v2.5.1](https://github.com/adiwg/mdJson-schemas/tree/v2.5.1)
|
4
4
|
|
5
|
+
[Full Changelog](https://github.com/adiwg/mdJson-schemas/compare/v2.5.0...v2.5.1)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- geographicExtent 'description' rule change [\#153](https://github.com/adiwg/mdJson-schemas/issues/153)
|
10
|
+
|
11
|
+
## [v2.5.0](https://github.com/adiwg/mdJson-schemas/tree/v2.5.0) (2018-10-03)
|
5
12
|
[Full Changelog](https://github.com/adiwg/mdJson-schemas/compare/v2.4.9...v2.5.0)
|
6
13
|
|
7
14
|
**Implemented enhancements:**
|
@@ -18,7 +25,6 @@
|
|
18
25
|
- spatialResolution rule change [\#160](https://github.com/adiwg/mdJson-schemas/issues/160)
|
19
26
|
- geodetic new object [\#159](https://github.com/adiwg/mdJson-schemas/issues/159)
|
20
27
|
- obliqueLinePoint new object [\#158](https://github.com/adiwg/mdJson-schemas/issues/158)
|
21
|
-
- projection new object [\#157](https://github.com/adiwg/mdJson-schemas/issues/157)
|
22
28
|
- referenceSystemParameterSet new object [\#156](https://github.com/adiwg/mdJson-schemas/issues/156)
|
23
29
|
- spatialReferenceSystem rule change [\#155](https://github.com/adiwg/mdJson-schemas/issues/155)
|
24
30
|
- boundingBox 'altitude' rule change [\#154](https://github.com/adiwg/mdJson-schemas/issues/154)
|
data/adiwg-json_schemas.gemspec
CHANGED
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake", ">= 0"
|
23
23
|
spec.add_development_dependency "json-schema", "~> 2.8.0"
|
24
24
|
spec.add_development_dependency "minitest", "~>5"
|
25
|
-
spec.add_development_dependency "adiwg-mdcodes", "~> 2.7.
|
25
|
+
spec.add_development_dependency "adiwg-mdcodes", "~> 2.7.1"
|
26
26
|
end
|
data/examples/projection.json
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
"identifier": "identifier",
|
4
4
|
"name": "name"
|
5
5
|
},
|
6
|
+
"gridIdentifier": {
|
7
|
+
"identifier": "utm",
|
8
|
+
"namespace": "org.adiwg.code.mapGridSystem"
|
9
|
+
},
|
6
10
|
"gridZone": "gridZone",
|
7
11
|
"standardParallel1": 9.9,
|
8
12
|
"standardParallel2": 9.9,
|
@@ -31,7 +35,12 @@
|
|
31
35
|
}
|
32
36
|
],
|
33
37
|
"landsatNumber": 9,
|
34
|
-
"landsatPath": 9
|
38
|
+
"landsatPath": 9,
|
39
|
+
"local": {
|
40
|
+
"description": "description",
|
41
|
+
"georeference": "georeference",
|
42
|
+
"fixedToEarth": true
|
43
|
+
}
|
35
44
|
}, {
|
36
45
|
"projectionIdentifier": {
|
37
46
|
"identifier": "alaska",
|
@@ -47,4 +56,21 @@
|
|
47
56
|
"gridIdentifier": {
|
48
57
|
"identifier": "utm",
|
49
58
|
"namespace": "org.adiwg.code.mapGridSystem"
|
50
|
-
}
|
59
|
+
},
|
60
|
+
"projectionIdentifier": {
|
61
|
+
"identifier": "mercator",
|
62
|
+
"name": "Mercator",
|
63
|
+
"namespace": "org.adiwg.code.mapProjection"
|
64
|
+
}
|
65
|
+
}, {
|
66
|
+
"local": {
|
67
|
+
"description": "description",
|
68
|
+
"georeference": "georeference",
|
69
|
+
"fixedToEarth": true
|
70
|
+
},
|
71
|
+
"projectionIdentifier": {
|
72
|
+
"identifier": "localPlanar",
|
73
|
+
"name": "Custom",
|
74
|
+
"namespace": "org.adiwg.code.mapProjection"
|
75
|
+
}
|
76
|
+
}]
|
data/package.json
CHANGED
data/schema/projection.json
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
"ISO 19115-2": ["referenceSystemInfo > MD_CRS > projection"],
|
10
10
|
"FGDC CSDGM": ["metadata > spref > horizsys > planar > mapproj"]
|
11
11
|
},
|
12
|
+
"required": ["projectionIdentifier"],
|
12
13
|
"additionalProperties": true,
|
13
14
|
"properties": {
|
14
15
|
"projectionIdentifier": {
|
@@ -51,7 +52,7 @@
|
|
51
52
|
"enum": ["org.adiwg.code.mapProjection"]
|
52
53
|
},
|
53
54
|
"identifier": {
|
54
|
-
"enum": ["alaska", "albers", "azimuthalEquidistant", "equidistantConic", "equirectangular", "generalVertical", "gnomonic", "lambertConic", "lambertEqualArea", "mercator", "miller", "obliqueMercator", "orthographic", "parameters", "polarStereo", "polyconic", "robinson", "sinusoidal", "spaceOblique", "stereographic", "transverseMercator", "grinten"]
|
55
|
+
"enum": ["alaska", "albers", "azimuthalEquidistant", "equidistantConic", "equirectangular", "generalVertical", "gnomonic", "lambertConic", "lambertEqualArea", "mercator", "miller", "obliqueMercator", "orthographic", "parameters", "polarStereo", "polyconic", "robinson", "sinusoidal", "spaceOblique", "stereographic", "transverseMercator", "grinten", "localPlanar", "localSystem"]
|
55
56
|
}
|
56
57
|
}
|
57
58
|
},
|
@@ -275,19 +276,11 @@
|
|
275
276
|
"translation": {
|
276
277
|
"FGDC CSDGM": ["spref > horizsys > planar > mapprojp > pathnum"]
|
277
278
|
}
|
278
|
-
}
|
279
|
-
},
|
280
|
-
"oneOf": [
|
281
|
-
{
|
282
|
-
"title": "projectionIdentifier is required.",
|
283
|
-
"required": ["projectionIdentifier"]
|
284
279
|
},
|
285
|
-
{
|
286
|
-
"
|
287
|
-
"required": ["gridIdentifier"]
|
280
|
+
"local": {
|
281
|
+
"$ref": "#/definitions/local"
|
288
282
|
}
|
289
|
-
|
290
|
-
|
283
|
+
},
|
291
284
|
"definitions": {
|
292
285
|
"obliqueLinePoint": {
|
293
286
|
"type": "array",
|
@@ -328,6 +321,37 @@
|
|
328
321
|
}
|
329
322
|
}
|
330
323
|
}
|
324
|
+
},
|
325
|
+
"local": {
|
326
|
+
"type": "object",
|
327
|
+
"description": "A description of a local coordinate system.",
|
328
|
+
"example": "../examples/projection.json#/4",
|
329
|
+
"translation": {
|
330
|
+
"FGDC CSDGM": ["spref > horizsys > local", "spref > horizsys > planar > localp"]
|
331
|
+
},
|
332
|
+
"required": ["description", "georeference"],
|
333
|
+
"additionalProperties": true,
|
334
|
+
"properties": {
|
335
|
+
"description": {
|
336
|
+
"type": "string",
|
337
|
+
"description": "A description of the local reference system.",
|
338
|
+
"translation": {
|
339
|
+
"FGDC CSDGM": ["spref > horizsys > local > localgeo", "spref > horizsys > planar > localp > localpd"]
|
340
|
+
}
|
341
|
+
},
|
342
|
+
"georeference": {
|
343
|
+
"type": "string",
|
344
|
+
"description": "A description of the information provided to register the local system to the Earth (e.g. control points, satellite ephemeral data, inertial navigation data).",
|
345
|
+
"translation": {
|
346
|
+
"FGDC CSDGM": ["spref > horizsys > local > localdes", "spref > horizsys > planar > localp > localpgi"]
|
347
|
+
}
|
348
|
+
},
|
349
|
+
"fixedToEarth": {
|
350
|
+
"type": "boolean",
|
351
|
+
"default": true,
|
352
|
+
"description": "True if the z-axis of the coordinate system coincides with a plumb line through the origin that locally is aligned with the surface of the Earth."
|
353
|
+
}
|
354
|
+
}
|
331
355
|
}
|
332
356
|
}
|
333
357
|
}
|
@@ -15,9 +15,6 @@
|
|
15
15
|
},
|
16
16
|
"verticalDatum": {
|
17
17
|
"$ref": "./verticalDatum.json#"
|
18
|
-
},
|
19
|
-
"local": {
|
20
|
-
"$ref": "#/definitions/local"
|
21
18
|
}
|
22
19
|
},
|
23
20
|
"oneOf": [{
|
@@ -31,43 +28,6 @@
|
|
31
28
|
{
|
32
29
|
"title": "verticalDatum is required.",
|
33
30
|
"required": ["verticalDatum"]
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"title": "local is required.",
|
37
|
-
"required": ["local"]
|
38
|
-
}
|
39
|
-
],
|
40
|
-
"definitions": {
|
41
|
-
"local": {
|
42
|
-
"type": "object",
|
43
|
-
"description": "A description of a local coordinate system.",
|
44
|
-
"example": "../examples/referenceSystemParameterSet.json#/3",
|
45
|
-
"translation": {
|
46
|
-
"FGDC CSDGM": ["spref > horizsys > local", "spref > horizsys > planar > localp"]
|
47
|
-
},
|
48
|
-
"required": ["description", "georeference"],
|
49
|
-
"additionalProperties": true,
|
50
|
-
"properties": {
|
51
|
-
"description": {
|
52
|
-
"type": "string",
|
53
|
-
"description": "A description of the local reference system.",
|
54
|
-
"translation": {
|
55
|
-
"FGDC CSDGM": ["spref > horizsys > local > localgeo", "spref > horizsys > planar > localp > localpd"]
|
56
|
-
}
|
57
|
-
},
|
58
|
-
"georeference": {
|
59
|
-
"type": "string",
|
60
|
-
"description": "A description of the information provided to register the local system to the Earth (e.g. control points, satellite ephemeral data, inertial navigation data).",
|
61
|
-
"translation": {
|
62
|
-
"FGDC CSDGM": ["spref > horizsys > local > localdes", "spref > horizsys > planar > localp > localpgi"]
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"fixedToEarth": {
|
66
|
-
"type": "boolean",
|
67
|
-
"default": true,
|
68
|
-
"description": "True if the z-axis of the coordinate system coincides with a plumb line through the origin that locally is aligned with the surface of the Earth."
|
69
|
-
}
|
70
|
-
}
|
71
31
|
}
|
72
|
-
|
32
|
+
]
|
73
33
|
}
|
data/schema/schema.json
CHANGED
data/test/tc_projection.rb
CHANGED
@@ -19,7 +19,7 @@ class TestProjection < TestHelper
|
|
19
19
|
def test_mapGridSystem
|
20
20
|
codes = ADIWG::Mdcodes::getCodelistDetail('adiwg_mapGridSystem')["codelist"]
|
21
21
|
data = codes.map do |c|
|
22
|
-
{:gridIdentifier => {:identifier => c["code"], :namespace => "org.adiwg.code.mapGridSystem"}}
|
22
|
+
{:gridIdentifier => {:identifier => c["code"], :namespace => "org.adiwg.code.mapGridSystem"}, :projectionIdentifier => {:identifier => "identifier"}}
|
23
23
|
end
|
24
24
|
errors = JSON::Validator.fully_validate('projection.json', data, strict: @@strict, list: true)
|
25
25
|
assert(errors.empty?, errors.join("\n"))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adiwg-mdjson_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bradley, Stan Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.7.
|
75
|
+
version: 2.7.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.7.
|
82
|
+
version: 2.7.1
|
83
83
|
description: JSON schemas for validating according to the the ADIwg project and data
|
84
84
|
metadata standard. The schemas comply with JSON Schema draft version 4.
|
85
85
|
email:
|
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
369
369
|
version: '0'
|
370
370
|
requirements: []
|
371
371
|
rubyforge_project:
|
372
|
-
rubygems_version: 2.6.
|
372
|
+
rubygems_version: 2.6.8
|
373
373
|
signing_key:
|
374
374
|
specification_version: 4
|
375
375
|
summary: JSON schemas for the ADIwg metadata standard
|