org.geotools.geometry.iso.aggregate
Class MultiPrimitiveImpl

java.lang.Object
  extended by org.geotools.geometry.iso.root.GeometryImpl
      extended by org.geotools.geometry.iso.aggregate.AggregateImpl
          extended by org.geotools.geometry.iso.aggregate.MultiPrimitiveImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.aggregate.Aggregate, org.opengis.geometry.aggregate.MultiPrimitive, org.opengis.geometry.Geometry, org.opengis.geometry.TransfiniteSet
Direct Known Subclasses:
MultiCurveImpl, MultiPointImpl, MultiSurfaceImpl

public class MultiPrimitiveImpl
extends AggregateImpl
implements org.opengis.geometry.aggregate.MultiPrimitive

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.aggregate.AggregateImpl
elements
 
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl
crs, percision
 
Constructor Summary
MultiPrimitiveImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, java.util.Set<? extends org.opengis.geometry.primitive.Primitive> primitives)
          Creates a MultiPrimitive by a set of Primitives.
 
Method Summary
 java.util.Set<? extends org.opengis.geometry.primitive.Primitive> getElements()
           
 org.opengis.geometry.Envelope getEnvelope()
           
 java.util.Set<org.opengis.geometry.complex.Complex> getMaximalComplex()
           
 org.opengis.geometry.DirectPosition getRepresentativePoint()
           
 boolean isSimple()
           
 java.lang.String toString()
          Overwrite toString method for WKT output
 
Methods inherited from class org.geotools.geometry.iso.aggregate.AggregateImpl
clone, getBoundary, getDimension
 
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, isCycle, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, transform, union, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.Geometry
clone, distance, getBoundary, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getMbRegion, getPrecision, isCycle, isMutable, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

MultiPrimitiveImpl

public MultiPrimitiveImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                          java.util.Set<? extends org.opengis.geometry.primitive.Primitive> primitives)
Creates a MultiPrimitive by a set of Primitives.

Parameters:
crs -
primitives - Set of Primitives which shall be contained by the MultiPrimitive
Method Detail

getEnvelope

public org.opengis.geometry.Envelope getEnvelope()
Specified by:
getEnvelope in interface org.opengis.geometry.Geometry
Specified by:
getEnvelope in class GeometryImpl

isSimple

public boolean isSimple()
Specified by:
isSimple in interface org.opengis.geometry.Geometry

getMaximalComplex

public java.util.Set<org.opengis.geometry.complex.Complex> getMaximalComplex()
Specified by:
getMaximalComplex in interface org.opengis.geometry.Geometry

getRepresentativePoint

public org.opengis.geometry.DirectPosition getRepresentativePoint()
Specified by:
getRepresentativePoint in interface org.opengis.geometry.Geometry
Specified by:
getRepresentativePoint in class GeometryImpl

toString

public java.lang.String toString()
Overwrite toString method for WKT output

Overrides:
toString in class java.lang.Object

getElements

public java.util.Set<? extends org.opengis.geometry.primitive.Primitive> getElements()
Specified by:
getElements in interface org.opengis.geometry.aggregate.Aggregate
Specified by:
getElements in interface org.opengis.geometry.aggregate.MultiPrimitive
Overrides:
getElements in class AggregateImpl


Copyright © 1996-2010 Geotools. All Rights Reserved.