Package dns :: Package rdtypes :: Package ANY :: Module LOC :: Class LOC
[show private | hide private]
[frames | no frames]

Type LOC

object --+    
         |    
     Rdata --+
             |
            LOC


LOC record

See Also: RFC 1876

Method Summary
  __init__(self, rdclass, rdtype, latitude, longitude, altitude, size, hprec, vprec)
Initialize a LOC record instance.
  from_text(cls, rdclass, rdtype, tok, origin, relativize)
(Class method)
  from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin)
(Class method)
string to_text(self, origin, relativize, **kw)
Convert an rdata to text format.
string to_wire(self, file, compress, origin)
Convert an rdata to wire format.
    Inherited from Rdata
  __eq__(self, other)
  __ge__(self, other)
  __gt__(self, other)
  __le__(self, other)
  __lt__(self, other)
  __ne__(self, other)
  __repr__(self)
  __str__(self)
  choose_relativity(self, origin, relativize)
Convert any domain names in the rdata to the specified relativization.
int covers(self)
DNS SIG/RRSIG rdatas apply to a specific type; this type is returned by the covers() function.
int extended_rdatatype(self)
Return a 32-bit type value, the least significant 16 bits of which are the ordinary DNS type, and the upper 16 bits of which are the "covered" type, if any.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
  float_latitude: latitude as a floating point value
  float_longitude: longitude as a floating point value

Instance Variable Summary
float altitude: altitude
float horizontal_precision: horizontal precision
(int, int, int, int) tuple specifying the degrees, minutes, seconds, and milliseconds of the coordinate. latitude: latitude
(int, int, int, int) tuple specifying the degrees, minutes, seconds, and milliseconds of the coordinate. longitude: longitude
float size: size of the sphere
float vertical_precision: vertical precision

Class Variable Summary
list __slots__ = ['latitude', 'longitude', 'altitude', 'size'...
    Inherited from Rdata
member_descriptor rdclass = <member 'rdclass' of 'Rdata' objects>
member_descriptor rdtype = <member 'rdtype' of 'Rdata' objects>

Instance Method Details

__init__(self, rdclass, rdtype, latitude, longitude, altitude, size=1.0, hprec=10000.0, vprec=10.0)
(Constructor)

Initialize a LOC record instance.

The parameters latitude and longitude may be either a 4-tuple of integers specifying (degrees, minutes, seconds, milliseconds), or they may be floating point values specifying the number of degrees. The other parameters are floats.
Overrides:
dns.rdata.Rdata.__init__

to_text(self, origin=None, relativize=True, **kw)

Convert an rdata to text format.
Returns:
string
Overrides:
dns.rdata.Rdata.to_text (inherited documentation)

to_wire(self, file, compress=None, origin=None)

Convert an rdata to wire format.
Returns:
string
Overrides:
dns.rdata.Rdata.to_wire (inherited documentation)

Property Details

float_latitude

latitude as a floating point value

float_longitude

longitude as a floating point value

Instance Variable Details

altitude

altitude
Type:
float
Value:
<member 'altitude' of 'LOC' objects>                                   

horizontal_precision

horizontal precision
Type:
float
Value:
<member 'horizontal_precision' of 'LOC' objects>                       

latitude

latitude
Type:
(int, int, int, int) tuple specifying the degrees, minutes, seconds, and milliseconds of the coordinate.
Value:
<member 'latitude' of 'LOC' objects>                                   

longitude

longitude
Type:
(int, int, int, int) tuple specifying the degrees, minutes, seconds, and milliseconds of the coordinate.
Value:
<member 'longitude' of 'LOC' objects>                                  

size

size of the sphere
Type:
float
Value:
<member 'size' of 'LOC' objects>                                       

vertical_precision

vertical precision
Type:
float
Value:
<member 'vertical_precision' of 'LOC' objects>                         

Class Variable Details

__slots__

Type:
list
Value:
['latitude',
 'longitude',
 'altitude',
 'size',
 'horizontal_precision',
 'vertical_precision']                                                 

Generated by Epydoc 2.1 on Sun Jan 30 10:41:36 2005 http://epydoc.sf.net