📄 directposition2d.html
字号:
Returns the coordinate reference system in which the coordinate is given. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/DirectPosition2D.html#getCoordinates()">getCoordinates</A></B>()</CODE><BR> Returns a sequence of numbers that hold the coordinate of this position in its reference system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/DirectPosition2D.html#getDimension()">getDimension</A></B>()</CODE><BR> The length of coordinate sequence (the number of entries). </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/DirectPosition2D.html#getOrdinate(int)">getOrdinate</A></B>(int dimension)</CODE><BR> Returns the ordinate at the specified dimension.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> DirectPosition</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/DirectPosition2D.html#getPosition()">getPosition</A></B>()</CODE><BR> Returns always <code>this</code>, the direct position for this position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/DirectPosition2D.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns a hash value for this coordinate. </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/geometry/DirectPosition2D.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)">setCoordinateReferenceSystem</A></B>(CoordinateReferenceSystem crs)</CODE><BR> Set the coordinate reference system in which the coordinate is given.</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/geometry/DirectPosition2D.html#setLocation(org.opengis.spatialschema.geometry.DirectPosition)">setLocation</A></B>(DirectPosition position)</CODE><BR> Set this coordinate to the specified direct position. </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/geometry/DirectPosition2D.html#setOrdinate(int, double)">setOrdinate</A></B>(int dimension, double value)</CODE><BR> Sets the ordinate value along the specified dimension.</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/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/DirectPosition2D.html#toPoint2D()">toPoint2D</A></B>()</CODE><BR> Returns a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom"><CODE>Point2D</CODE></A> with the same coordinate as this direct position.</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/geometry/DirectPosition2D.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this coordinate. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_Point2D.Double"><!-- --></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/awt/geom/Point2D.Double.html" title="class or interface in java.awt.geom">Point2D.Double</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#getX()" title="class or interface in java.awt.geom">getX</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#getY()" title="class or interface in java.awt.geom">getY</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#setLocation(double, double)" title="class or interface in java.awt.geom">setLocation</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Point2D"><!-- --></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/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#clone()" title="class or interface in java.awt.geom">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#distance(double, double)" title="class or interface in java.awt.geom">distance</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#distance(double, double, double, double)" title="class or interface in java.awt.geom">distance</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#distance(java.awt.geom.Point2D)" title="class or interface in java.awt.geom">distance</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#distanceSq(double, double)" title="class or interface in java.awt.geom">distanceSq</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#distanceSq(double, double, double, double)" title="class or interface in java.awt.geom">distanceSq</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#distanceSq(java.awt.geom.Point2D)" title="class or interface in java.awt.geom">distanceSq</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#equals(java.lang.Object)" title="class or interface in java.awt.geom">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html#setLocation(java.awt.geom.Point2D)" title="class or interface in java.awt.geom">setLocation</A></CODE></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#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#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> <A NAME="methods_inherited_from_class_DirectPosition"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface DirectPosition</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DirectPosition2D()"><!-- --></A><H3>DirectPosition2D</H3><PRE>public <B>DirectPosition2D</B>()</PRE><DL><DD>Constructs a position initialized to (0,0) with a coordinate reference system.<P></DL><HR><A NAME="DirectPosition2D(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>DirectPosition2D</H3><PRE>public <B>DirectPosition2D</B>(CoordinateReferenceSystem crs)</PRE><DL><DD>Constructs a position with the specified coordinate reference system.<P></DL><HR><A NAME="DirectPosition2D(double, double)"><!-- --></A><H3>DirectPosition2D</H3><PRE>public <B>DirectPosition2D</B>(double x, double y)</PRE><DL><DD>Constructs a 2D position from the specified ordinates. Despite their name, the (<var>x</var>,<var>y</var>) coordinates don't need to be oriented toward (East, North). Those parameter names simply match the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#x" title="class or interface in java.awt.geom">x</A> and <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#y" title="class or interface in java.awt.geom">y</A> fields. See the <A HREF="../../../org/geotools/geometry/DirectPosition2D.html" title="class in org.geotools.geometry">class javadoc</A> for details.<P></DL><HR><A NAME="DirectPosition2D(org.opengis.referencing.crs.CoordinateReferenceSystem, double, double)"><!-- --></A><H3>DirectPosition2D</H3><PRE>public <B>DirectPosition2D</B>(CoordinateReferenceSystem crs, double x, double y)</PRE><DL><DD>Constructs a 2D position from the specified ordinates in the specified CRS. Despite their name, the (<var>x</var>,<var>y</var>) coordinates don't need to be oriented toward (East, North). Those parameter names simply match the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#x" title="class or interface in java.awt.geom">x</A> and <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.Double.html#y" title="class or interface in java.awt.geom">y</A> fields. The actual axis orientations are determined by the specified CRS. See the <A HREF="../../../org/geotools/geometry/DirectPosition2D.html" title="class in org.geotools.geometry">class javadoc</A> for details.<P></DL><HR><A NAME="DirectPosition2D(java.awt.geom.Point2D)"><!-- --></A><H3>DirectPosition2D</H3><PRE>public <B>DirectPosition2D</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> point)</PRE><DL><DD>Constructs a position from the specified <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom"><CODE>Point2D</CODE></A>.<P></DL><HR><A NAME="DirectPosition2D(org.opengis.spatialschema.geometry.DirectPosition)"><!-- --></A><H3>DirectPosition2D</H3><PRE>public <B>DirectPosition2D</B>(DirectPosition point)</PRE><DL><DD>Constructs a position initialized to the same values than the specified point.<P></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="getPosition()"><!-- --></A><H3>getPosition</H3><PRE>public DirectPosition <B>getPosition</B>()</PRE><DL><DD>Returns always <code>this</code>, the direct position for this position.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getPosition</CODE> in interface <CODE>Position</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCoordinateReferenceSystem()"><!-- --></A><H3>getCoordinateReferenceSystem</H3><PRE>public final CoordinateReferenceSystem <B>getCoordinateReferenceSystem</B>()</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -