Method: MapWKT::Geometry::Polygon#to_s
- Defined in:
- lib/mapwkt/wkt/polygon.rb
#to_s ⇒ Object
Returns a string representation of this Polygon. ⭓ indicates the perimeter LineString, while ⬠ indicates a lacuna LineString.
33 34 35 |
# File 'lib/mapwkt/wkt/polygon.rb', line 33 def to_s "⭓ #{@perimeter.points.join(", ")} ⭓#{@lacunae.map {|lacuna| " | ⬠ #{lacuna.points.join(", ")} ⬠" }.join} " end |