Skip to content

Commit 96de45b

Browse files
committed
Add two Polygon geometries to create new MultiPolygon
1 parent e36009f commit 96de45b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/geoscript/geom/polygon.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def initialize(*rings)
3232
super(shell, holes, GEOM_FACTORY)
3333
end
3434

35+
def +(other_poly)
36+
MultiPolygon.new self, other_poly
37+
end
38+
3539
def buffer(dist)
3640
Polygon.new super
3741
end

0 commit comments

Comments
 (0)