Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Phylo.PhyloXML.Point Class Reference
Inheritance diagram for Bio.Phylo.PhyloXML.Point:
Inheritance graph
[legend]
Collaboration diagram for Bio.Phylo.PhyloXML.Point:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 geodetic_datum
 lat
 long
 alt
 alt_unit

Detailed Description

Geographic coordinates of a point, with an optional altitude.

Used by element 'Distribution'.

:Parameters:
    geodetic_datum : string, required
        the geodetic datum (also called 'map datum'). For example, Google's
        KML uses 'WGS84'.
    lat : numeric
        latitude
    long : numeric
        longitude
    alt : numeric
        altitude
    alt_unit : string
        unit for the altitude (e.g. 'meter')

Definition at line 834 of file PhyloXML.py.


Constructor & Destructor Documentation

def Bio.Phylo.PhyloXML.Point.__init__ (   self,
  geodetic_datum,
  lat,
  long,
  alt = None,
  alt_unit = None 
)

Definition at line 852 of file PhyloXML.py.

00852 
00853     def __init__(self, geodetic_datum, lat, long, alt=None, alt_unit=None):
00854         self.geodetic_datum = geodetic_datum
00855         self.lat = lat
00856         self.long = long
00857         self.alt = alt
00858         self.alt_unit = alt_unit
00859 


Member Function Documentation

def Bio.Phylo.BaseTree.TreeElement.__repr__ (   self) [inherited]
Show this object's constructor with its primitive arguments.

Definition at line 216 of file BaseTree.py.

00216 
00217     def __repr__(self):
00218         """Show this object's constructor with its primitive arguments."""
00219         def pair_as_kwarg_string(key, val):
00220             if isinstance(val, basestring):
00221                 return "%s='%s'" % (key, _sugar.trim_str(unicode(val)))
00222             return "%s=%s" % (key, val)
00223         return u'%s(%s)' % (self.__class__.__name__,
00224                             ', '.join(pair_as_kwarg_string(key, val)
00225                                   for key, val in self.__dict__.iteritems()
00226                                   if val is not None and
00227                                   type(val) in (str, int, float, bool, unicode)
00228                                   ))


Member Data Documentation

Definition at line 856 of file PhyloXML.py.

Definition at line 857 of file PhyloXML.py.

Definition at line 853 of file PhyloXML.py.

Definition at line 854 of file PhyloXML.py.

Definition at line 855 of file PhyloXML.py.


The documentation for this class was generated from the following file: