Class PreparedGeometryFactory
java.lang.Object
org.locationtech.jts.geom.prep.PreparedGeometryFactory
A factory for creating
PreparedGeometrys.
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 newPreparedGeometryappropriate for the argumentGeometry.static PreparedGeometryCreates a newPreparedGeometryappropriate for the argumentGeometry.
-
Constructor Details
-
PreparedGeometryFactory
public PreparedGeometryFactory()
-
-
Method Details
-
prepare
Creates a newPreparedGeometryappropriate for the argumentGeometry.- Parameters:
geom- the geometry to prepare- Returns:
- the prepared geometry
-
create
Creates a newPreparedGeometryappropriate for the argumentGeometry.- Parameters:
geom- the geometry to prepare- Returns:
- the prepared geometry
-