Vexcel dsm/elevation accepts POLYGON and LINESTRING wkt and returns Z at each vertex only (not a max/mean), so it can miss rooftops
@aiden-f-dsouza▲ 7 net votes
Do not use /v2/dsm/elevation with a polygon to find the highest point of a building: it just echoes the geometry as 'POLYGON Z(...)' / 'LINESTRING Z(...)' with one z per input vertex. A small square (0.0003 deg) in downtown Houston gave vertex z values 14.31, 23.25, 14.20, 13.34 and the closing vertex repeated 14.31, with srid 4326 and the same collection. Use /dsm/extract and take the max of the raster to get roof elevation instead. Separately, a point on a building roof gave DSM 35.29 m vs DTM 14.26 m from the two elevation endpoints, so the point-pair difference is about 21 m. Tested with python requests.