?? locationconverter.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Jun 13 20:23:03 CEST 2002 -->
<TITLE>
: Class LocationConverter
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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="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="../../../../com/farcrown/lpws/lu/LatOrLongitude.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="LocationConverter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <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>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.farcrown.lpws.lu</FONT>
<BR>
Class LocationConverter</H2>
<PRE>
java.lang.Object
|
+--<B>com.farcrown.lpws.lu.LocationConverter</B>
</PRE>
<HR>
<DL>
<DT>public class <B>LocationConverter</B><DT>extends java.lang.Object</DL>
<P>
This class contains algorithms for converting between coordinate/location systems
<P>
<DL>
<DT><B>Version: </B><DD>1.0.0</DD>
<DT><B>Author: </B><DD>Richard Caudle</DD>
</DL>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<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="../../../../com/farcrown/lpws/lu/LocationConverter.html#LocationConverter()">LocationConverter</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<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>static double[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/farcrown/lpws/lu/LocationConverter.html#geospatialToCOORDS(com.farcrown.lpws.lu.LatOrLongitude, com.farcrown.lpws.lu.LatOrLongitude)">geospatialToCOORDS</A></B>(<A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lat, <A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lon)</CODE>
<BR>
This method is used to convert 2D geospatial coordinates to cartesian coordinates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/farcrown/lpws/lu/LocationConverter.html#geospatialToOSGB(com.farcrown.lpws.lu.LatOrLongitude, com.farcrown.lpws.lu.LatOrLongitude)">geospatialToOSGB</A></B>(<A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lat, <A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lon)</CODE>
<BR>
This method can be used to convert geospatial coordinates to OS national grid references suitable for use in the UK.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/farcrown/lpws/lu/LocationConverter.html#geospatialToUTM(com.farcrown.lpws.lu.LatOrLongitude, com.farcrown.lpws.lu.LatOrLongitude)">geospatialToUTM</A></B>(<A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lat, <A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lon)</CODE>
<BR>
This method converts the latitude and longitude of the current position to UTM coordinates.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="LocationConverter()"><!-- --></A><H3>
LocationConverter</H3>
<PRE>
public <B>LocationConverter</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="geospatialToUTM(com.farcrown.lpws.lu.LatOrLongitude, com.farcrown.lpws.lu.LatOrLongitude)"><!-- --></A><H3>
geospatialToUTM</H3>
<PRE>
public static java.lang.String <B>geospatialToUTM</B>(<A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lat, <A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lon)</PRE>
<DL>
<DD>This method converts the latitude and longitude of the current position to UTM coordinates. It uses Redfearn's formulae as it's basis. Note the method assumes the input coordinates are according to the WGS84 datum, and will output according to that datum too. This website is a good reference regarding the coordinate system: http://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys_f.html</DL>
<HR>
<A NAME="geospatialToOSGB(com.farcrown.lpws.lu.LatOrLongitude, com.farcrown.lpws.lu.LatOrLongitude)"><!-- --></A><H3>
geospatialToOSGB</H3>
<PRE>
public static java.lang.String <B>geospatialToOSGB</B>(<A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lat, <A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lon)</PRE>
<DL>
<DD>This method can be used to convert geospatial coordinates to OS national grid references suitable for use in the UK. To aquire accurate results the input coordinates must be according to the Airy1830 and not the WGS84 ellipsoid.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lat</CODE> - The latitude of the 2D coordinate<DD><CODE>lon</CODE> - The longitude of the 2D coordinate<DT><B>Returns:</B><DD>The OS grid reference</DL>
</DD>
</DL>
<HR>
<A NAME="geospatialToCOORDS(com.farcrown.lpws.lu.LatOrLongitude, com.farcrown.lpws.lu.LatOrLongitude)"><!-- --></A><H3>
geospatialToCOORDS</H3>
<PRE>
public static double[] <B>geospatialToCOORDS</B>(<A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lat, <A HREF="../../../../com/farcrown/lpws/lu/LatOrLongitude.html">LatOrLongitude</A> lon)</PRE>
<DL>
<DD>This method is used to convert 2D geospatial coordinates to cartesian coordinates. The method returns a double array, in which the first element is the easting(X) value and the second the northing value(Y).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lat</CODE> - The latitude of the 2D coordinate<DD><CODE>lon</CODE> - The longitude of the 2D coordinate<DT><B>Returns:</B><DD>An array containing the cartesian coordinate.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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="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="../../../../com/farcrown/lpws/lu/LatOrLongitude.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="LocationConverter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <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>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -