I have a DSM and a DTM in georeferenced TIFF format. I have two shapefiles, one for buildings and one for trees. I want to clip the DSM by both shapefiles separately producing two new files which are then 'superimposed'onto the DTM. therefore I will have a new DSM where it is just buildings and the values of the spaces in between the buildings come from the DTM and then another file for the trees.
Or another way to do it would be to remove the buildings or trees from the DSM and fill in the gaps with the surrounding street level pixel values if this is possible.