A Curve is a 1-dimensional geometric object usually stored as a sequence of Points, with the subtype of Curve specifying the form of the interpolation between Points. This part of ISO 19125 defines only one subclass of Curve, LineString, which uses linear interpolation between Points.
A Curve is a 1-dimensional geometric object that is the homeomorphic image of a real, closed interval D= under a mapping f:->R2.
A Curve is simple if it does not pass through the same Point twice.
A Curve is closed if its start Point is equal to its end Point.
The boundary of a closed Curve is empty.
A Curve that is simple and closed is a Ring.
The boundary of a non-closed Curve consists of its two end Points.
A Curve is defined as topologically closed.
Curve 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.
Some implementations may support higher dimensional points.
Returns true if this Curve is closed [StartPoint() = EndPoint()].
Returns a boolean value. Note that this is different from the SFS specification, which stipulates an integer return value.
# File lib/rgeo/feature/curve.rb, line 129 def is_closed? raise Error::UnsupportedOperation, "Method Curve#is_closed? not defined." end
Returns true if this Curve is closed [StartPoint() = EndPoint()] and this Curve is simple (does not pass through the same Point more than once).
Returns a boolean value. Note that this is different from the SFS specification, which stipulates an integer return value.
# File lib/rgeo/feature/curve.rb, line 145 def is_ring? raise Error::UnsupportedOperation, "Method Curve#is_ring? not defined." end
The length of this Curve in its associated spatial reference.
Returns a floating-point scalar value.
# File lib/rgeo/feature/curve.rb, line 89 def length raise Error::UnsupportedOperation, "Method Curve#length not defined." end