{ "$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." }, "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\"." }, "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." }, "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" } } } } }