Package org.geotools.referencing.util
Class BoundingBoxes
- Object
-
- BoundingBoxes
-
public final class BoundingBoxes extends Object
Provides convenience methods for geographic bounding boxes. This is mostly a helper class forGeographicBoundingBoxImpl
; users should not use this class directly.- Since:
- 2.4
- Author:
- Martin Desruisseaux (IRD), Touraïvane
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copy(Bounds envelope, GeographicBoundingBoxImpl box)
Initializes a geographic bounding box from the specified envelope.static String
toString(GeographicBoundingBox box, String pattern, Locale locale)
Returns a string representation of the specified extent using the specified angle pattern and locale.
-
-
-
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. SeeAngleFormat
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, ornull
for the default one.
-
-