orderedaxisauthorityfactory.html

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

HTML
820
字号
<!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:20 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>OrderedAxisAuthorityFactory (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.referencing.factory.OrderedAxisAuthorityFactory class"><META NAME="keywords" CONTENT="forceStandardDirections"><META NAME="keywords" CONTENT="forceStandardUnits"><META NAME="keywords" CONTENT="register()"><META NAME="keywords" CONTENT="unregister()"><META NAME="keywords" CONTENT="compare()"><META NAME="keywords" CONTENT="replace()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="OrderedAxisAuthorityFactory (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/OrderedAxisAuthorityFactory.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/factory/IdentifiedObjectSet.html" title="class in org.geotools.referencing.factory"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/referencing/factory/PropertyAuthorityFactory.html" title="class in org.geotools.referencing.factory"><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="OrderedAxisAuthorityFactory.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="#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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.referencing.factory</FONT><BR>Class OrderedAxisAuthorityFactory</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="../../../../org/geotools/factory/AbstractFactory.html" title="class in org.geotools.factory">AbstractFactory</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/referencing/factory/ReferencingFactory.html" title="class in org.geotools.referencing.factory">ReferencingFactory</A>          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/referencing/factory/AbstractAuthorityFactory.html" title="class in org.geotools.referencing.factory">AbstractAuthorityFactory</A>              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/referencing/factory/AuthorityFactoryAdapter.html" title="class in org.geotools.referencing.factory">AuthorityFactoryAdapter</A>                  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/referencing/factory/TransformedAuthorityFactory.html" title="class in org.geotools.referencing.factory">TransformedAuthorityFactory</A>                      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>OrderedAxisAuthorityFactory</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>AuthorityFactory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Comparator.html" title="class or interface in java.util">Comparator</A>, CRSAuthorityFactory, CSAuthorityFactory, <A HREF="../../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory">Factory</A>, Factory, <A HREF="../../../../org/geotools/factory/OptionalFactory.html" title="interface in org.geotools.factory">OptionalFactory</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/RegisterableService.html" title="class or interface in javax.imageio.spi">RegisterableService</A></DD></DL><HR><DL><DT>public class <B>OrderedAxisAuthorityFactory</B><DT>extends <A HREF="../../../../org/geotools/referencing/factory/TransformedAuthorityFactory.html" title="class in org.geotools.referencing.factory">TransformedAuthorityFactory</A><DT>implements CSAuthorityFactory, CRSAuthorityFactory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Comparator.html" title="class or interface in java.util">Comparator</A></DL><P>An authority factory which delegates all the work to an other factory, and reorder the axis in some pre-determined order. This factory is mostly used by application expecting geographic coordinates in (<var>longitude</var>, <var>latitude</var>) order, while most geographic CRS specified in the <A HREF="http://www.epsg.org">EPSG database</A> use the opposite axis order. <p> It is better to avoid this class if you can. This class exists primarily for compatibility with external data or applications that assume (<var>longitude</var>, <var>latitude</var>) axis order no matter what the EPSG database said, for example Shapefiles. <p> The axis order can be specified at construction time as an array of axis directions. If no such array is explicitly specified, then the default order is East, East-North-East, North-East, North-North-East, North, Up, Geocentric X, Geocentric Y, Geocentric Z, Column, Row, Display right, Display up and Future. This means that, for example, axis with East or West direction will be placed before any axis with North or South direction. Axis directions not specified in the table (for example <CODE>OTHER</CODE>) will be ordered last. This is somewhat equivalent to the ordering of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#NaN" title="class or interface in java.lang"><CODE>NaN</CODE></A> values in an array of . <p> <strong>Notes:</strong> <ul>   <li>This class compares only the "absolute" axis       directions, so North and South are considered equivalent.</li>   <li>The default direction order may changes in future Geotools version in order       to fit what appears to be the most common usage on the market.</li>   <li>The actual axis ordering is determined by the <A HREF="../../../../org/geotools/referencing/factory/OrderedAxisAuthorityFactory.html#compare(java.lang.Object, java.lang.Object)"><CODE>compare</CODE></A> method       implementation. Subclasses may override this method if the want to provide a more       sophesticated axis ordering.</li> </ul> <p> For some authority factories, an instance of this class can be obtained by passing a <A HREF="../../../../org/geotools/factory/Hints.html#FORCE_LONGITUDE_FIRST_AXIS_ORDER"><CODE>FORCE_LONGITUDE_FIRST_AXIS_ORDER</CODE></A> hint to the <code><A HREF="../../../../org/geotools/referencing/FactoryFinder.html#getCRSAuthorityFactory(java.lang.String, org.geotools.factory.Hints)">FactoryFinder.getCRSAuthorityFactory</A>(...)</code> method. Whatever this hint is supported or not is authority dependent. Example: <blockquote><pre> Hints                   hints = new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE); CRSAuthorityFactory   factory = FactoryFinder.getCRSAuthorityFactory("EPSG", hints); CoordinateReferenceSystem crs = factory.createCoordinateReferenceSystem("EPSG:4326"); </pre></blockquote> This class is named <cite>ordered axis authority factory</cite> instead of something like <cite>longitude first axis order</cite> because the axis order can be user-supplied. The (<var>longitude</var>, <var>latitude</var>) order just appears to be the default one.<P><P><DL><DT><B>Since:</B></DT>  <DD>2.2</DD><DT><B>Author:</B></DT>  <DD>Martin Desruisseaux</DD><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/factory/Hints.html#FORCE_LONGITUDE_FIRST_AXIS_ORDER"><CODE>Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER</CODE></A>, <A HREF="../../../../org/geotools/factory/Hints.html#FORCE_STANDARD_AXIS_UNITS"><CODE>Hints.FORCE_STANDARD_AXIS_UNITS</CODE></A><DT><B>Tutorial:</B></DT><DD><A HREF="http://docs.codehaus.org/display/GEOTOOLS/The+axis+order+issue">The axis order issue</A></DD><DT><B>Module:</B></DT><DD><CODE><B>module/referencing</B></CODE> &nbsp; (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-referencing/"><CODE>gt2-referencing.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/referencing/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/referencing/src/org/geotools/referencing/factory/OrderedAxisAuthorityFactory.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/referencing/factory/OrderedAxisAuthorityFactory.html#forceStandardDirections">forceStandardDirections</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if this authority factory should also force the axis to their standard direction. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">

⌨️ 快捷键说明

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