adiwg-mdtranslator 0.12.1 → 1.0.0rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.gitmodules +3 -3
- data/Rakefile +1 -1
- data/adiwg-mdtranslator.gemspec +3 -3
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +5 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +2 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entity.rb +9 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entityAttribute.rb +9 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_mdJson.rb +7 -2
- data/lib/adiwg/mdtranslator/readers/mdJson/readme.md +2 -2
- data/lib/adiwg/mdtranslator/version.rb +5 -1
- data/lib/adiwg/mdtranslator/writers/html/html_writer.rb +43 -0
- data/lib/adiwg/mdtranslator/writers/html/md_html_writer.rb +25 -0
- data/lib/adiwg/mdtranslator/writers/html/readme.md +10 -0
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_aggregateInformation.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_boundingPolygon.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_citation.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_contact.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataIdentification.rb +17 -17
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataQuality.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_date.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_distribution.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_distributor.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_extent.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureAttribute.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureType.rb +11 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicDescription.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicElement.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_identifier.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_keyword.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_legalConstraints.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_lineage.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_maintenanceInformation.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_medium.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_metadataExtension.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_multiGeometry.rb +3 -3
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_onlineResource.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_processStep.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_responsibleParty.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_securityConstraints.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_source.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_taxonSystem.rb +4 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_temporalExtent.rb +2 -2
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_usage.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_vouchers.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +159 -147
- data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +17 -23
- data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +11 -10
- data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +97 -103
- data/lib/adiwg/mdtranslator/writers/mdWriters.rb +1 -11
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_additionalDocumentation.rb +4 -4
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_address.rb +3 -3
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_associatedResource.rb +4 -4
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_browseGraphic.rb +3 -3
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_citation.rb +4 -4
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_contact.rb +4 -4
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_dictionaryInfo.rb +4 -4
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_domain.rb +4 -4
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_onlineResource.rb +3 -3
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_phone.rb +3 -3
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_responsibleParty.rb +3 -3
- data/test/readers/mdJson/{v0_9 → v1_0}/tc_translation.rb +4 -4
- data/test/schemas/v1_0/.gitignore +18 -0
- data/test/schemas/v1_0/.travis.yml +7 -0
- data/test/schemas/v1_0/CREDITS +3 -0
- data/test/schemas/v1_0/Gemfile +4 -0
- data/test/schemas/v1_0/LICENSE +24 -0
- data/test/schemas/v1_0/README.md +36 -0
- data/test/schemas/v1_0/Rakefile +12 -0
- data/test/schemas/v1_0/adiwg-json_schemas.gemspec +25 -0
- data/test/schemas/v1_0/examples/additionalDocumentation.json +61 -0
- data/test/schemas/v1_0/examples/address.json +10 -0
- data/test/schemas/v1_0/examples/associatedResource.json +119 -0
- data/test/schemas/v1_0/examples/citation.json +128 -0
- data/test/schemas/v1_0/examples/contact.json +205 -0
- data/test/schemas/v1_0/examples/contactRef.json +12 -0
- data/test/schemas/v1_0/examples/dataDictionary.json +547 -0
- data/test/schemas/v1_0/examples/dataQuality.json +272 -0
- data/test/schemas/v1_0/examples/date.json +19 -0
- data/test/schemas/v1_0/examples/distributor.json +113 -0
- data/test/schemas/v1_0/examples/extent_linestring.json +288 -0
- data/test/schemas/v1_0/examples/extent_point.json +246 -0
- data/test/schemas/v1_0/examples/extent_polygon.json +353 -0
- data/test/schemas/v1_0/examples/format.json +14 -0
- data/test/schemas/v1_0/examples/full_example.json +2844 -0
- data/test/schemas/v1_0/examples/full_example2.json +2325 -0
- data/test/schemas/v1_0/examples/geojson.json +446 -0
- data/test/schemas/v1_0/examples/graphicOverview.json +28 -0
- data/test/schemas/v1_0/examples/hierarchyLevel.json +90 -0
- data/test/schemas/v1_0/examples/keywords.json +144 -0
- data/test/schemas/v1_0/examples/lcc_project_example.json +326 -0
- data/test/schemas/v1_0/examples/legalConstraints.json +17 -0
- data/test/schemas/v1_0/examples/maintInfo.json +34 -0
- data/test/schemas/v1_0/examples/metadataInfo.json +103 -0
- data/test/schemas/v1_0/examples/minimum_example.json +35 -0
- data/test/schemas/v1_0/examples/onlineResource.json +17 -0
- data/test/schemas/v1_0/examples/resolution.json +9 -0
- data/test/schemas/v1_0/examples/resourceInfo.json +1264 -0
- data/test/schemas/v1_0/examples/resourceMaintenance.json +10 -0
- data/test/schemas/v1_0/examples/securityConstraints.json +13 -0
- data/test/schemas/v1_0/examples/spatialRef.json +14 -0
- data/test/schemas/v1_0/examples/taxonomy.json +197 -0
- data/test/schemas/v1_0/examples/temporalElement.json +29 -0
- data/test/schemas/v1_0/examples/uri.json +16 -0
- data/test/schemas/v1_0/examples/usage.json +35 -0
- data/test/schemas/v1_0/examples/verticalExtent.json +18 -0
- data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/utils.rb +20 -0
- data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/validator.rb +42 -0
- data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/version.rb +6 -0
- data/test/schemas/v1_0/lib/adiwg/mdjson_schemas.rb +7 -0
- data/test/schemas/v1_0/lib/adiwg-mdjson_schemas.rb +1 -0
- data/test/schemas/v1_0/schema/schema/citation.json +186 -0
- data/test/schemas/v1_0/schema/schema/contact.json +255 -0
- data/test/schemas/v1_0/schema/schema/dataDictionary.json +209 -0
- data/test/schemas/v1_0/schema/schema/dataQuality.json +159 -0
- data/test/schemas/v1_0/schema/schema/distributor.json +171 -0
- data/test/schemas/v1_0/schema/schema/extent.json +214 -0
- data/test/schemas/v1_0/schema/schema/geojson/bbox.json +14 -0
- data/test/schemas/v1_0/schema/schema/geojson/crs.json +99 -0
- data/test/schemas/v1_0/schema/schema/geojson/geojson.json +194 -0
- data/test/schemas/v1_0/schema/schema/geojson/geometry.json +203 -0
- data/test/schemas/v1_0/schema/schema/graphicOverview.json +42 -0
- data/test/schemas/v1_0/schema/schema/keyword.json +39 -0
- data/test/schemas/v1_0/schema/schema/maintInfo.json +43 -0
- data/test/schemas/v1_0/schema/schema/metadata.json +173 -0
- data/test/schemas/v1_0/schema/schema/onlineResource.json +42 -0
- data/test/schemas/v1_0/schema/schema/resolution.json +51 -0
- data/test/schemas/v1_0/schema/schema/resourceConstraint.json +108 -0
- data/test/schemas/v1_0/schema/schema/resourceInfo.json +305 -0
- data/test/schemas/v1_0/schema/schema/taxonomy.json +122 -0
- data/test/schemas/v1_0/schema/schema/usage.json +39 -0
- data/test/schemas/v1_0/schema/schema.json +64 -0
- data/test/schemas/v1_0/templates/mdJson_template.json +1065 -0
- data/test/schemas/v1_0/test/draft-04.json +189 -0
- data/test/schemas/v1_0/test/tc_schemas.rb +210 -0
- data/test/schemas/v1_0/test/tc_utils.rb +27 -0
- metadata +241 -90
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_additionalDocumentation.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_address.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_associatedResource.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_boundingBox.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_browseGraphic.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_citation.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_contacts.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_coordinates.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dataDictionary.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dataQuality.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dateTime.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_descriptiveKeyword.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dictionaryInfo.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_distributionInfo.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_domain.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_domainItem.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entityForeignKey.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entityIndex.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_extent.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_geoCoordSystem.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_geoProperties.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_geographicElement.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_legalConstraint.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_lineString.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_lineage.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_metadata.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_metadataExtension.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_metadataInfo.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_onlineResource.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_phone.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_point.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_polygon.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_processStep.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resolution.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceFormat.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceIdentifier.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceInfo.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceMaintenance.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceSpecificUsage.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_responsibleParty.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_securityConstraint.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_source.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_spatialReference.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_taxonClass.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_taxonomy.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_temporalElement.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_timeInstant.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_timePeriod.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_verticalElement.rb +0 -0
- /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_voucher.rb +0 -0
@@ -0,0 +1,194 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "geojson.json#",
|
4
|
+
"title": "GeoJSON object",
|
5
|
+
"description": "GeoJSON is a format for encoding a variety of geographic data structures. A GeoJSON object may represent a geometry, a feature, or a collection of features. \n\nGeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. Features in GeoJSON contain a geometry object and additional properties, and a feature collection represents a list of features. \n\nSee http://geojson.org for the full specification.",
|
6
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
|
7
|
+
"type": "object",
|
8
|
+
"required": ["type"],
|
9
|
+
"properties": {
|
10
|
+
"crs": {
|
11
|
+
"description": "The coordinate reference system (CRS) of a GeoJSON object.",
|
12
|
+
"$ref": "crs.json#"
|
13
|
+
},
|
14
|
+
"bbox": {
|
15
|
+
"$ref": "bbox.json#"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"oneOf": [
|
19
|
+
{
|
20
|
+
"$ref": "geometry.json#"
|
21
|
+
}, {
|
22
|
+
"$ref": "#/definitions/geometryCollection"
|
23
|
+
}, {
|
24
|
+
"$ref": "#/definitions/feature"
|
25
|
+
}, {
|
26
|
+
"$ref": "#/definitions/featureCollection"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"definitions": {
|
30
|
+
"geometryCollection": {
|
31
|
+
"title": "GeometryCollection",
|
32
|
+
"description": "A collection of geometry objects",
|
33
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/1/geographicElement",
|
34
|
+
"translation": {
|
35
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry"]
|
36
|
+
},
|
37
|
+
"required": ["geometries"],
|
38
|
+
"properties": {
|
39
|
+
"type": {
|
40
|
+
"enum": ["GeometryCollection"],
|
41
|
+
"description": "Type of geometry object."
|
42
|
+
},
|
43
|
+
"geometries": {
|
44
|
+
"type": "array",
|
45
|
+
"description": "The set of geometry objects constituting the GeometryCollection.",
|
46
|
+
"translation": {
|
47
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers"]
|
48
|
+
},
|
49
|
+
"items": {
|
50
|
+
"$ref": "geometry.json#"
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"feature": {
|
56
|
+
"title": "Feature",
|
57
|
+
"type": "object",
|
58
|
+
"description": "A GeoJSON object with the type \"Feature\" is a feature object. A feature object has a geometry, properties, and an optional identifier.",
|
59
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement/1",
|
60
|
+
"required": ["geometry", "properties"],
|
61
|
+
"properties": {
|
62
|
+
"type": {
|
63
|
+
"enum": ["Feature"],
|
64
|
+
"description": "Type of GeoJSON object."
|
65
|
+
},
|
66
|
+
"geometry": {
|
67
|
+
"description": "The geometry object associated with the Feature.",
|
68
|
+
"oneOf": [
|
69
|
+
{
|
70
|
+
"type": "null",
|
71
|
+
"title": "null geometry",
|
72
|
+
"description": "A feature object with no associated geometry. For example, a null value may be used when defining a bounding box only."
|
73
|
+
}, {
|
74
|
+
"$ref": "geometry.json#"
|
75
|
+
}
|
76
|
+
]
|
77
|
+
},
|
78
|
+
"properties": {
|
79
|
+
"$ref": "#/definitions/featureProperties"
|
80
|
+
},
|
81
|
+
"id": {
|
82
|
+
"type": ["string", "number"],
|
83
|
+
"description": "Unique identifier for the GeoJSON feature object.",
|
84
|
+
"translation": {
|
85
|
+
"ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] @id"]
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"featureCollection": {
|
91
|
+
"title": "FeatureCollection",
|
92
|
+
"type": "object",
|
93
|
+
"description": "A GeoJSON object comprised of multiple Feature objects.",
|
94
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/3/geographicElement/0",
|
95
|
+
"required": ["features"],
|
96
|
+
"properties": {
|
97
|
+
"type": {
|
98
|
+
"enum": ["FeatureCollection"],
|
99
|
+
"description": "Type of GeoJSON object."
|
100
|
+
},
|
101
|
+
"properties": {
|
102
|
+
"$ref": "#/definitions/featureProperties"
|
103
|
+
},
|
104
|
+
"id": {
|
105
|
+
"type": ["string", "number"],
|
106
|
+
"description": "Unique identifier for the GeoJSON object.",
|
107
|
+
"translation": {
|
108
|
+
"ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] @id"]
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"features": {
|
112
|
+
"type": "array",
|
113
|
+
"description": "Set of Features constituting the FeatureCollection.",
|
114
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement",
|
115
|
+
"translation": {
|
116
|
+
"ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > MultiGeometry"]
|
117
|
+
},
|
118
|
+
"items": {
|
119
|
+
"$ref": "#/definitions/feature"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
},
|
124
|
+
"featureProperties": {
|
125
|
+
"title": "FeatureProperties",
|
126
|
+
"description": "JSON object containing information about a feature or collection.",
|
127
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement/1",
|
128
|
+
"oneOf": [
|
129
|
+
{
|
130
|
+
"title": "null",
|
131
|
+
"type": "null",
|
132
|
+
"description": "A feature object with no identified properties."
|
133
|
+
}, {
|
134
|
+
"type": "object",
|
135
|
+
"title": "featureProperties",
|
136
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/2/geographicElement/1",
|
137
|
+
"properties": {
|
138
|
+
"includesData": {
|
139
|
+
"type": "boolean",
|
140
|
+
"description": "A boolean indicating whether geographic object is defining an extent, or used to describe an area of exception, such as \"holes\" in polygons.",
|
141
|
+
"translation": {
|
142
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_GeographicBoundingBox > extentTypeCode", "EX_Extent > geographicElement > EX_BoundingPolygon > extentTypeCode"]
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"temporalElement": {
|
146
|
+
"description": "The temporal reference associated with an feature.",
|
147
|
+
"$ref": "../extent.json#/definitions/temporalElement"
|
148
|
+
},
|
149
|
+
"verticalElement": {
|
150
|
+
"type": "array",
|
151
|
+
"description": "The vertical extent of the feature geometry.",
|
152
|
+
"items": {
|
153
|
+
"$ref": "../extent.json#/definitions/verticalExtent"
|
154
|
+
}
|
155
|
+
},
|
156
|
+
"description": {
|
157
|
+
"type": "string",
|
158
|
+
"description": "A description of the feature.",
|
159
|
+
"translation": {
|
160
|
+
"ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] > description"]
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"featureName": {
|
164
|
+
"type": "string",
|
165
|
+
"description": "A title associated with a feature.",
|
166
|
+
"translation": {
|
167
|
+
"ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon] > name"]
|
168
|
+
}
|
169
|
+
},
|
170
|
+
"featureScope": {
|
171
|
+
"type": "string",
|
172
|
+
"description": "Scope of the geographic feature."
|
173
|
+
},
|
174
|
+
"featureAcquisitionMethod": {
|
175
|
+
"type": "string",
|
176
|
+
"description": "Method used to establish the position of the geographic feature. "
|
177
|
+
},
|
178
|
+
"identifier": {
|
179
|
+
"type": "array",
|
180
|
+
"description": "Identifier for the geographic element with optional cited authority.",
|
181
|
+
"translation": {
|
182
|
+
"ISO 19115-2": ["geographicElement > EX_GeographicDescription > geographicIdentifier > MD_Identifier"]
|
183
|
+
},
|
184
|
+
"items": {
|
185
|
+
"$ref": "../citation.json#/definitions/identifier"
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
]
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
@@ -0,0 +1,203 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "geometry.json#",
|
4
|
+
"title": "geometry",
|
5
|
+
"description": "A geometry is a GeoJSON object where the type member's value is one of the following strings: \"Point\", \"MultiPoint\", \"LineString\", \"MultiLineString\", \"Polygon\", \"MultiPolygon\", or \"GeometryCollection\".\n\nA GeoJSON geometry object of any type other than \"GeometryCollection\" must have a member with the name \"coordinates\". The value of the coordinates member is always an array. The structure for the elements in this array is determined by the type of geometry.",
|
6
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement",
|
7
|
+
"translation": {
|
8
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > [Point | LineString | Polygon > [interior | exterior] | MultiGeometry]"]
|
9
|
+
},
|
10
|
+
"type": "object",
|
11
|
+
"required": ["type", "coordinates"],
|
12
|
+
"oneOf": [
|
13
|
+
{
|
14
|
+
"title": "Point",
|
15
|
+
"type": "object",
|
16
|
+
|
17
|
+
"description": "A point geometry object.",
|
18
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/0",
|
19
|
+
"translation": {
|
20
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point"]
|
21
|
+
},
|
22
|
+
"properties": {
|
23
|
+
"type": {
|
24
|
+
"enum": ["Point"],
|
25
|
+
"description": "Type of geometry object."
|
26
|
+
},
|
27
|
+
"coordinates": {
|
28
|
+
"description": "The position representing a point, represented by an array of numbers following x, y, z order (easting, northing, altitude for coordinates in a projected coordinate reference system, or longitude, latitude, altitude for coordinates in a geographic coordinate reference system).",
|
29
|
+
"translation": {
|
30
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Point > coordinates"]
|
31
|
+
},
|
32
|
+
"$ref": "#/definitions/position"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}, {
|
36
|
+
"title": "MultiPoint",
|
37
|
+
"type": "object",
|
38
|
+
|
39
|
+
"description": "A geographic object comprised of multiple points.",
|
40
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/3",
|
41
|
+
"translation": {
|
42
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ]"]
|
43
|
+
},
|
44
|
+
"properties": {
|
45
|
+
"type": {
|
46
|
+
"enum": ["MultiPoint"],
|
47
|
+
"description": "Type of geometry object."
|
48
|
+
},
|
49
|
+
"coordinates": {
|
50
|
+
"description": "The set of positions that constitute the MultiPoint geometry.",
|
51
|
+
"translation": {
|
52
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Point[ ] > coordinates"]
|
53
|
+
},
|
54
|
+
"$ref": "#/definitions/positionArray"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}, {
|
58
|
+
"title": "LineString",
|
59
|
+
"type": "object",
|
60
|
+
"description": "A geometry object comprised of a minimum of two positions.",
|
61
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/1",
|
62
|
+
"translation": {
|
63
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString"]
|
64
|
+
},
|
65
|
+
"properties": {
|
66
|
+
"type": {
|
67
|
+
"enum": ["LineString"],
|
68
|
+
"description": "Type of geometry object."
|
69
|
+
},
|
70
|
+
"coordinates": {
|
71
|
+
"description": "The set of positions that constitute the LineString geometry.",
|
72
|
+
"translation": {
|
73
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > LineString > coordinates"]
|
74
|
+
},
|
75
|
+
"$ref": "#/definitions/lineString"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}, {
|
79
|
+
"title": "MultiLineString",
|
80
|
+
"type": "object",
|
81
|
+
"description": "A geometry object comprised of one or more LineStrings.",
|
82
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/4",
|
83
|
+
"translation": {
|
84
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ]"]
|
85
|
+
},
|
86
|
+
"properties": {
|
87
|
+
"type": {
|
88
|
+
"enum": ["MultiLineString"],
|
89
|
+
"description": "Type of geometry object."
|
90
|
+
},
|
91
|
+
"coordinates": {
|
92
|
+
"type": "array",
|
93
|
+
"description": "The set of LineString(s) that constitute the MultiLineString.",
|
94
|
+
"translation": {
|
95
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > LineString[ ] > coordinates"]
|
96
|
+
},
|
97
|
+
"items": {
|
98
|
+
"$ref": "#/definitions/lineString"
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}, {
|
103
|
+
"title": "Polygon",
|
104
|
+
"type": "object",
|
105
|
+
"description": "A geometry object that is composed of a set of LinearRings. A LinearRing is a closed LineString with 4 or more positions. The first and last positions are equivalent (they represent equivalent points).\n\nFor Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes.",
|
106
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/2",
|
107
|
+
"translation": {
|
108
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Polygon"]
|
109
|
+
},
|
110
|
+
"properties": {
|
111
|
+
"type": {
|
112
|
+
"enum": ["Polygon"],
|
113
|
+
"description": "Type of geometry object."
|
114
|
+
},
|
115
|
+
"coordinates": {
|
116
|
+
"$ref": "#/definitions/polygon"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}, {
|
120
|
+
"title": "MultiPolygon",
|
121
|
+
"type": "object",
|
122
|
+
"description": "A geometry object comprised of multiple polygons. ",
|
123
|
+
"example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/5",
|
124
|
+
"translation": {
|
125
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ]"]
|
126
|
+
},
|
127
|
+
"properties": {
|
128
|
+
"type": {
|
129
|
+
"enum": ["MultiPolygon"],
|
130
|
+
"description": "Type of geometry object."
|
131
|
+
},
|
132
|
+
"coordinates": {
|
133
|
+
"type": "array",
|
134
|
+
"description": "The set of Polygons that constitute the MultiPolygon.",
|
135
|
+
"translation": {
|
136
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > MultiGeometry > geometryMembers > Polygon[ ] > [exterior > LinearRing > coordinates | interior[ ] > LinearRing > coordinates]"]
|
137
|
+
},
|
138
|
+
"items": {
|
139
|
+
"$ref": "#/definitions/polygon"
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"definitions": {
|
146
|
+
"position": {
|
147
|
+
"title": "position",
|
148
|
+
"description": "A position is the fundamental geometry construct. A position is represented by an array of numbers following x, y, z order (easting, northing, altitude for coordinates in a projected coordinate reference system, or longitude, latitude, altitude for coordinates in a geographic coordinate reference system).",
|
149
|
+
"type": "array",
|
150
|
+
"minItems": 2,
|
151
|
+
"items": {
|
152
|
+
"type": "number"
|
153
|
+
}
|
154
|
+
,
|
155
|
+
"additionalItems": false
|
156
|
+
},
|
157
|
+
"positionArray": {
|
158
|
+
"title": "positionArray",
|
159
|
+
"description": "An array of positions",
|
160
|
+
"type": "array",
|
161
|
+
"items": {
|
162
|
+
"$ref": "#/definitions/position"
|
163
|
+
}
|
164
|
+
},
|
165
|
+
"lineString": {
|
166
|
+
"title": "lineString",
|
167
|
+
"description": "An array of two or more positions",
|
168
|
+
"allOf": [
|
169
|
+
{
|
170
|
+
"$ref": "#/definitions/positionArray"
|
171
|
+
}, {
|
172
|
+
"title": "minimum 2",
|
173
|
+
"description": "The LineString must consist of two or more positions",
|
174
|
+
"minItems": 2
|
175
|
+
}
|
176
|
+
]
|
177
|
+
},
|
178
|
+
"linearRing": {
|
179
|
+
"title": "LinearRing",
|
180
|
+
"description": "An array of a minimum of four positions where the first equals the last",
|
181
|
+
"allOf": [
|
182
|
+
{
|
183
|
+
"$ref": "#/definitions/positionArray"
|
184
|
+
}, {
|
185
|
+
"title": "minimum 4",
|
186
|
+
"description": "A LinearRing is a closed LineString with 4 or more positions.",
|
187
|
+
"minItems": 4
|
188
|
+
}
|
189
|
+
]
|
190
|
+
},
|
191
|
+
"polygon": {
|
192
|
+
"title": "Polygon",
|
193
|
+
"description": "A set of LinearRings that constitute a Polygon geometry. For Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes.",
|
194
|
+
"translation": {
|
195
|
+
"ISO 19115-2": ["EX_Extent > geographicElement > EX_BoundingPolygon > polygon > Polygon > [exterior > LinearRing > coordinates | interior[ ] > LinearRing > coordinates]"]
|
196
|
+
},
|
197
|
+
"type": "array",
|
198
|
+
"items": {
|
199
|
+
"$ref": "#/definitions/linearRing"
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"id": "graphicOverview.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"example": "../../examples/full_example.json#/metadata/resourceInfo/graphicOverview/0",
|
5
|
+
"description": "schema for browse graphic",
|
6
|
+
"type": "object",
|
7
|
+
"required": ["fileName"],
|
8
|
+
"additionalProperties": true,
|
9
|
+
"properties": {
|
10
|
+
"fileName": {
|
11
|
+
"type": "string",
|
12
|
+
"description": "Name of the file that contains a browse graphic for the resource.",
|
13
|
+
"translation": {
|
14
|
+
"ISO 19115-2": ["MD_BrowseGraphic > filename"],
|
15
|
+
"FGDC CSDGM": ["idinfo > browse > browsen"]
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"fileDescription": {
|
19
|
+
"type": "string",
|
20
|
+
"description": "Description of the browse graphic.",
|
21
|
+
"translation": {
|
22
|
+
"ISO 19115-2": ["MD_BrowseGraphic > fileDescription"],
|
23
|
+
"FGDC CSDGM": ["idinfo > browse > browsed"]
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"fileType": {
|
27
|
+
"type": "string",
|
28
|
+
"description": "Format of the browse graphic, such as: PDF, JPEG, TIFF, etc.",
|
29
|
+
"translation": {
|
30
|
+
"ISO 19115-2": ["MD_BrowseGraphic > fileType"],
|
31
|
+
"FGDC CSDGM": ["idinfo > browse > browset"]
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"fileUri": {
|
35
|
+
"description": "URI of the browse graphic.",
|
36
|
+
"translation": {
|
37
|
+
"ISO 19115-2": ["MD_BrowseGraphic > filename @xlink:href"]
|
38
|
+
},
|
39
|
+
"$ref": "../schema.json#/definitions/uri"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"id": "keyword.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"description": "schema for a keyword entry",
|
5
|
+
"example": "../../examples/full_example.json#/metadata/resourceInfo/keyword",
|
6
|
+
"type": "object",
|
7
|
+
"required": ["keyword"],
|
8
|
+
"additionalProperties": false,
|
9
|
+
"properties": {
|
10
|
+
"keyword": {
|
11
|
+
"type": "array",
|
12
|
+
"description": "Commonly used word(s) or formalized word(s) or phrase(s) used to describe the subject.",
|
13
|
+
"translation": {
|
14
|
+
"ISO 19115-2": ["MD_Keywords > keyword"],
|
15
|
+
"FGDC CSDGM": ["idinfo>keywords>theme>themekey", "idinfo>keywords>place>placekey", "idinfo>keywords>temporal>tempkey", "idinfo>keywords>stratum>stratkey"]
|
16
|
+
},
|
17
|
+
"items": {
|
18
|
+
"type": "string"
|
19
|
+
},
|
20
|
+
"uniqueItems": true
|
21
|
+
},
|
22
|
+
"keywordType": {
|
23
|
+
"type": "string",
|
24
|
+
"description": "A code, or concept, that defines the subject matter used to group similar keywords.",
|
25
|
+
"translation": {
|
26
|
+
"ISO 19115-2": ["MD_Keywords > type"]
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"thesaurus": {
|
30
|
+
"description": "Name of the formally registered thesaurus or a similar authoritative source of keywords.",
|
31
|
+
"example": "../../examples/full_example.json#/metadata/resourceInfo/keyword/0/thesaurus",
|
32
|
+
"translation": {
|
33
|
+
"ISO 19115-2": ["MD_Keywords > thesaurusName > CI_Citation"],
|
34
|
+
"FGDC CSDGM": ["idinfo>keywords>theme>themekt", "idinfo>keywords>place>placekt", "idinfo>keywords>temporal>tempkt", "idinfo>keywords>stratum>stratkt"]
|
35
|
+
},
|
36
|
+
"$ref": "citation.json#/definitions/citationFull"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"id": "maintInfo.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"type": "object",
|
5
|
+
"description": "Information about the maintenance of a resource.",
|
6
|
+
"example": "../../examples/full_example.json#/metadata/metadataInfo/metadataMaintenance",
|
7
|
+
"translation": {
|
8
|
+
"ISO 19115-2": ["MD_MaintenanceInformation"]
|
9
|
+
},
|
10
|
+
"additionalProperties": false,
|
11
|
+
"properties": {
|
12
|
+
"maintenanceFrequency": {
|
13
|
+
"type": "string",
|
14
|
+
"description": "Describes the frequency of additions and updates made to a resource.",
|
15
|
+
"translation": {
|
16
|
+
"ISO 19115-2": ["MD_MaintenanceInformation > maintenanceAndUpdateFrequency [MD_MaintenanceFrequencyCode]"]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"maintenanceNote": {
|
20
|
+
"type": "array",
|
21
|
+
"description": "Notes regarding the maintenance of the resource.",
|
22
|
+
"translation": {
|
23
|
+
"ISO 19115-2": ["MD_MaintenanceInformation > maintenanceNote"]
|
24
|
+
},
|
25
|
+
"items": {
|
26
|
+
"type": "string"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
,
|
30
|
+
"maintenanceContact": {
|
31
|
+
"type": "array",
|
32
|
+
"description": "Contact information for the maintainer of the resource.",
|
33
|
+
"translation": {
|
34
|
+
"ISO 19115-2": ["MD_MaintenanceInformation > contact > CI_Contact"],
|
35
|
+
"FGDC CSDGM": ["metainfo > metc"]
|
36
|
+
},
|
37
|
+
"uniqueItems": true,
|
38
|
+
"items": {
|
39
|
+
"$ref": "contact.json#/definitions/contactRef"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|