An application of the Least Squares 3D algorithm for territorial monitoring and control