Method: RGeo::ImplHelper::BasicLineStringMethods#rep_equals?

Defined in:
lib/rgeo/impl_helper/basic_line_string_methods.rb

#rep_equals?(rhs) ⇒ Boolean

Returns:

  • (Boolean)


74
75
76
77
78
79
80
# File 'lib/rgeo/impl_helper/basic_line_string_methods.rb', line 74

def rep_equals?(rhs)
  if rhs.is_a?(self.class) && rhs.factory.eql?(@factory) && @points.size == rhs.num_points
    rhs.points.each_with_index { |p, i| return false unless @points[i].rep_equals?(p) }
  else
    false
  end
end