# File lib/geo_ruby/simple_features/polygon.rb, line 110 def kml_representation(options = {}) result = "<Polygon#{options[:id_attr]}>\n" result += options[:geom_data] if options[:geom_data] rings.each_with_index do |ring, i| if i == 0 boundary = "outerBoundaryIs" else boundary = "innerBoundaryIs" end result += "<#{boundary}><LinearRing><coordinates>\n" result += ring.kml_poslist(options) result += "\n</coordinates></LinearRing></#{boundary}>\n" end result += "</Polygon>\n" end