Method: RGeo::ImplHelper::BasicMultiLineStringMethods#contains?

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

#contains?(rhs) ⇒ Boolean

Returns:

  • (Boolean)

120
121
122
123
124
# File 'lib/rgeo/impl_helper/basic_geometry_collection_methods.rb', line 120

def contains?(rhs)
  return super unless Feature::Point === rhs

  @elements.any? { |line| line.contains?(rhs) }
end