Class BoundingBoxes

    • Method Detail

      • copy

        public static void copy​(Bounds envelope,
                                GeographicBoundingBoxImpl box)
                         throws TransformException
        Initializes a geographic bounding box from the specified envelope. If the envelope contains a CRS, then the bounding box will be projected to a geographic CRS. Otherwise, the envelope is assumed already in appropriate CRS.
        Parameters:
        envelope - The source envelope.
        box - The target bounding box.
        Throws:
        TransformException
      • toString

        public static String toString​(GeographicBoundingBox box,
                                      String pattern,
                                      Locale locale)
        Returns a string representation of the specified extent using the specified angle pattern and locale. See AngleFormat for a description of angle patterns.
        Parameters:
        box - The bounding box to format.
        pattern - The angle pattern (e.g. DD°MM'SS.s".
        locale - The locale, or null for the default one.