enter image description hereI have a point layer with soil values. How can I get a raster layer with different classes of values, since there are areas without point sampling, what´s the best way to have a regular cover of the total area, given the sampling points?enter image description here?


Without knowing much about the data try this approach:

In QGIS go to Raster > Analysis > Grid

Select the point file as input and name an output file.

Select algorithm as Inverse distance to power. Just as a starting point try setting min points to 5 and max to 20. Start with large radius say 30 or 40 for both and then slowly decrease as you observe results. Leave other settings as default.

Once map is processed right click on the layer and go to Properties > Style and select Render type as Single band Psuedocolor. Select a color ramp then click Classify and Apply.

Now this assumes you are using a UTM type projection with map units in metres.

IDW in QGIS/GDAL is a good start but with soil sampling you may want to try Kriging the data. University of Sydney have software Vesper which is designed for this. It has a fairly steep learning curve though. More information here: http://sydney.edu.au/agriculture/pal/software/vesper.shtml


First you must have an opinion to the resolution of your data. How fare away do the soil data have a spatial relation. You can then interpolate between the lines. Your soil data resolution will give you a hint for how large you wants the grid cells in the raster. A good interpolation method on soil data (geophysical or geochemical) is IDW since it smoothens you data slightly washing out some of the uncertainties in machinery and laboratory analysis. In QGIS menu Raster > Interpolation pick output interpolation method to IDW and experiment with the settings.

  • Thank you very much for your help. As you can see in the attached image the distances between the lines are very variable. The ideal is to get a map with soil data classes variation – Maria silva Nov 30 '15 at 11:51
  • Make the cell size ½ of the ca. average distance between the lines. Do an IDW. Set the raster as a discrete color interpolation on a singleband pseudocolor style to see the classes and see if you like the result. – Jakob Nov 30 '15 at 12:08
  • i just added a new image. My average distance is 7 meters. How can I improve the visualization? changing power?smothing, radius,?thank you – Maria silva Nov 30 '15 at 13:16
  • The one you using has a short description here: gdal.org/gdal_grid.html. You need to understand the math and all the parameters. Then experiment with the different settings until you believe you have the best result for your data. – Jakob Nov 30 '15 at 14:01
  • I'm using QGIS Wien 2.8.1. Do you know whay the menu RASTER doesn´t contain the option for "interpolation"? I cant manage to find this option.... – Maria silva Nov 30 '15 at 16:11

I have an difference between my data and raster when defining the same SRC (Layer Reference system) for both. Do you know how can takeover this problem?enter image description here

  • Hi @Mariasilva, could you edit your question to include this new information please instead of posting it as an answer? – Joseph Dec 9 '15 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.