Module: RGeo::Cartesian::LineStringMethods

Defined in:
lib/georuby-ext/rgeo/cartesian/feature_methods.rb

Instance Method Summary collapse

Instance Method Details

#to_linear_ringObject



33
34
35
36
# File 'lib/georuby-ext/rgeo/cartesian/feature_methods.rb', line 33

def to_linear_ring
  linear_ring_points = points.first == points.last ? points : points.push(points.first)
  factory.linear_ring linear_ring_points
end