fix reading elevation values and set material ID by layer ID