Skip to content

Commit 82d3f21

Browse files
committed
Add two Point geometries to create new MultiPoint
1 parent d964a82 commit 82d3f21

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/geoscript/geom/point.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def initialize(*coords)
2424
super p.coordinate_sequence, GEOM_FACTORY
2525
end
2626

27+
def +(other_point)
28+
MultiPoint.new self, other_point
29+
end
30+
2731
def buffer(dist)
2832
Polygon.new super
2933
end

0 commit comments

Comments
 (0)