Home | Trees | Indices | Help |
|
---|
|
object --+ | _abcoll.Sized --+ | object --+ | | | _abcoll.Iterable --+ | object --+ | | | _abcoll.Container --+ | _abcoll.Sequence --+ | _Basequence --+ | _Array2LatLon --+ | Tuple2LatLon
Wrapper for tuple sequences as "on-the-fly"
LatLon
points.
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
Inherited from Inherited from Inherited from |
Class Methods | |
Inherited from |
Class Variables | |
Inherited from |
Properties | |
isTuple2 | |
Inherited from Inherited from Inherited from |
Method Details |
Handle a list of tuples, each containing a lat- and longitude and
perhaps other values as a sequence of
Example: >>> tuples = [(0, 1), (2, 3), (4, 5)] >>> type(tuples) <type 'list'> # <class ...> in Python 3+ >>> points = Tuple2LatLon(tuples, lat=0, lon=1) >>> simply = simplifyRW(points, 0.5, ...) >>> type(simply) <type 'list'> # <class ...> in Python 3+ >>> simply [(0, 1), (4, 5)] >>> sliced = points[1:-1] >>> type(sliced) <class '...Tuple2LatLon'> >>> sliced ...Tuple2LatLon([(2, 3), ...][1], ilat=0, ilon=1) >>> closest, _ = nearestOn2(LatLon_(2, 1), points, adjust=False) >>> closest LatLon_(lat=1.0, lon=2.0) >>> closest, _ = nearestOn2(LatLon_(3, 2), points) >>> closest LatLon_(lat=2.001162, lon=3.001162) |
Property Details |
isTuple2
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Oct 22 17:06:21 2024 | http://epydoc.sourceforge.net |