projection_factors

geodetic_engine.geodesy.projection_factors(crs, coordinates, *, geographic=False)[source]

Grid convergence, scale factor and distortion at each point.

A bound CRS is read through its base CRS and a compound CRS through its horizontal part, since neither the binding nor a height changes the map projection.

Parameters:
  • crs (Any) – Anything CoordinateReferenceSystem.from_user_input() accepts.

  • coordinates (ArrayLike) – One point given flat, or one row per point, in xy order. A third value per point, such as a height, is ignored.

  • geographic (bool, default: False) – Read the points as longitude and latitude in the CRS’s own geodetic CRS instead of as values in crs itself.

Return type:

ProjectionFactors

Returns:

The factors, one entry per point.

Raises:

Example

>>> factors = projection_factors("EPSG:32631", (500000.0, 6600000.0))
>>> round(float(factors.scale_factor[0]), 6)
0.9996