The geographic distribution of the items of a clade (species, sequences), intended for phylogeographic applications.
String. Free text description of location.
Array of Point objects. Holds coordinates of the location.
Array of Polygon objects.
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 414 def initialize @points = [] @polygons = [] end
Converts elements to xml representation. Called by PhyloXML::Writer class.
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 421 def to_xml distr = LibXML::XML::Node.new('distribution') PhyloXML::Writer.generate_xml(distr, self, [ [:simple, 'desc', @desc], [:objarr, 'point', 'points'], [:objarr, 'polygon', 'polygons']]) return distr end