Function UtmProjection.tryForwardFactors
Evaluate conformal projection factors at a geographic source position.
bool tryForwardFactors(
const GeographicCoordinate!T source,
out ConformalProjectionFactors!T result
) const pure nothrow @nogc @safe;
Parameters
| Name | Description |
|---|---|
| source | Geographic position interpreted in this explicit UTM zone. |
| result | Receives meridian convergence and point scale on success. |
Returns
true when this projection is valid and delegated TM factor
evaluation succeeds; otherwise false. On failure result is
reset to ConformalProjectionFactors!T.
Example
Example computing UTM factors without throwing.
import geodesy;
const projection = UtmProjection!double .fromZone(
wgs84!double(), UtmZone .fromNumber(33), UtmHemisphere .north);
const vienna = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
ConformalProjectionFactors!double factors;
assert(projection .tryForwardFactors(vienna, factors));
assert(factors .pointScale > 0.0);