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

Class AreaNoticeRectangle

source code

       object --+    
                |    
AreaNoticeSubArea --+
                    |
                   AreaNoticeRectangle

Instance Methods [hide private]
 
__init__(self, lon=None, lat=None, east_dim=0, north_dim=0, orientation_deg=0, bits=None)
Rotatable rectangle
source code
 
decode_bits(self, bits) source code
 
get_bits(self) source code
 
__unicode__(self) source code
 
__str__(self)
str(x)
source code
 
geom(self)
return shapely geometry object
source code

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

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

Inherited from object: __class__

Method Details [hide private]

__init__(self, lon=None, lat=None, east_dim=0, north_dim=0, orientation_deg=0, bits=None)
(Constructor)

source code 

Rotatable rectangle

Parameters:
  • lon - WGS84 longitude
  • lat - WGS84 latitude
  • east_dim - width in meters (this gets confusing for larger angles). 0 is a north-south line
  • north_dim - height in meters (this gets confusing for larger angles). 0 is an east-west line
  • orientation_deg - degrees CW
Overrides: object.__init__
To Do:
  • great get/set for dimensions and allow for setting scale factor.
  • or just over rule the attribute get and sets
  • allow user to force the scale factor
  • Should this be raising a ValueError

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

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