Class: Kamelopard::Region
Overview
Corresponds to the KML Region object
Instance Attribute Summary collapse
-
#latlonaltbox ⇒ Object
Returns the value of attribute latlonaltbox.
-
#lod ⇒ Object
Returns the value of attribute lod.
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Region
constructor
A new instance of Region.
- #to_kml(elem = nil) ⇒ Object
Methods inherited from Object
#_alternate_to_kml, #change, #master_only?, parse
Constructor Details
#initialize(options = {}) ⇒ Region
Returns a new instance of Region.
2297 2298 2299 |
# File 'lib/kamelopard/classes.rb', line 2297 def initialize( = {}) super end |
Instance Attribute Details
#latlonaltbox ⇒ Object
Returns the value of attribute latlonaltbox.
2295 2296 2297 |
# File 'lib/kamelopard/classes.rb', line 2295 def latlonaltbox @latlonaltbox end |
#lod ⇒ Object
Returns the value of attribute lod.
2295 2296 2297 |
# File 'lib/kamelopard/classes.rb', line 2295 def lod @lod end |
Instance Method Details
#to_kml(elem = nil) ⇒ Object
2301 2302 2303 2304 2305 2306 2307 2308 |
# File 'lib/kamelopard/classes.rb', line 2301 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 |