Create new objects of various types. Deprecated.
This module is no longer required except for backward compatibility.
Objects of most types can now be created by calling the type object.
BitVector
|
encode(params,
validate=False)
Create a position binary message payload to pack into an AIS Msg
position. |
source code
|
|
dict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
decodePosition_longitude(bv,
validate=False) |
source code
|
|
|
decodePosition_latitude(bv,
validate=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printKml(params,
out=sys.stdout)
KML (Keyhole Markup Language) for Google Earth, but without the
header/footer |
source code
|
|
stdout
|
printFields(params,
out=sys.stdout,
format='std',
fieldList=None,
dbType='postgres')
Print a slotoffset message to stdout. |
source code
|
|
str
|
sqlCreateStr(outfile=sys.stdout,
fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType='postgres')
Return the SQL CREATE command for this message type |
source code
|
|
sqlhelp.create
|
sqlCreate(fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType='postgres')
Return the sqlhelp object to create the table. |
source code
|
|
str
|
sqlInsertStr(params,
outfile=sys.stdout,
extraParams=None,
dbType='postgres')
Return the SQL INSERT command for this message type |
source code
|
|
sqlhelp.insert
|
|
dict
|
|
|
|
|
__version__ = '$Revision: 4791 $'.split() [1]
|
|
__date__ = '$Date: 2007-02-08 $'.split() [1]
|
|
__doc__ = ...
|
|
TrueBV = BitVector(bitstring= "1")
Why always rebuild the True bit? This should speed things up a
bunch
|
|
FalseBV = BitVector(bitstring= "0")
Why always rebuild the False bit? This should speed things up a
bunch
|
|
fieldList = 'MessageID', 'RepeatIndicator', 'UserID', 'Navigat...
|
|
fieldListPostgres = 'MessageID', 'RepeatIndicator', 'UserID', ...
|
|
toPgFields = {'Position_longitude': 'Position', 'Position_lati...
Go to the Postgis field names from the straight field name
|
|
fromPgFields = {'Position':('Position_longitude', 'Position_la...
Go from the Postgis field names to the straight field name
|
|
pgTypes = {'Position': 'POINT',}
Lookup table for each postgis field name to get its type.
|
|
RepeatIndicatorEncodeLut = {'default': '0', 'do not repeat any...
|
|
RepeatIndicatorDecodeLut = {'0': 'default', '3': 'do not repea...
|
|
NavigationStatusEncodeLut = {'under way using engine': '0', 'a...
|
|
NavigationStatusDecodeLut = {'0': 'under way using engine', '1...
|
|
SOGEncodeLut = {'102.2 knots or higher': '102.2',}
|
|
SOGDecodeLut = {'102.2': '102.2 knots or higher',}
|
|
PositionAccuracyEncodeLut = {'low (greater than 10 m)': '0', '...
|
|
PositionAccuracyDecodeLut = {'0': 'low (greater than 10 m)', '...
|
|
TimeStampEncodeLut = {'not available/default': '60', 'manual i...
|
|
TimeStampDecodeLut = {'60': 'not available/default', '61': 'ma...
|
|
RAIMEncodeLut = {'not in use': 'False', 'in use': 'True',}
|
|
RAIMDecodeLut = {'False': 'not in use', 'True': 'in use',}
|
|
syncstateEncodeLut = {'UTC direct': '0', 'UTC indirect': '1', ...
|
|
syncstateDecodeLut = {'0': 'UTC direct', '1': 'UTC indirect', ...
|
|
slottimeoutEncodeLut = {'Last frame in this slot': '0', '1 fra...
|
|
slottimeoutDecodeLut = {'0': 'Last frame in this slot', '1': '...
|