A LineString is a Curve with linear interpolation between Points. Each consecutive pair of Points defines a Line segment.
LineString is defined as a module and is provided primarily for the sake of documentation. Implementations need not necessarily include this module itself. Therefore, you should not depend on the kind_of? method to check type. Instead, use the provided check_type class method (or === operator) defined in the Type module.
The number of Points in this LineString.
Returns an integer.
# File lib/rgeo/feature/line_string.rb, line 69 def num_points raise Error::UnsupportedOperation, "Method LineString#num_points not defined." end
Returns the specified Point N in this LineString.
Returns an object that supports the Point interface, or nil if the given N is out of range. N is zero-based. Does not support negative indexes.
# File lib/rgeo/feature/line_string.rb, line 84 def point_n(n_) raise Error::UnsupportedOperation, "Method LineString#point_n not defined." end
Returns the constituent points as an array of objects that support the Point interface.
# File lib/rgeo/feature/line_string.rb, line 92 def points raise Error::UnsupportedOperation, "Method LineString#points not defined." end