in2Trans.shpConversion.SHP2Array

SHP2Array(infile, defname=None)[source]

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