Package org.geotools.geometry
Class GeometryFactoryFinder
- Object
-
- FactoryFinder
-
- GeometryFactoryFinder
-
public class GeometryFactoryFinder extends FactoryFinder
Defines static methods used to access the application's default geometry factory implementations.- Since:
- 2.5
- Author:
- Jody Garnett (Refractions Research)
-
-
Field Summary
-
Fields inherited from class FactoryFinder
EMPTY_HINTS
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AggregateFactory
getAggregateFactory(Hints hints)
static ComplexFactory
getComplexFactory(Hints hints)
static GeometryFactory
getGeometryFactory(Hints hints)
An implementation ofGeometryFactory
for the provided crs.static PositionFactory
getPositionFactory(Hints hints)
static Precision
getPrecision(Hints hints)
static PrimitiveFactory
getPrimitiveFactory(Hints hints)
-
Methods inherited from class FactoryFinder
mergeSystemHints
-
-
-
-
Method Detail
-
getPrecision
public static Precision getPrecision(Hints hints) throws FactoryRegistryException
- Throws:
FactoryRegistryException
-
getPositionFactory
public static PositionFactory getPositionFactory(Hints hints) throws FactoryRegistryException
- Throws:
FactoryRegistryException
-
getGeometryFactory
public static GeometryFactory getGeometryFactory(Hints hints) throws FactoryRegistryException
An implementation ofGeometryFactory
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 theGeometryFactory
interface.
-
getComplexFactory
public static ComplexFactory getComplexFactory(Hints hints) throws FactoryRegistryException
- Throws:
FactoryRegistryException
-
getAggregateFactory
public static AggregateFactory getAggregateFactory(Hints hints) throws FactoryRegistryException
- Throws:
FactoryRegistryException
-
getPrimitiveFactory
public static PrimitiveFactory getPrimitiveFactory(Hints hints) throws FactoryRegistryException
- Throws:
FactoryRegistryException
-
-