Struct LambertConformalConic
Prepared EPSG 9802 Lambert Conformal Conic (2SP) projection.
struct LambertConformalConic(T)
if (isGeodesyScalar!T);
is intentionally invalid.
Properties
| Name | Type | Description |
|---|---|---|
ellipsoid[get]
|
Ellipsoid!T | Prepared ellipsoid. |
falseEasting[get]
|
T | False easting in the ellipsoid linear unit. |
falseNorthing[get]
|
T | False northing in the ellipsoid linear unit. |
firstStandardParallel[get]
|
Latitude!T | First standard parallel. |
isValid[get]
|
bool | True when this value contains supported prepared EPSG 9802 state. |
latitudeOfFalseOrigin[get]
|
Latitude!T | Latitude of false origin. |
longitudeOfFalseOrigin[get]
|
Longitude!T | Longitude of false origin. |
secondStandardParallel[get]
|
Latitude!T | Second standard parallel. |
Methods
| Name | Description |
|---|---|
forward
(source)
|
Convert latitude and longitude to this conic map's grid coordinates. |
forwardFactors
(source)
|
Compute convergence and point scale or throw. |
fromTwoStandardParallels
(ellipsoid, latitudeOfFalseOrigin, longitudeOfFalseOrigin, firstStandardParallel, secondStandardParallel, falseEasting, falseNorthing)
|
Set up a conic map from its two standard parallels and grid parameters. |
reverse
(source)
|
Convert grid coordinates back to a geographic position. |
reverseFactors
(source)
|
Compute factors at a projected coordinate or throw. |
tryForward
(source, result)
|
Project a geographic coordinate without throwing. |
tryForwardFactors
(source, result)
|
Compute convergence and point scale without throwing. |
tryFromTwoStandardParallels
(ellipsoid, latitudeOfFalseOrigin, longitudeOfFalseOrigin, firstStandardParallel, secondStandardParallel, falseEasting, falseNorthing, result)
|
Set up a two-standard-parallel conic map without throwing. |
tryReverse
(source, result)
|
Convert this conic grid's easting and northing to latitude and longitude. |
tryReverseFactors
(source, result)
|
Compute factors at a projected coordinate without throwing. |
Example
Example using LambertConformalConic.
import geodesy;
const p = LambertConformalConic!double .fromTwoStandardParallels(
wgs84!double(),
Latitude!double .fromDegrees(40.0),
Longitude!double .fromDegrees(-96.0),
Latitude!double .fromDegrees(33.0),
Latitude!double .fromDegrees(45.0),
0.0, 0.0);
assert(p .isValid);