Class: Kamelopard::Region

Inherits:
Object
  • Object
show all
Defined in:
lib/kamelopard/classes.rb

Overview

Corresponds to the KML Region object

Instance Attribute Summary collapse

Attributes inherited from Object

#comment, #kml_id

Instance Method Summary collapse

Methods inherited from Object

#change

Constructor Details

#initialize(options = {}) ⇒ Region

Returns a new instance of Region.



1742
1743
1744
# File 'lib/kamelopard/classes.rb', line 1742

def initialize(options = {})
    super
end

Instance Attribute Details

#latlonaltboxObject

Returns the value of attribute latlonaltbox.



1740
1741
1742
# File 'lib/kamelopard/classes.rb', line 1740

def latlonaltbox
  @latlonaltbox
end

#lodObject

Returns the value of attribute lod.



1740
1741
1742
# File 'lib/kamelopard/classes.rb', line 1740

def lod
  @lod
end

Instance Method Details

#to_kml(elem = nil) ⇒ Object



1746
1747
1748
1749
1750
1751
1752
1753
# File 'lib/kamelopard/classes.rb', line 1746

def to_kml(elem = nil)
    k = XML::Node.new 'Region'
    super k
    @latlonaltbox.to_kml(k, true) unless @latlonaltbox.nil?
    @lod.to_kml(k) unless @lod.nil?
    elem << k unless elem.nil?
    k
end