Module: RGeo::Geos::FFILinearRingMethods

Defined in:
lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb

Instance Method Summary collapse

Instance Method Details

#to_linear_ringObject



251
252
253
254
# File 'lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb', line 251

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