terrain parsing