I tried to convert vector classification into raster file for accuracy analysis following these suggestions

My vector data is like this:

enter image description here

However, none works The first one, interpolation, resulting in .asc file which is invisible with zero value.

enter image description here enter image description here

The second one I tried to use rasterize function, it loaded, but nothing happen, the output is not change. I tried to follow this video tutorial by copying style, but the raster layer become invisible. enter image description here enter image description here

  • Hmm, it's just a guess: is there a tiny polgon feature selected, and are you trying to rasterize one single small feature? Cellsize and X/Y min/max values in the 2nd image look strange. 300x300 cells of size 0, covering an area of about 100x100 meters? (if coordinates are in degrees) – Detlev Mar 28 '16 at 17:08
  • No, i didn't select any features, and trying to rasterize the whole image – monruw Mar 28 '16 at 17:34
  • cellsize 0.00000 ? – RutgerH Mar 28 '16 at 17:35
  • i tried to put cellsize x and y as 1.0, and number of row and collumn 1000. the result is a raster file with "NAN" value – monruw Mar 28 '16 at 17:54

Since the input file is a shapefile and you need to convert your data from vector to raster, I think what you need to do is to select "raster size in pixels" and specify the desired output pixel size as you can see in the image below:

enter image description here

  • it works :D thanks. I tried to put 10000 in the raster size and it is work. Thank you so much – monruw Mar 30 '16 at 11:08

I am one of the authors of the video tutorial that you mentioned.

Just to see, try giving the row and line number using braster size in pixel. Or try processing using the grass tools v.to.rast Maybe you could upload the shape for testing?

  • It works now. I have to choose raster size in pixel. thanks – monruw Mar 30 '16 at 11:09

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.