in2Trans.shpConversion

Conversion functions to read/ write Shape files or xyz profiles

Functions

SHP2Array

Read shapefile and convert it to a python dictionnary containing the name of the paths in the shape file, the np array with the coordinates of the path points (all stacked in the same array) and information about the startin index and length of each path Output : SHPdata dictionnary SHPdata[‘Name’] = list of paths names SHPdata[‘Coord’] = np array of the coords of points in paths SHPdata[‘Start’] = list of starting index of each path in Coord SHPdata[‘Length’] = list of length of each path in Coord

readLine

Read avalanche path from .shp

readPoints

Read split point path from .shp