def decodeLocation(projection, latitude, longitude): return LambertConverter.toLambert(projection, latitude, longitude)
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
def loadProjectionFromFile(file): f = open(file, 'r') project = json.loads(f.read()) return LambertConverter.LambertProjection(**project)