Module: Kamelopard::ImagePyramid
- Included in:
- PhotoOverlay
- Defined in:
- lib/kamelopard/classes.rb
Overview
Supporting module for the PhotoOverlay class
Instance Attribute Summary collapse
-
#gridOrigin ⇒ Object
Returns the value of attribute gridOrigin.
-
#maxHeight ⇒ Object
Returns the value of attribute maxHeight.
-
#maxWidth ⇒ Object
Returns the value of attribute maxWidth.
-
#tileSize ⇒ Object
Returns the value of attribute tileSize.
Instance Method Summary collapse
Instance Attribute Details
#gridOrigin ⇒ Object
Returns the value of attribute gridOrigin.
1542 1543 1544 |
# File 'lib/kamelopard/classes.rb', line 1542 def gridOrigin @gridOrigin end |
#maxHeight ⇒ Object
Returns the value of attribute maxHeight.
1542 1543 1544 |
# File 'lib/kamelopard/classes.rb', line 1542 def maxHeight @maxHeight end |
#maxWidth ⇒ Object
Returns the value of attribute maxWidth.
1542 1543 1544 |
# File 'lib/kamelopard/classes.rb', line 1542 def maxWidth @maxWidth end |
#tileSize ⇒ Object
Returns the value of attribute tileSize.
1542 1543 1544 |
# File 'lib/kamelopard/classes.rb', line 1542 def tileSize @tileSize end |
Instance Method Details
#imagePyramid_to_kml(elem = nil) ⇒ Object
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 |
# File 'lib/kamelopard/classes.rb', line 1544 def imagePyramid_to_kml(elem = nil) @tileSize = 256 if @tileSize.nil? p = XML::Node.new 'ImagePyramid' { :tileSize => @tileSize, :maxWidth => @maxWidth, :maxHeight => @maxHeight, :gridOrigin => @gridOrigin }.each do |k, v| d = XML::Node.new k.to_s v = 0 if v.nil? d << v.to_s p << d end elem << p unless elem.nil? p end |