Module: RGeo::Feature::Point
Overview
SFS 1.1 Description
A Point is a 0-dimensional geometric object and represents a single location in coordinate space. A Point has an x-coordinate value and a y-coordinate value.
The boundary of a Point is the empty set.
Notes
Point 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.
Constant Summary
Constants included from Type
Instance Method Summary collapse
-
#m ⇒ Object
Returns the m-coordinate for this Point as a floating-point scalar value.
-
#x ⇒ Object
SFS 1.1 Description.
-
#y ⇒ Object
SFS 1.1 Description.
-
#z ⇒ Object
Returns the z-coordinate for this Point as a floating-point scalar value.
Methods included from Type
check_type, subtype_of?, type_name
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, #srid, #sym_difference, #touches?, #union, #within?
Instance Method Details
#m ⇒ Object
Returns the m-coordinate for this Point as a floating-point scalar value.
This method may not be available if the point’s factory does not support M coordinates.
110 111 112 |
# File 'lib/rgeo/feature/point.rb', line 110 def m raise Error::UnsupportedOperation, "Method Point#m not defined." end |
#x ⇒ Object
SFS 1.1 Description
The x-coordinate value for this Point.
Notes
Returns a floating-point scalar value.
75 76 77 |
# File 'lib/rgeo/feature/point.rb', line 75 def x raise Error::UnsupportedOperation, "Method Point#x not defined." end |
#y ⇒ Object
SFS 1.1 Description
The y-coordinate value for this Point.
Notes
Returns a floating-point scalar value.
88 89 90 |
# File 'lib/rgeo/feature/point.rb', line 88 def y raise Error::UnsupportedOperation, "Method Point#y not defined." end |
#z ⇒ Object
Returns the z-coordinate for this Point as a floating-point scalar value.
This method may not be available if the point’s factory does not support Z coordinates.
99 100 101 |
# File 'lib/rgeo/feature/point.rb', line 99 def z raise Error::UnsupportedOperation, "Method Point#z not defined." end |