Class: GeoRuby::SimpleFeatures::LinearRing

Inherits:
Object
  • Object
show all
Defined in:
lib/georuby-ext/georuby/linear_ring.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_coordinates_with_close_support(*arguments) ⇒ Object



9
10
11
# File 'lib/georuby-ext/georuby/linear_ring.rb', line 9

def from_coordinates_with_close_support(*arguments)
  from_coordinates_without_close_support(*arguments).close!
end

.from_points_with_close_support(*arguments) ⇒ Object



4
5
6
# File 'lib/georuby-ext/georuby/linear_ring.rb', line 4

def from_points_with_close_support(*arguments)
  from_points_without_close_support(*arguments).close!
end

Instance Method Details

#to_rgeoObject



15
16
17
# File 'lib/georuby-ext/georuby/linear_ring.rb', line 15

def to_rgeo
  rgeo_factory.linear_ring(points.collect(&:to_rgeo))
end