Example #1
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)
Example #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)
Example #3
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)
Example #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)