parser.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 601 行 · 第 1/3 页

HTML
601
字号
<DL><DD>Constructs a parser for the specified set of symbols using the specified set of factories.<P><DT><B>Parameters:</B><DD><CODE>symbols</CODE> - The symbols for parsing and formatting numbers.<DD><CODE>factories</CODE> - The factories to use.</DL><HR><A NAME="Parser(org.geotools.referencing.wkt.Symbols, org.opengis.referencing.datum.DatumFactory, org.opengis.referencing.cs.CSFactory, org.opengis.referencing.crs.CRSFactory, org.opengis.referencing.operation.MathTransformFactory)"><!-- --></A><H3>Parser</H3><PRE>public <B>Parser</B>(<A HREF="../../../../org/geotools/referencing/wkt/Symbols.html" title="class in org.geotools.referencing.wkt">Symbols</A>&nbsp;symbols,              DatumFactory&nbsp;datumFactory,              CSFactory&nbsp;csFactory,              CRSFactory&nbsp;crsFactory,              MathTransformFactory&nbsp;mtFactory)</PRE><DL><DD>Constructs a parser for the specified set of symbols using the specified factories.<P><DT><B>Parameters:</B><DD><CODE>symbols</CODE> - The symbols for parsing and formatting numbers.<DD><CODE>datumFactory</CODE> - The factory to use for creating datum.<DD><CODE>csFactory</CODE> - The factory to use for creating coordinate systems.<DD><CODE>crsFactory</CODE> - The factory to use for creating coordinate reference systems.<DD><CODE>mtFactory</CODE> - The factory to use for creating math transform objects.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="parseCoordinateReferenceSystem(java.lang.String)"><!-- --></A><H3>parseCoordinateReferenceSystem</H3><PRE>public CoordinateReferenceSystem <B>parseCoordinateReferenceSystem</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>&nbsp;text)                                                                                     throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text">ParseException</A></PRE><DL><DD>Parses a coordinate reference system element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - The text to be parsed.<DT><B>Returns:</B><DD>The coordinate reference system.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text">ParseException</A></CODE> - if the string can't be parsed.</DL></DD></DL><HR><A NAME="parse(org.geotools.referencing.wkt.Element)"><!-- --></A><H3>parse</H3><PRE>protected <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>parse</B>(<A HREF="../../../../org/geotools/referencing/wkt/Element.html" title="class in org.geotools.referencing.wkt">Element</A>&nbsp;element)                throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text">ParseException</A></PRE><DL><DD>Parses the next element in the specified <cite>Well Know Text</cite> (WKT) tree.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/wkt/MathTransformParser.html#parse(org.geotools.referencing.wkt.Element)">parse</A></CODE> in class <CODE><A HREF="../../../../org/geotools/referencing/wkt/MathTransformParser.html" title="class in org.geotools.referencing.wkt">MathTransformParser</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - The element to be parsed.<DT><B>Returns:</B><DD>The object.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text">ParseException</A></CODE> - if the element can't be parsed.</DL></DD></DL><HR><A NAME="alterProperties(java.util.Map)"><!-- --></A><H3>alterProperties</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> <B>alterProperties</B>(<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>Returns the properties to be given to the parsed object. This method is invoked automatically by the parser for the <A HREF="../../../../org/geotools/referencing/wkt/Element.html#isRoot()">root element</A> only. This method expect on input the properties parsed from the  element, and returns on output the properties to give to the object to be created. The default implementation returns the  map unchanged. Subclasses may override this method in order to add or change properties. <p> <strong>Example:</strong> if a subclass want to add automatically an authority code when no  element was explicitly set in the WKT, then it may test for the <CODE>IdentifiedObject.IDENTIFIERS_KEY</CODE> key and add automatically an entry if this key was missing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>properties</CODE> - The properties parsed from the WKT file. Entries can be added, removed         or modified directly in this map.<DT><B>Returns:</B><DD>The properties to be given to the parsed object. This is usually          (maybe after modifications), but could also be a new map.<DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="getClassOf(java.lang.String)"><!-- --></A><H3>getClassOf</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> <B>getClassOf</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>&nbsp;element)</PRE><DL><DD>Returns the class of the specified WKT element. For example for this method returns <code>ProjectedCRS.class</code> for element "".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - The WKT element name.<DT><B>Returns:</B><DD>The GeoAPI class of the specified element, or  if unknow.</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</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>[]&nbsp;args)</PRE><DL><DD>Read WKT strings from the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#in" title="class or interface in java.lang">standard input stream</A> and reformat them to the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#out" title="class or interface in java.lang">standard output stream</A>. The input is read until it reach the end-of-file ( if reading from the keyboard), or until an unparsable WKT has been hit. Optional arguments are: <TABLE CELLPADDING='0' CELLSPACING='0'>   <TR><TD NOWRAP><CODE>-authority</CODE> <VAR>&lt;name&gt;</VAR></TD>       <TD NOWRAP>&nbsp;The authority to prefer when choosing WKT entities names.</TD></TR>   <TR><TD NOWRAP><CODE>-indentation</CODE> <VAR>&lt;value&gt;</VAR></TD>       <TD NOWRAP>&nbsp;Set the indentation (0 for output on a single line)</TD></TR>   <TR><TD NOWRAP><CODE>-encoding</CODE> <VAR>&lt;code&gt;</VAR></TD>       <TD NOWRAP>&nbsp;Set the character encoding</TD></TR>   <TR><TD NOWRAP><CODE>-locale</CODE> <VAR>&lt;language&gt;</VAR></TD>       <TD NOWRAP>&nbsp;Set the language for the output (e.g. "fr" for French)</TD></TR> </TABLE><P><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>&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/Parser.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/referencing/wkt/MathTransformParser.html" title="class in org.geotools.referencing.wkt"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/referencing/wkt/Preprocessor.html" title="class in org.geotools.referencing.wkt"><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="Parser.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_classes_inherited_from_class_java.text.Format">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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 + =
减小字号Ctrl + -
显示快捷键?