Class SpatialReferences

java.lang.Object
com.esri.arcgisruntime.geometry.SpatialReferences

public final class SpatialReferences extends Object
Provides helper methods that return instances of the most common types of SpatialReference. They can be used as an alternative to creating a SpatialReference by well-known ID or text.
Since:
100.0.0
See Also:
  • Constructor Details

    • SpatialReferences

      public SpatialReferences()
  • Method Details

    • getWgs84

      public static SpatialReference getWgs84()
      Gets a SpatialReference representing the WGS 1984 geographic coordinate system. This spatial reference has a WKID of 4326.
      Returns:
      a WGS 1984 SpatialReference object
      Since:
      100.0.0
    • getWebMercator

      public static SpatialReference getWebMercator()
      Gets a SpatialReference representing the Web Mercator Auxiliary Sphere projected coordinate system. This spatial reference has a WKID of 3857.

      You may encounter legacy WKIDs 102100 or 102113, that also refer to this same spatial reference.

      Returns:
      a Web Mercator Auxiliary Sphere SpatialReference object
      Since:
      100.0.0