Package pygeodesy :: Module frechet :: Class FrechetKarney
[frames] | no frames]

Class FrechetKarney

  object --+                
           |                
named._Named --+            
               |            
         Frechet --+        
                   |        
      FrechetDegrees --+    
                       |    
            FrechetExact --+
                           |
                          FrechetKarney

Compute the Frechet distance based on the angular distance in degrees from Karney's geographiclib Geodesic Inverse method.


See Also: FrechetCosineAndoyerLambert, FrechetCosineForsytheAndoyerLambert, FrechetDistanceTo, FrechetExact, FrechetFlatLocal, FrechetHubeny and FrechetThomas.

Instance Methods
 
__init__(self, points, datum=None, wrap=False, fraction=None, name='')
New FrechetKarney calculator/interpolator.

Inherited from FrechetExact: discrete, distance

Inherited from Frechet: point, points_, points_fraction

Inherited from named._Named: __imatmul__, __matmul__, __repr__, __rmatmul__, __str__, attrs, classof, copy, dup, methodname, rename, toRepr, toStr, toStr2

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

Properties

Inherited from Frechet: adjust, datum, fraction, units, wrap

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

Inherited from object: __class__

Method Details

__init__ (self, points, datum=None, wrap=False, fraction=None, name='')
(Constructor)

 

New FrechetKarney calculator/interpolator.

Arguments:
  • points - First set of points (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • datum - Optional datum overriding the default Datums.WGS84 and first points' datum (Datum).
  • wrap - Wrap and pygeodesy.unroll180 longitudes (bool)
  • fraction - Index fraction (float in EPS..EPS1) to interpolate intermediate points or use 0, 1 or None to avoid intermediate points and pygeodesy.fractional indices.
  • name - Optional calculator/interpolator name (str).
Raises:
  • FrechetError - Insufficient number of points or invalid fraction.
  • ImportError - Package geographiclib missing.
  • TypeError - Invalid datum.
Overrides: object.__init__