layout: default title: SpatialReference parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Geometries

SpatialReference Class

Defines the spatial reference of a view, layer, or method parameters. This indicates the projected or geographic
coordinate system used to locate geographic features in the map. Each projected and geographic coordinate system is
defined by either a well-known ID (WKID) or a definition string (WKT). Note that for versions prior to ArcGIS 10,
only WKID was supported. For a full list of supported spatial reference IDs and their corresponding definition
strings, see Using spatial references.
ArcGIS Maps SDK for JavaScript

public class SpatialReference : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 SpatialReference

Constructors

SpatialReference() Constructor

Parameterless constructor for use as a razor component

public SpatialReference();

SpatialReference(int) Constructor

Creates a new SpatialReference in code with a Wkid

public SpatialReference(int wkid);

Parameters

wkid System.Int32

The well-known Id for the spatial reference

Properties

SpatialReference.ImageCoordinateSystem Property

An image coordinate system defines the spatial reference used to display the image in its original coordinates
without distortion, map transformations or ortho-rectification.

public object? ImageCoordinateSystem { get; set; }

Property Value

System.Object

SpatialReference.IsGeographic Property

Indicates if the spatial reference refers to a geographic coordinate system.

public System.Nullable<bool> IsGeographic { get; set; }

Property Value

System.Nullable<System.Boolean>

SpatialReference.IsWebMercator Property

Indicates if the wkid of the spatial reference object is one of the following values: 102113, 102100, 3857.

public System.Nullable<bool> IsWebMercator { get; set; }

Property Value

System.Nullable<System.Boolean>

SpatialReference.IsWgs84 Property

Indicates if the wkid of the spatial reference object is 4326.

public System.Nullable<bool> IsWgs84 { get; set; }

Property Value

System.Nullable<System.Boolean>

SpatialReference.IsWrappable Property

Indicates if the spatial reference of the map supports wrapping around the International Date Line.

public System.Nullable<bool> IsWrappable { get; set; }

Property Value

System.Nullable<System.Boolean>

SpatialReference.WebMercator Property

A convenience static instance for WebMercator Spatial Reference.

public static dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference WebMercator { get; set; }

Property Value

SpatialReference

SpatialReference.Wgs84 Property

A convenience static instance for WGS84 Spatial Reference.

public static dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference Wgs84 { get; set; }

Property Value

SpatialReference

SpatialReference.Wkid Property

The well-known ID of a spatial reference.

public System.Nullable<int> Wkid { get; set; }

Property Value

System.Nullable<System.Int32>

SpatialReference.Wkt Property

The well-known text that defines a spatial reference.

public string? Wkt { get; set; }

Property Value

System.String

Methods

SpatialReference.Clone() Method

Returns a deep clone of the Spatial Reference.

public dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference Clone();

Returns

SpatialReference