dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Geometries
Point Class
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.Geometries.Point.html”>GeoBlazor Docs</a> A location defined by X, Y, and Z coordinates. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html”>ArcGIS Maps SDK for JavaScript</a>
public class Point : dymaptic.GeoBlazor.Core.Components.Geometries.Geometry
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Geometry 🡒 Point
Constructors
Point() Constructor
Parameterless constructor for use as a Razor Component.
public Point();
Point(Nullable<double>, Nullable<double>, Nullable<double>, Nullable<double>, Nullable<double>, SpatialReference, Nullable<bool>, Nullable<bool>, Nullable<double>) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public Point(System.Nullable<double> longitude=null, System.Nullable<double> latitude=null, System.Nullable<double> x=null, System.Nullable<double> y=null, System.Nullable<double> z=null, dymaptic.GeoBlazor.Core.Components.SpatialReference? spatialReference=null, System.Nullable<bool> hasM=null, System.Nullable<bool> hasZ=null, System.Nullable<double> m=null);
Parameters
longitude
System.Nullable<System.Double>
The longitude of the point. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#longitude”>ArcGIS Maps SDK for JavaScript</a>
latitude
System.Nullable<System.Double>
The latitude of the point. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#latitude”>ArcGIS Maps SDK for JavaScript</a>
x
System.Nullable<System.Double>
The x-coordinate (easting) of the point in map units. default 0 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#x”>ArcGIS Maps SDK for JavaScript</a>
y
System.Nullable<System.Double>
The y-coordinate (northing) of the point in map units. default 0 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#y”>ArcGIS Maps SDK for JavaScript</a>
z
System.Nullable<System.Double>
The z-coordinate (or elevation) of the point in map units. default undefined <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#z”>ArcGIS Maps SDK for JavaScript</a>
spatialReference
SpatialReference
The spatial reference of the geometry. default SpatialReference.WGS84 // wkid: 4326 <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#spatialReference”>ArcGIS Maps SDK for JavaScript</a>
hasM
System.Nullable<System.Boolean>
Indicates if the geometry has M values. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#hasM”>ArcGIS Maps SDK for JavaScript</a>
hasZ
System.Nullable<System.Boolean>
Indicates if the geometry has z-values (elevation). <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#hasZ”>ArcGIS Maps SDK for JavaScript</a>
m
System.Nullable<System.Double>
The m-coordinate of the point in map units. default undefined <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#m”>ArcGIS Maps SDK for JavaScript</a>
Properties
Point.Latitude Property
The latitude of the point.
public System.Nullable<double> Latitude { get; set; }
Property Value
System.Nullable<System.Double>
Point.Longitude Property
The longitude of the point.
public System.Nullable<double> Longitude { get; set; }
Property Value
System.Nullable<System.Double>
Point.M Property
The m-coordinate of the point in map units.
public System.Nullable<double> M { get; set; }
Property Value
System.Nullable<System.Double>
Point.Type Property
The Geometry “type”, used internally to render.
public override dymaptic.GeoBlazor.Core.Enums.GeometryType Type { get; }
Property Value
Point.X Property
The x-coordinate (easting) of the point in map units.
public System.Nullable<double> X { get; set; }
Property Value
System.Nullable<System.Double>
Point.Y Property
The y-coordinate (northing) of the point in map units.
public System.Nullable<double> Y { get; set; }
Property Value
System.Nullable<System.Double>
Point.Z Property
The z-coordinate (or elevation) of the point in map units.
public System.Nullable<double> Z { get; set; }
Property Value
System.Nullable<System.Double>
Methods
Point.Clone() Method
Returns a deep clone of the geometry.
public dymaptic.GeoBlazor.Core.Components.Geometries.Point Clone();
Returns
Point.Copy(Point) Method
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.Geometries.Point.html#pointcopy-method”>GeoBlazor Docs</a> Copies all values from another Point instance. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#copy”>ArcGIS Maps SDK for JavaScript</a>
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point?> Copy(dymaptic.GeoBlazor.Core.Components.Geometries.Point other);
Parameters
other
Point
The point to copy from.
Returns
System.Threading.Tasks.Task<Point>
Point.Distance(Point) Method
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.Geometries.Point.html#pointdistance-method”>GeoBlazor Docs</a> Computes the Euclidean distance between this Point and a given Point. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#distance”>ArcGIS Maps SDK for JavaScript</a>
public System.Threading.Tasks.Task<System.Nullable<double>> Distance(dymaptic.GeoBlazor.Core.Components.Geometries.Point other);
Parameters
other
Point
The point to compute the distance to.
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.GetLatitude() Method
Asynchronously retrieve the current value of the Latitude property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetLatitude();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.GetLongitude() Method
Asynchronously retrieve the current value of the Longitude property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetLongitude();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.GetM() Method
Asynchronously retrieve the current value of the M property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetM();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.GetX() Method
Asynchronously retrieve the current value of the X property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetX();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.GetY() Method
Asynchronously retrieve the current value of the Y property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetY();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.GetZ() Method
Asynchronously retrieve the current value of the Z property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetZ();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Point.Normalize() Method
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.Geometries.Point.html#pointnormalize-method”>GeoBlazor Docs</a> Modifies the point geometry in-place by shifting the X-coordinate to within +/- 180 span in map units. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#normalize”>ArcGIS Maps SDK for JavaScript</a>
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point?> Normalize();
Returns
System.Threading.Tasks.Task<Point>
Point.SetLatitude(Nullable<double>) Method
Asynchronously set the value of the Latitude property after render.
public System.Threading.Tasks.Task SetLatitude(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Point.SetLongitude(Nullable<double>) Method
Asynchronously set the value of the Longitude property after render.
public System.Threading.Tasks.Task SetLongitude(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Point.SetM(Nullable<double>) Method
Asynchronously set the value of the M property after render.
public System.Threading.Tasks.Task SetM(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Point.SetX(Nullable<double>) Method
Asynchronously set the value of the X property after render.
public System.Threading.Tasks.Task SetX(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Point.SetY(Nullable<double>) Method
Asynchronously set the value of the Y property after render.
public System.Threading.Tasks.Task SetY(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Point.SetZ(Nullable<double>) Method
Asynchronously set the value of the Z property after render.
public System.Threading.Tasks.Task SetZ(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.