2

I have a c. 60 MB file containing the GTOPO30 30-arc second (c. 1 km) digital elevation model of Africa. The dataset is described here: https://databasin.org/datasets/2965da954b114ff3b47621e99e3b29ba.

When manually running the gdal:polygonize processing algorithm to vectorize the raster layer from the QGIS processing toolbox, even after many hours of waiting, QGIS is still working on the transformation and showing the "Processing algorithm ..." message (exact command in English might differ due to translation from my native language).

My input parameters are the following:

{
'BAND' : 1,
'EIGHT_CONNECTEDNESS' : FALSE,
'EXTRA': '',
'FIELD': 'elevation',
'INPUT' : '<raster vector file path>',
'OUTPUT' : '<desired output file path>'
}

Can community members more familiar with QGIS help me understand if this behaviour is to be expected or if there is maybe any way to speed up this process?

I run QGIS version 3.12 on a computer with Windows 10 (AMD Ryzen 7 3700 CPU / 8 GB RAM).

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 17, 2020 at 16:04

1 Answer 1

3

The algorithm is trying to create polygon geometries for each elevation value.

The common case is that there are many single pixels that must be transformed into polygons with the size of the pixel.

Also, adjacent and edge pixels may form invalid geometries.

In general, a polygonization of a DEM is not what we want, and usually the solution is to make another process to get the desired result, that may be get contour lines.

answered Mar 18, 2020 at 1:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.