Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clip to DEM - enhancement request #167

Open
Llaves opened this issue Mar 9, 2019 · 5 comments
Open

Clip to DEM - enhancement request #167

Llaves opened this issue Mar 9, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@Llaves
Copy link

Llaves commented Mar 9, 2019

The canvas extent is used to generate the surface on which the image is draped. If the DEM does not fill the canvas, the region beyond the DEM is treated as 0. This is a real problem if the DEM is well above sea level, such as this one with minimum elevation 2740M.
dem2

Offsetting the elevation (using vertical shift) doesn't help - it just moves the "apron" to negative values.
The solution requires the user to adjust the canvas so that it has the same aspect ratio as the DEM and then to scale the view so the DEM exactly fills the canvas. Setting Vertical shift to auto then gives this:
dem1

It would be nice to automatically trim to the DEM extent if it is less than the canvas extent.

@kannes
Copy link

kannes commented Mar 22, 2019

Have you tried "Clip DEM with polygon layer"?

@Llaves
Copy link
Author

Llaves commented Mar 22, 2019

Yes, I've tried that, but there are two admittedly minor issues:

  1. You need to create a polygon layers with matching extend to have something to clip to.
  2. At least in my experience you need to first create a polygon with matching extent, you then need to buffer that layer inward by 10-20 meters to get a clip that doesn't wrap the image around the sides.

@DigDigDig
Copy link

DigDigDig commented Mar 22, 2019

Another hacky thing you can do is to use the 'Raster>Fill nodata...' tool. If you set a search distance it will interpolate to fill gaps in your DEM but also produce a buffer zone along the outside edge of your elevation source. That keeps ThreeJS from rendering any no data points along the edge as 0.

image

image

@minorua minorua added the enhancement New feature or request label Sep 5, 2019
@kannes
Copy link

kannes commented Sep 28, 2021

In modern versions you can clip the whole scene to a layer's extent. This might fix this, if your layer is rectangular.

@Exebecce
Copy link

Exebecce commented Sep 2, 2022

Hi,
After I solved the problem like Llaves, the problem is back with the 2.7.1 version of the plugin.
But now, I can't find the vertical shift setting to solve it.

This is not a NoData problem.

Has anyone solved this problem with the new version ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants