An integrated framework to control and monitor the territory