A Surface is a 2-dimensional geometric object.
A simple Surface consists of a single “patch” that is associated with one “exterior boundary” and 0 or more “interior” boundaries. Simple Surfaces in 3-dimensional space are isomorphic to planar Surfaces. Polyhedral Surfaces are formed by “stitching” together simple Surfaces along their boundaries, polyhedral Surfaces in 3-dimensional space may not be planar as a whole.
The boundary of a simple Surface is the set of closed Curves corresponding to its “exterior” and “interior” boundaries.
The only instantiable subclass of Surface defined in this specification, Polygon, is a simple Surface that is planar.
Surface 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.
The mathematical centroid for this Surface as a Point. The result is not guaranteed to be on this Surface.
Returns an object that supports the Point interface.
# File lib/rgeo/feature/surface.rb, line 98 def centroid raise Error::UnsupportedOperation, "Method Surface#centroid not defined." end