in1Data.getInput.computeAreasFromRasterAndLine
- computeAreasFromRasterAndLine(line, dem)[source]
compute the area covered by a polygon by creating a raster from polygon projected area and actual area using a dem info
- Parameters
line (dict) – dictionary with info on line x, y coordinates start, end of each line feature
dem (dict) – dictionary with dem data, header and areaRaster
- Returns
areaActual (float) – actual area taking slope into account by using dem area
areaProjected (float) – projected area in xy plane