Beispiel #1
0
def xyzi_to_lonlati( verts ):
    '''Converts a list of (x, y, z, i) vertices into a list of (lon, lat, i)
    vertices, where 'i' is a silent index
    '''
    cverts = []
    for v in verts :
        t = list( geocoords.lonlat_deg_norm( MVec( v[:-1] ) ) )
        t.append( v[-1] )
        cverts.append( t )
    return cverts
Beispiel #2
0
def xyz_to_lonlat( verts ):
    '''Converts a list of (x, y, z) vertices into a list of (lon, lat)
    vertices
    '''
    cverts = [ geocoords.lonlat_deg_norm( MVec( v ) ) for v in verts ]
    return cverts