load terrain data (GfxCore::LoadDEM function)

Olly Betts olly at survex.com
Sun Oct 16 00:26:22 BST 2016


On Sat, Oct 15, 2016 at 11:02:30AM +0200, detrito wrote:
> I converted my DEM in WGS84. it loads without errors in aven (with
> file->open terrain) and it finally overlaps the cave-area. however
> something doesn't work in displaying: instead of the the surface's shape
> I only see an interference pattern [1].

Looks very joint controlled!

> the previous screenshot shows
> the pattern with a 10m resolution DEM [2]. with the 2m resolution DEM I
> get the same pattern, but at higher resolution.

The cause of this is that the code in aven has the number of rows and
columns swapped, which is harmless for datasets which are square (as
common ones like SRTM are, which is why this hasn't been noticed before).

I'll fix it in the next release, but a simple workaround for now is to
manually swap the numbers for NROWS and NCOLS in the .hdr file.

Cheers,
    Olly



More information about the Survex mailing list