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 StimsonCommented Mar 18, 2015 at 2:28
Add a comment
|
1 Answer
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):
However, if the 'id' field is selected, whose values are between 1 and 5, the result (point_raster.tif) is totally different:
It could be your problem.