# Cannot remove trees (high vegetation) from DTM

**URL:** <https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539>\
**Category:** PIX4Dmapper Questions/Troubleshooting\
**Created:** [November 17, 2020, 10:59pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539 "2020-11-17T22:59:13Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![CK\_FSLA](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/ck_fsla/32/2846_2.png) [@CK\_FSLA](https://community.pix4d.com/u/CK_FSLA)\
**Post date:** [November 17, 2020, 10:59pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/1 "2020-11-17T22:59:13Z")

</div>

I have classified points in the DSM (added trees to high vegetation) and re-generated a DTM but the software keeps adding the elevation data for the trees in both the geotiff and contours.

Does it matter if I add the tree points to [“high vegetation” or “disabled?”](https://community.pix4d.com/t/removing-vegetation-from-surface-model/8923) The main issue is that the trees are still throwing off my topo / creating humps. See the screenshots below.

Maybe I am not following the process correctly. This is what I do:

1. In **rayCloud** I choose “edit Densified Point Cloud”

2. Select points and assign to this case “High Vegetation” - _I notice sometimes I have to left-click several times in a location when creating a selection_

3. Unclick “edit Densified Point Cloud”

4. Process\ “Generate DTM” - _This prompts me to save which I do._

5. Process\ “Generate Countour Lines (DTM)”

Orthomosaic:

 ![Screenshot_11](https://global.discourse-cdn.com/pix4d/original/2X/b/b4c4abc7e86465d9ec846a5e5be976197cafe81a.jpeg)

DTM:

 ![Screenshot_12](https://global.discourse-cdn.com/pix4d/original/2X/4/4d336ff1cc692cb91052d520c56f8592b2c85dfa.jpeg)

Point Groups:

 ![Screenshot_14](https://global.discourse-cdn.com/pix4d/original/2X/3/36e78c92512f4557f1c5770eacd971171b8e1f28.jpeg)

Contours (CAD):

 ![Screenshot_15](https://global.discourse-cdn.com/pix4d/original/2X/3/3ab9d346cb3b5ca866c9bc9573002bb51d14ceac.jpeg)

Any help would be greatly appreciated! Thanks

---

<div class="post-metadata">

**Author:** ![Andrew\_Milanes](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew\_Milanes](https://community.pix4d.com/u/Andrew_Milanes)\
**Post date:** [November 18, 2020, 1:35am UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/2 "2020-11-18T01:35:11Z")

</div>

You have to export the edited point cloud then proceed with Step 3.

---

<div class="post-metadata">

**Author:** ![CK\_FSLA](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/ck_fsla/32/2846_2.png) [@CK\_FSLA](https://community.pix4d.com/u/CK_FSLA)\
**Post date:** [November 18, 2020, 5:09pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/3 "2020-11-18T17:09:11Z")

</div>

Thanks for the response! I found this reference which is pretty good for others who run into this:

> **[How to export the Point Cloud](https://support.pix4d.com/hc/en-us/articles/203890769-How-to-export-the-Point-Cloud)**
>
>  
> 
> Access:  Available once step 2. Point Cloud and Mesh has been completed.
> 
> 
>  
> 
> Important: If a Processing Area exists, only points within the processing area are exported.
> 
> One Densified Point Cl...

I will check to make sure everything works and then accept solution.

---

<div class="post-metadata">

**Author:** ![CK\_FSLA](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/ck_fsla/32/2846_2.png) [@CK\_FSLA](https://community.pix4d.com/u/CK_FSLA)\
**Post date:** [November 19, 2020, 9:56pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/4 "2020-11-19T21:56:51Z")

</div>

Ok, so I’ve been playing with this and still can’t get it to work. I export the edited point cloud as an las file and now what? Do I create a whole new project based on the exported las? Do I re-import it into the same project? I keep getting the same contour outputs that include high vegetation.

---

<div class="post-metadata">

**Author:** ![Andrew\_Milanes](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew\_Milanes](https://community.pix4d.com/u/Andrew_Milanes)\
**Post date:** [November 19, 2020, 10:19pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/5 "2020-11-19T22:19:38Z")

</div>

Did you overwrite the existing las file? If that still doesn’t work, try moving the high vegetation to disabled, then export again. That should definitely work.

---

<div class="post-metadata">

**Author:** ![CK\_FSLA](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/ck_fsla/32/2846_2.png) [@CK\_FSLA](https://community.pix4d.com/u/CK_FSLA)\
**Post date:** [November 19, 2020, 10:30pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/6 "2020-11-19T22:30:23Z")

</div>

Hi. Thanks for the response. No, I exported to a separate location. I only have two las files in the project data folder called _result\_tracks2\_full\_0.25.las_ (39mb) and _result\_tracks3\_full\_0.25.las_ (19mb). They are pretty small compared to the version I exported (1.6gb). Where do you find the existing las file?

Is there a straightforward tutorial or guide on how to do this? It seems like a core feature of the software but I am finding it very convoluted and confusing. Thanks!

---

<div class="post-metadata">

**Author:** ![Andrew\_Milanes](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew\_Milanes](https://community.pix4d.com/u/Andrew_Milanes)\
**Post date:** [November 19, 2020, 10:42pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/7 "2020-11-19T22:42:05Z")

</div>

You export it to this folder: \2\_densification\point\_cloud\

---

<div class="post-metadata">

**Author:** ![Blaz](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/blaz/32/4344_2.png) [@Blaz](https://community.pix4d.com/u/Blaz)\
**Post date:** [November 20, 2020, 6:41pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/8 "2020-11-20T18:41:44Z")

</div>

Hi @CK_FSLA and @Andrew_Milanes

Once the points are assigned to the Disabled class and others, the software is smoothing those categories depends on category weight the Pix4Dmapper assigns them.  
We apply to the Disable class intense smoothing, but it may happen you still see some ‘‘leftovers’’. It actually depends on the dataset.

What you could do with your classification is to draw surfaces after you assign points to Disable category (to fill the holes) — more information in [How to draw a Surface in the rayCloud](https://support.pix4d.com/hc/en-us/articles/202560269-How-to-draw-a-Surface-in-the-rayCloud). Afterwards, run Step 3 or use the _Process\ Generate DTM_ and _Process\ Generate Countour Lines (DTM)_.

Using the surface should flat out the vegetation area.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![Derrick\_Westoby1](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@Derrick\_Westoby1](https://community.pix4d.com/u/Derrick_Westoby1)\
**Post date:** [November 24, 2020, 12:49am UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/9 "2020-11-24T00:49:32Z")

</div>

> We apply to the Disable class intense smoothing, but it may happen you still see some ‘‘leftovers’’.

Well, that’s a horrifying revelation.

---

<div class="post-metadata">

**Author:** ![Andrew\_Milanes](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew\_Milanes](https://community.pix4d.com/u/Andrew_Milanes)\
**Post date:** [November 24, 2020, 2:23pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/10 "2020-11-24T14:23:52Z")

</div>

This is one of the most difficult and time consuming tasks in P4D. It really take a lot of editing and fine tuning of the point cloud to get the DTM to look right. However, if you only need contours, you don’t have to get the point cloud perfect. Just get it close enough and edit the contour settings to smooth out the lines. Increase your minimum spacing and feature size and it will ignore all the “leftovers”. Your DTM may not look great, but your contours will.

I wish P4D’s classification algorithm was better or could be fine tuned for each project. Because right now, it’s really not that great. Having a ground / not ground classification would be much more useful that what is there right now.

---

<div class="post-metadata">

**Author:** ![Derrick\_Westoby1](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@Derrick\_Westoby1](https://community.pix4d.com/u/Derrick_Westoby1)\
**Post date:** [November 24, 2020, 3:03pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/11 "2020-11-24T15:03:20Z")

</div>

I stopped trying to generate a DTM in Pix4d 4 years ago. Classifying the point cloud ends up being more time consuming than generating a DTM in GIS with some better LiDAR tools. The only instances where I take the time to edit the point cloud is removing conveyors when doing stockpile calculations. Otherwise, surface building takes place in GIS.

---

<div class="post-metadata">

**Author:** ![Andrew\_Milanes](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew\_Milanes](https://community.pix4d.com/u/Andrew_Milanes)\
**Post date:** [November 24, 2020, 7:17pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/12 "2020-11-24T19:17:41Z")

</div>

Yeah same. I use ArcGIS pro for this.

---

<div class="post-metadata">

**Author:** ![CK\_FSLA](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/ck_fsla/32/2846_2.png) [@CK\_FSLA](https://community.pix4d.com/u/CK_FSLA)\
**Post date:** [November 26, 2020, 12:08am UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/13 "2020-11-26T00:08:46Z")

</div>

Interesting. So what do you actually use Pix4D for in that workflow? Is there a part of the process that Pix4D excels in compared to Pix4D?

---

<div class="post-metadata">

**Author:** ![CK\_FSLA](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/ck_fsla/32/2846_2.png) [@CK\_FSLA](https://community.pix4d.com/u/CK_FSLA)\
**Post date:** [November 26, 2020, 12:31am UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/14 "2020-11-26T00:31:13Z")

</div>

Honestly, I’m about to give up on this. I’ve spent way to too much time messing with this. When I look at my Point Group Classifications, everything looks good. Anything remotely resembling vegetation is on _ **Disabled** _. I Exported the point cloud and created the contours (Process\generate DTM) and I still have +12’ bumps in locations of trees. I can’t even understand where it’s getting the data from. Can I just Save As and delete the points? Can I delete the tie points?

I purchased one month of this software and am considering not extending the license. I’ve spent so much time on this project and still don’t have a decent product. Sorry for venting…

---

<div class="post-metadata">

**Author:** ![Andrew\_Milanes](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew\_Milanes](https://community.pix4d.com/u/Andrew_Milanes)\
**Post date:** [November 26, 2020, 1:52am UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/15 "2020-11-26T01:52:39Z")

</div>

I use Pix4D to create the point cloud. Then I use ArcGIS Pro to classify the ground then create a DTM. It does a pretty good job, but I still have to perform manual editing.

---

<div class="post-metadata">

**Author:** ![Derrick\_Westoby1](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@Derrick\_Westoby1](https://community.pix4d.com/u/Derrick_Westoby1)\
**Post date:** [November 30, 2020, 11:49pm UTC](https://community.pix4d.com/t/cannot-remove-trees-high-vegetation-from-dtm/15539/16 "2020-11-30T23:49:02Z")

</div>

As Andrew said, Pix4d for photogrammetric processing, then GIS (Global Mapper + Lidar) to do my work (surface building, feature extraction & digitizing).

IMO, Pix4d is worth the money (and easier to learn than alternatives) and I really do love the program, but it just doesn’t have great tools for what you are trying to do. It’s kind of like using a flat head screwdriver for a phillips head screw. It works surprisingly well in some areas for tasks beyond what it’s mean to be used for, but it’s worth it to pick up the right tool (GIS / Cloud Compare) if you regularly have work to do _after_ photogrammetric processing.

edit: I can’t volunteer for doing some in-depth surface building for you, but I don’t mind making you a TIN from your classified points that you spent that time editing in Pix4d. If you export out your point cloud, I can make you a couple of TINs from your points classified as ground so that you can see what the value is in doing that type of stuff in a different program. email is FIRST NAME DOT LAST NAME AT [pbsusa.com](http://pbsusa.com)
