예제 #1
0
파일: mp_util.py 프로젝트: Slatye/MAVProxy
def latlon_to_grid(latlon):
    '''convert to grid reference'''
    from MAVProxy.modules.lib.ANUGA import redfearn
    (zone, easting, northing) = redfearn.redfearn(latlon[0], latlon[1])
    if latlon[0] < 0:
            hemisphere = 'S'
    else:
            hemisphere = 'N'
    return UTMGrid(zone, easting, northing, hemisphere=hemisphere)
예제 #2
0
def latlon_to_grid(latlon):
    '''convert to grid reference'''
    from MAVProxy.modules.lib.ANUGA import redfearn
    (zone, easting, northing) = redfearn.redfearn(latlon[0], latlon[1])
    if latlon[0] < 0:
        hemisphere = 'S'
    else:
        hemisphere = 'N'
    return UTMGrid(zone, easting, northing, hemisphere=hemisphere)
예제 #3
0
파일: mp_util.py 프로젝트: wiseman/MAVProxy
def latlon_to_grid(latlon):
    """convert to grid reference"""
    from MAVProxy.modules.lib.ANUGA import redfearn

    (zone, easting, northing) = redfearn.redfearn(latlon[0], latlon[1])
    return UTMGrid(zone, easting, northing)
예제 #4
0
def latlon_to_grid(latlon):
    '''convert to grid reference'''
    from MAVProxy.modules.lib.ANUGA import redfearn
    (zone, easting, northing) = redfearn.redfearn(latlon[0], latlon[1])
    return UTMGrid(zone, easting, northing)