📄 jts.html
字号:
<P><DD><DL><DT><B>Parameters:</B><DD><CODE>envelope</CODE> - The envelope to transform.<DD><CODE>crs</CODE> - The CRS the envelope is currently in.<DT><B>Returns:</B><DD>The envelope transformed to be in WGS84 CRS.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - If at least one coordinate can't be transformed.</DL></DD></DL><HR><A NAME="xform(org.opengis.referencing.operation.MathTransform, double[], double[])"><!-- --></A><H3>xform</H3><PRE>public static void <B>xform</B>(MathTransform transform, double[] src, double[] dest) throws TransformException</PRE><DL><DD>Like a transform but eXtreme! Transforms an array of coordinates using the provided math transform. Each coordinate is transformed separately. In case of a transform exception then the new value of the coordinate is the last coordinate correctly transformed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>transform</CODE> - The math transform to apply.<DD><CODE>src</CODE> - The source coordinates.<DD><CODE>dest</CODE> - The destination array for transformed coordinates.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if this method failed to transform any of the points.</DL></DD></DL><HR><A NAME="orthodromicDistance(com.vividsolutions.jts.geom.Coordinate, com.vividsolutions.jts.geom.Coordinate, org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>orthodromicDistance</H3><PRE>public static double <B>orthodromicDistance</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Coordinate.html" title="class or interface in com.vividsolutions.jts.geom">Coordinate</A> p1, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Coordinate.html" title="class or interface in com.vividsolutions.jts.geom">Coordinate</A> p2, CoordinateReferenceSystem crs) throws TransformException</PRE><DL><DD>Computes the orthodromic distance between two points. This method: <p> <ol> <li>Transforms both points to geographic coordinates (<var>latitude</var>,<var>longitude</var>).</li> <li>Computes the orthodromic distance between the two points using ellipsoidal calculations.</li> </ol> <p> The real work is performed by <A HREF="../../../../org/geotools/referencing/GeodeticCalculator.html" title="class in org.geotools.referencing"><CODE>GeodeticCalculator</CODE></A>. This convenience method simply manages a pool of pre-defined geodetic calculators for the given coordinate reference system in order to avoid repetitive object creation. If a large amount of orthodromic distances need to be computed, direct use of <A HREF="../../../../org/geotools/referencing/GeodeticCalculator.html" title="class in org.geotools.referencing"><CODE>GeodeticCalculator</CODE></A> provides better performance than this convenience method.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>p1</CODE> - First point<DD><CODE>p2</CODE> - Second point<DD><CODE>crs</CODE> - Reference system the two points are in.<DT><B>Returns:</B><DD>Orthodromic distance between the two points, in meters.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if the coordinates can't be transformed from the specified CRS to a geographic CRS.</DL></DD></DL><HR><A NAME="copy(com.vividsolutions.jts.geom.Coordinate, double[])"><!-- --></A><H3>copy</H3><PRE>public static void <B>copy</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Coordinate.html" title="class or interface in com.vividsolutions.jts.geom">Coordinate</A> point, double[] ordinates)</PRE><DL><DD>Copies the ordinates values from the specified JTS coordinates to the specified array. The destination array can have any length. Only the relevant field of the source coordinate will be copied. If the array length is greater than 3, then all extra dimensions will be set to <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>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point</CODE> - The source coordinate.<DD><CODE>ordinates</CODE> - The destination array.</DL></DD></DL><HR><A NAME="shapeToGeometry(java.awt.Shape, com.vividsolutions.jts.geom.GeometryFactory)"><!-- --></A><H3>shapeToGeometry</H3><PRE>public static <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> <B>shapeToGeometry</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A> shape, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/GeometryFactory.html" title="class or interface in com.vividsolutions.jts.geom">GeometryFactory</A> factory)</PRE><DL><DD>Converts an arbitrary Java2D shape into a JTS geometry. The created JTS geometry may be any of <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/LineString.html" title="class or interface in com.vividsolutions.jts.geom"><CODE>LineString</CODE></A>, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/LinearRing.html" title="class or interface in com.vividsolutions.jts.geom"><CODE>LinearRing</CODE></A> or <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/MultiLineString.html" title="class or interface in com.vividsolutions.jts.geom"><CODE>MultiLineString</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>shape</CODE> - The Java2D shape to create.<DD><CODE>factory</CODE> - The JTS factory to use for creating geometry.<DT><B>Returns:</B><DD>The JTS geometry.</DL></DD></DL><HR><A NAME="getEnvelope2D(com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>getEnvelope2D</H3><PRE>public static <A HREF="../../../../org/geotools/geometry/Envelope2D.html" title="class in org.geotools.geometry">Envelope2D</A> <B>getEnvelope2D</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> envelope, CoordinateReferenceSystem crs) throws MismatchedDimensionException</PRE><DL><DD>Converts a JTS 2D envelope in an <A HREF="../../../../org/geotools/geometry/Envelope2D.html" title="class in org.geotools.geometry"><CODE>Envelope2D</CODE></A> for interoperability with the referencing package. <p> If the provided envelope is a <A HREF="../../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts"><CODE>ReferencedEnvelope</CODE></A> we check that the provided CRS and the implicit CRS are similar.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>envelope</CODE> - The JTS envelope to convert.<DD><CODE>crs</CODE> - The coordinate reference system for the specified envelope.<DT><B>Returns:</B><DD>The GeoAPI envelope.<DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE> - if a two-dimensional envelope can't be created from an envelope with the specified CRS.<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> </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/JTS.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"> <A HREF="../../../../org/geotools/geometry/jts/GeometryCoordinateSequenceTransformer.html" title="class in org.geotools.geometry.jts"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/geometry/jts/PreciseCoordinateSequenceTransformer.html" title="class in org.geotools.geometry.jts"><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="JTS.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -