code: public static Polygon createPolygonFromBounds( double minX, double minY, double maxX, double maxY ) {
          Coordinate[] c = new Coordinate[]{new Coordinate(minX, minY), new Coordinate(minX, maxY), new Coordinate(maxX, maxY),
                  new Coordinate(maxX, minY), new Coordinate(minX, minY)};
          return gf().createPolygon(c);
      }
docs: Create a polygon using boundaries.
  
  @param minX the min x.
  @param minY the min y.
  @param maxX the max x.
  @param maxY the max y.
  @return the created geomerty.