📄 generalgridgeometry.html
字号:
public static <A HREF="../../../../org/geotools/geometry/GeneralEnvelope.html" title="class in org.geotools.geometry">GeneralEnvelope</A> <B>getEnvelope</B>(GridRange gridRange, MathTransform gridToCRS, CoordinateReferenceSystem crs, boolean halfPix) throws MismatchedDimensionException, <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><B>Deprecated.</B> <I>Use <CODE>GeneralEnvelope(GridRange, PixelInCell, MathTransform, CoordinateReferenceSystem)</CODE> instead.</I><P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE><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><DT><B>Since:</B></DT> <DD>2.3</DD></DL></DD></DL><HR><A NAME="getGridRange()"><!-- --></A><H3>getGridRange</H3><PRE>public GridRange <B>getGridRange</B>() throws <A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></PRE><DL><DD>Returns the valid coordinate range of a grid coverage. The lowest valid grid coordinate is zero for <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/BufferedImage.html" title="class or interface in java.awt.image"><CODE>BufferedImage</CODE></A>, but may be non-zero for arbitrary <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image"><CODE>RenderedImage</CODE></A>. A grid with 512 cells can have a minimum coordinate of 0 and maximum of 512, with 511 as the highest valid index.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getGridRange</CODE> in interface <CODE>GridGeometry</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The grid range (never ).<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></CODE> - if this grid geometry has no grid range (i.e. <code><A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#isDefined(int)">isDefined</A>(<A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#GRID_RANGE">GRID_RANGE</A>)</code> returned ).<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.html#getGridRange2D()"><CODE>GridGeometry2D.getGridRange2D()</CODE></A></DL></DD></DL><HR><A NAME="getGridToCoordinateSystem()"><!-- --></A><H3>getGridToCoordinateSystem</H3><PRE>public MathTransform <B>getGridToCoordinateSystem</B>() throws <A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></PRE><DL><DD><B>Deprecated.</B> <I>Renamed as <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getGridToCRS()"><CODE>getGridToCRS()</CODE></A>.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>getGridToCoordinateSystem</CODE> in interface <CODE>GridGeometry</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></CODE></DL></DD></DL><HR><A NAME="getGridToCRS()"><!-- --></A><H3>getGridToCRS</H3><PRE>public MathTransform <B>getGridToCRS</B>() throws <A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></PRE><DL><DD>Returns the transform from grid coordinates to real world earth coordinates. The transform is often an affine transform. The coordinate reference system of the real world coordinates is given by <CODE>Coverage.getCoordinateReferenceSystem()</CODE>. <p> <strong>Note:</strong> OpenGIS requires that the transform maps <em>pixel centers</em> to real world coordinates. This is different from some other systems that map pixel's upper left corner.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getGridToCRS</CODE> in interface <CODE>GridGeometry</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The transform (never ).<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></CODE> - if this grid geometry has no transform (i.e. <code><A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#isDefined(int)">isDefined</A>(<A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#GRID_TO_CRS">GRID_TO_CRS</A>)</code> returned ).<DT><B>Since:</B></DT> <DD>2.3</DD><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.html#getGridToCRS2D()"><CODE>GridGeometry2D.getGridToCRS2D()</CODE></A></DL></DD></DL><HR><A NAME="getGridToCRS(org.opengis.referencing.datum.PixelInCell)"><!-- --></A><H3>getGridToCRS</H3><PRE>public MathTransform <B>getGridToCRS</B>(PixelInCell halfPixel) throws <A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></PRE><DL><DD>Returns the transform from grid coordinates to real world earth coordinates. This is similar to <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getGridToCRS()"><CODE>getGridToCRS()</CODE></A> except that the transform may maps other parts than pixel center.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>halfPixel</CODE> - The pixel part to map.<DT><B>Returns:</B><DD>The transform (never ).<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid">InvalidGridGeometryException</A></CODE> - if this grid geometry has no transform (i.e. <code><A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#isDefined(int)">isDefined</A>(<A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#GRID_TO_CRS">GRID_TO_CRS</A>)</code> returned ).<DT><B>Since:</B></DT> <DD>2.3</DD></DL></DD></DL><HR><A NAME="isDefined(int)"><!-- --></A><H3>isDefined</H3><PRE>public boolean <B>isDefined</B>(int bitmask) 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>Returns if all the parameters specified by the argument are set.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bitmask</CODE> - Any combinaison of <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#CRS"><CODE>CRS</CODE></A>, <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#ENVELOPE"><CODE>ENVELOPE</CODE></A>, <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#GRID_RANGE"><CODE>GRID_RANGE</CODE></A> and <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#GRID_TO_CRS"><CODE>GRID_TO_CRS</CODE></A>.<DT><B>Returns:</B><DD> if all specified attributes are defined (i.e. invoking the corresponding method will not thrown an <A HREF="../../../../org/geotools/coverage/grid/InvalidGridGeometryException.html" title="class in org.geotools.coverage.grid"><CODE>InvalidGridGeometryException</CODE></A>).<DT><B>Throws:</B><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 the specified bitmask is not a combinaison of known masks.<DT><B>Since:</B></DT> <DD>2.2</DD></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash value for this grid geometry. This value need not remain consistent between different implementations of the same class.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> object)</PRE><DL><DD>Compares the specified object with this grid geometry for equality.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string repr閟entation of this grid geometry. The returned string is implementation dependent. It is usually provided for debugging purposes.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GeneralGridGeometry.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/coverage/grid/GeneralGridCoordinates.html" title="class in org.geotools.coverage.grid"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/coverage/grid/GeneralGridRange.html" title="class in org.geotools.coverage.grid"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="GeneralGridGeometry.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -