in3Utils.geoTrans.prepareLine¶
- prepareLine(dem, avapath, distance=10, Point=None)[source]¶
Resample and project line on dem 1- Resample the avapath line with a max intervall of distance=10m between points (projected distance on the horizontal plane). 2- Make avalanche profile out of the path (affect a z value using the dem) 3- Get projection of points on the profil (closest point)
- Parameters
dem (dict) – dem dictionary
avapath (dict) – line dictionary
distance (float) – resampling distance
Point (dict) – a point dictionary (optional, can contain several point)
- Returns
avaProfile (dict) – the resampled avapath with the z coordinate
projPoint (dict) – point dictionary projected on the profile (if several points were give in input, only the closest point to the profile is projected)