org.geotools.geometry.jts.spatialschema.geometry
Class EnvelopeImpl

java.lang.Object
  extended by org.geotools.geometry.jts.spatialschema.geometry.EnvelopeImpl
All Implemented Interfaces:
org.opengis.geometry.Envelope

public class EnvelopeImpl
extends java.lang.Object
implements org.opengis.geometry.Envelope

A minimum bounding box or rectangle. Regardless of dimension, an Envelope can be represented without ambiguity as two direct positions (coordinate points). To encode an Envelope, it is sufficient to encode these two points. This is consistent with all of the data types in this specification, their state is represented by their publicly accessible attributes.

Version:
2.0
Author:
ISO/DIS 19107, OpenGIS® consortium

Constructor Summary
EnvelopeImpl(org.opengis.geometry.DirectPosition lowerCorner, org.opengis.geometry.DirectPosition upperCorner)
          Creates a new EnvelopeImpl.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 double getCenter(int dimension)
          Deprecated. 
 org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 int getDimension()
           
 double getLength(int dimension)
          Deprecated. 
 org.opengis.geometry.DirectPosition getLowerCorner()
           
 double getMaximum(int dimension)
           
 double getMedian(int dimension)
           
 double getMinimum(int dimension)
           
 double getSpan(int dimension)
           
 org.opengis.geometry.DirectPosition getUpperCorner()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvelopeImpl

public EnvelopeImpl(org.opengis.geometry.DirectPosition lowerCorner,
                    org.opengis.geometry.DirectPosition upperCorner)
Creates a new EnvelopeImpl.

Parameters:
lowerCorner -
upperCorner -
Method Detail

getDimension

public final int getDimension()
Specified by:
getDimension in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getDimension()

getMinimum

public final double getMinimum(int dimension)
Specified by:
getMinimum in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getMinimum(int)

getMaximum

public final double getMaximum(int dimension)
Specified by:
getMaximum in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getMaximum(int)

getCenter

@Deprecated
public final double getCenter(int dimension)
Deprecated. 

Specified by:
getCenter in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getCenter(int)

getMedian

public final double getMedian(int dimension)
Specified by:
getMedian in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getMedian(int)

getLength

@Deprecated
public final double getLength(int dimension)
Deprecated. 

Specified by:
getLength in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getLength(int)

getSpan

public final double getSpan(int dimension)
Specified by:
getSpan in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getSpan(int)

getUpperCorner

public final org.opengis.geometry.DirectPosition getUpperCorner()
Specified by:
getUpperCorner in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getUpperCorner()

getLowerCorner

public final org.opengis.geometry.DirectPosition getLowerCorner()
Specified by:
getLowerCorner in interface org.opengis.geometry.Envelope
See Also:
org.opengis.geometry.coordinate.Envelope#getLowerCorner()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Specified by:
getCoordinateReferenceSystem in interface org.opengis.geometry.Envelope


Copyright © 1996-2010 Geotools. All Rights Reserved.