module RGeo::Feature::LineString

SFS 1.1 Description

A LineString is a Curve with linear interpolation between Points. Each consecutive pair of Points defines a Line segment.

Notes

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.

Public Instance Methods

num_points() click to toggle source

SFS 1.1 Description

The number of Points in this LineString.

Notes

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
point_n(n_) click to toggle source

SFS 1.1 Description

Returns the specified Point N in this LineString.

Notes

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
points() click to toggle source

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