lib/rgeo/feature/polygon.rb in rgeo-0.1.22 vs lib/rgeo/feature/polygon.rb in rgeo-0.2.0

- old
+ new

@@ -92,11 +92,11 @@ # === Notes # # Returns an object that supports the LinearRing interface. def exterior_ring - raise Error::UnsupportedCapability, "Method Polygon#exterior_ring not defined." + raise Error::UnsupportedOperation, "Method Polygon#exterior_ring not defined." end # === SFS 1.1 Description # @@ -105,11 +105,11 @@ # === Notes # # Returns an integer. def num_interior_rings - raise Error::UnsupportedCapability, "Method Polygon#num_interior_rings not defined." + raise Error::UnsupportedOperation, "Method Polygon#num_interior_rings not defined." end # === SFS 1.1 Description # @@ -119,18 +119,18 @@ # # Returns an object that supports the LinearRing interface, or nil # if the given n is out of range. def interior_ring_n(n_) - raise Error::UnsupportedCapability, "Method Polygon#interior_ring_n not defined." + raise Error::UnsupportedOperation, "Method Polygon#interior_ring_n not defined." end # Returns the interior rings as a (possibly empty) array of objects # that support the LinearRing interface. def interior_rings - raise Error::UnsupportedCapability, "Method Polygon#interior_rings not defined." + raise Error::UnsupportedOperation, "Method Polygon#interior_rings not defined." end end