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.

  • 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? – Michael Stimson Mar 18 '15 at 2:28
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, privacy policy and cookie policy

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