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

Class _RDNAPbase

            object --+        
                     |        
pygeodesy.named._Named --+    
                         |    
pygeodesy.named._NamedBase --+
                             |
                            _RDNAPbase
Known Subclasses:

(INTERNAL) RDNAP2018v1/-v2 base class.

Instance Methods
 
__init__(self, a_ellipsoid=None, f=None, raiser=False, **name)
New RDNAP2018v1 or -v2 instance.
 
bounds4(self, asRD=False)
Get the South, West, North and East bounds of the Netherlands' EEZ and EPSG:28992.
 
forward3(self, lat, lon, **name)
Datum-transform (lat, lon) from GRS80 (ETRS98) to Bessel1841 (RD-Bessel) using only RDNAPTRANS(tm)2018_v220627's similarity.
 
isinside(self, lat, lon, eps=0)
Is geodetic (lat, lon) inside the RD region4?
 
isinsideRD(self, RDx, RDy, eps=0)
Is local (RDx, RDy) inside the RD region4?
 
rdNAPh(self, lat, lon)
Interpolate the quasi-geoid NAPh height for a geodetic point.
 
rdNAPh3(self, RDx, RDy)
Interpolate the quasi-geoid NAPh height for a local point.
 
region4(self, asRD=False)
Get the South, West, North and East bounds of the RD region.
 
reverse3(self, lat, lon, **name)
Datum-transform (lat, lon) from Bessel1841 (RD-Bessel) to GRS80 (ETRS98) using only RDNAPTRANS(tm)2018_v220627's similarity.
 
similarity(self, inverse=None)
 
toStr(self, prec=9, **unused)
Return this RDNAP20181v1 or -v2 instance as a string.

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
  forwardDatum
Get the forward datum (Datum, default GRS80).
  raiser
Do points outside the RD region cause an RDNAPError?
  region
DEPRECATED on 2026.06.12, use method region4().
  reverseDatum
Get the reverse datum (Datum, default GRS80).
  variant

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 (name=NN 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__

bounds4 (self, asRD=False)

 

Get the South, West, North and East bounds of the Netherlands' EEZ and EPSG:28992.

Arguments:
  • asRd - Use asRD=True for the bounds in meter, otherwise in degrees (bool).
Returns:
A Bounds4Tuple(latS, lonW, latN, lonE) with lat- and longitudes in degrees or an RD4Tuple(minRDx, minRDy, maxRDx, maxRDy) with the quasi-RD bounds in meter.

See Also: EEZ

forward3 (self, lat, lon, **name)

 

Datum-transform (lat, lon) from GRS80 (ETRS98) to Bessel1841 (RD-Bessel) using only RDNAPTRANS(tm)2018_v220627's similarity.

Returns:
A LatLonDatum3Tuple(lat, lon, datum) with lat, lon and datum all Bessel1841 (RD-Bessel).

isinside (self, lat, lon, eps=0)

 

Is geodetic (lat, lon) inside the RD region4?

Arguments:
  • lat - Latitude (degrees, geodetic).
  • lon - Longitude (degrees, geodetic).
  • eps - Over-/undersize the RD region (degrees).
Returns:
None if lat or lon is NAN, False if outside the RD region, True otherwise.

isinsideRD (self, RDx, RDy, eps=0)

 

Is local (RDx, RDy) inside the RD region4?

Arguments:
  • RDx - Local RD X (meter, conventionally).
  • RDy - Local RD Y (meter, conventionally).
  • eps - Over-/undersize the RD region (meter).
Returns:
None if RDx or RDy is NAN, False if outside the RD region, True otherwise.

rdNAPh (self, lat, lon)

 

Interpolate the quasi-geoid NAPh height for a geodetic point.

Arguments:
  • lat - Latitude (degrees, geodetic).
  • lon - Longitude (degrees, geodetic).
Returns:
Quasi-geoid NAPh height N (meter) or NAN if lat or lon is outside the RD region.

rdNAPh3 (self, RDx, RDy)

 

Interpolate the quasi-geoid NAPh height for a local point.

Arguments:
  • RDx - Local RD X (meter, conventionally).
  • RDy - Local RD Y (meter, conventionally).
Returns:
LatLonN3Tuple(lat, lon, N) with the quasi-geoid NAPh height N in meter or NAN if lat or lon is outside RD region.

region4 (self, asRD=False)

 

Get the South, West, North and East bounds of the RD region.

Arguments:
  • asRd - Use asRD=True for the bounds in RD meter, otherwise degrees (bool).
Returns:
A Bounds4Tuple(latS, lonW, latN, lonE) with geodetic lat- and longitudes in degrees or an RD4Tuple(minRDx, minRDy, maxRDx, maxRDy) with the bounds in meter, truncated to millimeter.

reverse3 (self, lat, lon, **name)

 

Datum-transform (lat, lon) from Bessel1841 (RD-Bessel) to GRS80 (ETRS98) using only RDNAPTRANS(tm)2018_v220627's similarity.

Returns:
A LatLonDatum3Tuple(lat, lon, datum) with lat, lon and datum all GRS80 (ETRS89).

toStr (self, prec=9, **unused)

 

Return this RDNAP20181v1 or -v2 instance as a string.

Arguments:
  • prec - Precision, number of decimal digits (int, 0..9).
Returns:
This RDNAP2018v1 or -v2 (str).
Overrides: pygeodesy.named._Named.toStr

Property Details

forwardDatum

Get the forward datum (Datum, default GRS80).

Get method:
forwardDatum(self) - Get the forward datum (Datum, default GRS80).
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

raiser

Do points outside the RD region cause an RDNAPError?

Get method:
raiser(self) - Do points outside the RD region cause an RDNAPError?
Set method:
raiser(self, raiser) - Use True to throw an RDNAPError for points outside the RD region.

region

DEPRECATED on 2026.06.12, use method region4().

Get method:
region(self) - DEPRECATED on 2026.06.12, use method region4().
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

reverseDatum

Get the reverse datum (Datum, default GRS80).

Get method:
reverseDatum(self) - Get the reverse datum (Datum, default GRS80).
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

variant

Get method:
variant(self)
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.