Class: SpatialReferenceE-mail This Topic Printable Version Give Us Feedback

Description

The spatial reference of a map, layer, or inputs to and outputs from a task. Each projected and geographic coordinate system is defined by both a well-known ID (WKID) or a definition string (WKT). The JavaScript API supports only well-known ID's. For a complete list of supported IDs and their corresponding definition strings, see:

Class hierarchy

esri.SpatialReference

Constructor

Constructor Description
esri.SpatialReference(json) Creates a new SpatialReference object.

Properties

Property Type Description
wkid Number The well-known ID of a spatial reference. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references.
Constructor Detail

esri.SpatialReference(json)

Creates a new SpatialReference object.
Parameters:
<Object> json Required The REST JSON representation of the spatial reference: {"wkid" : <wkid>}
Properties Detail

<Number> wkid

The well-known ID of a spatial reference. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references.