adiwg-mdcodes 1.2.2 → 2.0.0

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: 67581a0a44a181317960e6c3ba4e5a1d18ae58d1
4
- data.tar.gz: 1607524034464481e48e801196353b77af2e1164
3
+ metadata.gz: ecaa8e783b3359372333359cd920ac58257e18af
4
+ data.tar.gz: 53881c966a2b234ff02bfcc97f9ecdbfe91cf62d
5
5
  SHA512:
6
- metadata.gz: 9e8bca76e6bfa65ed099231d17f94daf1edef7eb585fa960fb44f3fb32599e35329923086a7d7af881cc68c4c88c45a418f3c8bb02a802a563e05c152bc19d56
7
- data.tar.gz: 8f3ab994efa27f33558eea3442c11958680ada78134a98212d781abdc9e6b0dab753805f874f079fd4006ce10c04ba77f79c2250019b31bc29b19ae280760cbb
6
+ metadata.gz: 6c7a313a9d815d98ff4c71bd6e799837d3b36d01382c1b4f18ddd5b549c7b957640193736305b9377c06e83f0efc4fd02158d0a014c7fb8d2af5e7b90a164b2f
7
+ data.tar.gz: 4115490132a19511fdff2ec102a1b8b6b10ebd7c112f04ba63b1132d802a5a384c42d314400482dcba13e843e8b3e1c084c052b5f5c9d493ee8c8fef2524e48c
@@ -7,3 +7,6 @@ rvm:
7
7
  - jruby-19mode
8
8
  - ruby-head
9
9
  sudo: false
10
+ matrix:
11
+ allow_failures:
12
+ - rvm: 1.9.3
@@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.6"
23
- spec.add_development_dependency "rake", "~>10"
23
+ spec.add_development_dependency "rake", "~>11"
24
24
  spec.add_development_dependency "minitest", "~>5"
25
25
 
26
- spec.add_runtime_dependency "json", "~>1.8"
26
+ spec.add_runtime_dependency "json", "~>2.0"
27
27
 
28
28
  end
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdcodes",
3
- "version": "1.2.2",
3
+ "version": "2.0.0",
4
4
  "homepage": "https://github.com/adiwg/mdCodes",
5
5
  "authors": [
6
6
  "Josh Bradley <jbradley@arcticlcc.org>"
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const glob = require('glob');
4
+ const path = require('path');
5
+ const all = {};
6
+
7
+ glob.sync('./resources/js/*.js').forEach(function(file) {
8
+ const obj = require(path.resolve(file));
9
+ const name = path.basename(file, '.js');
10
+ if (0 === name.indexOf('iso_')) {
11
+ all[name] = obj;
12
+ }
13
+ });
14
+
15
+ module.exports = exports = all;
@@ -19,7 +19,7 @@
19
19
  module ADIWG
20
20
 
21
21
  module Mdcodes
22
- VERSION = "1.2.2"
22
+ VERSION = "2.0.0"
23
23
  end
24
24
 
25
25
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdcodes",
3
- "version": "1.2.2",
3
+ "version": "2.0.0",
4
4
  "description": "CodeLists for ADIwg mdJSON",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,6 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "buildify": "^0.4.0",
31
+ "glob": "^6.0.1",
31
32
  "rimraf": "^2.4.4"
32
33
  }
33
34
  }
@@ -0,0 +1,22 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_DCPList"
8
+ source: "ISO"
9
+ sourceName: "DCPList"
10
+ extensible: true
11
+ description: "class of information to which the referencing entity applies"
12
+ codelist:
13
+ - {code: "001", codeName: XML, description: "Extensible Markup Language"}
14
+ - {code: "002", codeName: CORBA, description: "Common Object Request Broker Architecture"}
15
+ - {code: "003", codeName: JAVA, description: "Object-oriented programming language"}
16
+ - {code: "004", codeName: COM, description: "Component Object Model"}
17
+ - {code: "005", codeName: SQL, description: "Structured Query Language"}
18
+ - {code: "006", codeName: SOAP, description: "Simple Object Access Protocol"}
19
+ - {code: "007", codeName: Z3950, description: "ISO 23950"}
20
+ - {code: "008", codeName: HTTP, description: "HyperText Transfer Protocol"}
21
+ - {code: "009", codeName: FTP, description: "File Transfer Protocol"}
22
+ - {code: "010", codeName: WwbService, description: "Web service"}
@@ -16,3 +16,5 @@ codelist:
16
16
  - {code: "004", codeName: auxillaryInformation, description: "data, usually a physical measurement, used to support the calculation of the primary physicalMeasurement coverages in the dataset"}
17
17
  - {code: "005", codeName: qualityInformation, description: "data used to characterize the quality of the physicalMeasurement coverages in the dataset"}
18
18
  - {code: "006", codeName: referenceInformation, description: "reference information used to support the calculation or use of the physicalMeasurement coverages in the dataset"}
19
+ - {code: "007", codeName: modelResult, description: "resources with values that are calculated using a model rather than being observed or calculated from observations"}
20
+ - {code: "008", codeName: coordinate, description: "data used to provide coordinate axis values"}
@@ -0,0 +1,18 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_geometricObjectType"
8
+ source: "ISO"
9
+ sourceName: "MD_GeometricObjectTypeCode"
10
+ extensible: true
11
+ description: "name of point or vector objects used to locate zero-, one-, two- or three-dimensional spatial locations in the dataset"
12
+ codelist:
13
+ - {code: "001", codeName: complex, description: "set of geometric primitives such that their boundaries can be represented as a union of other primitives"}
14
+ - {code: "002", codeName: composite, description: "connected set of curves, solids or surfaces"}
15
+ - {code: "003", codeName: curve, description: "bounded, 1-dimensional geometric primitive, representing the continuous image of a line"}
16
+ - {code: "004", codeName: point, description: "zero-dimensional geometric primitive, representing a position but not having an extent"}
17
+ - {code: "005", codeName: solid, description: "bounded, connected 3-dimensional geometric primitive, representing the continuous image of a region of space"}
18
+ - {code: "006", codeName: surface, description: "bounded, connected 2-dimensional geometric primitive, representing the continuous image of a region of a plane"}
@@ -0,0 +1,17 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_pixelOrientation"
8
+ source: "ISO"
9
+ sourceName: "MD_PixelOrientationCode"
10
+ extensible: false
11
+ description: "point in a pixel corresponding to the Earth location of the pixel"
12
+ codelist:
13
+ - {code: "001", codeName: centre, description: "point halfway between the lower left and the upper right of the pixel"}
14
+ - {code: "002", codeName: lowerLeft, description: "the corner in the pixel closest to the origin of the SRS; if two are at the same distance from the origin, the one with the smallest x-value"}
15
+ - {code: "003", codeName: lowerRight, description: "next corner counterclockwise from the lower left"}
16
+ - {code: "004", codeName: upperRight, description: "next corner counterclockwise from the lower right"}
17
+ - {code: "005", codeName: upperLeft, description: "next corner counterclockwise from the upper right"}
@@ -0,0 +1,40 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_referenceSystemType"
8
+ source: "ISO"
9
+ sourceName: "MD_ReferenceSystemTypeCode"
10
+ extensible: true
11
+ description: "defines type of reference system used"
12
+ codelist:
13
+ - {code: "001", codeName: compoundEngineeringParametric, description: "compound spatio-parametric coordinate reference system containing an engineering coordinate reference system and a parametric reference system; EXAMPLE [local] x, y, pressure"}
14
+ - {code: "002", codeName: compoundEngineeringParametricTemporal, description: "compound spatio-parametric-temporal coordinate reference system containing an engineering, a parametric, and a temporal coordinate reference system EXAMPLE [local] x, y, pressure, time"}
15
+ - {code: "003", codeName: compoundEngineeringTemporal, description: "compound spatio-temporal coordinate reference system containing an engineering and a temporal coordinate reference system EXAMPLE [local] x, y, time"}
16
+ - {code: "004", codeName: compoundEngineeringVertical, description: "compound spatial reference system containing a horizontal engineering coordinate reference system and a vertical coordinate reference system EXAMPLE [local] x, y, height"}
17
+ - {code: "005", codeName: compoundEngineeringVerticalTemporal, description: "compound spatio-temporal coordinate reference system containing an engineering, a vertical, and a temporal coordinate reference system EXAMPLE [local] x, y, height, time"}
18
+ - {code: "006", codeName: compoundGeographic2DParametric, description: "compound spatio-parametric coordinate reference system containing a 2 dimensional geographic horizontal coordinate reference system and a parametric reference system EXAMPLE latitude, longitude, pressure"}
19
+ - {code: "007", codeName: compoundGeographic2DParametricTemporal, description: "compound spatio-parametric-temporal coordinate reference system containing a 2 dimensional geographic horizontal, a parametric and a temporal coordinate reference system EXAMPLE latitude, longitude, pressure, time"}
20
+ - {code: "008", codeName: compoundGeographic2DTemporal, description: "compound spatio-temporal coordinate reference system containing a 2 dimensional geographic horizontal coordinate reference system and a temporal reference system EXAMPLE latitude, longitude, time"}
21
+ - {code: "009", codeName: compoundGeographic2DVertical, description: "compound coordinate reference system in which one constituent coordinate reference system is a horizontal geodetic coordinate reference system and one is a vertical coordinate reference system EXAMPLE latitude, longitude, [gravity-related] height or depth"}
22
+ - {code: "010", codeName: compoundGeographicVerticalTemporal, description: "compound spatio-temporal coordinate reference system containing a 2 dimensional geographic horizontal, a vertical, and a temporal coordinate reference system EXAMPLE latitude, longitude, height, time"}
23
+ - {code: "011", codeName: compoundGeographic3DTemporal, description: "compound spatio-temporal coordinate reference system containing a 3 dimensional geographic and a temporal coordinate reference system EXAMPLE latitude, longitude, ellipsoidal height, time"}
24
+ - {code: "012", codeName: compoundProjected2DParametric, description: "compound spatio-parametric coordinate reference system containing a projected horizontal coordinate reference system and a parametric reference system EXAMPLE easting, northing, density"}
25
+ - {code: "013", codeName: compoundProjected2DParametricTemporal, description: "compound spatio-parametric-temporal coordinate reference system containing a projected horizontal, a parametric, and a temporal coordinate reference system EXAMPLE easting, northing, density, time"}
26
+ - {code: "014", codeName: compoundProjectedTemporal, description: "compound spatio-temporal coordinate reference system containing a projected horizontal and a temporal coordinate reference system EXAMPLE easting, northing, time"}
27
+ - {code: "015", codeName: compoundProjectedVertical, description: "compound spatial reference system containing a horizontal projected coordinate reference system and a vertical coordinate reference system EXAMPLE easting, northing, [gravity-related] height or depth"}
28
+ - {code: "016", codeName: compoundProjectedVerticalTemporal, description: "compound spatio-temporal coordinate reference system containing a projected horizontal, a vertical, and a temporal coordinate reference system EXAMPLE easting, northing, height, time"}
29
+ - {code: "017", codeName: engineering, description: "coordinate reference system based on an engineering datum (datum describing the relationship of a coordinate system to a local reference) EXAMPLE [local] x,y"}
30
+ - {code: "018", codeName: engineeringDesign, description: "engineering coordinate reference system in which the base representation of a moving object is specified EXAMPLE [local] x,y 19. engineeringImage engineeringImage coordinate reference system"}
31
+ - {code: "019", codeName: engineeringImage, description: "coordinate reference system based on an image datum (engineering datum which defines the relationship of a coordinate system to an image) EXAMPLE row, column"}
32
+ - {code: "020", codeName: geodeticGeocentric, description: "geodetic CRS having a Cartesian 3D coordinate system EXAMPLE [geocentric] X,Y,Z"}
33
+ - {code: "021", codeName: geodeticGeographic2D, description: "geodetic CRS having an ellipsoidal 2D coordinate system EXAMPLE latitude, longitude"}
34
+ - {code: "022", codeName: geodeticGeographic3D, description: "geodetic CRS having an ellipsoidal 3D coordinate system EXAMPLE latitude, longitude, ellipsoidal height"}
35
+ - {code: "023", codeName: geographicIdentifier, description: "spatial reference in the form of a label or code that identifies a location EXAMPLE post code"}
36
+ - {code: "024", codeName: linear, description: "reference system that identifies a location by reference to a segment of a linear geographic feature and distance along that segment from a given point EXAMPLE x km along road"}
37
+ - {code: "025", codeName: parametric, description: "coordinate reference system based on a parametric datum (datum describing the relationship of a parametric coordinate system to an object) EXAMPLE pressure"}
38
+ - {code: "026", codeName: projected, description: "coordinate reference system derived from a two-dimensional geodetic coordinate reference system by applying a map projection EXAMPLE easting, northing"}
39
+ - {code: "027", codeName: temporal, description: "reference system against which time is measured EXAMPLE time"}
40
+ - {code: "028", codeName: vertical, description: "one-dimensional coordinate reference system based on a vertical datum (datum describing the relation of gravity-related heights or depths to the Earth) EXAMPLE [gravity-related] height or depth"}
@@ -20,7 +20,7 @@ codelist:
20
20
  - {code: "009", codeName: health, description: "health, health services, human ecology, and safety. Examples: disease and illness, factors affecting health, hygiene, substance abuse, mental and physical health, health services"}
21
21
  - {code: "010", codeName: imageryBaseMapsEarthCover, description: "base maps. Examples: land cover, topographic maps, imagery, unclassified images, annotations"}
22
22
  - {code: "011", codeName: intelligenceMilitary, description: "military bases, structures, activities. Examples: barracks, training grounds, military transportation, information collection"}
23
- - {code: "012", codeName: inlandWater, description: "inland water features, drainage systems and their characteristics. Examples: rivers and glaciers, salt lakes, water utilization plans, dams, currents, floods, water quality, hydrographic charts"}
23
+ - {code: "012", codeName: inlandWaters, description: "inland water features, drainage systems and their characteristics. Examples: rivers and glaciers, salt lakes, water utilization plans, dams, currents, floods, water quality, hydrographic charts"}
24
24
  - {code: "013", codeName: location, description: "positional information and services. Examples: addresses, geodetic networks, control points, postal zones and services, place names"}
25
25
  - {code: "014", codeName: oceans, description: "features and characteristics of salt water bodies (excluding inland waters). Examples: tides, tidal waves, coastal information, reefs"}
26
26
  - {code: "015", codeName: planningCadastre, description: "information used for appropriate actions for future use of the land. Examples: land use maps, zoning maps, cadastral surveys, land ownership"}
@@ -0,0 +1,21 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_topologyLevel"
8
+ source: "ISO"
9
+ sourceName: "MD_TopologyLevelCode"
10
+ extensible: true
11
+ description: "degree of complexity of the spatial relationships"
12
+ codelist:
13
+ - {code: "001", codeName: geometryOnly, description: "geometry objects without any additional structure which describes topology"}
14
+ - {code: "002", codeName: topology1D, description: "1-dimensional topological complex – commonly called “chain-node” topology"}
15
+ - {code: "003", codeName: planarGraph, description: "1-dimensional topological complex that is planar NOTE A planar graph is a graph that can be drawn in a plane in such a way that no two edges intersect except at a vertex"}
16
+ - {code: "004", codeName: fullPlanarGraph, description: "2-dimensional topological complex that is planar NOTE A 2-dimensional topological complex is commonly called “full topology” in a cartographic 2D environment"}
17
+ - {code: "005", codeName: surfaceGraph, description: "1-dimensional topological complex that is isomorphic to a subset of a surface NOTE A geometric complex is isomorphic to a topological complex if their elements are in a one-to-one, dimensional-and boundary-preserving correspondence to one another"}
18
+ - {code: "006", codeName: fullSurfaceGraph, description: "2-dimensional topological complex that is isomorphic to a subset of a surface"}
19
+ - {code: "007", codeName: topology3D, description: "3-dimensional topological complex NOTE A topological complex is a collection of topological primitives that are closed under the boundary operations"}
20
+ - {code: "008", codeName: fullTopology3D, description: "complete coverage of a 3D Euclidean coordinate space"}
21
+ - {code: "009", codeName: abstract, description: "topological complex without any specified geometric realisation"}
@@ -23,7 +23,7 @@ for (let file of files) {
23
23
  buildify()
24
24
  .load('resources/json/' + file)
25
25
  .perform(function(content) {
26
- return 'export default ' + content + ';';
26
+ return 'module.exports = ' + content + ';';
27
27
  })
28
28
  .save(name);
29
29
  //console.log('Created ' + name);
@@ -13,8 +13,8 @@ class TestMdcodes < Minitest::Test
13
13
  @errors = Array.new
14
14
 
15
15
  FileList[ADIWG::Mdcodes.getYamlPath + '**/*.yml'].each do |fname|
16
- yaml = begin YAML.load_file(fname)
17
- rescue Exception => e
16
+ begin YAML.load_file(fname)
17
+ rescue Exception
18
18
  @errors << "Could not parse YAML: #{fname}"
19
19
  end
20
20
  end
@@ -23,7 +23,7 @@ class TestMdcodes < Minitest::Test
23
23
 
24
24
  def test_yamlResourceDir
25
25
  yamlDir = ADIWG::Mdcodes.getYamlPath
26
- assert(Dir.exists?(yamlDir), 'Did not find resource Directory.')
26
+ assert(Dir.exist?(yamlDir), 'Did not find resource Directory.')
27
27
  end
28
28
 
29
29
  def test_getAllCodeistsDetail
@@ -45,4 +45,4 @@ class TestMdcodes < Minitest::Test
45
45
  key = yaml.keys[0]
46
46
  assert_instance_of(Hash,ADIWG::Mdcodes.getStaticCodelist(key))
47
47
  end
48
- end
48
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdcodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stansmith907, jlblcc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2016-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10'
33
+ version: '11'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10'
40
+ version: '11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.8'
61
+ version: '2.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.8'
68
+ version: '2.0'
69
69
  description: adiwg-mdcodes provides code lists for use in ISO 19139 compliant metadata,
70
70
  especially mdJSON. The codes include all ISO 19115-1 code extensions from the Alaska
71
71
  Data Integration working group (ADIwg).
@@ -85,10 +85,12 @@ files:
85
85
  - Rakefile
86
86
  - adiwg-mdcodes.gemspec
87
87
  - bower.json
88
+ - index.js
88
89
  - lib/adiwg-mdcodes.rb
89
90
  - lib/adiwg/mdcodes.rb
90
91
  - lib/adiwg/mdcodes/version.rb
91
92
  - package.json
93
+ - resources/iso_DCPList.yml
92
94
  - resources/iso_associationType.yml
93
95
  - resources/iso_cellGeometry.yml
94
96
  - resources/iso_characterSet.yml
@@ -98,6 +100,7 @@ files:
98
100
  - resources/iso_dataType.yml
99
101
  - resources/iso_dateType.yml
100
102
  - resources/iso_dimensionNameType.yml
103
+ - resources/iso_geometricObjectType.yml
101
104
  - resources/iso_imageCondition.yml
102
105
  - resources/iso_initiativeType.yml
103
106
  - resources/iso_keywordType.yml
@@ -107,14 +110,17 @@ files:
107
110
  - resources/iso_mediumName.yml
108
111
  - resources/iso_obligation.yml
109
112
  - resources/iso_onlineFunction.yml
113
+ - resources/iso_pixelOrientation.yml
110
114
  - resources/iso_presentationForm.yml
111
115
  - resources/iso_progress.yml
116
+ - resources/iso_referenceSystemType.yml
112
117
  - resources/iso_restriction.yml
113
118
  - resources/iso_role.yml
114
119
  - resources/iso_scope.yml
115
120
  - resources/iso_spatialRepresentation.yml
116
121
  - resources/iso_telephone.yml
117
122
  - resources/iso_topicCategory.yml
123
+ - resources/iso_topologyLevel.yml
118
124
  - scripts/prepublish.js
119
125
  - test/tc_mdcodes.rb
120
126
  homepage: https://github.com/adiwg/mdCodes