1

When I change a vector layer to raster using raster button->converse->Vector rasterization in QGIS2.8. I get only a black picture.
Why is that so and how can I convert a vector layer to a raster layer.

1
  • It sounds like at some point you're off your spatial reference which means the raster doesn't line-up with your vector (or the other way around). Are you trying to rasterize into an existing raster or create a new one? Commented Mar 18, 2015 at 2:28

1 Answer 1

2

Rasterization depends of the field that you select. For example, in the following case I selected (in vector layer point_2) the 'field' field whose values are all 0. The result, point_2_raster.tif, is the same that you are obtaining (a black picture):

enter image description here

However, if the 'id' field is selected, whose values are between 1 and 5, the result (point_raster.tif) is totally different:

enter image description here

It could be your problem.

Your Answer

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

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