Package org.hibernate.spatial.jts
Class EnvelopeAdapter
java.lang.Object
org.hibernate.spatial.jts.EnvelopeAdapter
Converts an
Envelope
to a Polygon
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setGeometryFactory
(org.locationtech.jts.geom.GeometryFactory gf) static org.locationtech.jts.geom.Polygon
toPolygon
(org.locationtech.jts.geom.Envelope env, int srid) Converts the specifiedEnvelope
to aPolygon
having the specified srid.
-
Method Details
-
toPolygon
public static org.locationtech.jts.geom.Polygon toPolygon(org.locationtech.jts.geom.Envelope env, int srid) Converts the specifiedEnvelope
to aPolygon
having the specified srid.- Parameters:
env
- The envelope to convertsrid
- The srid for the polygon- Returns:
- The Polygon
-
setGeometryFactory
public static void setGeometryFactory(org.locationtech.jts.geom.GeometryFactory gf)
-