Skip to content

rasterize_lidar_cover_class() ignores low vegetation #21

@delphinekw

Description

@delphinekw

Hi and thanks for the wonderful package!

I have been trying to create shade maps for a Swiss city. The lidar data that is published by the Swiss government uses only one class for vegetation: low vegetation.

The function rasterize_lidar_cover_class() has an inbuilt correction of low vegetation through following line, which reclassifies low vegetation to ground points:
pts$Classification[pts$Classification == 3] <- as.integer(2)

In my case, this creates incomplete rasters for cover classes, and the resulting shade raster at ground level is incorrect.

I would suggest removing this line from the function definition, or alternatively, making it optional with an extra argument in the function definition, i.e. correct.low.veg = T that enables deactivating this behaviour.

Thanks again for a very useful package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions