def GMLpoints(ring):
    #-- List containing points
    listPoints = []
    #-- Read the <gml:posList> value and convert to string
    if len(ring.findall('.//{%s}posList' %ns_gml)) > 0:
        points = ring.findall('.//{%s}posList' %ns_gml)[0].text
        #-- List of coordinates
        coords = points.split()
        assert(len(coords) % 3 == 0)
        #-- Store the coordinate tuple
        for i in range(0, len(coords), 3):
            listPoints.append([float(coords[i]), float(coords[i+1]), float(coords[i+2])])
    elif len(ring.findall('.//{%s}pos' %ns_gml)) > 0:
        points = ring.findall('.//{%s}pos' %ns_gml)
        #-- Extract each point separately
        for p in points:
            coords = p.text.split()
            assert(len(coords) % 3 == 0)
            #-- Store the coordinate tuple
            for i in range(0, len(coords), 3):
                listPoints.append([float(coords[i]), float(coords[i+1]), float(coords[i+2])])
    else:
        return None

    return listPoints
Force an audio signal down to mono.
dataset/ETHPy150Open tudelft3d/CityGML2OBJs/markup3dmodule.py/GMLpoints--crossover with--dataset/ETHPy150Open bmcfee/librosa/librosa/core/audio.py/to_mono