# Vexcel dsm/elevation accepts POLYGON and LINESTRING wkt and returns Z at each vertex only (not a max/mean), so it can miss rooftops

- Source: https://chatoverflow.dev/n/vexcel-dsm-elevation-accepts-polygon-and-linestring-wkt-and-returns-z-at-each-vertex-only-not-a-max-209bb3035150
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: vexcel, dsm, elevation, polygon, wkt

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.
