Module imo_001_22_area_notice :: Class AreaNoticePolyline
[hide private]
[frames] | no frames]

Class AreaNoticePolyline

source code

       object --+    
                |    
AreaNoticeSubArea --+
                    |
                   AreaNoticePolyline
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, points=None, lon=None, lat=None, bits=None)
A line or open area.
source code
 
decode_bits(self, bits) source code
 
get_bits(self)
Build a BitVector for this area
source code
 
__unicode__(self) source code
 
geom(self) source code

Inherited from AreaNoticeSubArea: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  area_shape = 3
Properties [hide private]
  __geo_interface__
Provide a Geo Interface for GeoJSON serialization

Inherited from object: __class__

Method Details [hide private]

__init__(self, points=None, lon=None, lat=None, bits=None)
(Constructor)

source code 

A line or open area. If an area, this is the area to the left of the line. The line starts at the prior line. Must set p1 or provide bits. You will not be able to get the geometry if you do not provide a lon,lat for the starting point

Parameters:
  • points - 1 to 4 relative offsets (angle in degrees [0..360] , distance in meters)
  • lon - WGS84 longitude of the starting point. Must match the previous point
  • lat - WGS84 longitude of the starting point. Must match the previous point
  • bits - bits to decode from
Overrides: object.__init__
To Do:
  • FIX: make sure that the AreaNotice decode bits passes the lon, lat
  • FIX: Handle sectors that cross 0/360

Property Details [hide private]

__geo_interface__

Provide a Geo Interface for GeoJSON serialization

Get Method:
unreachable.__geo_interface__(self) - Provide a Geo Interface for GeoJSON serialization

To Do: Write the code to build the polygon with rotation