org.geotools.geometry
Class GeometryFactoryFinder

java.lang.Object
  extended by org.geotools.factory.FactoryFinder
      extended by org.geotools.geometry.GeometryFactoryFinder

public class GeometryFactoryFinder
extends FactoryFinder

Defines static methods used to access the application's default geometry factory implementations.

Since:
2.5
Version:
$Id: GeometryFactoryFinder.java 30641 2008-06-12 17:42:27Z acuster $
Author:
Jody Garnett (Refractions Research)

Field Summary
 
Fields inherited from class org.geotools.factory.FactoryFinder
EMPTY_HINTS
 
Method Summary
static org.opengis.geometry.aggregate.AggregateFactory getAggregateFactory(Hints hints)
           
static org.opengis.geometry.complex.ComplexFactory getComplexFactory(Hints hints)
           
static org.opengis.geometry.coordinate.GeometryFactory getGeometryFactory(Hints hints)
          An implementation of GeometryFactory for the provided crs.
static org.opengis.geometry.PositionFactory getPositionFactory(Hints hints)
           
static org.opengis.geometry.Precision getPrecision(Hints hints)
           
static org.opengis.geometry.primitive.PrimitiveFactory getPrimitiveFactory(Hints hints)
           
 
Methods inherited from class org.geotools.factory.FactoryFinder
mergeSystemHints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPrecision

public static org.opengis.geometry.Precision getPrecision(Hints hints)
                                                   throws FactoryRegistryException
Throws:
FactoryRegistryException

getPositionFactory

public static org.opengis.geometry.PositionFactory getPositionFactory(Hints hints)
                                                               throws FactoryRegistryException
Throws:
FactoryRegistryException

getGeometryFactory

public static org.opengis.geometry.coordinate.GeometryFactory getGeometryFactory(Hints hints)
                                                                          throws FactoryRegistryException
An implementation of GeometryFactory for the provided crs.

Parameters:
hints - A set of hints that *must* include a Hints.CRS key
Returns:
a GeometryFactory set up to work with the indicated CRS
Throws:
FactoryRegistryException - if no implementation was found or can be created for the GeometryFactory interface.

getComplexFactory

public static org.opengis.geometry.complex.ComplexFactory getComplexFactory(Hints hints)
                                                                     throws FactoryRegistryException
Throws:
FactoryRegistryException

getAggregateFactory

public static org.opengis.geometry.aggregate.AggregateFactory getAggregateFactory(Hints hints)
                                                                           throws FactoryRegistryException
Throws:
FactoryRegistryException

getPrimitiveFactory

public static org.opengis.geometry.primitive.PrimitiveFactory getPrimitiveFactory(Hints hints)
                                                                           throws FactoryRegistryException
Throws:
FactoryRegistryException


Copyright © 1996-2010 Geotools. All Rights Reserved.