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 voidsetGeometryFactory(org.locationtech.jts.geom.GeometryFactory gf) static org.locationtech.jts.geom.PolygontoPolygon(org.locationtech.jts.geom.Envelope env, int srid) Converts the specifiedEnvelopeto aPolygonhaving the specified srid.
-
Method Details
-
toPolygon
public static org.locationtech.jts.geom.Polygon toPolygon(org.locationtech.jts.geom.Envelope env, int srid) Converts the specifiedEnvelopeto aPolygonhaving 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)
-