Method: Wicket::Subpath#to_polygon

Defined in:
lib/wicket/subpath.rb

#to_polygon(opts) ⇒ Object



25
26
27
28
# File 'lib/wicket/subpath.rb', line 25

def to_polygon(opts)
  vertices = commands.map{|c| c.to_wkt(opts) }.compact.join(",")
  "((#{vertices}))"
end