diff --git a/MeshGeoToolsLib/GeoMapper.cpp b/MeshGeoToolsLib/GeoMapper.cpp
index fc9ff4c67de0d5ad6740571ab70437c5e2ed8328..fd3b4f61091b0037376851a1bb68fe67a7ca260b 100644
--- a/MeshGeoToolsLib/GeoMapper.cpp
+++ b/MeshGeoToolsLib/GeoMapper.cpp
@@ -107,7 +107,7 @@ void GeoMapper::mapOnMesh(const MeshLib::Mesh* mesh)
 	if (GeoLib::isStation((*pnts)[0])) {
 		mapStationData(*pnts);
 	} else {
-		mapPointDataToMeshSurface();
+		mapPointDataToMeshSurface(*pnts);
 	}
 
 	delete _grid;
@@ -166,7 +166,7 @@ void GeoMapper::mapPointDataToDEM(std::vector<GeoLib::Point*> const& points)
 	}
 }
 
-void GeoMapper::mapPointDataToMeshSurface()
+void GeoMapper::mapPointDataToMeshSurface(std::vector<GeoLib::Point*> const& pnts)
 {
 	GeoLib::AABB const aabb(
 		_surface_mesh->getNodes().cbegin(), _surface_mesh->getNodes().cend());
diff --git a/MeshGeoToolsLib/GeoMapper.h b/MeshGeoToolsLib/GeoMapper.h
index 6a61da5854a1b5ecf88a3021370d035362dd4eaa..f1e93fecc078b18fac6df440985f9d7075296a02 100644
--- a/MeshGeoToolsLib/GeoMapper.h
+++ b/MeshGeoToolsLib/GeoMapper.h
@@ -77,7 +77,7 @@ private:
 	void mapPointDataToDEM(std::vector<GeoLib::Point*> const& points);
 
 	/// Mapping points on mesh.
-	void mapPointDataToMeshSurface();
+	void mapPointDataToMeshSurface(std::vector<GeoLib::Point*> const& points);
 
 	/// Returns the elevation at Point (x,y) based on a mesh. This uses collision detection for triangles and nearest neighbor for quads.
 	/// NOTE: This medhod only returns correct values if the node numbering of the elements is correct!