From the course: Advanced QGIS Analysis with AI and Machine Learning

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Raster to vector with QGIS

Raster to vector with QGIS

There are five ways of converting your raster information into vector. Let's add in NANAIMO_DEM to start. I'll just zoom in and look at it. If we use our Identify Features tool, you can see yes, again there's the elevations. And two of the ways to convert this into a vector file is to use the vectorize tools, "vectorize", typing that inside the processing toolbox. And you'll see two: Raster pixels to points and Raster pixels to polygons. Let's try points. Double-click on that. There's not much in here. Basically say here's the file you want to convert. Here's the band and there's only one. And here's the value. And what file? Now I could save it as a shapefile, but I'll just make it temporary for now and hit Run. And what it's doing, it's creating a point file for every single pixel in the drawing. So if I zoom in here and I highlight and use my Identify Features, you'll see that pixel right there is basically the value of 286. The one beside it may also be 286 and so on. So all these…

Contents