📄 metadatabuilder.html
字号:
<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/coverage/io/MetadataBuilder.html#getSource()">getSource</A></B>()</CODE><BR> Returns the source file name or URL. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getUnit()">getUnit</A></B>()</CODE><BR> Returns the units. </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/coverage/io/MetadataBuilder.html#listMetadata(java.io.Writer)">listMetadata</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> out)</CODE><BR> List all metadata to the specified stream. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#load(java.io.BufferedReader)">load</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/BufferedReader.html" title="class or interface in java.io">BufferedReader</A> in)</CODE><BR> Reads all metadata from a stream. </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/coverage/io/MetadataBuilder.html#load(java.io.File)">load</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> header)</CODE><BR> Reads all metadata from a text file. </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/coverage/io/MetadataBuilder.html#load(java.net.URL)">load</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> header)</CODE><BR> Reads all metadata from an URL. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#parseLine(java.lang.String)">parseLine</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> line)</CODE><BR> Parses a line and add the key-value pair to this metadata set. </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/coverage/io/MetadataBuilder.html#setFormatPattern(java.lang.Class, java.lang.String)">setFormatPattern</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> type, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> pattern)</CODE><BR> Set the pattern to use for parsing and formatting values of the specified type. </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/coverage/io/MetadataBuilder.html#setSeparator(java.lang.String)">setSeparator</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> separator)</CODE><BR> Set the characters to use as separator between keys and values.</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/coverage/io/MetadataBuilder.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this metadata set. </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#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <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#hashCode()" title="class or interface in java.lang">hashCode</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 =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="COORDINATE_REFERENCE_SYSTEM"><!-- --></A><H3>COORDINATE_REFERENCE_SYSTEM</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>COORDINATE_REFERENCE_SYSTEM</B></PRE><DL><DD>Key for the coordinate reference system. The <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getCoordinateReferenceSystem()"><CODE>getCoordinateReferenceSystem()</CODE></A> method looks for this metadata.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#UNITS"><CODE>UNITS</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#DATUM"><CODE>DATUM</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#PROJECTION"><CODE>PROJECTION</CODE></A></DL></DL><HR><A NAME="UNITS"><!-- --></A><H3>UNITS</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>UNITS</B></PRE><DL><DD>Key for the coordinate system axis units. The <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getUnit()"><CODE>getUnit()</CODE></A> method looks for this metadata. The following heuristic rule may be applied in order to infer the CRS from the units: <p> <ul> <li>If the unit is compatible with degrees, then a geographic CRS is assumed.</li> <li>Otherwise, if this unit is compatible with metres, then a projected CRS is assumed.</li> </ul><P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#ELLIPSOID"><CODE>ELLIPSOID</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#DATUM"><CODE>DATUM</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#PROJECTION"><CODE>PROJECTION</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#COORDINATE_REFERENCE_SYSTEM"><CODE>COORDINATE_REFERENCE_SYSTEM</CODE></A></DL></DL><HR><A NAME="DATUM"><!-- --></A><H3>DATUM</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>DATUM</B></PRE><DL><DD>Key for the coordinate reference system's datum. The <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getGeodeticDatum()"><CODE>getGeodeticDatum()</CODE></A> method looks for this metadata.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#UNITS"><CODE>UNITS</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#ELLIPSOID"><CODE>ELLIPSOID</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#PROJECTION"><CODE>PROJECTION</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#COORDINATE_REFERENCE_SYSTEM"><CODE>COORDINATE_REFERENCE_SYSTEM</CODE></A></DL></DL><HR><A NAME="ELLIPSOID"><!-- --></A><H3>ELLIPSOID</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>ELLIPSOID</B></PRE><DL><DD>Key for the coordinate reference system ellipsoid. The <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getEllipsoid()"><CODE>getEllipsoid()</CODE></A> method looks for this metadata.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#UNITS"><CODE>UNITS</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#DATUM"><CODE>DATUM</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#PROJECTION"><CODE>PROJECTION</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#COORDINATE_REFERENCE_SYSTEM"><CODE>COORDINATE_REFERENCE_SYSTEM</CODE></A></DL></DL><HR><A NAME="OPERATION_METHOD"><!-- --></A><H3>OPERATION_METHOD</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>OPERATION_METHOD</B></PRE><DL><DD>Key for the operation method. The <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getProjection()"><CODE>getProjection()</CODE></A> method looks for this metadata. The operation method name determines the math transform implementation and its list of parameters. This name is the projection <cite>classification</cite>. <p> If this metadata is not defined, then the operation name is inferred from the <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#PROJECTION">projection name</A>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#PROJECTION"><CODE>PROJECTION</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#COORDINATE_REFERENCE_SYSTEM"><CODE>COORDINATE_REFERENCE_SYSTEM</CODE></A></DL></DL><HR><A NAME="PROJECTION"><!-- --></A><H3>PROJECTION</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>PROJECTION</B></PRE><DL><DD>Key for the projection. The <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getProjection()"><CODE>getProjection()</CODE></A> method looks for this metadata. If the metadata is not defined, then the projection name is assumed the same than the <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#OPERATION_METHOD">operation method</A> name.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#SEMI_MAJOR"><CODE>SEMI_MAJOR</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#SEMI_MINOR"><CODE>SEMI_MINOR</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#LATITUDE_OF_ORIGIN"><CODE>LATITUDE_OF_ORIGIN</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#CENTRAL_MERIDIAN"><CODE>CENTRAL_MERIDIAN</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#FALSE_EASTING"><CODE>FALSE_EASTING</CODE></A>, <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#FALSE_NORTHING"><CODE>FALSE_NORTHING</CODE></A></DL></DL><HR><A NAME="SEMI_MAJOR"><!-- --></A><H3>SEMI_MAJOR</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A> <B>SEMI_MAJOR</B></PRE><DL><DD>Key for the projection parameter. There is no specific method for this key. However, this key may be queried indirectly by <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getProjection()"><CODE>getProjection()</CODE></A>.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -