dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
SpatialReference Class
Defines the spatial reference of a view, layer, or method parameters.
ArcGIS Maps SDK for JavaScript
public class SpatialReference : dymaptic.GeoBlazor.Core.Components.MapComponent,
System.IEquatable<dymaptic.GeoBlazor.Core.Components.SpatialReference>
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 SpatialReference
Implements System.IEquatable<SpatialReference>
Constructors
SpatialReference() Constructor
Parameterless constructor for use as a Razor Component.
public SpatialReference();
SpatialReference(Nullable, string, string, string) Constructor
Constructor for use in C# code.
public SpatialReference(System.Nullable<int> wkid=null, string? imageCoordinateSystem=null, string? wkt=null, string? wkt2=null);
Parameters
wkid
System.Nullable<System.Int32>
The well-known ID of a spatial reference.
ArcGIS Maps SDK for JavaScript
imageCoordinateSystem
System.String
An image coordinate system defines the spatial reference used to display the image in its original coordinates without distortion, map transformations or ortho-rectification.
ArcGIS Maps SDK for JavaScript
wkt
System.String
The well-known text that defines a spatial reference.
ArcGIS Maps SDK for JavaScript
wkt2
System.String
The well-known text of the coordinate system as defined by OGC standard for well-known text strings.
ArcGIS Maps SDK for JavaScript
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.
ArcGIS Maps SDK for JavaScript
public string? ImageCoordinateSystem { get; set; }
Property Value
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.MetersPerUnit Property
The factor to convert one unit value in the spatial reference’s unit to meters.
ArcGIS Maps SDK for JavaScript
public System.Nullable<double> MetersPerUnit { get; set; }
Property Value
System.Nullable<System.Double>
SpatialReference.Unit Property
The unit of the spatial reference.
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.SpatialReferenceUnit> Unit { get; set; }
Property Value
System.Nullable<SpatialReferenceUnit>
SpatialReference.WebMercator Property
A convenience static instance for WebMercator Spatial Reference.
public static dymaptic.GeoBlazor.Core.Components.SpatialReference WebMercator { get; }
Property Value
SpatialReference.Wgs84 Property
A convenience static instance for WGS84 Spatial Reference.
public static dymaptic.GeoBlazor.Core.Components.SpatialReference Wgs84 { get; }
Property Value
SpatialReference.Wkid Property
The well-known ID of a spatial reference.
public System.Nullable<int> Wkid { get; set; }
Property Value
SpatialReference.Wkt Property
The well-known text that defines a spatial reference.
public string? Wkt { get; set; }
Property Value
SpatialReference.Wkt2 Property
The well-known text of the coordinate system as defined by OGC standard for well-known text strings.
public string? Wkt2 { get; set; }
Property Value
Methods
SpatialReference.Clone() Method
Returns a deep clone of the Spatial Reference.
public dymaptic.GeoBlazor.Core.Components.SpatialReference Clone();
Returns
SpatialReference.Equals(SpatialReference) Method
Determines whether the specified SpatialReference is equal to the current SpatialReference.
public bool Equals(dymaptic.GeoBlazor.Core.Components.SpatialReference? other);
Parameters
other
SpatialReference
Returns
SpatialReference.Equals(object) Method
public override bool Equals(object? obj);
Parameters
obj
System.Object
Returns
SpatialReference.GetHashCode() Method
public override int GetHashCode();
Returns
SpatialReference.GetImageCoordinateSystem() Method
Asynchronously retrieve the current value of the ImageCoordinateSystem property.
public System.Threading.Tasks.Task<string?> GetImageCoordinateSystem();
Returns
System.Threading.Tasks.Task<System.String>
SpatialReference.GetMetersPerUnit() Method
Asynchronously retrieve the current value of the MetersPerUnit property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetMetersPerUnit();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
SpatialReference.GetUnit() Method
Asynchronously retrieve the current value of the Unit property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.SpatialReferenceUnit>> GetUnit();
Returns
System.Threading.Tasks.Task<System.Nullable<SpatialReferenceUnit>>
SpatialReference.GetWkid() Method
Asynchronously retrieve the current value of the Wkid property.
public System.Threading.Tasks.Task<System.Nullable<int>> GetWkid();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Int32>>
SpatialReference.GetWkt() Method
Asynchronously retrieve the current value of the Wkt property.
public System.Threading.Tasks.Task<string?> GetWkt();
Returns
System.Threading.Tasks.Task<System.String>
SpatialReference.GetWkt2() Method
Asynchronously retrieve the current value of the Wkt2 property.
public System.Threading.Tasks.Task<string?> GetWkt2();
Returns
System.Threading.Tasks.Task<System.String>
SpatialReference.SetImageCoordinateSystem(string) Method
Asynchronously set the value of the ImageCoordinateSystem property after render.
public System.Threading.Tasks.Task SetImageCoordinateSystem(string? value);
Parameters
value
System.String
The value to set.
Returns
SpatialReference.SetWkid(Nullable) Method
Asynchronously set the value of the Wkid property after render.
public System.Threading.Tasks.Task SetWkid(System.Nullable<int> value);
Parameters
value
System.Nullable<System.Int32>
The value to set.
Returns
SpatialReference.SetWkt(string) Method
Asynchronously set the value of the Wkt property after render.
public System.Threading.Tasks.Task SetWkt(string? value);
Parameters
value
System.String
The value to set.
Returns
SpatialReference.SetWkt2(string) Method
Asynchronously set the value of the Wkt2 property after render.
public System.Threading.Tasks.Task SetWkt2(string? value);
Parameters
value
System.String
The value to set.
Returns
SpatialReference.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()
Operators
SpatialReference.operator ==(SpatialReference, SpatialReference) Operator
Override to provide custom equality
public static bool operator ==(dymaptic.GeoBlazor.Core.Components.SpatialReference? left, dymaptic.GeoBlazor.Core.Components.SpatialReference? right);
Parameters
left
SpatialReference
right
SpatialReference
Returns
SpatialReference.operator !=(SpatialReference, SpatialReference) Operator
Override to provide custom inequality
public static bool operator !=(dymaptic.GeoBlazor.Core.Components.SpatialReference? left, dymaptic.GeoBlazor.Core.Components.SpatialReference? right);
Parameters
left
SpatialReference
right
SpatialReference