Module: RGeo::Cartesian::LinearRingMethods

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

Instance Method Summary collapse

Instance Method Details

#to_linear_ringObject



40
41
42
43
# File 'lib/georuby-ext/rgeo/cartesian/feature_methods.rb', line 40

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