org.geotools.resources
Class BoundingBoxes

java.lang.Object
  extended by org.geotools.resources.BoundingBoxes

public final class BoundingBoxes
extends java.lang.Object

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
Version:
$Id: BoundingBoxes.java 30641 2008-06-12 17:42:27Z acuster $
Author:
Martin Desruisseaux (IRD), Touraïvane

Method Summary
static void copy(org.opengis.geometry.Envelope envelope, GeographicBoundingBoxImpl box)
          Initializes a geographic bounding box from the specified envelope.
static java.lang.String toString(org.opengis.metadata.extent.GeographicBoundingBox box, java.lang.String pattern, java.util.Locale locale)
          Returns a string representation of the specified extent using the specified angle pattern and locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static void copy(org.opengis.geometry.Envelope envelope,
                        GeographicBoundingBoxImpl box)
                 throws org.opengis.referencing.operation.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:
org.opengis.referencing.operation.TransformException

toString

public static java.lang.String toString(org.opengis.metadata.extent.GeographicBoundingBox box,
                                        java.lang.String pattern,
                                        java.util.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.


Copyright © 1996-2010 Geotools. All Rights Reserved.