Пример #1
0
def load_loc(i):
    #geo = gh.formatPathInfo(gh.getPathInfo(42.99855039261829,-78.79622441563413,43.004905938753645,-78.78722492218014))  #TEST 2
    #geo = gh.formatPathInfo(gh.getPathInfo(43.000002025901935, -78.79973274502561,43.000002025901935, -78.78740731239316))  #TEST 3
    geo = gh.formatPathInfo(gh.getPathInfo(43.000002025901935, -78.79973274502561,43.000002025901935,-78.68290844917294))  #TEST 3
    if i == 0:
        geo = gh.formatPathInfo(gh.getPathInfo(40.19930573406461,116.62929710388187,40.19930573406461,116.64757904052738))
    elif i == 1:
        geo = gh.formatPathInfo(gh.getPathInfo(40.19930573406461,116.62929710388187,40.18579948021872,116.62929710388187))
    elif i == 2:
        geo = gh.formatPathInfo(gh.getPathInfo(40.19930573406461,116.62929710388187,40.19930573406461,116.74119886398319))
    elif i == 3:
        geo = gh.formatPathInfo(gh.getPathInfo(40.19930573406461,116.62929710388187,40.113846516226154,116.62929710388187))
    return geo
Пример #2
0
def load_loc():
    # geo = gh.formatPathInfo(gh.getPathInfo(42.99855039261829,-78.79622441563413,43.004905938753645,-78.78722492218014))  #TEST 2
    # geo = gh.formatPathInfo(gh.getPathInfo(43.000002025901935, -78.79973274502561,43.000002025901935, -78.78740731239316))  #TEST 3
    # geo = gh.formatPathInfo(gh.getPathInfo(43.0151832700359,-78.84845438957211,43.00169097767916, -78.84854558467862))  #TEST 6
    geo = gh.formatPathInfo(
        gh.getPathInfo(43.01518327003597, -78.84845438957211, 43.01516954192375, -78.82999542713162)
    )  # TEST 7
    return geo
Пример #3
0
        mark_as_complete(running_id)

    try:
        geo_height = getPathInfo(lat1,lng1,lat2,lng2)
        #print 'geo_height = ', geo_height
        if geo_height == None:
            raise Exception,e
        elif geo_height < 0:
            # I really dont understand why geo_height < 0 !!!
            geo_height = 0
    except Exception,e:
        print e
        print "cannot grab geo_info"
        mark_as_complete(running_id)
    try:
        geo_height2 = formatPathInfo(geo_height)
        print 'geo_height2 = ', geo_height2
        if geo_height2 < 0:
            # don't understand either
            geo_height2 = 0
    except Exception,e:
        mark_as_complete(running_id)
        print "geo height grab error"
        print geo_height
        return 1
    try:
        #hei1_mean = getHeight_mean(lat1,lng1,lat2,lng2)
        if getHTT(geo_height2) < 0:
            HTT = height
        else:
            HTT = getHTT(geo_height2) + height
Пример #4
0
def load_loc():
    #geo = gh.formatPathInfo(gh.getPathInfo(42.99855039261829,-78.79622441563413,43.004905938753645,-78.78722492218014))  #TEST 2
    #geo = gh.formatPathInfo(gh.getPathInfo(43.000002025901935, -78.79973274502561,43.000002025901935, -78.78740731239316))  #TEST 3
    geo = gh.formatPathInfo(gh.getPathInfo(43.000002025901935, -78.79973274502561,43.000002025901935,-78.68290844917294))  #TEST 3
    return geo