I am trying to rasterize a bunch of vector based shape files in QGIS. All these files are covering certain types of ground use in a city (houses, street, open field,...).
I need these files to be rasterized because I will be running an algorithm on them to determine the least cost path. And for this I need them to be rasterized with a certain fixed pixel size (1m x 1m in the real world). My vector files are 6 km x 10 km but when I rasterize one of the files (for ex: railroads) which isn't reaching over the total 6 km in x direction and over the 10 km in y direction but only over the first 3 km x and 10 km y, the rasterized file is also only 3 km x 10 km.
Somebody any idea how to solve this? Because in this manner, when I choose a pixel size of 6000 + 10000 I'll get pixels with a size of 0,5 m x 1 m in stead of 1 m x 1 m.


"You can use this same command directly on the console or terminal to bash rasterize all your vector in one go."
How can I provide terminal or the console with information which files to convert?
– Peter Vanvoorden May 10 '14 at 09:45gdal_rasterize [-b 1] [-burn 255] [-te 170000.2 168000.27 177999.8 177999.8] <Adp322.shp> <\Users\PeterVanvoorden\Desktop\work.tif>
The same for this one:
gdal_rasterize [-b 1] [-burn 255] [-te 170000.2 168000.27 177999.8 177999.8] <Adp322.shp> <work.tif>
– Peter Vanvoorden May 10 '14 at 11:18