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:
130 131 132 133 134 135 136 137 138 139 |
# File 'lib/rgeo/impl_helper/basic_line_string_methods.rb', line 130 def _validate_geometry # :nodoc: super if @points.size > 0 @points << @points.first if @points.first != @points.last @points = @points.chunk {|x| x}.map(&:first) if !@factory.property(:uses_lenient_assertions) && !is_ring? raise Error::InvalidGeometry, "LinearRing failed ring test" end end end |
#geometry_type ⇒ Object
141 142 143 |
# File 'lib/rgeo/impl_helper/basic_line_string_methods.rb', line 141 def geometry_type Feature::LinearRing end |