Package com.esri.arcgisruntime.geometry
Class SpatialReferences
- java.lang.Object
 - 
- com.esri.arcgisruntime.geometry.SpatialReferences
 
 
- 
public final class SpatialReferences extends java.lang.ObjectProvides helper methods that return instances of the most common types ofSpatialReference. They can be used as an alternative to creating a SpatialReference by well-known ID or text.- Since:
 - 100.0.0
 - See Also:
 SpatialReference
 
- 
- 
Constructor Summary
Constructors Constructor Description SpatialReferences() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpatialReferencegetWebMercator()Gets a SpatialReference representing the Web Mercator Auxiliary Sphere projected coordinate system.static SpatialReferencegetWgs84()Gets a SpatialReference representing the WGS 1984 geographic coordinate system. 
 - 
 
- 
- 
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
 
 
 - 
 
 -