Function LambertConformalConic.forward

Convert latitude and longitude to this conic map's grid coordinates.

ProjectedCoordinate!T forward(
  const GeographicCoordinate!T source
) const @safe;

The result contains easting and northing in the ellipsoid's length unit. Use tryForward to handle an unsupported position without an exception.

Example

Example projecting a geographic coordinate.

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.forward(
    GeographicCoordinate!double.fromComponents(
        Latitude!double.fromDegrees(35.0),
        Longitude!double.fromDegrees(-75.0))).easting > 0.0);