Class SpatialReferences


  • public final class SpatialReferences
    extends java.lang.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:
    SpatialReference
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SpatialReference getWebMercator()
      Gets a SpatialReference representing the Web Mercator Auxiliary Sphere projected coordinate system.
      static SpatialReference getWgs84()
      Gets a SpatialReference representing the WGS 1984 geographic coordinate system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpatialReferences

        public SpatialReferences()
    • Method Detail

      • 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