Struct LambertConformalConic

Prepared EPSG 9802 Lambert Conformal Conic (2SP) projection.

struct LambertConformalConic(T)
  
if (isGeodesyScalar!T);

.init is intentionally invalid.

Properties

NameTypeDescription
ellipsoid[get] Ellipsoid!TPrepared ellipsoid.
falseEasting[get] TFalse easting in the ellipsoid linear unit.
falseNorthing[get] TFalse northing in the ellipsoid linear unit.
firstStandardParallel[get] Latitude!TFirst standard parallel.
isValid[get] boolTrue when this value contains supported prepared EPSG 9802 state.
latitudeOfFalseOrigin[get] Latitude!TLatitude of false origin.
longitudeOfFalseOrigin[get] Longitude!TLongitude of false origin.
secondStandardParallel[get] Latitude!TSecond standard parallel.

Methods

NameDescription
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);