Classes and functions for operations on polygons or polylines, open or
closed lists of points.
|
BooleanFHP
Composite class providing boolean operations between
two composites using Forster-Hormann-Popa's C++ implementation,
transcoded to pure Python.
|
|
BooleanGH
Composite class providing boolean operations between
two composites using the Greiner-Hormann algorithm and Correia's implementation, modified and extended.
|
|
ClipCS4Tuple
4-Tuple (start, end, i, j) for each edge of a
clipped path with the start and
end points (LatLon ) of the portion of the
edge inside or on the clip box and the indices i and
j (int ) of the edge start and end points
in the original path.
|
|
ClipFHP4Tuple
4-Tuple (lat, lon, height, clipid) for each point of
the clipFHP4 result with the lat -,
lon gitude, height and clipid
of the polygon or clip.
|
|
ClipGH4Tuple
4-Tuple (lat, lon, height, clipid) for each point of
the clipGH4 result with the lat -,
lon gitude, height and clipid
of the polygon or clip.
|
|
ClipLB6Tuple
6-Tuple (start, end, i, fi, fj, j) for each edge of
the clipped path with the start and
end points (LatLon ) of the portion of the
edge inside or on the clip box, indices i and
j (both int ) of the original path edge
start and end points and fractional indices fi
and fj (both FIx)
of the start and end points along the
edge of the original path.
|
|
ClipSH3Tuple
3-Tuple (start, end, original) for each edge of a
clipped polygon, the start and end
points (LatLon ) of the portion of the edge inside or
on the clip region and original indicates whether the
edge is part of the original polygon or part of the clip region
(bool ).
|
|
LatLon2psxy
Wrapper for LatLon points as "on-the-fly"
pseudo-xy coordinates.
|
|
LatLonFHP
A point or intersection in a BooleanFHP clip or composite.
|
|
LatLonGH
A point or intersection in a BooleanGH clip or composite.
|
|
LatLon_
Low-overhead LatLon class, mainly for Numpy2LatLon and Tuple2LatLon.
|
|
Numpy2LatLon
Wrapper for NumPy arrays as "on-the-fly"
LatLon points.
|
|
Shape2Tuple
2-Tuple (nrows, ncols) , the number of rows and
columns, both int .
|
|
Tuple2LatLon
Wrapper for tuple sequences as "on-the-fly"
LatLon points.
|
|
areaOf(points,
adjust=True,
radius=6371008.771415,
wrap=True)
Approximate the area of a polygon or composite. |
|
|
|
boundsOf(points,
wrap=False,
LatLon=None)
Determine the bottom-left SW and top-right NE corners of a path or
polygon. |
|
|
|
centroidOf(points,
wrap=False,
LatLon=None)
Determine the centroid of a polygon. |
|
|
|
clipCS4(points,
lowerleft,
upperight,
closed=False,
inull=False)
Clip a path against a rectangular clip box using the Cohen-Sutherland algorithm. |
|
|
|
clipFHP4(points,
corners,
closed=False,
inull=False,
raiser=False,
eps=2.220446049250313e-16)
Clip one or more polygons against a clip region or box using Forster-Hormann-Popa's C++ implementation
transcoded to pure Python. |
|
|
|
clipGH4(points,
corners,
closed=False,
inull=False,
raiser=True,
xtend=False,
eps=2.220446049250313e-16)
Clip one or more polygons against a clip region or box using the Greiner-Hormann algorithm, Correia's implementation modified and extended. |
|
|
|
clipLB6(points,
lowerleft,
upperight,
closed=False,
inull=False)
Clip a path against a rectangular clip box using the Liang-Barsky algorithm. |
|
|
|
clipSH(points,
corners,
closed=False,
inull=False)
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm. |
|
|
|
clipSH3(points,
corners,
closed=False,
inull=False)
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm. |
|
|
|
fractional(points,
fi,
j=None,
wrap=None,
LatLon=None,
Vector=None,
**kwds)
Return the point at a given fractional index. |
|
|
|
|
|
isclockwise(points,
adjust=False,
wrap=True)
Determine the direction of a path or polygon. |
|
|
|
isconvex(points,
adjust=False,
wrap=False)
Determine whether a polygon is convex. |
|
|
|
isconvex_(points,
adjust=False,
wrap=False)
Determine whether a polygon is convex and clockwise. |
|
|
|
isenclosedBy(point,
points,
wrap=False)
Determine whether a point is enclosed by a polygon or composite. |
|
|
|
ispolar(points,
wrap=False)
Check whether a polygon encloses a pole. |
|
|
|
luneOf(lon1,
lon2,
closed=False,
LatLon=<class 'pygeodesy3.polygonal.points.LatLon_'>,
**LatLon_kwds)
Generate an ellipsoidal or spherical lune-shaped path or polygon. |
|
|
|
nearestOn5(point,
points,
closed=False,
wrap=False,
adjust=True,
limit=9,
**LatLon_and_kwds)
Locate the point on a path or polygon closest to a reference point. |
|
|
|
perimeterOf(points,
closed=False,
adjust=True,
radius=6371008.771415,
wrap=True)
Approximate the perimeter of a path, polygon. |
|
|
|
quadOf(latS,
lonW,
latN,
lonE,
closed=False,
LatLon=<class 'pygeodesy3.polygonal.points.LatLon_'>,
**LatLon_kwds)
Generate a quadrilateral path or polygon from two points. |
|
|
|
simplify1(points,
distance=0.001,
radius=6371008.771415,
indices=False,
**options)
Basic simplification of a path of LatLon points. |
|
|
|
simplifyRDP(points,
distance=0.001,
radius=6371008.771415,
shortest=False,
indices=False,
**options)
Ramer-Douglas-Peucker (RDP) simplification of a path of
LatLon points. |
|
|
|
simplifyRDPm(points,
distance=0.001,
radius=6371008.771415,
shortest=False,
indices=False,
**options)
Modified Ramer-Douglas-Peucker (RDPm) simplification of a path
of LatLon points. |
|
|
|
simplifyRW(points,
pipe=0.001,
radius=6371008.771415,
shortest=False,
indices=False,
**options)
Reumann-Witkam (RW) simplification of a path of
LatLon points. |
|
|
|
simplifyVW(points,
area=0.001,
radius=6371008.771415,
attr=None,
indices=False,
**options)
Visvalingam-Whyatt (VW) simplification of a path of
LatLon points. |
|
|
|
simplifyVWm(points,
area=0.001,
radius=6371008.771415,
attr=None,
indices=False,
**options)
Modified Visvalingam-Whyatt (VWm) simplification of a path of
LatLon points. |
|
|