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

📄 textrecordimagereader.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:22 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>TextRecordImageReader (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.image.io.TextRecordImageReader class"><META NAME="keywords" CONTENT="getColumnX()"><META NAME="keywords" CONTENT="getColumnY()"><META NAME="keywords" CONTENT="setInput()"><META NAME="keywords" CONTENT="getNumBands()"><META NAME="keywords" CONTENT="getWidth()"><META NAME="keywords" CONTENT="getHeight()"><META NAME="keywords" CONTENT="getLogicalBounds()"><META NAME="keywords" CONTENT="getTransform()"><META NAME="keywords" CONTENT="getExpectedRange()"><META NAME="keywords" CONTENT="parseLine()"><META NAME="keywords" CONTENT="read()"><META NAME="keywords" CONTENT="reset()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="TextRecordImageReader (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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/TextRecordImageReader.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/image/io/TextMatrixImageReader.Spi.html" title="class in org.geotools.image.io"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/image/io/TextRecordImageReader.Spi.html" title="class in org.geotools.image.io"><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="TextRecordImageReader.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_ImageReader">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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.image.io</FONT><BR>Class TextRecordImageReader</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReader.html" title="class or interface in javax.imageio">ImageReader</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/image/io/SimpleImageReader.html" title="class in org.geotools.image.io">SimpleImageReader</A>          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/image/io/TextImageReader.html" title="class in org.geotools.image.io">TextImageReader</A>              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>TextRecordImageReader</B></PRE><HR><DL><DT>public class <B>TextRecordImageReader</B><DT>extends <A HREF="../../../../org/geotools/image/io/TextImageReader.html" title="class in org.geotools.image.io">TextImageReader</A></DL><P>Image decoder for text files storing pixel values as records. Such text files use one line (record) by pixel. Each line contains at least 3 columns (in arbitrary order): <ul>   <li>Pixel's <var>x</var> coordinate.</li>   <li>Pixel's <var>y</var> coordinate.</li>   <li>An arbitrary number of pixel values.</li> </ul> For example, some Sea Level Anomaly (SLA) files contains rows of longitude (degrees), latitude (degrees), SLA (cm), East/West current (cm/s) and North/South current (cm/s), as below: <blockquote><pre> 45.1250 -29.8750    -7.28     10.3483     -0.3164 45.1250 -29.6250    -4.97     11.8847      3.6192 45.1250 -29.3750    -2.91      3.7900      3.0858 45.1250 -29.1250    -3.48     -5.1833     -5.0759 45.1250 -28.8750    -4.36     -1.8129    -16.3689 45.1250 -28.6250    -3.91      7.5577    -24.6801 </pre>(...etc...) </blockquote> From this decoder point of view, the two first columns (longitude and latitude) are pixel's logical coordinate (<var>x</var>,<var>y</var>), while the three last columns are three image's bands. The whole file contains only one image (unless <A HREF="../../../../org/geotools/image/io/SimpleImageReader.html#getNumImages(boolean)"><CODE>SimpleImageReader.getNumImages(boolean)</CODE></A> has been overridden). All (<var>x</var>,<var>y</var>) coordinates belong to pixel's center. This decoder will automatically translate (<var>x</var>,<var>y</var>) coordinates from logical space to pixel space. The <A HREF="../../../../org/geotools/image/io/TextRecordImageReader.html#getTransform(int)"><CODE>getTransform(int)</CODE></A> method provides a convenient <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/AffineTransform.html" title="class or interface in java.awt.geom"><CODE>AffineTransform</CODE></A> for performing coordinate transformations between pixel and logical spaces. <p> By default,  assumes that <var>x</var> and <var>y</var> coordinates appear in column #0 and 1 respectively. It also assumes that numeric values are encoded using current defaults <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/charset/Charset.html" title="class or interface in java.nio.charset"><CODE>Charset</CODE></A> and <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util"><CODE>Locale</CODE></A>, and that there is no pad value. The easiest way to change the default setting is to create a <A HREF="../../../../org/geotools/image/io/TextRecordImageReader.Spi.html" title="class in org.geotools.image.io"><CODE>TextRecordImageReader.Spi</CODE></A> subclass. There is no need to subclass , unless you want more control on the decoding process.<P><P><DL><DT><B>Since:</B></DT>  <DD>2.1</DD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -