spatialReference

May 26, 2021 ยท View on GitHub

The spatialReference object is located at the top level of the JSON hierarchy. 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 Reference System (CRS) are used.

A spatial reference can optionally include a definition for a vertical coordinate system (VCS), which is used to interpret a geometries z values.

cmn::3DSceneLayer, psl::3DSceneLayer, psl::3DSceneLayer, cmn::fullExtent, bld::layer

Properties

PropertyTypeDescription
latestVcsWkidintegerThe current WKID value of the vertical coordinate system.
latestWkidintegerIdentifies the current WKID value associated with the same spatial reference. For example a WKID of '102100' (Web Mercator) has a latestWKid of '3857'.
vcsWkidintegerThe WKID value of the vertical coordinate system.
wkidintegerWKID, or Well-Known ID, of the CRS. Specify either WKID or WKT of the CRS.
wktstringWKT, or Well-Known Text, of the CRS. Specify either WKT or WKID of the CRS but not both.

Examples

Example: spatial reference

 {
  "wkid": 103142,
  "latestWkid": 6565,
  "vcsWkid": 105703,
  "latestVcsWkid": 6360
} 

Example: custom spatial reference

 {
  "wkt": "PROJCS[\"Austria_Central_Zone\",GEOGCS[\"GCS_MGI_Ferro\",DATUM[\"D_MGI\",SPHEROID[\"Bessel_1841\",6377397.155,299.1528128]],PRIMEM[\"Ferro\",-17.66666666666667],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",-5000000.0],PARAMETER[\"Central_Meridian\",13.33333333333333],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]"
}