org.geotools.geometry.iso.aggregate
Class AggregateFactoryImpl

java.lang.Object
  extended by org.geotools.geometry.iso.aggregate.AggregateFactoryImpl
All Implemented Interfaces:
Factory, org.opengis.geometry.aggregate.AggregateFactory

public class AggregateFactoryImpl
extends java.lang.Object
implements Factory, org.opengis.geometry.aggregate.AggregateFactory


Constructor Summary
AggregateFactoryImpl()
          This is just here so FactorySPI can find us.
AggregateFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
           
AggregateFactoryImpl(Hints hints)
          This is the constructor used by GeometryFactoryFinder when a user requests a new instance.
 
Method Summary
 org.opengis.geometry.aggregate.MultiCurve createMultiCurve(java.util.Set<org.opengis.geometry.primitive.OrientableCurve> curves)
          Creates a MultiCurve by a set of Curves.
 org.opengis.geometry.aggregate.MultiPoint createMultiPoint(java.util.Set<org.opengis.geometry.primitive.Point> points)
          Creates a MultiPoint by a set of Points.
 org.opengis.geometry.aggregate.MultiPrimitive createMultiPrimitive(java.util.Set<org.opengis.geometry.primitive.Primitive> primitives)
          Creates a MultiPrimitive by a set of Primitives.
 org.opengis.geometry.aggregate.MultiSurface createMultiSurface(java.util.Set<org.opengis.geometry.primitive.OrientableSurface> surfaces)
          Creates a MultiSurface by a set of Surfaces.
 java.util.Map getImplementationHints()
          Report back to FactoryRegistry about our configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateFactoryImpl

public AggregateFactoryImpl()
This is just here so FactorySPI can find us. We have set it up with a default (undocumented) configuration for testing!


AggregateFactoryImpl

public AggregateFactoryImpl(Hints hints)
This is the constructor used by GeometryFactoryFinder when a user requests a new instance. The provided hints *must* be provided: There is no default for these values - you must describe your data source for us if we are to make useful Geometry object for you.

Parameters:
hints - Hints (must include CRS)

AggregateFactoryImpl

public AggregateFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Parameters:
crs -
Method Detail

getImplementationHints

public java.util.Map getImplementationHints()
Report back to FactoryRegistry about our configuration.

FactoryRegistry will check to make sure that there are no duplicates created (so there will be only a "single" PositionFactory created with this configuration).

Specified by:
getImplementationHints in interface Factory
Returns:
The map of hints, or an empty map if none.

createMultiPrimitive

public org.opengis.geometry.aggregate.MultiPrimitive createMultiPrimitive(java.util.Set<org.opengis.geometry.primitive.Primitive> primitives)
Creates a MultiPrimitive by a set of Primitives.

Specified by:
createMultiPrimitive in interface org.opengis.geometry.aggregate.AggregateFactory
Parameters:
points - Set of Points which shall be contained by the MultiPoint
Returns:

createMultiPoint

public org.opengis.geometry.aggregate.MultiPoint createMultiPoint(java.util.Set<org.opengis.geometry.primitive.Point> points)
Creates a MultiPoint by a set of Points.

Specified by:
createMultiPoint in interface org.opengis.geometry.aggregate.AggregateFactory
Parameters:
points - Set of Points which shall be contained by the MultiPoint
Returns:

createMultiCurve

public org.opengis.geometry.aggregate.MultiCurve createMultiCurve(java.util.Set<org.opengis.geometry.primitive.OrientableCurve> curves)
Creates a MultiCurve by a set of Curves.

Specified by:
createMultiCurve in interface org.opengis.geometry.aggregate.AggregateFactory
Parameters:
points - Set of Points which shall be contained by the MultiCurve
Returns:

createMultiSurface

public org.opengis.geometry.aggregate.MultiSurface createMultiSurface(java.util.Set<org.opengis.geometry.primitive.OrientableSurface> surfaces)
Creates a MultiSurface by a set of Surfaces.

Specified by:
createMultiSurface in interface org.opengis.geometry.aggregate.AggregateFactory
Parameters:
points - Set of Points which shall be contained by the MultiSurface
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.