home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_f420169fab2192f587bdf67f137dc757
< prev
next >
Wrap
Text File
|
2000-03-23
|
5KB
|
141 lines
<HTML>
<HEAD>
<TITLE>Net::DNS::RR::LOC - DNS LOC resource record</TITLE>
<LINK REL="stylesheet" HREF="../../../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Net::DNS::RR::LOC - DNS LOC resource record</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#methods">METHODS</A></LI>
<UL>
<LI><A HREF="#version">version</A></LI>
<LI><A HREF="#size">size</A></LI>
<LI><A HREF="#horiz_pre">horiz_pre</A></LI>
<LI><A HREF="#vert_pre">vert_pre</A></LI>
<LI><A HREF="#latitude">latitude</A></LI>
<LI><A HREF="#longitude">longitude</A></LI>
<LI><A HREF="#latlon">latlon</A></LI>
<LI><A HREF="#altitude">altitude</A></LI>
</UL>
<LI><A HREF="#copyright">COPYRIGHT</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Net::DNS::RR::LOC - DNS LOC resource record</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P><CODE>use Net::DNS::RR</CODE>;</P>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>Class for DNS Location (LOC) resource records. See RFC 1876 for
details.</P>
<P>
<HR>
<H1><A NAME="methods">METHODS</A></H1>
<P>
<H2><A NAME="version">version</A></H2>
<PRE>
print "version = ", $rr->version, "\n";</PRE>
<P>Returns the version number of the representation; programs should
always check this. <CODE>Net::DNS</CODE> currently supports only version 0.</P>
<P>
<H2><A NAME="size">size</A></H2>
<PRE>
print "size = ", $rr->size, "\n";</PRE>
<P>Returns the diameter of a sphere enclosing the described entity,
in centimeters.</P>
<P>
<H2><A NAME="horiz_pre">horiz_pre</A></H2>
<PRE>
print "horiz_pre = ", $rr->horiz_pre, "\n";</PRE>
<P>Returns the horizontal precision of the data, in centimeters.</P>
<P>
<H2><A NAME="vert_pre">vert_pre</A></H2>
<PRE>
print "vert_pre = ", $rr->vert_pre, "\n";</PRE>
<P>Returns the vertical precision of the data, in centimeters.</P>
<P>
<H2><A NAME="latitude">latitude</A></H2>
<PRE>
print "latitude = ", $rr->latitude, "\n";</PRE>
<P>Returns the latitude of the center of the sphere described by
the <CODE>size</CODE> method, in thousandths of a second of arc. 2**31
represents the equator; numbers above that are north latitude.</P>
<P>
<H2><A NAME="longitude">longitude</A></H2>
<PRE>
print "longitude = ", $rr->longitude, "\n";</PRE>
<P>Returns the longitude of the center of the sphere described by
the <CODE>size</CODE> method, in thousandths of a second of arc. 2**31
represents the prime meridian; numbers above that are east
longitude.</P>
<P>
<H2><A NAME="latlon">latlon</A></H2>
<PRE>
($lat, $lon) = $rr->latlon;
system("xearth", "-pos", "fixed $lat $lon");</PRE>
<P>Returns the latitude and longitude as floating-point degrees.
Positive numbers represent north latitude or east longitude;
negative numbers represent south latitude or west longitude.</P>
<P>
<H2><A NAME="altitude">altitude</A></H2>
<PRE>
print "altitude = ", $rr->altitude, "\n";</PRE>
<P>Returns the altitude of the center of the sphere described by
the <CODE>size</CODE> method, in centimeters, from a base of 100,000m
below the WGS 84 reference spheroid used by GPS.</P>
<P>
<HR>
<H1><A NAME="copyright">COPYRIGHT</A></H1>
<P>Copyright (c) 1997 Michael Fuhr. All rights reserved. This program is free
software; you can redistribute it and/or modify it under the same terms as
Perl itself.</P>
<P>Some of the code and documentation is based on RFC 1876 and on code
contributed by Christopher Davis.</P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><EM>perl(1)</EM>, <A HREF="../../../../../site/lib/Net/DNS.html">the Net::DNS manpage</A>, <A HREF="../../../../../site/lib/Net/DNS/Resolver.html">the Net::DNS::Resolver manpage</A>, <A HREF="../../../../../site/lib/Net/DNS/Packet.html">the Net::DNS::Packet manpage</A>,
<A HREF="../../../../../site/lib/Net/DNS/Header.html">the Net::DNS::Header manpage</A>, <A HREF="../../../../../site/lib/Net/DNS/Question.html">the Net::DNS::Question manpage</A>, <A HREF="../../../../../site/lib/Net/DNS/RR.html">the Net::DNS::RR manpage</A>,
RFC 1876</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Net::DNS::RR::LOC - DNS LOC resource record</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>