A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/ios/api-reference/interface_a_g_s_spatial_reference.html below:

ArcGIS Runtime SDK for iOS: AGSSpatialReference Class Reference

Represents the spatial reference of a geometry.

A spatial reference determines how map coordinates, or the x,y,z-coordinates in the vertices of geometries, correspond to locations in real-world space. Therefore, it is very important to associate geometries representing spatial data with corresponding spatial references.

Each spatial reference can be represented by either a well-known ID (WKID), or a well-known text (WKT). Spatial references define the spatial properties of a geometry, for instance the coordinate system it uses. There are 2 broad classes of coordinate systems - Geographic & Projected. A Geographic Coordinate system uses a 3-dimensional spherical surface to define locations on the earth. A Projected Coordinate system on the other hand uses a flat, 2-dimensional surface.

Learn more about coordinate systems

Since
100
See also
AGSGeometry for geometry types
+ projectGeometry:toSpatialReference: (AGSGeometryEngine) to project geometries from one spatial reference to another
◆ convergenceAngleWithPoint: - (double) convergenceAngleWithPoint: (AGSPoint *)  point

Calculate the grid convergence for a spatial reference at a given point.

Remarks

The grid convergence is the angle between True North and Grid North at a point on a map. The grid convergence can be used to convert a horizontal direction expressed as an azimuth in a geographic coordinate system (relative to True North) to a direction expressed as a bearing in a projected coordinate system (relative to Grid North), and vice versa.

Sign convention

The grid convergence returned by this method is positive when Grid North lies east of True North. The following formula demonstrates how to obtain a bearing (b) from an azimuth (a) using the grid convergence (c) returned by this method: b = a - c.

This sign convention is sometimes named the Gauss-Bomford convention.

Other Notes

◆ fromJSON:error:

Initializes and returns an object from its JSON representation.

Parameters
JSONObject NSDictionary or NSArray containing the JSON. error encountered during the operation, if any.
Since
100
◆ initWithWKID: - (nullable instancetype) initWithWKID: (NSInteger)  WKID

Creates a spatial reference with the given well-known ID (WKID).

Parameters
Since
100
◆ initWithWKID:verticalWKID: - (nullable instancetype) initWithWKID: (NSInteger)  WKID verticalWKID: (NSInteger)  verticalWKID 

Creates a spatial reference with the given well-known ID (WKID) and a vertical well-known ID.

Since
100
◆ initWithWKText: - (nullable instancetype) initWithWKText: (NSString *)  WKText

Creates a spatial reference with the given well-known text (WKT).

Parameters
WKText The well-known text.
Since
100
◆ isEqualToSpatialReference:

Compares whether two spatial references are equal. They are equal if they have the same WKID or #WKT.

Parameters
other The other spatial reference to compare this one to.
Returns
YES if the spatial references are equal.
Since
100
◆ spatialReferenceWithWKID: + (nullable instancetype) spatialReferenceWithWKID: (NSInteger)  WKID

Creates a spatial reference with the given well-known ID (WKID).

Parameters
Returns
A new spatial reference object.
Since
100
◆ spatialReferenceWithWKID:verticalWKID:

Creates a spatial reference with the given well-known ID (WKID) and a vertical well-known ID.

Parameters
WKID The well-known ID of the horizontal coordinate system. Must be a positive value. verticalWKID The well-known ID of the vertical coordinate system. Must be a non negative value.
Returns
A new spatial reference object.
Since
100
◆ spatialReferenceWithWKText: + (nullable instancetype) spatialReferenceWithWKText: (NSString *)  WKText

Creates a spatial reference with the given well-known text (WKT).

Parameters
WKText The well-known text
Returns
A new spatial reference object.
Since
100
◆ toJSON: - (nullable id) toJSON: (NSError **)  error requiredinherited

Returns JSON representation for this object.

Parameters
error encountered during the operation, if any.
Returns
NSDictionary or NSArray containing the JSON.
Since
100

Reimplemented in AGSPortalItem.

◆ webMercator

A spatial reference representing the Web Mercator coordinate system (WKID:3857, equivalent to WKID:102113).

Since
100
◆ WGS84

A spatial reference representing the WGS84 coordinate system (WKID:4326).

Since
100
◆ baseGeographic

If the given spatial reference is a projected coordinate system, then this will return the geographic coordinate system of that system.

If the spatial reference is a projected coordinate system, then a spatial reference object representing the underlying geographic coordinate system is returned. Every projected coordinate system has an underlying geographic coordinate system. If the spatial reference is a geographic coordinate system, then a reference to itself is returned. If the spatial reference is a local spatial reference, a nil is returned.

Since
100.0
◆ geographic

YES if spatial reference is a Geographic Coordinate System.

Since
100.0
◆ hasVertical ◆ pannable

YES if coordinate system is horizontally pannable.

Since
100.0
◆ projected

YES if spatial reference is a Projected Coordinate System.

Since
100.0
◆ unit

The unit of measure for the horizontal coordinate system of this spatial reference.

Since
100
◆ unknownJSON - (NSDictionary<NSString*,id>*) unknownJSON readrequirednonatomiccopyinherited

A dictionary of values that was in the source JSON but was unparsed by API.

Returns
NSDictionary containing the unknown JSON.
Since
100
◆ unsupportedJSON - (NSDictionary<NSString*,id>*) unsupportedJSON readnonatomiccopyinherited

A dictionary of values that are supported by the REST API, but not exposed through the SDK API.

Returns
NSDictionary containing the unsupported JSON.
Since
100
◆ verticalUnit ◆ verticalWKID - (NSInteger) verticalWKID readnonatomicassign

The well-known ID for the vertical coordinate system.

The well-known ID for the vertical coordinate system (VCS) set on this AGSSpatialReference.

Returns 0 if there is no VCS set, if there is a custom VCS set.

See also
- initWithWKID:verticalWKID:
Since
100.0
◆ WKID

The well-known ID for the horizontal coordinate system.

The well-known ID for the horizontal coordinate system. Will return 0 if an error occurs.

Since
100
◆ WKText

The well-known text of the spatial reference.

Since
100

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4