com1DFA.com1DFA.polygon2Raster¶
- polygon2Raster(demHeader, Line, radius, th='')[source]¶
convert line to raster
- Parameters
demHeader (dict) – dem header dictionary
Line (dict) – line dictionary
radius (float) – include all cells which center is in the polygon or close enough
th (float) – thickness value ot the line feature
- Returns
Mask – updated raster
- Return type
2D numpy array