Package pygeodesy :: Module bases |
[frames] | no frames]

# Module bases

(INTERNAL) Common base classes.

After (C) Chris Veness 2011-2015 published under the same MIT Licence**, see https://www.Movable-Type.co.UK/scripts/latlong.html and https://www.Movable-Type.co.UK/scripts/latlong-vectors.html.

Version: 19.10.02

Classes
| _VectorBase (INTERNAL) Base class for Vector3d.
| LatLonHeightBase (INTERNAL) Base class for `LatLon` points on spherical or ellipsiodal earth models.

Functions
points2(points, closed=True, base=None, Error=<type 'exceptions.ValueError'>) Check a path or polygon represented by points. |

Function Details

### points2(points, closed=True, base=None, Error=<type 'exceptions.ValueError'>) |
Check a path or polygon represented by points. Parameters: `points` - The path or polygon points (`LatLon`[]) `closed` - Optionally, consider the polygon closed, ignoring any duplicate or closing final `points` (`bool`). `base` - Optionally, check all `points` against this base class, if `None` don't check. `Error` - Exception to raise (`ValueError`). Returns: A Points2Tuple`(number, points)` with the number of points and the points `list` or `tuple`. Raises: `TypeError` - Some `points` are not `LatLon`. `Error` - Insufficient number of `points`.