Package pychlv
[frames] | no frames]

Package pychlv

A pure Python implementation of the SwissTopo LandesVermessung 1995 (LV95) and -1903 (LV03) local projections and conversions from and to WGS84 or Bessel1841 geodetic lat-, longitude and height.


Version: 26.07.17

Submodules

Classes
  ChLV
Conversion between (WGS84) geodetic and Swiss projection coordinates using PyGeodesy EcefKarney ECEF methods.
  ChLV9Tuple
9-Tuple (Y, X, h_, lat, lon, height, ltp, ecef, M) with unfalsed Swiss (Y, X, h_) coordinates and height, all in meter, ltp either a ChLV, ChLVa or ChLVe instance and ecef (EcefKarney at Bern, Ch), otherwise like Local9Tuple.
  ChLVEN2Tuple
2-Tuple (E_LV95, N_LV95) with falsed Swiss LV95 easting and northing in meter (2_600_000, 1_200_000) and origin at Bern, Ch.
  ChLVError
Error raised for ChLV, ChLVa, ChLVe or ChLVr or other issues.
  ChLVYX2Tuple
2-Tuple (Y, X) with unfalsed Swiss LV95 easting and northing in meter.
  ChLVa
Conversion between (WGS84) geodetic and Swiss projection coordinates using the SwissTopo Approximate formulas.
  ChLVe
Conversion between (WGS84) geodetic and Swiss projection coordinates using the SwissTopo Ellipsoidal approximate formulas and Bolliger, J. pp 148-151 (also GGGS).
  ChLVr
Conversion between (Bessel1841) geodetic and Swiss projection coordinates using the SwissTopo Rigorous formulas 3.2 and 3.3, December 2018, pp 20-21.
  ChLVyx2Tuple
2-Tuple (y_LV03, x_LV03) with falsed Swiss LV03 easting and northing in meter (600_000, 200_000) and origin at Bern, Ch.
  EcefKarney
Conversion between geodetic and geocentric, Earth-Centered, Earth-Fixed (ECEF) coordinates transcoded from Karney's C++ Geocentric methods.
  LatLon4Tuple
4-Tuple (lat, lon, height, datum) in degrees90, degrees180, meter and Datum.
  LocalCartesian
Conversion between geodetic (lat, lon, height) and local cartesian (x, y, z) coordinates with geodetic origin (lat0, lon0, height0), transcoded from Karney's C++ class LocalCartesian.
  Ltp
A local tangent plan (LTP), a sub-class of LocalCartesian with (re-)configurable ECEF converter.
Functions
 
latDMS(deg, form='dms', prec=None, sep='', **s_D_M_S)
Convert latitude to a string, optionally suffixed with N or S.
 
lonDMS(deg, form='dms', prec=None, sep='', **s_D_M_S)
Convert longitude to a string, optionally suffixed with E or W.
 
machine()
Return standard platform.machine, but distinguishing Intel native from Intel emulation on Apple Silicon (on macOS only).
Variables
  pychlv_abspath = '..../PyChLV/...
Function Details

latDMS (deg, form='dms', prec=None, sep='', **s_D_M_S)

 

Convert latitude to a string, optionally suffixed with N or S.

Arguments:
  • deg - Latitude to be formatted (scalar degrees).
  • form - Format specifier for deg (str or F_...).
  • prec - Number of decimal digits (0..9 or None for default).
  • sep - Separator between degrees, minutes, seconds, suffix (str).
  • s_D_M_S - Optional keyword arguments to override any or cancel all DMS symbol suffixes, see function pygeodesy.toDMS.
Returns:
Degrees in the specified form (str).

See Also: Function pygeodesy.toDMS and its Notes for further details.

lonDMS (deg, form='dms', prec=None, sep='', **s_D_M_S)

 

Convert longitude to a string, optionally suffixed with E or W.

Arguments:
  • deg - Longitude to be formatted (scalar degrees).
  • form - Format specifier for deg (str or F_...).
  • prec - Number of decimal digits (0..9 or None for default).
  • sep - Separator between degrees, minutes, seconds, suffix (str).
  • s_D_M_S - Optional keyword arguments to override any or cancel all DMS symbol suffixes.
Returns:
Degrees in the specified form (str).

See Also: Function pygeodesy.toDMS and its Notes for further details.

machine()

 

Return standard platform.machine, but distinguishing Intel native from Intel emulation on Apple Silicon (on macOS only).

Returns:
Machine 'arm64' for Apple Silicon native, 'x86_64' for Intel native, "arm64_x86_64" for Intel emulation, etc. (str with commas replaced by underscores).

Variables Details

pychlv_abspath

Value:
'..../PyChLV/pychlv'