📄 transformeddirectposition.html
字号:
<TD><CODE><A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#ordinates">ordinates</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#TransformedDirectPosition()">TransformedDirectPosition</A></B>()</CODE><BR> Creates a new direct position initialized with the <A HREF="../../../org/geotools/referencing/crs/DefaultGeographicCRS.html#WGS84">WGS84</A> CRS.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)">TransformedDirectPosition</A></B>(CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A> hints)</CODE><BR> Creates a new position which will contains the result of coordinate transformations from to . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)">TransformedDirectPosition</A></B>(CoordinateReferenceSystem crs, <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A> hints)</CODE><BR> <B>Deprecated.</B> <I>Replaced by <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)"><CODE>TransformedDirectPosition(CoordinateReferenceSystem, CoordinateReferenceSystem, Hints)</CODE></A>.</I></TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/TransformedDirectPosition.html#inverseTransform()">inverseTransform</A></B>()</CODE><BR> Returns a new point with the same coordinates than this one, but transformed in the given at <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)">construction time</A>. </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/TransformedDirectPosition.html#inverseTransform(org.opengis.referencing.crs.CoordinateReferenceSystem)">inverseTransform</A></B>(CoordinateReferenceSystem crs)</CODE><BR> Returns a new point with the same coordinates than this one, but transformed in the given CRS. </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/TransformedDirectPosition.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)">setCoordinateReferenceSystem</A></B>(CoordinateReferenceSystem crs)</CODE><BR> Sets 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> DirectPosition</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#transform(org.opengis.referencing.crs.CoordinateReferenceSystem)">transform</A></B>(CoordinateReferenceSystem crs)</CODE><BR> <B>Deprecated.</B> <I>Renamed as <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#inverseTransform(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>inverseTransform(org.opengis.referencing.crs.CoordinateReferenceSystem)</CODE></A>.</I></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/TransformedDirectPosition.html#transform(org.opengis.spatialschema.geometry.DirectPosition)">transform</A></B>(DirectPosition position)</CODE><BR> Transforms a given position and stores the result in this object. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_GeneralDirectPosition"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html" title="class in org.geotools.geometry">GeneralDirectPosition</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#clone()">clone</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getCoordinateReferenceSystem()">getCoordinateReferenceSystem</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getCoordinates()">getCoordinates</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getDimension()">getDimension</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getOrdinate(int)">getOrdinate</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getPosition()">getPosition</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#hashCode()">hashCode</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#setLocation(org.opengis.spatialschema.geometry.DirectPosition)">setLocation</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#setLocation(org.geotools.geometry.GeneralDirectPosition)">setLocation</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#setLocation(java.awt.geom.Point2D)">setLocation</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#setOrdinate(int, double)">setOrdinate</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#toPoint2D()">toPoint2D</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#toString()">toString</A>, <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#toString(org.opengis.spatialschema.geometry.DirectPosition)">toString</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#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <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> <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="TransformedDirectPosition()"><!-- --></A><H3>TransformedDirectPosition</H3><PRE>public <B>TransformedDirectPosition</B>()</PRE><DL><DD>Creates a new direct position initialized with the <A HREF="../../../org/geotools/referencing/crs/DefaultGeographicCRS.html#WGS84">WGS84</A> CRS.<P><DT><B>Since:</B></DT> <DD>2.3</DD></DL><HR><A NAME="TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)"><!-- --></A><H3>TransformedDirectPosition</H3><PRE>public <B>TransformedDirectPosition</B>(CoordinateReferenceSystem crs, <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A> hints)</PRE><DL><DD><B>Deprecated.</B> <I>Replaced by <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)"><CODE>TransformedDirectPosition(CoordinateReferenceSystem, CoordinateReferenceSystem, Hints)</CODE></A>.</I><P><DD>Creates a new direct position with the specified coordinate reference system.<P><DT><B>Parameters:</B><DD><CODE>crs</CODE> - The CRS for this direct position.<DD><CODE>hints</CODE> - The set of hints to use for fetching a <CODE>CoordinateOperationFactory</CODE>, or if none.</DL><HR><A NAME="TransformedDirectPosition(org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.geotools.factory.Hints)"><!-- --></A><H3>TransformedDirectPosition</H3><PRE>public <B>TransformedDirectPosition</B>(CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A> hints) throws <A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></PRE><DL><DD>Creates a new position which will contains the result of coordinate transformations from to . The <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getCoordinateReferenceSystem()">CRS associated with this position</A> will be initially set to .<P><DT><B>Parameters:</B><DD><CODE>sourceCRS</CODE> - The <strong>default</strong> CRS to be used by the <code><A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#transform(org.opengis.spatialschema.geometry.DirectPosition)"><CODE>transform</CODE></A>(position)</code> method <strong>only</strong> when the user-supplied has a null associated CRS. This argument may be , in which case it is assumed the same than .<DD><CODE>targetCRS</CODE> - The <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getCoordinateReferenceSystem()">CRS associated with this position</A>. Used for every <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#transform(org.opengis.spatialschema.geometry.DirectPosition)">coordinate transformations</A> until the next call to <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>setCoordinateReferenceSystem</CODE></A> or <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#setLocation(org.opengis.spatialschema.geometry.DirectPosition)"><CODE>setLocation</CODE></A>. This argument can not be null.<DD><CODE>hints</CODE> - The set of hints to use for fetching a <CODE>CoordinateOperationFactory</CODE>, or if none.<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 was .<DD><CODE><A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></CODE> - if no coordinate operation factory can be found for the specified hints.<DT><B>Since:</B></DT> <DD>2.3</DD></DL><!-- ============ METHOD DETAIL ========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -