Module: RGeo::ImplHelper::BasicLinearRingMethods
- Included in:
- Cartesian::LinearRingImpl, Geographic::ProjectedLinearRingImpl, Geographic::SphericalLinearRingImpl
- Defined in:
- lib/rgeo/impl_helper/basic_line_string_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#_validate_geometry ⇒ Object
:nodoc:
176 177 178 179 180 181 182 183 184 |
# File 'lib/rgeo/impl_helper/basic_line_string_methods.rb', line 176 def _validate_geometry # :nodoc: super if @points.size > 0 @points << @points.first if @points.first != @points.last if !is_ring? raise Error::InvalidGeometry, 'LinearRing failed ring test' end end end |
#geometry_type ⇒ Object
187 188 189 |
# File 'lib/rgeo/impl_helper/basic_line_string_methods.rb', line 187 def geometry_type Feature::LinearRing end |