⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gridcoveragefactory.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DD></DL><HR><A NAME="create(java.lang.CharSequence, java.awt.image.RenderedImage, org.opengis.spatialschema.geometry.Envelope, org.geotools.coverage.GridSampleDimension[], org.opengis.coverage.grid.GridCoverage[], java.util.Map)"><!-- --></A><H3>create</H3><PRE>public <A HREF="../../../../org/geotools/coverage/grid/GridCoverage2D.html" title="class in org.geotools.coverage.grid">GridCoverage2D</A> <B>create</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;name,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A>&nbsp;image,                             Envelope&nbsp;envelope,                             <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A>[]&nbsp;bands,                             GridCoverage[]&nbsp;sources,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;properties)</PRE><DL><DD>Constructs a grid coverage from the specified <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">image</A> and envelope. An <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/AffineTransform.html" title="class or interface in java.awt.geom">affine transform</A> will be computed automatically from the specified envelope using heuristic rules described below. <p> This convenience constructor assumes that axis order in the supplied image matches exactly axis order in the supplied envelope. In other words, in the usual case where axis order in the image is (<var>column</var>, <var>row</var>), then the envelope should probably have a (<var>longitude</var>, <var>latitude</var>) or (<var>easting</var>, <var>northing</var>) axis order. <p> An exception to the above rule applies for CRS using exactly the following axis order: (<CODE>NORTH</CODE>|<CODE>SOUTH</CODE>, <CODE>EAST</CODE>|<CODE>WEST</CODE>). An example of such CRS is . This convenience constructor will interchange automatically the (<var>y</var>,<var>x</var>) axis for such CRS. <p> If more control on axis order and direction reversal is wanted, use the <A HREF="../../../../org/geotools/coverage/grid/GridCoverageFactory.html#create(java.lang.CharSequence, java.awt.image.RenderedImage, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.geotools.coverage.GridSampleDimension[], org.opengis.coverage.grid.GridCoverage[], java.util.Map)">constructor variant expecting an explicit transform</A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The grid coverage name.<DD><CODE>image</CODE> - The image.<DD><CODE>envelope</CODE> - The grid coverage cordinates. This envelope must have at least two                   dimensions.   The two first dimensions describe the image location                   along <var>x</var> and <var>y</var> axis. The other dimensions are                   optional and may be used to locate the image on a vertical axis or                   on the time axis.<DD><CODE>bands</CODE> - Sample dimensions for each image band, or  for default                   sample dimensions. If non-null, then this array's length must matches                   the number of bands in .<DD><CODE>sources</CODE> - The sources for this grid coverage, or  if none.<DD><CODE>properties</CODE> - The set of properties for this coverage, or  if there is none.<DT><B>Since:</B></DT>  <DD>2.2</DD></DL></DD></DL><HR><A NAME="create(java.lang.CharSequence, java.awt.image.RenderedImage, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.geotools.coverage.GridSampleDimension[], org.opengis.coverage.grid.GridCoverage[], java.util.Map)"><!-- --></A><H3>create</H3><PRE>public <A HREF="../../../../org/geotools/coverage/grid/GridCoverage2D.html" title="class in org.geotools.coverage.grid">GridCoverage2D</A> <B>create</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;name,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A>&nbsp;image,                             CoordinateReferenceSystem&nbsp;crs,                             MathTransform&nbsp;gridToCRS,                             <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A>[]&nbsp;bands,                             GridCoverage[]&nbsp;sources,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;properties)</PRE><DL><DD>Constructs a grid coverage from the specified <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">image</A> and "<A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getGridToCoordinateSystem()">grid to CRS</A>" transform.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The grid coverage name.<DD><CODE>image</CODE> - The image.<DD><CODE>crs</CODE> - The coordinate reference system. This specifies the CRS used when                   accessing a grid coverage with the  methods. The                   number of dimensions must matches the number of target dimensions                   of .<DD><CODE>gridToCRS</CODE> - The math transform from grid to coordinate reference system.<DD><CODE>bands</CODE> - Sample dimension for each image band, or  for default sample                   dimensions. If non-null, then this array's length must matches the number                   of bands in the .<DD><CODE>sources</CODE> - The sources for this grid coverage, or  if none.<DD><CODE>properties</CODE> - The set of properties for this coverage, or  if there is none.</DL></DD></DL><HR><A NAME="create(java.lang.CharSequence, java.awt.image.RenderedImage, org.geotools.coverage.grid.GridGeometry2D, org.geotools.coverage.GridSampleDimension[], org.opengis.coverage.grid.GridCoverage[], java.util.Map)"><!-- --></A><H3>create</H3><PRE>public <A HREF="../../../../org/geotools/coverage/grid/GridCoverage2D.html" title="class in org.geotools.coverage.grid">GridCoverage2D</A> <B>create</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;name,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A>&nbsp;image,                             <A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.html" title="class in org.geotools.coverage.grid">GridGeometry2D</A>&nbsp;gridGeometry,                             <A HREF="../../../../org/geotools/coverage/GridSampleDimension.html" title="class in org.geotools.coverage">GridSampleDimension</A>[]&nbsp;bands,                             GridCoverage[]&nbsp;sources,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;properties)</PRE><DL><DD>Constructs a grid coverage from the specified <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">image</A> and <A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.html" title="class in org.geotools.coverage.grid">grid geometry</A>. The envelope (including the coordinate reference system) is inferred from the grid geometry. <p> This is the most general constructor, the one that gives the maximum control on the grid coverage to be created. Every  methods will ultimately delegate their work this master method. Developpers can override this method if they want to intercept the creation of all <A HREF="../../../../org/geotools/coverage/grid/GridCoverage2D.html" title="class in org.geotools.coverage.grid"><CODE>GridCoverage2D</CODE></A> objects in this factory.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The grid coverage name.<DD><CODE>image</CODE> - The image.<DD><CODE>gridGeometry</CODE> - The grid geometry (must contains an <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getEnvelope()">envelope</A> with its <A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getCoordinateReferenceSystem()">coordinate reference system</A> and a "<A HREF="../../../../org/geotools/coverage/grid/GeneralGridGeometry.html#getGridToCoordinateSystem()">grid to CRS</A>" transform).<DD><CODE>bands</CODE> - Sample dimensions for each image band, or  for default sample                     dimensions. If non-null, then this array's length must matches the number                     of bands in .<DD><CODE>sources</CODE> - The sources for this grid coverage, or  if none.<DD><CODE>properties</CODE> - The set of properties for this coverage, or  none.<DT><B>Since:</B></DT>  <DD>2.2</DD></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GridCoverageFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/geotools/coverage/grid/GridCoverage2D.Renderable.html" title="class in org.geotools.coverage.grid"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/coverage/grid/GridGeometry2D.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>  &nbsp;&nbsp;<A HREF="GridCoverageFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_AbstractFactory">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 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 + -