{
    "title": "spatialReference",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "The spatialReference object is located at the top level of the JSON hierarchy. In addition to this, it is also available within the operationalLayer and basemap objects.\n\nMany predefined spatial references have already been defined and are available for use. A spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT). The default tolerance and resolution values for the associated coordinate system are used.\n\nA spatial reference can optionally include a definition for a vertical coordinate system (VCS), which is used to interpret the z values of a geometry.",
    "properties": {
        "latestVcsWkid": {
            "type": "number",
            "description": "(Optional) The current wkid value of the vertical coordinate system."
        },
        "latestWkid": {
            "type": "number",
            "description": "(Optional) Identifies the current wkid value associated with the same spatial reference. For example a WKID of '102100' (Web Mercator) has a latestWKid of '3857'."
        },
        "vcsWkid": {
            "type": "number",
            "description": "(Optional) The wkid value of the vertical coordinate system."
        },
        "wkid": {
            "type": "number",
            "description": "The well-known ID (WKID) of the coordinate system. Specify either WKID or the well-known text (WKT) of the coordinate system.",
            "default": 102100
        },
        "wkt": {
            "type": "string",
            "description": "The well-known text (WKT) of the coordinate system. Specify either WKT or WKID of the coordinate system."
        }
    },
    "oneOf": [
        {
            "required": [
                "wkt"
            ]
        },
        {
            "required": [
                "wkid"
            ]
        }
    ],
    "additionalProperties": false,
    "esriDocumentation": {
        "additionalInformation": "All operational layers in the scene are drawn or requested in the spatial reference of the basemap layers.\n\nThe **basemap** defines the spatial reference and tiling scheme of the scene. Each **baseMapLayer** must be in the same spatial reference and tiling scheme.\n\n\n\nFor a complete list of supported IDs and their corresponding definition strings, see:\n\n[Projected Coordinate Systems Listing](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Projected_coordinate_systems/02r3000000vt000000/)\n\n[Geographic Coordinate Systems Listing](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Geographic_coordinate_systems/02r300000105000000/)\n\n[Vertical Coordinate Systems Listing](http://resources.arcgis.com/en/help/rest/apiref/vcs.html)\n\n\n\nAdditional information regarding how web scenes work with geometry and spatial reference can be found on the Resource Center:\n\n[ArcGIS Server REST API Geometry object](http://resources.arcgis.com/en/help/rest/apiref/geometry.html)\n\n[Using spatial references](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Using_spatial_references/02r3000000qq000000/)\n\n[Working with Geometry Objects](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Geometry_Objects/02r3000000n1000000/)",
        "examples": [
            {
                "title": "wkid",
                "code": {
                    "spatialreference": {
                        "wkid": 102100,
                        "latestWkid": 3857
                    }
                }
            }
        ]
    }
}