ProjectionFactors¶
- class geodetic_engine.geodesy.ProjectionFactors[source]¶
Bases:
objectProjection factors at one or more points, one array entry per point.
- crs¶
The CRS the factors were asked for.
- horizontal_crs¶
The part of it the factors describe: the base of a bound CRS, the horizontal part of a compound one, in 2D. Its coordinate values are the same as
crs’s horizontal ones.
- projected¶
False for a geographic CRS, where there is no grid: the convergence is then zero and every scale is one.
- coordinates¶
The points as given, one row per point, in
xyorder, without any third value.
- coordinates_crs¶
The CRS
coordinatesare in:horizontal_crs, orgeographic_crswhen they were given as longitude and latitude.
- longitude¶
Longitude in
geographic_crs’s own unit and prime meridian, which is degrees from Greenwich almost always.
- latitude¶
Latitude, in the same unit.
- grid_convergence¶
Gamma in degrees; see the module docstring for sign.
- scale_factor¶
Point scale factor k, the parallel scale.
- meridional_scale¶
Scale along the meridian, h.
- areal_scale¶
Areal scale factor.
- angular_distortion¶
Maximum angular distortion in degrees; zero for a conformal projection.
- property conformal: bool¶
Whether the projection preserves angles at every point.
True for a geographic CRS. Only then does the grid convergence turn azimuths between true and grid north, and one scale factor hold in every direction.
- to_true_azimuth(grid_azimuth)[source]¶
Grid azimuths plus convergence, in degrees in
[0, 360).- Raises:
UnsupportedCRSError – If the projection does not preserve angles.
ValueError – If an azimuth is not finite.
- Return type:
- to_grid_azimuth(true_azimuth)[source]¶
True azimuths minus convergence, in degrees in
[0, 360).- Raises:
UnsupportedCRSError – If the projection does not preserve angles.
ValueError – If an azimuth is not finite.
- Return type:
- __init__(crs, horizontal_crs, geographic_crs, projected, coordinates, coordinates_crs, longitude, latitude, grid_convergence, scale_factor, meridional_scale, areal_scale, angular_distortion)¶