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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7a9bd3ab7da9c422a0e5cf859185cd3c8daaeb5
4
- data.tar.gz: 56c80a97d2394b6008d9c630c6b4ae1777331daf
3
+ metadata.gz: 210524881f60b4064492a4b480dd53de4f8c2cc8
4
+ data.tar.gz: 214c5f7fe2472a6a25e7ee305875dce341460487
5
5
  SHA512:
6
- metadata.gz: d066830e47479d2b208f1f0da0f69e764e836357043023c1db32a24183c8d6f83538bc31b82fb4633e028c9a539999a8834b44d31f3baacc0b2853cc96b1660f
7
- data.tar.gz: cfa0b32b4e442dbfdcf51f14ad3c1755c77f89dc3f2537a7a208c6cc8079381a90e18e687bfe5ab90ee0bb80bbae75d7383f4ecd506bcf22c5f9027436cd653b
6
+ metadata.gz: 59b9ee2d72e9f5e23c5802b042b344e268fcbbdf04fbb318c723beea390c6af344031d3c69e41ce61be6614c3bc296320d3d50341058f9df9009e7776c46a0d5
7
+ data.tar.gz: f565fb2bc11e4c6014930359903ec7576e96f8f79143d8c31a4564ad376a40b4b827514776f3bc94b8d0ad479bcf54dbfe7f89a94baa43190998adcf81647581
@@ -1,7 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [v2.5.0](https://github.com/adiwg/mdJson-schemas/tree/v2.5.0)
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)
@@ -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.0"
25
+ spec.add_development_dependency "adiwg-mdcodes", "~> 2.7.1"
26
26
  end
@@ -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
+ }]
@@ -27,12 +27,5 @@
27
27
  "verticalResolution": 9.9,
28
28
  "unitOfMeasure": "unitOfMeasure"
29
29
  }
30
- },
31
- {
32
- "local": {
33
- "description": "description",
34
- "georeference": "georeference",
35
- "fixedToEarth": true
36
- }
37
30
  }
38
31
  ]
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.5.0"
4
+ VERSION = "2.5.1"
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdjson-schemas",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "JSON schemas, examples, and templates for ADIwg metadata standards",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -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
- "title": "gridIdentifier is required.",
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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.5.0",
4
+ "version": "2.5.1",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
@@ -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.0
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-03 00:00:00.000000000 Z
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.0
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.0
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.14.1
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