org.geotools.geometry.iso.complex
Class CompositeImpl<T>

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<T>
Type Parameters:
T -
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.complex.Complex, org.opengis.geometry.complex.Composite, org.opengis.geometry.Geometry, org.opengis.geometry.TransfiniteSet
Direct Known Subclasses:
CompositeCurveImpl, CompositePointImpl, CompositeSolidImpl, CompositeSurfaceImpl

public abstract class CompositeImpl<T>
extends ComplexImpl
implements org.opengis.geometry.complex.Composite

A geometric composite, Composite, shall be a geometric complex with an underlying core geometry that is isomorphic to a primitive. Thus, a composite curve is a collection of curves whose geometry interface could be satisfied by a single curve (albeit a much more complex one). Composites are intended for use as attribute values in datasets in which the underlying geometry has been decomposed, usually to expose its topological nature.

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

Field Summary
 
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
CompositeImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
          Constructs a Composite by calling the super constructor Elements have to be added after
CompositeImpl(java.util.List<? extends org.opengis.geometry.primitive.Primitive> generatorElements)
          The association role Composition::generator shall be a homogeneous collection of Primitives whose union would be the core geometry of the composite.
 
Method Summary
abstract  java.lang.Class getGeneratorClass()
           
 
Methods inherited from class org.geotools.geometry.iso.complex.ComplexImpl
addSubComplex, addSuperComplex, createBoundary, getElements, getMaximalComplex, getSubComplexes, getSuperComplexes, isMaximal, setElements
 
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl
castToGeometryImpl, castToGeometryImpl, clone, contains, contains, cRelate, crosses, difference, disjoint, distance, equals, getBoundary, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getDistance, getEnvelope, getMbRegion, getPositionFactory, getPrecision, getRepresentativePoint, intersection, intersects, isCycle, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, transform, union, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.complex.Composite
getGenerators
 
Methods inherited from interface org.opengis.geometry.complex.Complex
getElements, getSubComplexes, getSuperComplexes, isMaximal
 
Methods inherited from interface org.opengis.geometry.Geometry
clone, distance, getBoundary, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getEnvelope, getMaximalComplex, getMbRegion, getPrecision, getRepresentativePoint, isCycle, isMutable, isSimple, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

CompositeImpl

public CompositeImpl(java.util.List<? extends org.opengis.geometry.primitive.Primitive> generatorElements)
The association role Composition::generator shall be a homogeneous collection of Primitives whose union would be the core geometry of the composite. The complex would include all primitives in the generator and all primitives on the boundary of these primitives, and so forth until Points are included. Thus the association role Composition::generator on Composite is a subset of the association role Complex::element on Complex. Composite::generator[1..n] : Primitive Is realised by the ArrayList of elements in the super Class Complex The Generator elements will be passed through the super constructor

Parameters:
generatorElements -

CompositeImpl

public CompositeImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Constructs a Composite by calling the super constructor Elements have to be added after

Parameters:
crs -
Method Detail

getGeneratorClass

public abstract java.lang.Class getGeneratorClass()
Returns:
the class


Copyright © 1996-2010 Geotools. All Rights Reserved.