schema/schema/geojson/crs.json in adiwg-json_schemas-0.8.1 vs schema/schema/geojson/crs.json in adiwg-json_schemas-0.9.0

- old
+ new

@@ -1,56 +1,82 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "crs.json#", - "title": "crs", - "description": "a Coordinate Reference System object", - "type": [ "object", "null" ], - "required": [ "type", "properties" ], - "properties": { - "type": { "type": "string" }, - "properties": { "type": "object" } + "$schema": "http://json-schema.org/draft-04/schema#", + "id": "crs.json#", + "title": "crs", + "description": "A Coordinate Reference System object.", + "type": ["object", "null"], + "required": ["type", "properties"], + "properties": { + "type": { + "type": "string", + "description": "The type of coordinate reference system." }, - "additionalProperties": false, - "oneOf": [ - { "$ref": "#/definitions/namedCrs" }, - { "$ref": "#/definitions/linkedCrs" } - ], - "definitions": { - "namedCrs": { - "title": "namedCrs", - "properties": { - "type": { "enum": [ "name" ] }, - "properties": { - "required": [ "name" ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "FIXME": "semantic validation necessary" - } - } - } - } + "properties": { + "type": "object", + "description": "Coordinate reference system properties." + } + }, + "additionalProperties": false, + "oneOf": [ + { + "$ref": "#/definitions/namedCrs" + }, { + "$ref": "#/definitions/linkedCrs" + } + ], + "definitions": { + "namedCrs": { + "title": "namedCrs", + "description": "A GeoJSON CRS object that indicates a coordinate reference system by name.", + "properties": { + "type": { + "enum": ["name"], + "description": "A CRS object may indicate a coordinate reference system by name. In this case, the value of its \"type\" member must be the string \"name\"." }, - "linkedObject": { - "type": "object", - "title": "linkedObject", - "required": [ "href" ], - "properties": { - "href": { - "$ref": "../../schema.json#/definitions/url" - }, - "type": { - "type": "string", - "description": "Suggested values: proj4, ogjwkt, esriwkt" - } + "properties": { + "description": "Coordinate reference system properties.", + "required": ["name"], + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "The name of the coordinate reference system.", + "translation": { + "ISO 19115-2": ["geographicElement > EX_BoundingPolygon > polygon > [Point, LineString, Polygon, MultiGeometry] @srsName"] + }, + "FIXME": "semantic validation necessary" } + } + } + } + }, + "linkedObject": { + "type": "object", + "title": "linkedObject", + "description": "An object that links to a coordinate reference system definition.", + "required": ["href"], + "properties": { + "href": { + "$ref": "../../schema.json#/definitions/url", + "description": "A dereferenceable URI that links to the parameters for the coordinate reference system." }, - "linkedCrs": { - "title": "linkedCrs", - "properties": { - "type": { "enum": [ "link" ] }, - "properties": { "$ref": "#/definitions/linkedObject" } - } + "type": { + "type": "string", + "description": "A string that hints at the format used to represent CRS parameters at the provided URI. Suggested values are: \"proj4\", \"ogcwkt\", \"esriwkt\", but others can be used." } + } + }, + "linkedCrs": { + "title": "linkedCrs", + "description": "A GeoJSON CRS object that links to coordinate reference system parameters on the Web.", + "properties": { + "type": { + "enum": ["link"], + "description": "A CRS object may link to CRS parameters on the Web. In this case, the value of its \"type\" member must be the string \"link\"." + }, + "properties": { + "$ref": "#/definitions/linkedObject" + } + } } + } }