Module: RGeo::Feature::LinearRing

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

#closed?, #end_point, #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?, #locate_along, #locate_between, #measured?, #overlaps?, #relate?, #rep_equals?, #simple?, #spatial_dimension, #srid, #sym_difference, #touches?, #transform, #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:



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

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