Package sabx10 :: Package oxm :: Module segment :: Class Waypoint
[hide private]
[frames] | no frames]

Class Waypoint

source code

object --+    
         |    
geom.Point --+
             |
            Waypoint

A Waypoint object sub-classes Point and adds stop and POI references.

Instance Methods [hide private]
 
__init__(self, id, stop, poi, lat, lon, ele, usgs)
Save the passed-in data.
source code
Waypoint
dup_point_data(self)
Create a new Waypoint with the same data as this one.
source code

Inherited from geom.Point: calculate_distance, pt_dist_from

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

Instance Variables [hide private]
string poi
space-delimited list of poi id's for this waypoint
string stop
space-delimited list of stop id's for this waypoint

Inherited from geom.Point: ele, id, lat, lon, usgs

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, stop, poi, lat, lon, ele, usgs)
(Constructor)

source code 

Save the passed-in data.

Parameters:
  • id (string) - id of the Waypoint
  • stop (string) - space-delimited list of stop id's for this waypoint
  • poi (string) - space-delimited list of poi id's for this waypoint
  • lat (float) - latitude of the waypoint
  • lon (float) - longitude of the waypoint
  • ele (float) - observed elevation for this waypoint (meters above sea level)
  • usgs (float) - USGS elevation for this waypoint (meters above sea level)
Overrides: object.__init__

dup_point_data(self)

source code 

Create a new Waypoint with the same data as this one.

Returns: Waypoint
duplicate Waypoint