Package pyrdnap :: Module rdnap2018 :: Class RDNAP2018v1
[frames] | no frames]

Class RDNAP2018v1

            object --+            
                     |            
pygeodesy.named._Named --+        
                         |        
pygeodesy.named._NamedBase --+    
                             |    
                    _RDNAPbase --+
                                 |
                                RDNAP2018v1

Transformer implementing variant 1 of RD NAP 2018 v220627.


Note: RDNAP2018v1 has not been formally validated and is not certified to carry the trademark RDNAPTRANS(tm).

Instance Methods
 
__init__(self, a_ellipsoid=None, f=None, raiser=False, **name)
New RDNAP2018v1 or -v2 instance.
 
forward(self, lat, lon, height=0, raiser=None, name='forward')
Convert GRS80 (ETRS98) geodetic (lat, lon) and height to local (RDx, RDy) coordinates and NAPh quasi-geoid-height.
 
forward3(self, lat, lon, name='forward3')
Datum transform (lat, lon) from GRS80 (ETRS98) to Bessel1841 (RD-Bessel).
 
reverse3(self, lat, lon, name='reverse3')
Datum transform (lat, lon) from Bessel1841 (RD-Bessel) to GRS80 (ETRS98).
 
reverse(self, RDx, RDy, NAPh=0, asRD=False, **raiser_name)
Convert a local (RDx, RDy) point and NAPh height to GRS80 (ETRS89) geodetic (lat, lon, height), by default.
 
similarity(self, inverse=False)
Get the similarity transform (Similarity).

Inherited from _RDNAPbase: isinside, rdNAPh, toStr

Inherited from pygeodesy.named._NamedBase: __repr__, __str__, others, toRepr

Inherited from pygeodesy.named._Named: __format__, __imatmul__, __matmul__, __rmatmul__, attrs, classof, copy, dup, methodname, rename, renamed, toStr2

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  variant

Inherited from _RDNAPbase: forwardDatum, region, region89, reverseDatum

Inherited from pygeodesy.named._Named: classname, classnaming, iteration, name, named, named2, named3, named4, sizeof, typename

Inherited from object: __class__

Method Details

__init__ (self, a_ellipsoid=None, f=None, raiser=False, **name)
(Constructor)

 

New RDNAP2018v1 or -v2 instance.

Arguments:
  • a_ellipsoid - An ellipsoid (Ellipsoid) or the ellipsoid's equatorial radius (scalar, conventionally in meter), see f or a datum (Datum). Default Datums.GRS80 for ETRS89.
  • f - The flattening of the ellipsoid (scalar) if a_ellipsoid is specified as scalar, ignored otherwise.
  • raiser - If True raise an RDNAPError for lat-/longitudes outside the RD region (bool).
  • name - Optional name (str).
Raises:
  • RDNAPError - Ellipsoid (or datum) is not oblate (i.e. is spherical or prolate) or the datum's transform is not unity.
Overrides: object.__init__

forward (self, lat, lon, height=0, raiser=None, name='forward')

 

Convert GRS80 (ETRS98) geodetic (lat, lon) and height to local (RDx, RDy) coordinates and NAPh quasi-geoid-height.

Arguments:
  • lat - Latitude (degrees geodetic).
  • lon - Longitude (degrees geodetic).
  • height - Height, optional (meter above geoid) or NAN to ignore NAPh interpolation.
  • raiser - If True raise an RDNAPError if lat or lon is outside the RD region (bool), if False don't, overriding property raiser.
  • name - Optional name (str).
Returns:
An RDNAP7Tuple(RDx, RDy, NAPh, lat, lon, height, datum) with local RDx, RDy coordinates and NAPh height.
Overrides: _RDNAPbase.forward

forward3 (self, lat, lon, name='forward3')

 

Datum transform (lat, lon) from GRS80 (ETRS98) to Bessel1841 (RD-Bessel).

Returns:
A LatLonDatum3Tuple(lat, lon, datum).
Overrides: _RDNAPbase.forward3

reverse3 (self, lat, lon, name='reverse3')

 

Datum transform (lat, lon) from Bessel1841 (RD-Bessel) to GRS80 (ETRS98).

Returns:
A LatLon3Tuple(lat, lon, datum).
Overrides: _RDNAPbase.reverse3

reverse (self, RDx, RDy, NAPh=0, asRD=False, **raiser_name)

 

Convert a local (RDx, RDy) point and NAPh height to GRS80 (ETRS89) geodetic (lat, lon, height), by default.

Arguments:
  • RDx - Local RD X (meter, conventionally).
  • RDy - Local RD Y (meter, conventionally).
  • NAPh - NAP quasi-geoid-height (meter, conventionally) or NAN to ignore NAPh interpolation.
  • asRD - Use asRD=True to return Bessel1841 (RD-Bessel) lat- and longitudes instead of GRS80 (ETRS89) (bool).
  • raiser_name - Like the forward method, raiser=None (bool) and optional name='reverse' (str).
Returns:
An RDNAP7Tuple(RDx, RDy, NAPh, lat, lon, height, datum) with geodetic lat and lon, height and datum GRS80 (ETRS89) or Bessel1841 (RD-Bessel).

similarity (self, inverse=False)

 

Get the similarity transform (Similarity).

Arguments:
  • inverse - Use True for the reverse or False for the forward transform (bool).
Overrides: _RDNAPbase.similarity

Property Details

variant

Get method:
_fget(inst) - Get the property value, only once and memoize/cache it.
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(*unused) - Silently ignored, always.