Skip To Content ArcGIS for Developers Sign In Dashboard

Spatial reference systems are a key component of writing spatial applications. A spatial reference helps describe where features are located in the real world. Different spatial reference systems are used for different purposes. You may also hear spatial reference and coordinate system used interchangeably although they are slightly different.

Consider the two examples below. 102003, or Albers Equal Area, is commonly used by news organizations because it preserves the relative area for each state in the continental United States. However, 3857, or Web Mercator, is used by many mapping applications because it preserves both a consistent direction for north and the scale of the map at any given zoom level.

102003 - Albers Equal Area

3857 - Web Mercator

The data for both these maps comes from the same source. ArcGIS Server handles reprojecting the data (converting it to the requested spatial reference) 'on the fly'.

ArcGIS allows you to use thousands of different spatial references and offers many tools for working with spatial references because many governments, militaries, and other organizations mandate that a specific one be used.

Most spatial references fall into two categories, geographic and projected.

Geographic coordinate systems

A geographic coordinate system (GCS) uses a ellipsoidal surface to define locations on the Earth. There are three parts to a geographic coordinate system:

  1. A datum, which is an ellipsoidal (spheroid) model of the Earth
  2. A prime meridian
  3. An angular unit of measure

Common datums include WGS84 (used in GPS) and NAD83 (used in surveying and mapping in North America).

You can see these three parts in the well-known text for the 4326 spatial reference in the DATUM, PRIMEM and UNIT sections:


Projected coordinate systems

Projected coordinate systems define a flat 2D Cartesian surface. Unlike a geographic coordinate system, a projected coordinate system has constant lengths, angles, and areas across the two dimensions. A projected coordinate system is always based on a geographic coordinate system that references a specific datum.

You can see these various parts in the well-known text of the spatial reference for 3857 spatial reference:


You can see that EPSG:3857 references the same DATUM, SPHEROID, PRIMEM and UNIT fields as the 4236 projection. It also defines a PROJECTION (Mercator_Auxiliary_Sphere) which defines how to project the 3D GEOGCS coordinates into 2D coordinates.

Using spatial references

Generally, when using ArcGIS APIs and SDKs, conversions between different spatial references are automatically made for you. However, in some cases, you do need to supply the spatial reference.

The spatial reference is usually defined with a JSON object:

  wkid: 4326

Here, the wkid field represents the "Well-known ID" of the spatial reference you would like to use. Spatial references are generally defined as part of a geometry.

], function(Map, MapView, Point, Graphic) {

  // Create a new map with the Streets Navigation vector basemap.
  // The basemap is published in 3857, which is commonly known as Web Mercator
  var map = new Map({
    basemap: "streets-navigation-vector"

  // now we create a new view of our map
  var view = new MapView({
    container: "map",
    map: map,
    zoom: 15,
    center: [ -118.24354, 34.05389 ]

  // now we can create a graphic to add to our map. Notice that we have
  // to supply the spatial reference of our new point to tell the API how to
  // map this point onto our map. This conversion happens automatically.
  var graphic = new Graphic({
    geometry: new Point({
      x: -118.24354,
      y: 34.05389,
      spatialReference: {
        wkid: 4326

Commonly used coordinate reference systems

For more in-depth information, including lists of Projected, Geographic, and Vertical coordinate systems, see Using Spatial References on the ArcGIS REST API documentation.

4326 - GPS

4326 is the most common spatial reference for storing a referencing data across the entire world. It serves as the default for both the PostGIS spatial database and the GeoJSON standard. It is also used by default in most web mapping libraries.

Because of its use in GPS, 4326 is generally assumed to be the spatial reference when talking about "latitude" or "longitude".

3857 - Web Mercator

The Web Mercator coordinate reference system is the default in most web mapping libraries. Web Mercator preserves a consistent direction and north is always "up" on a Web Mercator map. Angles are also depicted accurately, so a 90-degree turn on a Web Mercator map will actually look like a right angle. That said, the projection distorts both shape and size as distance from the equator increases.

Web Mercator is ideal for generating map tiles since it will project the world into a square that can be subdivided evenly across zoom levels. For example one tile at zoom level 1, four tiles at zoom level 2 and so on.