📄 metadatabuilder.html
字号:
<!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>MetadataBuilder (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.coverage.io.MetadataBuilder class"><META NAME="keywords" CONTENT="COORDINATE_REFERENCE_SYSTEM"><META NAME="keywords" CONTENT="UNITS"><META NAME="keywords" CONTENT="DATUM"><META NAME="keywords" CONTENT="ELLIPSOID"><META NAME="keywords" CONTENT="OPERATION_METHOD"><META NAME="keywords" CONTENT="PROJECTION"><META NAME="keywords" CONTENT="SEMI_MAJOR"><META NAME="keywords" CONTENT="SEMI_MINOR"><META NAME="keywords" CONTENT="LATITUDE_OF_ORIGIN"><META NAME="keywords" CONTENT="CENTRAL_MERIDIAN"><META NAME="keywords" CONTENT="FALSE_EASTING"><META NAME="keywords" CONTENT="FALSE_NORTHING"><META NAME="keywords" CONTENT="X_MINIMUM"><META NAME="keywords" CONTENT="Y_MINIMUM"><META NAME="keywords" CONTENT="Z_MINIMUM"><META NAME="keywords" CONTENT="X_MAXIMUM"><META NAME="keywords" CONTENT="Y_MAXIMUM"><META NAME="keywords" CONTENT="Z_MAXIMUM"><META NAME="keywords" CONTENT="X_RESOLUTION"><META NAME="keywords" CONTENT="Y_RESOLUTION"><META NAME="keywords" CONTENT="Z_RESOLUTION"><META NAME="keywords" CONTENT="WIDTH"><META NAME="keywords" CONTENT="HEIGHT"><META NAME="keywords" CONTENT="DEPTH"><META NAME="keywords" CONTENT="getSeparator()"><META NAME="keywords" CONTENT="setSeparator()"><META NAME="keywords" CONTENT="getFormatPattern()"><META NAME="keywords" CONTENT="setFormatPattern()"><META NAME="keywords" CONTENT="clear()"><META NAME="keywords" CONTENT="load()"><META NAME="keywords" CONTENT="parseLine()"><META NAME="keywords" CONTENT="add()"><META NAME="keywords" CONTENT="addAlias()"><META NAME="keywords" CONTENT="contains()"><META NAME="keywords" CONTENT="get()"><META NAME="keywords" CONTENT="getAsDouble()"><META NAME="keywords" CONTENT="getAsInt()"><META NAME="keywords" CONTENT="getAsDate()"><META NAME="keywords" CONTENT="getAlias()"><META NAME="keywords" CONTENT="getSource()"><META NAME="keywords" CONTENT="getLocale()"><META NAME="keywords" CONTENT="getUnit()"><META NAME="keywords" CONTENT="getGeodeticDatum()"><META NAME="keywords" CONTENT="getEllipsoid()"><META NAME="keywords" CONTENT="getProjection()"><META NAME="keywords" CONTENT="getCoordinateReferenceSystem()"><META NAME="keywords" CONTENT="getGeographicBoundingBox()"><META NAME="keywords" CONTENT="getEnvelope()"><META NAME="keywords" CONTENT="getGridRange()"><META NAME="keywords" CONTENT="getSampleDimensions()"><META NAME="keywords" CONTENT="listMetadata()"><META NAME="keywords" CONTENT="toString()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="MetadataBuilder (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> </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/MetadataBuilder.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/io/ExoreferencedGridCoverageReader.html" title="class in org.geotools.coverage.io"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.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> <A HREF="MetadataBuilder.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: <A HREF="#nested_class_summary">NESTED</A> | <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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.coverage.io</FONT><BR>Class MetadataBuilder</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"><B>MetadataBuilder</B></PRE><HR><DL><DT>public class <B>MetadataBuilder</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL><P>Helper class for creating OpenGIS's object from a set of metadata. Metadata are <cite>key-value</cite> pairs, for example . There is a wide variety of ways to contruct OpenGIS's objects from <cite>key-value</cite> pairs, and supporting them is not always straightforward. The class tries to make the work easier. It defines a set of format-neutral keys (i.e. keys not related to any specific file format). Before parsing a file, the mapping between format-neutral keys and "real" keys used in a particuler file format <strong>must</strong> be specified. This mapping is constructed with calls to <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#addAlias(org.geotools.coverage.io.MetadataBuilder.Key, java.lang.String)"><CODE>addAlias(org.geotools.coverage.io.MetadataBuilder.Key, java.lang.String)</CODE></A>. For example, one may want to parse the following informations: <blockquote><pre> XMinimum = 217904.31 YMaximum = 5663495.1 XResolution = 1000.0000 YResolution = 1000.0000 Units = meters Projection = Mercator_1SP Central meridian = -15.2167 Latitude of origin = 28.0667 False easting = 0.00000000 False northing = 0.00000000 Ellipsoid = Clarke 1866 Datum = Clarke 1866 </pre></blockquote> Before to be used for parsing such informations, a object must be setup using the following code: <blockquote><pre> addAlias(<A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#X_MINIMUM"><CODE>X_MINIMUM</CODE></A>, "XMinimum"); addAlias(<A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#Y_MAXIMUM"><CODE>Y_MAXIMUM</CODE></A>, "YMaximum"); addAlias(<A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#X_RESOLUTION"><CODE>X_RESOLUTION</CODE></A>, "XResolution"); addAlias(<A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#Y_RESOLUTION"><CODE>Y_RESOLUTION</CODE></A>, "YResolution"); // etc... </pre></blockquote> Once the mapping is etablished, provides a set of methods for constructing various objects from those informations. For example, the <A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.html#getCoordinateReferenceSystem()"><CODE>getCoordinateReferenceSystem()</CODE></A> method constructs a <CODE>CoordinateReferenceSystem</CODE> object using available informations.<P><P><DL><DT><B>Since:</B></DT> <DD>2.2</DD><DT><B>Author:</B></DT> <DD>Martin Desruisseaux</DD><DT><B>Module:</B></DT><DD><CODE><B>module/coverage</B></CODE> (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-coverage/"><CODE>gt2-coverage.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/coverage/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/coverage/src/org/geotools/coverage/io/MetadataBuilder.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/io/MetadataBuilder.Key.html" title="class in org.geotools.coverage.io">MetadataBuilder.Key</A></B></CODE><BR> A key for fetching metadata in a format independent way. </TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -