Package org.locationtech.jts.geom.prep
Class PreparedGeometryFactory
java.lang.Object
org.locationtech.jts.geom.prep.PreparedGeometryFactory
A factory for creating
PreparedGeometry
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 -
Method Summary
Modifier and TypeMethodDescriptionCreates a newPreparedGeometry
appropriate for the argumentGeometry
.static PreparedGeometry
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.
-
Constructor Details
-
PreparedGeometryFactory
public PreparedGeometryFactory()
-
-
Method Details
-
prepare
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.- Parameters:
geom
- the geometry to prepare- Returns:
- the prepared geometry
-
create
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.- Parameters:
geom
- the geometry to prepare- Returns:
- the prepared geometry
-