code: public static Geometry toPolygon(Bbox bounds) {
  		double minX = bounds.getX();
  		double minY = bounds.getY();
  		double maxX = bounds.getMaxX();
  		double maxY = bounds.getMaxY();
  
  		Geometry polygon = new Geometry(Geometry.POLYGON, 0, -1);
  		Geometry linearRing = new Geometry(Geometry.LINEAR_RING, 0, -1);
  
  		linearRing.setCoordinates(new Coordinate[] { new Coordinate(minX, minY), new Coordinate(maxX, minY),
  				new Coordinate(maxX, maxY), new Coordinate(minX, maxY), new Coordinate(minX, minY) });
  		polygon.setGeometries(new Geometry[] { linearRing });
  		return polygon;
  	}
docs: Transform the given bounding box into a polygon geometry.
  
  @param bounds The bounding box to transform.
  @return Returns the polygon equivalent of the given bounding box.