TransDEM Forum

TransDEM News, Support, Hints and Resources
It is currently 14 May 2024 06:53

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: DEM Crop Not Working
PostPosted: 27 Mar 2016 19:50 
Offline

Joined: 27 Mar 2016 17:29
Posts: 3
I have tried to use the DEM Crop tool with both large and small DEM samples and nothing happens. When I save the DEM the file size is the same and the coverage area remains the same. I am using Version 2.6.0.1.


Top
 Profile  
 
 Post subject: Re: DEM Crop Not Working
PostPosted: 28 Mar 2016 13:11 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
All DEM files cover a rectangular area. If you crop-off part of it, but the overall dimensions remain the same, the file size will also remain the same. (The MicroDEM .dem file format, which is used by TransDEM, does not compress.)


Top
 Profile  
 
 Post subject: Re: DEM Crop Not Working
PostPosted: 04 Apr 2016 06:13 
Offline

Joined: 14 May 2014 01:51
Posts: 4
I just came here to post the same thing. I'm also unable to crop a DEM. I load the DEM, select a rectangular area, hit the crop button, but nothing changes. I was expecting the area outside the selection to disappear, but it remains the same. If it helps, the DEM I'm using is posted at http://carsoncarshops.com/files/m_and_p.zip (630 MB).
I'm sure I'm just missing a step somewhere, but I just can't see it.
I'm running TranzDEM 2.5.1.0 x64 on Win 10 x64.

Any help you can provide would be great!

Thank you,
Curtis


Top
 Profile  
 
 Post subject: Re: DEM Crop Not Working
PostPosted: 04 Apr 2016 19:12 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
Hello Curtis,

this is quite strange. Works fine here.

Image
Image


Top
 Profile  
 
 Post subject: Re: DEM Crop Not Working
PostPosted: 05 Apr 2016 04:45 
Offline

Joined: 14 May 2014 01:51
Posts: 4
Like I said, I'm sure I'm just clicking something wrong, or missing a step.

I first define a rectangular area using the mouse pointer:
Image

I then click on the 'crop' button (circled):
Image

The operation completes and the rectangular box is gone, but the DEM hasn't changed:
Image

Any ideas?
Curtis


Top
 Profile  
 
 Post subject: Re: DEM Crop Not Working
PostPosted: 05 Apr 2016 08:36 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
I see.

The "Reduce Margins" command will do a crop indeed, but uses the DEM bounding box as its mask. The bounding box is an invisible rectangular mask which encompasses all non-void points of the DEM.

So, to crop a DEM, you first have to erase portions of the DEM, setting points to "void". For this you usually draw and drag the normal mask around the area you want to preserve and then apply the "Erase DEM points" command, the scissors icon. The cursor will change shape. Then you click outside your mask. A dialog box will pop-up which allows you to adjust the behavior of the function. Once applied, you will get the results shown in my screenshots.

After that, you can apply the "Reduce Margins" function and it will work as expected. Note that "Reduce Margins" will also be applied automatically if you save any DEM to file.


Top
 Profile  
 
 Post subject: Re: DEM Crop Not Working
PostPosted: 06 Apr 2016 06:55 
Offline

Joined: 14 May 2014 01:51
Posts: 4
That was it; thank you for the help!!

Curtis


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Imprint & Privacy

Powered by phpBB® Forum Software © phpBB Group