{ "$schema": "http://json-schema.org/draft-04/schema#", "id": "crs.json#", "title": "crs", "description": "A Coordinate Reference System object.", "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement", "oneOf": [ { "type": "object", "description": "A Coordinate Reference System object.", "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement", "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" } ] }, { "title": "null", "type": "null" } ], "definitions": { "namedCrs": { "title": "namedCrs", "type": "object", "description": "A GeoJSON CRS object that indicates a coordinate reference system by name.", "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/1/crs", "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": { "type": "object", "description": "Coordinate reference system properties.", "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/1/crs", "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.", "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/0/crs", "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", "type": "object", "description": "A GeoJSON CRS object that links to coordinate reference system parameters on the Web.", "example": "../../../examples/full_example.json#/metadata/resourceInfo/extent/0/geographicElement/0/crs", "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" } } } } }