Struct PolarStereographic
Prepared bounded EPSG 9810 Polar Stereographic projection.
struct PolarStereographic(T)
if (isGeodesyScalar!T);
The latitude of natural origin must be exactly +90 or -90 degrees and selects the north or south aspect. The admitted ellipsoid domain is spherical/oblate with 0 <= flattening <= 0.01.
is intentionally invalid.
Properties
| Name | Type | Description |
|---|---|---|
ellipsoid[get]
|
Ellipsoid!T | Reference ellipsoid used by this prepared projection. |
falseEasting[get]
|
T | False easting in the ellipsoid linear unit. |
falseNorthing[get]
|
T | False northing in the ellipsoid linear unit. |
isValid[get]
|
bool | Return whether this prepared projection is valid. |
latitudeOfNaturalOrigin[get]
|
Latitude!T | Polar latitude of natural origin selecting the north or south aspect. |
longitudeOfNaturalOrigin[get]
|
Longitude!T | Longitude of natural origin defining the projection meridian. |
scaleFactorAtNaturalOrigin[get]
|
T | Dimensionless scale factor at the selected natural origin pole. |
Methods
| Name | Description |
|---|---|
forward
(source)
|
Convert a position near the chosen pole into grid coordinates. |
forwardFactors
(source)
|
Compute convergence and point scale for a geographic point or throw. |
fromParameters
(ellipsoid, latitudeOfNaturalOrigin, longitudeOfNaturalOrigin, scaleFactorAtNaturalOrigin, falseEasting, falseNorthing)
|
Set up a pole-centred stereographic grid or throw on invalid parameters. |
fromStandardParallel
(ellipsoid, latitudeOfStandardParallel, longitudeOfOrigin, falseEasting, falseNorthing)
|
Set up a polar grid using its specified standard parallel. |
reverse
(source)
|
Convert polar-grid coordinates back to a geographic position. |
reverseFactors
(source)
|
Compute factors at a projected point or throw. |
tryForward
(source, result)
|
Project a geographic coordinate without throwing. |
tryForwardFactors
(source, result)
|
Compute convergence and point scale for a geographic point without throwing. |
tryFromParameters
(ellipsoid, latitudeOfNaturalOrigin, longitudeOfNaturalOrigin, scaleFactorAtNaturalOrigin, falseEasting, falseNorthing, result)
|
Set up a polar grid using the scale factor specified at the pole. |
tryFromStandardParallel
(ellipsoid, latitudeOfStandardParallel, longitudeOfOrigin, falseEasting, falseNorthing, result)
|
Construct EPSG 9829 Polar Stereographic variant B without throwing. |
tryReverse
(source, result)
|
Convert polar-grid easting and northing back to latitude and longitude. |
tryReverseFactors
(source, result)
|
Compute factors at a projected point without throwing. |
Example
Example preparing and using a bounded Polar Stereographic projection.
import geodesy;
const projection = PolarStereographic!double .fromParameters(
wgs84!double(), Latitude!double .fromDegrees(90.0),
Longitude!double .fromDegrees(0.0), 0.994,
2_000_000.0, 2_000_000.0);
const projected = projection .forward(
GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(73.0),
Longitude!double .fromDegrees(44.0)));
assert(projected .easting > 3_000_000.0);