Hot answers tagged

49 votes
Accepted

Creating transparent hillshade?

Nutshell Each set of 3 images below should be read such as "grey (band) + opacity (band) = transparent result". You can test these processes within minutes via the associated github hosted ...
Hugolpz's user avatar
  • 2,633
22 votes

Splitting raster into smaller chunks using GDAL?

There's a bundled python script specifically for retiling rasters, gdal_retile: gdal_retile.py [-v] [-co NAME=VALUE]* [-of out_format] [-ps pixelWidth pixelHeight] [-overlap ...
mikewatt's user avatar
  • 4,718
22 votes
Accepted

What is NASADEM and when it will be released?

NASADEM is a full reprocessing of the SRTM data using state-of-the-art interferometric processing techniques. It also improves accuracy, reduce gaps and improve the quality of the data used to fill ...
Camilo Rada's user avatar
  • 1,209
20 votes

Choosing DEM in France?

The answer is not as simple as the question may imply. If we had one "best one" we would not need the others, we would just use the best. Horses for courses though, needs matter. Saying that. This ...
If you do not know- just GIS's user avatar
20 votes
Accepted

Hillshade results look too grainy

I think you are using Geographic CRS not Projected CRS. Usually this hillshade output is due to you are not using a projected DEM such as UTM projection with a meter unit. You need first to reproject ...
ahmadhanb's user avatar
  • 39.6k
17 votes

Viewing LIDAR data (.las) in QGIS?

QGIS 3.18+ supports point cloud visualisation natively.
Peter Petrik's user avatar
  • 1,315
17 votes

Producing smooth and consistent contour lines from SRTM

To smooth your contours it is the best way to smooth your DEM first. Here are some useful information: What raster smoothing/generalization tools are available? I'm using SAGA GIS for this task. ...
Stefan's user avatar
  • 4,344
16 votes
Accepted

calling gdal_merge into python script

Add an empty argument in the first approach (because gdal_merge.py parses arguments starting from 1 and not 0): import sys sys.path.append('C:\\OSGeo4W64\\bin') import gdal_merge as gm gm.main(['', '-...
Antonio Falciano's user avatar
14 votes
Accepted

Converting LAS 1.4 to 1.2

For converting to las 1.2 from las 1.4, PDAL's translate command is an option: pdal translate --writers.las.minor_version=2 input-las14.las output-las12.las LAStools can also do the job: las2las -i ...
Pete Gadomski's user avatar
13 votes

Hillshade shows grid texture artifacts

The problem is because the DTM has a high-resolution pixel size when data (in my opinion) doesn't have the same resolution is some areas. For example, direct hillshade raster: Check pixel values (...
aldo_tapia's user avatar
12 votes

Smoothing DEM using GRASS?

Tom Patterson, the lead cartographer at the U.S. National Parks Service has some excellent tutorials on working with DEM data to make beautiful shaded reliefs. Part of his workflow involves using ...
clhenrick's user avatar
  • 1,775
12 votes

How to perform a slope analysis in QGIS?

Slope analysis is performed on a DEM (raster layer with elevation values). This is one way to do it. If your contours have an elevation value, you can use the interpolation option (raster/...
Gerardo Jimenez's user avatar
12 votes
Accepted

Querying Elevation Data in Postgis

Your elevation points are definitely regularly aligned and hence there is no need to bother about nearest neighbors. The value of the pixel in which your point fall into is always the value of the ...
Pierre Racine's user avatar
12 votes
Accepted

Making an animation of an evolving digital elevation model

Probably the best tool for this is Paraview. Once you've downloaded and acquired that you'll want to load your images: Use the CSV reader to load them: Below, you can find filters faster by pressing ...
Richard's user avatar
  • 1,811
12 votes
Accepted

Update DEM based on line feature in QGIS

You can use r.carve within QGIS and set up a negative stream depth to increase the height of your DEM along your line feature (In the image below a positive stream depth have been applied to the DTM)
wanderzen's user avatar
  • 2,012
11 votes
Accepted

How to create composite hillshade?

The linked source mention "change its fusion mode to < Multiply >", so the operation to do is not a simple average of input hillshades (for this, see also How to average gdal_hillshades?). It's ...
Hugolpz's user avatar
  • 2,633
11 votes

In hydrologic terrain analysis is there a difference between "pits", "depressions", and "sinks"?

There is a difference, and I recommend the typology presented by Lindsay (2015) be used. Lindsay (2015) presents a typology which defines a pit as a single cell in a DEM whose elevation is below that ...
Richard's user avatar
  • 1,811
11 votes

How to replace pixel values in a single band DEM?

You can do something similar using gdal_calc.py, e.g.: gdal_calc.py -A dtm.tif --calc='((A>=100)*(A<=200))*A+((A<100)*0)+((A>200)*0)' --outfile=dtm_reclass.tif --NoDataValue=-32767 This ...
dmci's user avatar
  • 4,862
11 votes
Accepted

Generating STL (3D) file from raster ASTER GDEM data?

I know QGIS has a plugin that export DEM to STL using DEMto3D, and I tested on a DEM and it worked. The description of the plugin mentioned that clearly: DEMto3D is the first tool that links GIS (...
ahmadhanb's user avatar
  • 39.6k
11 votes
Accepted

Merging drone/photogrammetry-derived DEM and satellite-derived DEM using ArcGIS Pro

Assuming: both are in the same projection / coordinate reference system, you have a Image/Spatial Analyst license, and NoData has been set correctly on the High res DEM. You could use a Raster ...
user2856's user avatar
  • 60.2k
10 votes

Understanding min and max values with Mosaic to New Raster?

As whuber mentioned, often statistics found in the raster properties are sometimes approximate or are out-of-date. They are predetermined properties that can be misleading to the actual raster values. ...
Mike T's user avatar
  • 41.3k
10 votes
Accepted

Getting incorrect slope values from an ASTER DEM in QGIS?

Aster DEMs are in EPSG 4326 (lat lon WGS84). According to the GDAL DEM documentation: For LatLong projections near the equator, where units of latitude and units of longitude are similar, ...
Gerardo Jimenez's user avatar
10 votes

Extracting Values to Points without ArcGIS Spatial Analyst?

Script: import arcpy, traceback, sys, os pntFile=arcpy.GetParameterAsText(0) rasters=arcpy.GetParameterAsText(1) rasters=rasters.split(';') theFields=[x.name.lower() for x in arcpy.ListFields(...
FelixIP's user avatar
  • 22.4k
10 votes

Different DEM range values in QGIS and ArcGIS

In both software, the initial data range is just an estimate, which can easily be manipulated. For instance, should you display several DEM side by side, you will likely want to use a common range so ...
JGH's user avatar
  • 38.4k
10 votes
Accepted

Adjacent DEM color matching in QGIS?

In the main menu bar, go to Raster | Miscellaneous | Build Virtual Raster and select all the tiles you want to group (don't forget to uncheck the Place each input file into a separate band tickbox). ...
Gabriel's user avatar
  • 3,048
10 votes
Accepted

Elevation from TIFF file

Save the Excel file as CSV In GIS, add the CSV file to QGIS using "Layer > Add Layer > Add Delimited Text Layer" Use "Sample raster values" from "Processing Toolbox (...
Kadir Şahbaz's user avatar
10 votes

Extract raster value at each vertex from line, while keeping the line

You can use "Drape (set Z value from raster)" tool to set the z value of every vertex in the densified line to a value sampled from a raster.
Kadir Şahbaz's user avatar
10 votes

Make the pixel values of the DEM correspond to the actual heights

I had a similar SE-GIS question several years ago. The answer: by default, QGIS displays an estimate of the min/max values, which results in the unexpected values. To see this, open up the Min/Max ...
Stu Smith's user avatar
  • 7,759
9 votes

Seeking tool to generate Mesh from DTM?

We have just created an open source project that will help you do exactly what you want. Tin-Terrain is a simple command line tool that will generate a mesh from DEM files either as TIN or TRN. The ...
morishuz's user avatar
  • 245
9 votes

Creating transparent hillshade?

Another way to get the same result of a non-grey canvas more suitable for combining with other layers is the 'combined' option in gdaldem. It performs a slope and hill shade and combines the two in ...
Rob's user avatar
  • 606

Only top scored, non community-wiki answers of a minimum length are eligible