Module: RGeo::Feature::LinearRing

Extended by:
Type
Includes:
LineString
Included in:
Cartesian::LinearRingImpl, Geographic::ProjectedLinearRingImpl, Geographic::SphericalLinearRingImpl
Defined in:
lib/rgeo/feature/linear_ring.rb

Overview

SFS 1.1 Description

A LinearRing is a LineString that is both closed and simple.

Notes

LinearRing 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.

Instance Method Summary collapse

Methods included from Type

add_subtype, check_type, each_immediate_subtype, extended, subtype_of?, supertype, type_name

Methods included from LineString

#num_points, #point_n, #points

Methods included from Curve

#end_point, #is_closed?, #is_ring?, #length, #start_point

Methods included from Geometry

#*, #+, #-, #==, #as_binary, #as_text, #boundary, #buffer, #contains?, #convex_hull, #crosses?, #difference, #dimension, #disjoint?, #distance, #envelope, #eql?, #equals?, #factory, #geometry_type, #intersection, #intersects?, #is_empty?, #is_simple?, #overlaps?, #relate?, #rep_equals?, #srid, #sym_difference, #touches?, #unary_union, #union, #within?

Instance Method Details

#ccw?Boolean

Returns true if the ring is oriented in a counter clockwise direction otherwise returns false.

Notes

Not a standard SFS method for linear rings, but added for convenience.

Returns:

  • (Boolean)

Raises:


33
34
35
# File 'lib/rgeo/feature/linear_ring.rb', line 33

def ccw?
  raise Error::UnsupportedOperation, "Method LinearRing#ccw? not defined."
end