org.geotools.geometry.iso.primitive
Class RingImpl

java.lang.Object
  extended by org.geotools.geometry.iso.root.GeometryImpl
      extended by org.geotools.geometry.iso.complex.ComplexImpl
          extended by org.geotools.geometry.iso.complex.CompositeImpl<OrientableCurveImpl>
              extended by org.geotools.geometry.iso.complex.CompositeCurveImpl
                  extended by org.geotools.geometry.iso.primitive.RingImplUnsafe
                      extended by org.geotools.geometry.iso.primitive.RingImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.complex.Complex, org.opengis.geometry.complex.Composite, org.opengis.geometry.complex.CompositeCurve, org.opengis.geometry.Geometry, org.opengis.geometry.primitive.OrientableCurve, org.opengis.geometry.primitive.OrientablePrimitive, org.opengis.geometry.primitive.Primitive, org.opengis.geometry.primitive.Ring, org.opengis.geometry.TransfiniteSet

public class RingImpl
extends RingImplUnsafe
implements org.opengis.geometry.primitive.Ring

A Ring is used to represent a single connected component of a SurfaceBoundary. It consists of a number of references to OrientableCurves connected in a cycle (an object whose boundary is empty). A Ring is structurally similar to a CompositeCurve in that the endPoint of each OrientableCurve in the sequence is the startPoint of the next OrientableCurve in the Sequence. Since the sequence is circular, there is no exception to this rule. Each ring, like all boundaries is a cycle and each ring is simple. Ring: {isSimple() = TRUE} Even though each Ring is simple, the boundary need not be simple. The easiest case of this is where one of the interior rings of a surface is tangent to its exterior ring. Implementations may enforce stronger restrictions on the interaction of boundary elements.

Author:
Jackson Roehrig & Sanjay Jena
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.complex.CompositeCurveImpl
envelope
 
Fields inherited from class org.geotools.geometry.iso.complex.ComplexImpl
elements
 
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl
crs, percision
 
Constructor Summary
RingImpl(java.util.List<org.opengis.geometry.primitive.OrientableCurve> generator)
          Creates a Ring
 
Method Summary
 
Methods inherited from class org.geotools.geometry.iso.primitive.RingImplUnsafe
asDirectPositions, clone, createBoundary, equals, getBoundary, getRepresentativePoint, getSurfaceBoundary, hashCode, isCycle, isSimple, setSurfaceBoundary, toString, transform
 
Methods inherited from class org.geotools.geometry.iso.complex.CompositeCurveImpl
asLineString, asLineString, getComplexes, getComposite, getContainedPrimitives, getContainingPrimitives, getDimension, getDimension, getElements, getEnvelope, getGeneratorClass, getGenerators, getLength, getOrientation, getPrimitive, getProxy, split
 
Methods inherited from class org.geotools.geometry.iso.complex.ComplexImpl
addSubComplex, addSuperComplex, getMaximalComplex, getSubComplexes, getSuperComplexes, isMaximal, setElements
 
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl
castToGeometryImpl, castToGeometryImpl, contains, contains, cRelate, crosses, difference, disjoint, distance, equals, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDistance, getMbRegion, getPositionFactory, getPrecision, intersection, intersects, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, union, within
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.primitive.Ring
isSimple
 
Methods inherited from interface org.opengis.geometry.complex.CompositeCurve
getGenerators
 
Methods inherited from interface org.opengis.geometry.complex.Complex
getElements, getSubComplexes, getSuperComplexes, isMaximal
 
Methods inherited from interface org.opengis.geometry.primitive.OrientableCurve
getBoundary, getComposite, getPrimitive
 
Methods inherited from interface org.opengis.geometry.primitive.OrientablePrimitive
getOrientation
 
Methods inherited from interface org.opengis.geometry.primitive.Primitive
getComplexes, getContainedPrimitives, getContainingPrimitives, getProxy
 
Methods inherited from interface org.opengis.geometry.Geometry
clone, distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getEnvelope, getMaximalComplex, getMbRegion, getPrecision, getRepresentativePoint, isCycle, isMutable, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

RingImpl

public RingImpl(java.util.List<org.opengis.geometry.primitive.OrientableCurve> generator)
Creates a Ring

Parameters:
generator -


Copyright © 1996-2010 Geotools. All Rights Reserved.