|
LuciadCPillar C# 2026.1.02
|
Provides geodesy calculations. More...
Public Member Functions | |
| void | Dispose () |
| double? | Distance2D (Luciad.Cartesian.Coordinate p1, Luciad.Cartesian.Coordinate p2) |
| Calculates the distance to go from point p1 to point p2. | |
| double? | Distance3D (Luciad.Cartesian.Coordinate p1, Luciad.Cartesian.Coordinate p2) |
| Calculates the distance to go from point p1 to point p2. | |
| Luciad.Cartesian.? Coordinate | Extrapolate2D (Luciad.Cartesian.Coordinate p1, Luciad.Cartesian.Azimuth azimuth, double distance) |
| Determines the point located in the given direction and distance from point p1. | |
| Luciad.Cartesian.? Azimuth | ForwardAzimuth2D (Luciad.Cartesian.Coordinate p1, Luciad.Cartesian.Coordinate p2) |
| Calculates the forward azimuth to go from point p1 to point p2. | |
| Luciad.Cartesian.? Coordinate | Interpolate (Luciad.Cartesian.Coordinate p1, Luciad.Cartesian.Coordinate p2, double fraction) |
| Calculates the point at a fraction of the distance (over ground) between point p1 and point p2. | |
Static Public Member Functions | |
| static Luciad.Geodesy.GeodesyCalculations | Create (Luciad.Geodesy.CoordinateReference reference, Luciad.Geodesy.LineInterpolationType lineType) |
| Factory to create geodesy implementations for a given coordinate reference and line type. | |
| static Luciad.Geodesy.LineIntersection | IntersectLineSegments (Luciad.Geometries.Line line1, Luciad.Geometries.Line line2) |
| Calculates the intersection of the 2 given line segments. | |
Provides geodesy calculations.
Azimuth to go from one point to another. All methods return an optional value. As transformations may be involved during the calculations, there may not always be a result.
|
inlinestatic |
Factory to create geodesy implementations for a given coordinate reference and line type.
The reference can be ellipsoidal or cartesian.
The following table shows which combinations of coordinate references and line types are supported by the factory.
| Coordinate Reference | Linear | Geodesic | Rhumbline |
|---|---|---|---|
| Geographic CRS | yes | yes | yes |
| Projected CRS | yes | yes | yes |
| Geocentric CRS | yes | yes | yes |
| Topocentric CRS | yes | yes | yes |
| non-georeferenced | no | no | no |
The calculations are performed on the ellipsoid associated with the coordinate reference. Points are first transformed to the ellipsoid coordinates to perform the calculation. Results are transformed back to the coordinate reference.
The standard cartesian implementation of the methods. No specific (point) transformations are done.
Performs cartesian calculations on the geographic points. The implementation takes following characteristics of geographic coordinates into account:
| reference | the coordinate reference on which to perform the geodesy calculations, cannot be null. |
| lineType | the type of interpolation for the lines. |
| System.ArgumentException | when no GeodesyCalculations can be created. This may be due to an unsupported combination of reference and line interpolation type or when the coordinate reference is null. |
|
inline |
|
inline |
Calculates the distance to go from point p1 to point p2.
This is the distance over ground. The height information is ignored.
This method can return null when the distance can not be calculated. This can happen in these cases:
LineInterpolationType, the input coordinate may need to be converted to geodetic coordinates first when the input reference is not geodetic. This is not always possible, for example when the input points are outside the projection bounds of the input reference. | p1 | The start point. |
| p2 | The end point. |
|
inline |
Calculates the distance to go from point p1 to point p2.
The distance calculations take the heights of the given points into account.
This method can return null when the distance can not be calculated. This can happen in these cases:
LineInterpolationType, the input coordinate may need to be converted to geodetic coordinates first when the input reference is not geodetic. This is not always possible, for example when the input points are outside the projection bounds of the input reference. | p1 | The start point. |
| p2 | The end point. |
|
inline |
Determines the point located in the given direction and distance from point p1.
The height information is assumed to be constant.
This method can return null. This can happen in these cases:
LineInterpolationType, the input coordinate may need to be converted to geodetic coordinates first when the input reference is not geodetic. This is not always possible, for example when the input points are outside the projection bounds of the input reference. | p1 | The start point. |
| azimuth | The forward azimuth. |
| distance | The distance (over ground). |
|
inline |
Calculates the forward azimuth to go from point p1 to point p2.
This method can return null when the azimuth can not be calculated. This can happen in these cases:
LineInterpolationType, the input coordinate may need to be converted to geodetic coordinates first when the input reference is not geodetic. This is not always possible, for example when the input points are outside the projection bounds of the input reference. | p1 | The start point. |
| p2 | The end point. |
|
inline |
Calculates the point at a fraction of the distance (over ground) between point p1 and point p2.
The height information is linearly interpolated.
This method can return null. This can happen in these cases:
LineInterpolationType, the input coordinate may need to be converted to geodetic coordinates first when the input reference is not geodetic. This is not always possible, for example when the input points are outside the projection bounds of the input reference. | p1 | The start point. |
| p2 | The end point. |
| fraction | The fraction value within the range [0,1]. |
|
inlinestatic |
Calculates the intersection of the 2 given line segments.
The result can be one of the following:
Limitations:
Line segments with a geocentric or topocentric reference are not supported. | line1 | the first line segment |
| line2 | the second line segment |
| System.ArgumentException | when the references of the 2 given line segments are not equal |
| System.ArgumentException | when the reference type is not supported |
| System.NotSupportedException | when the lines have a geodetic reference and a linear interpolation type |
| System.NotSupportedException | when the combination of interpolation types is not supported |