ProjectionFactors

class geodetic_engine.geodesy.ProjectionFactors[source]

Bases: object

Projection 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.

geographic_crs

Its own geodetic CRS, which longitude and latitude are expressed in.

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 xy order, without any third value.

coordinates_crs

The CRS coordinates are in: horizontal_crs, or geographic_crs when 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:
Return type:

FloatArray

to_grid_azimuth(true_azimuth)[source]

True azimuths minus convergence, in degrees in [0, 360).

Raises:
Return type:

FloatArray

to_json_dict()[source]

Render the factors as plain data, one entry per point.

Return type:

dict[str, Any]

__init__(crs, horizontal_crs, geographic_crs, projected, coordinates, coordinates_crs, longitude, latitude, grid_convergence, scale_factor, meridional_scale, areal_scale, angular_distortion)