Module: RGeo::Feature::LinearRing
 Extended by:
 Type
 Includes:
 LineString
 Included in:
 Cartesian::LinearRingImpl, Geographic::ProjectedLinearRingImpl, Geographic::SphericalLinearRingImpl, Geos::CAPILinearRingImpl, Geos::FFILinearRingImpl
 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

#ccw? ⇒ Boolean
Returns
true
if the ring is oriented in a counter clockwise direction otherwise returnsfalse
.
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
#closed?, #end_point, #is_closed?, #is_ring?, #length, #ring?, #start_point
Methods included from Geometry
#*, #+, #, #==, #as_binary, #as_text, #boundary, #buffer, #contains?, #convex_hull, #coordinate_dimension, #crosses?, #difference, #dimension, #disjoint?, #distance, #empty?, #envelope, #eql?, #equals?, #factory, #geometry_type, #intersection, #intersects?, #is_3d?, #is_empty?, #is_simple?, #locate_along, #locate_between, #measured?, #overlaps?, #relate?, #rep_equals?, #simple?, #spatial_dimension, #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.
33 34 35 
# File 'lib/rgeo/feature/linear_ring.rb', line 33 def ccw? raise Error::UnsupportedOperation, "Method LinearRing#ccw? not defined." end 