Show / Hide Table of Contents

Struct GridCoordinate

Grid Coordinate

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct GridCoordinate
Remarks

A grid coordinate is on flat plane with an x and y extending from the origin with many perpendicular line spaced out evenly on the grid

Constructors

View Source

GridCoordinate(GeoCoordinate, MapProjections, string)

Constructs a coordinate based on GeoCoordinate parameter with specific map projection and zone/identifier

Declaration
public GridCoordinate(GeoCoordinate geoCoordinate, MapProjections mapProjection, string projectionZoneIdentifier)
Parameters
Type Name Description
GeoCoordinate geoCoordinate

Geographical Lat/Long coordinate on which to base the grid coordinate

MapProjections mapProjection

Required map projection for this grid/Cartesian coordinate

string projectionZoneIdentifier

Zone/Identifier for the grid coordinate based on the map projection

Exceptions
Type Condition
NotImplementedException

MapProjection passed is not supported in GridCoordinate class constructor

ArgumentException

Map projection parameter value not found in enum MapProjections

Properties

View Source

MapProjection

Property to access the map project using for the grid coordinate

Declaration
public MapProjections MapProjection { get; }
Property Value
Type Description
MapProjections

Map projection enum using MapProjections

View Source

ProjectionZoneIdentifier

Property to access the map project identifier

Declaration
public string ProjectionZoneIdentifier { get; }
Property Value
Type Description
string

String containing the projection identifier

Remarks

Some projections break into zone i.e. UTM so as well as the projection type there is also a zone or another identifier needed to improve the accuracy of the conversion

View Source

XYCoordinate

Property to access the X and Y component of the point

Declaration
public Point3d XYCoordinate { get; }
Property Value
Type Description
Point3d

Coordinate as Point3D

Methods

View Source

CartesianAngleTo(GridCoordinate)

Angle between two coordinates (2D)

Declaration
public double CartesianAngleTo(GridCoordinate gridCoordinate)
Parameters
Type Name Description
GridCoordinate gridCoordinate

Second coordinate to calculate 2D angle between

Returns
Type Description
double
  • View Source
In this article
Back to top Copyright 2018-2025 CADology Limited