コード例 #1
0
def decodeLocation(projection, latitude, longitude):
    return LambertConverter.toLambert(projection, latitude, longitude)
コード例 #2
0
def ConvertRawInstruction(projection, raw): #:RawInstruction) 
    lambertCoordinates = (raw.Latitude, raw.Longitude)
    (easting,northing) = LambertConverter.toLambert(projection, lambertCoordinates)
    position = Spatial.Position(easting, northing, raw.Feet)
    return FlightTypes.Instruction(position, raw.Knots) # instruction
コード例 #3
0
def loadProjectionFromFile(file):
    f = open(file, 'r')
    project = json.loads(f.read())
    return LambertConverter.LambertProjection(**project)