⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transformeddirectposition.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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="setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>setCoordinateReferenceSystem</H3><PRE>public void <B>setCoordinateReferenceSystem</B>(CoordinateReferenceSystem&nbsp;crs)                                  throws MismatchedDimensionException</PRE><DL><DD>Sets the coordinate reference system in which the coordinate is given. The given CRS will be used as: <p> <ul>   <li>the target CRS for every call to       <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#transform(org.opengis.spatialschema.geometry.DirectPosition)"><CODE>transform(DirectPosition)</CODE></A></li>   <li>the source CRS for every call to       <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#inverseTransform(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>inverseTransform(CoordinateReferenceSystem)</CODE></A></li> </ul><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)">setCoordinateReferenceSystem</A></CODE> in class <CODE><A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html" title="class in org.geotools.geometry">GeneralDirectPosition</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>crs</CODE> - The new CRS for this direct position.<DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE> - if the specified CRS doesn't have the expected         number of dimensions.</DL></DD></DL><HR><A NAME="transform(org.opengis.spatialschema.geometry.DirectPosition)"><!-- --></A><H3>transform</H3><PRE>public void <B>transform</B>(DirectPosition&nbsp;position)               throws TransformException</PRE><DL><DD>Transforms a given position and stores the result in this object. <ul>   <li><p>The source CRS is the       CRS associated with the given       position, or the  argument 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> <strong>if and only if</strong>       the CRS associated with  is null.</p></li>    <li><p>The target CRS is the <A HREF="../../../org/geotools/geometry/GeneralDirectPosition.html#getCoordinateReferenceSystem()">CRS associated with this position</A>. This is always the        argument 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> or by the last call to <A HREF="../../../org/geotools/geometry/TransformedDirectPosition.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>setCoordinateReferenceSystem</CODE></A>.</p></li> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - A position using an arbitrary CRS. This object will not be modified.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if a coordinate transformation was required and failed.</DL></DD></DL><HR><A NAME="transform(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>transform</H3><PRE>public DirectPosition <B>transform</B>(CoordinateReferenceSystem&nbsp;crs)                                                            throws TransformException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<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><P><DD><DL><DT><B>Throws:</B><DD><CODE>TransformException</CODE></DL></DD></DL><HR><A NAME="inverseTransform(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>inverseTransform</H3><PRE>public DirectPosition <B>inverseTransform</B>(CoordinateReferenceSystem&nbsp;crs)                                                                   throws TransformException</PRE><DL><DD>Returns a new point with the same coordinates than this one, but transformed in the given CRS. This method never returns , so the returned point usually doesn't need to be cloned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>crs</CODE> - The CRS for the position to be returned.<DT><B>Returns:</B><DD>The same position than , but transformed in the specified CRS.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if a coordinate transformation was required and failed.<DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="inverseTransform()"><!-- --></A><H3>inverseTransform</H3><PRE>public DirectPosition <B>inverseTransform</B>()                                                                   throws TransformException</PRE><DL><DD>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>. This method never returns , so the returned point usually doesn't need to be cloned.<P><DD><DL><DT><B>Returns:</B><DD>The same position than , but transformed in the source CRS.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if a coordinate transformation was required and failed.<DT><B>Since:</B></DT>  <DD>2.3</DD></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/TransformedDirectPosition.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/geometry/JTS.ReferencedEnvelope.html" title="class in org.geotools.geometry"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TransformedDirectPosition.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="#fields_inherited_from_class_GeneralDirectPosition">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;FIELD&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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -