refac tiled DEM builder