📄 abstractcs.html
字号:
<DD>Returns the axis for this coordinate system at the specified dimension.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getAxis</CODE> in interface <CODE>CoordinateSystem</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dimension</CODE> - The zero based index of axis.<DT><B>Returns:</B><DD>The axis at the specified dimension.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if is out of bounds.</DL></DD></DL><HR><A NAME="swapAndScaleAxis(org.opengis.referencing.cs.CoordinateSystem, org.opengis.referencing.cs.CoordinateSystem)"><!-- --></A><H3>swapAndScaleAxis</H3><PRE>public static Matrix <B>swapAndScaleAxis</B>(CoordinateSystem sourceCS, CoordinateSystem targetCS) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>, <A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/ConversionException.html" title="class or interface in javax.units">ConversionException</A></PRE><DL><DD>Returns an affine transform between two coordinate systems. Only units and axis order (e.g. transforming from (NORTH,WEST) to (EAST,NORTH are taken in account. <P><STRONG>Example:</STRONG> If coordinates in are (<var>x</var>,<var>y</var>) pairs in metres and coordinates in are (-<var>y</var>,<var>x</var>) pairs in centimetres, then the transformation can be performed as below:</P> <pre><blockquote> [-y(cm)] [ 0 -100 0 ] [x(m)] [ x(cm)] = [ 100 0 0 ] [y(m)] [ 1 ] [ 0 0 1 ] [1 ] </blockquote></pre><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sourceCS</CODE> - The source coordinate system.<DD><CODE>targetCS</CODE> - The target coordinate system.<DT><B>Returns:</B><DD>The conversion from to as an affine transform. Only axis direction and units are taken in account.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if axis doesn't matches, or the CS doesn't have the same geometry.<DD><CODE><A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/ConversionException.html" title="class or interface in javax.units">ConversionException</A></CODE> - if the unit conversion is non-linear.</DL></DD></DL><HR><A NAME="standard(org.opengis.referencing.cs.CoordinateSystem)"><!-- --></A><H3>standard</H3><PRE>public static CoordinateSystem <B>standard</B>(CoordinateSystem cs) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Returns a coordinate system with "standard" axis order and units. This method returns one of the predefined constants with axis in (<var>longitude</var>,<var>latitude</var>) or (<var>X</var>,<var>Y</var>) order, and units in degree or metres. This method is typically used together with <A HREF="../../../../org/geotools/referencing/cs/AbstractCS.html#swapAndScaleAxis(org.opengis.referencing.cs.CoordinateSystem, org.opengis.referencing.cs.CoordinateSystem)"><CODE>swapAndScaleAxis</CODE></A> for the creation of a transformation step before some math transform. Example: <blockquote><pre> Matrix step1 = swapAndScaleAxis(sourceCS, standard(sourceCS)); Matrix step2 = ... some transform operating on standard axis ... Matrix step3 = swapAndScaleAxis(standard(targetCS), targetCS); </pre></blockquote> <p> A rational for standard axis order and units is explained in the <cite>Axis units and direction</cite> section in the <A HREF="../../../../org/geotools/referencing/operation/projection/package-summary.html">description of map projection package</A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cs</CODE> - The coordinate system.<DT><B>Returns:</B><DD>A constant similar to the specified with "standard" axis.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the specified coordinate system is unknow to this method.<DT><B>Since:</B></DT> <DD>2.2</DD></DL></DD></DL><HR><A NAME="distance(double[], double[])"><!-- --></A><H3>distance</H3><PRE>public <A HREF="../../../../org/geotools/measure/Measure.html" title="class in org.geotools.measure">Measure</A> <B>distance</B>(double[] coord1, double[] coord2) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A>, MismatchedDimensionException</PRE><DL><DD>Computes the distance between two points. This method is not available for all coordinate systems. For example, <A HREF="../../../../org/geotools/referencing/cs/DefaultEllipsoidalCS.html" title="class in org.geotools.referencing.cs">ellipsoidal CS</A> doesn't have suffisient information.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>coord1</CODE> - Coordinates of the first point.<DD><CODE>coord2</CODE> - Coordinates of the second point.<DT><B>Returns:</B><DD>The distance between and .<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - if this coordinate system can't compute distances.<DD><CODE>MismatchedDimensionException</CODE> - if a coordinate doesn't have the expected dimension.</DL></DD></DL><HR><A NAME="equals(org.geotools.referencing.AbstractIdentifiedObject, boolean)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../../org/geotools/referencing/AbstractIdentifiedObject.html" title="class in org.geotools.referencing">AbstractIdentifiedObject</A> object, boolean compareMetadata)</PRE><DL><DD>Compares the specified object with this coordinate system for equality.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/AbstractIdentifiedObject.html#equals(org.geotools.referencing.AbstractIdentifiedObject, boolean)">equals</A></CODE> in class <CODE><A HREF="../../../../org/geotools/referencing/AbstractIdentifiedObject.html" title="class in org.geotools.referencing">AbstractIdentifiedObject</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - The object to compare to .<DD><CODE>compareMetadata</CODE> - for performing a strict comparaison, or for comparing only properties relevant to transformations.<DT><B>Returns:</B><DD> if both objects are equal.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash value for this coordinate system.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/AbstractIdentifiedObject.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../../org/geotools/referencing/AbstractIdentifiedObject.html" title="class in org.geotools.referencing">AbstractIdentifiedObject</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The hash code value. This value doesn't need to be the same in past or future versions of this class.</DL></DD></DL><HR><A NAME="formatWKT(org.geotools.referencing.wkt.Formatter)"><!-- --></A><H3>formatWKT</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatWKT</B>(<A HREF="../../../../org/geotools/referencing/wkt/Formatter.html" title="class in org.geotools.referencing.wkt">Formatter</A> formatter)</PRE><DL><DD>Format the inner part of a <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well Known Text</cite> (WKT)</A> element. Note that WKT is not yet defined for coordinate system. Current implementation list the axis contained in this CS.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#formatWKT(org.geotools.referencing.wkt.Formatter)">formatWKT</A></CODE> in class <CODE><A HREF="../../../../org/geotools/referencing/wkt/Formattable.html" title="class in org.geotools.referencing.wkt">Formattable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>formatter</CODE> - The formatter to use.<DT><B>Returns:</B><DD>The WKT element name. Current implementation default to the class name.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#toWKT()"><CODE>Formattable.toWKT()</CODE></A>, <A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#toString()"><CODE>Formattable.toString()</CODE></A></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> </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/AbstractCS.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"> PREV CLASS <A HREF="../../../../org/geotools/referencing/cs/DefaultAffineCS.html" title="class in org.geotools.referencing.cs"><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="AbstractCS.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: NESTED | <A HREF="#fields_inherited_from_class_AbstractIdentifiedObject">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: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -