Package org.geotools.referencing.util
Class BoundingBoxes
Object
BoundingBoxes
Provides convenience methods for geographic bounding boxes. This is mostly a
helper class for
GeographicBoundingBoxImpl; users should not use this class directly.- Since:
- 2.4
- Author:
- Martin Desruisseaux (IRD), Touraïvane
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(Bounds envelope, GeographicBoundingBoxImpl box) Initializes a geographic bounding box from the specified envelope.static StringtoString(GeographicBoundingBox box, String pattern, Locale locale) Returns a string representation of the specified extent using the specified angle pattern and locale.
-
Method Details
-
copy
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
Returns a string representation of the specified extent using the specified angle pattern and locale. SeeAngleFormatfor 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, ornullfor the default one.
-