I am using OSM vector data which has been converted into shapefiles. I have polygons representing buildings, landuse and lines representing roads as shown bellow:
I want to assign some symbology to the features like blue color for the buildings, green for landuse and white color for the roads with different width and convert them into a raster file, some thing like this:
I know that there are several tools for rending vector data into raster like mapnik and Maperitive etc.. but I want to do this task independent of such tools in a open source environment. I tried gdal_rasterize, the problem with it is that it only accepts one geometry type at a time, I can cannot feed multiple geometries like polygon and lines together. I can use it separately for each geometry type and then somehow merge all the rasters but an other problem in this approach is that I cannot specify width to the line, rather it will take the line with single pixel width.
Some folks have suggested me to simply export the Map to Image by setting the background of canvas as black in QGIS, but I need georeferenced maps which doesn't seems to be possible with this approach.