Welcome to PhantomPilots. First off the P3S is not 4k it's 2.7k but thats just for video. Any drone with GPS can technically do terrain modeling, it is done using a series of photos and is called photogrametry. If you want the photo capture process to be automated I would recommend Drone Deploy or Altizure. The P3S cannot be used for this automated photo capture process, you would need a P3A at minimum. Here is a list of drones that are compatible with the Drone Deploy App for Android and iOS: Supported Drones
You can find out more about how it works here: Frequently Asked Questions