Package org.locationtech.jts.geom.prep
Class PreparedGeometryFactory
- java.lang.Object
-
- org.locationtech.jts.geom.prep.PreparedGeometryFactory
-
public class PreparedGeometryFactory extends java.lang.Object
A factory for creatingPreparedGeometry
s. It chooses an appropriate implementation of PreparedGeometry based on the geometric type of the input geometry.In the future, the factory may accept hints that indicate special optimizations which can be performed.
Instances of this class are thread-safe.
- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description PreparedGeometryFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedGeometry
create(Geometry geom)
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.static PreparedGeometry
prepare(Geometry geom)
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.
-
-
-
Method Detail
-
prepare
public static PreparedGeometry prepare(Geometry geom)
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.- Parameters:
geom
- the geometry to prepare- Returns:
- the prepared geometry
-
create
public PreparedGeometry create(Geometry geom)
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.- Parameters:
geom
- the geometry to prepare- Returns:
- the prepared geometry
-
-