📄 generalenvelope.html
字号:
<BR> Returns the coordinate reference system from an arbitrary envelope, or if unknown. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getDimension()">getDimension</A></B>()</CODE><BR> Returns the number of dimensions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getLength(int)">getLength</A></B>(int dimension)</CODE><BR> Returns the envelope length along the specified dimension. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getLength(int, javax.units.Unit)">getLength</A></B>(int dimension, <A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A> unit)</CODE><BR> Returns the envelope length along the specified dimension, in terms of the given units.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> DirectPosition</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getLowerCorner()">getLowerCorner</A></B>()</CODE><BR> A coordinate position consisting of all the <A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getMinimum(int)">minimal ordinates</A> for each dimension for all points within the .</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getMaximum(int)">getMaximum</A></B>(int dimension)</CODE><BR> Returns the maximal ordinate along the specified dimension.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getMinimum(int)">getMinimum</A></B>(int dimension)</CODE><BR> Returns the minimal ordinate along the specified dimension.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/geometry/GeneralEnvelope.html" title="class in org.geotools.geometry">GeneralEnvelope</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getReducedEnvelope(int, int)">getReducedEnvelope</A></B>(int lower, int upper)</CODE><BR> Returns a new envelope with the same values than this envelope minus the specified range of dimensions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/geometry/GeneralEnvelope.html" title="class in org.geotools.geometry">GeneralEnvelope</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getSubEnvelope(int, int)">getSubEnvelope</A></B>(int lower, int upper)</CODE><BR> Returns a new envelope that encompass only some dimensions of this envelope. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> DirectPosition</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getUpperCorner()">getUpperCorner</A></B>()</CODE><BR> A coordinate position consisting of all the <A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#getMaximum(int)">maximal ordinates</A> for each dimension for all points within the .</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns a hash value for this envelope. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#intersect(org.opengis.spatialschema.geometry.Envelope)">intersect</A></B>(Envelope envelope)</CODE><BR> Sets this envelope to the intersection if this envelope with the specified one. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#intersects(org.opengis.spatialschema.geometry.Envelope, boolean)">intersects</A></B>(Envelope envelope, boolean edgesInclusive)</CODE><BR> Returns if this envelope intersects the specified envelope. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#isEmpty()">isEmpty</A></B>()</CODE><BR> Determines whether or not this envelope is empty. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#isInfinite()">isInfinite</A></B>()</CODE><BR> Returns if at least one ordinate has an <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#isInfinite()" title="class or interface in java.lang">infinite</A> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#isNull()">isNull</A></B>()</CODE><BR> Returns if at least one ordinate value is not <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#NaN" title="class or interface in java.lang">NaN</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)">setCoordinateReferenceSystem</A></B>(CoordinateReferenceSystem crs)</CODE><BR> Set the coordinate reference system in which the coordinate are given. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#setEnvelope(org.geotools.geometry.GeneralEnvelope)">setEnvelope</A></B>(<A HREF="../../../org/geotools/geometry/GeneralEnvelope.html" title="class in org.geotools.geometry">GeneralEnvelope</A> envelope)</CODE><BR> Set this envelope to the same coordinate values than the specified envelope.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#setRange(int, double, double)">setRange</A></B>(int dimension, double minimum, double maximum)</CODE><BR> Set the envelope's range along the specified dimension.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#setToInfinite()">setToInfinite</A></B>()</CODE><BR> Sets the lower corner to <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#NEGATIVE_INFINITY" title="class or interface in java.lang">negative infinity</A> and the upper corner to <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#POSITIVE_INFINITY" title="class or interface in java.lang">positive infinity</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#setToNull()">setToNull</A></B>()</CODE><BR> Sets all ordinate values to <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#NaN" title="class or interface in java.lang">NaN</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#toRectangle2D()">toRectangle2D</A></B>()</CODE><BR> Returns a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom"><CODE>Rectangle2D</CODE></A> with the same bounds as this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/GeneralEnvelope.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this envelope. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="GeneralEnvelope(org.opengis.spatialschema.geometry.Envelope)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(Envelope envelope)</PRE><DL><DD>Constructs a new envelope with the same data than the specified envelope.<P></DL><HR><A NAME="GeneralEnvelope(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(CoordinateReferenceSystem crs)</PRE><DL><DD>Constructs an empty envelope with the specified coordinate reference system. All ordinates are initialized to 0.<P><DT><B>Since:</B></DT> <DD>2.2</DD></DL><HR><A NAME="GeneralEnvelope(int)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(int dimension)</PRE><DL><DD>Constructs an empty envelope of the specified dimension. All ordinates are initialized to 0 and the coordinate reference system is undefined.<P></DL><HR><A NAME="GeneralEnvelope(double, double)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(double min, double max)</PRE><DL><DD>Constructs one-dimensional envelope defined by a range of values.<P><DT><B>Parameters:</B><DD><CODE>min</CODE> - The minimal value.<DD><CODE>max</CODE> - The maximal value.</DL><HR><A NAME="GeneralEnvelope(double[], double[])"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(double[] minDP, double[] maxDP) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Constructs a envelope defined by two positions.<P><DT><B>Parameters:</B><DD><CODE>minDP</CODE> - Minimum ordinate values.<DD><CODE>maxDP</CODE> - Maximum ordinate values.<DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE> - if the two positions don't have the same dimension.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an ordinate value in the minimum point is not less than or equal to the corresponding ordinate value in the maximum point.</DL><HR><A NAME="GeneralEnvelope(org.geotools.geometry.GeneralDirectPosition, org.geotools.geometry.GeneralDirectPosition)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(<A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html" title="class in org.geotools.geometry">GeneralDirectPosition</A> minDP, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html" title="class in org.geotools.geometry">GeneralDirectPosition</A> maxDP) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Constructs a envelope defined by two positions. The coordinate reference system is inferred from the supplied direct position.<P><DT><B>Parameters:</B><DD><CODE>minDP</CODE> - Point containing minimum ordinate values.<DD><CODE>maxDP</CODE> - Point containing maximum ordinate values.<DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE> - if the two positions don't have the same dimension.<DD><CODE>MismatchedReferenceSystemException</CODE> - if the two positions don't use the same CRS.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an ordinate value in the minimum point is not less than or equal to the corresponding ordinate value in the maximum point.</DL><HR><A NAME="GeneralEnvelope(java.awt.geom.Rectangle2D)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> rect)</PRE><DL><DD>Constructs two-dimensional envelope defined by a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom"><CODE>Rectangle2D</CODE></A>. The coordinate reference system is initially undefined.<P></DL><HR><A NAME="GeneralEnvelope(org.opengis.coverage.grid.GridRange, org.opengis.referencing.datum.PixelInCell, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>GeneralEnvelope</H3><PRE>public <B>GeneralEnvelope</B>(GridRange gridRange, PixelInCell gridType, MathTransform gridToCRS, CoordinateReferenceSystem crs) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Creates an envelope for a grid range transformed using the specified math transform.<P><DT><B>Parameters:</B><DD><CODE>gridRange</CODE> - The grid range.<DD><CODE>gridType</CODE> - Whatever grid range coordinates map to pixel center or pixel corner.<DD><CODE>gridToCRS</CODE> - The transform (usually affine) from grid range to the envelope CRS.<DD><CODE>crs</CODE> - The envelope CRS, or if unknow.<DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE> - If one of the supplied object doesn't have a dimension compatible with the other objects.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an argument is illegal for some other reason, including failure to use the provided math transform.<DT><B>Since:</B></DT> <DD>2.3</DD></DL><!-- ============ METHOD DETAIL ========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -