Terrain parsing, first step