[Qgis-user] Problem with Rasterize (Vector to raster) tool

Colin D. MacLeod cdmacleod at GISinEcology.com
Thu Apr 10 06:20:04 PDT 2014


Hi All,

I’m a fairly experienced GIS user, but I’m new to QGIS. I’m using version 2.2, and I’m trying to convert a point data layer into a raster data layer using the Rasterize tool. The point data layer has an integer field with a value of 1 for all records, and I want to make a raster data layer which has a value of one for each cell which has at least one point in it (some cells have more than one point in them). When I use the Rasterize tool, it creates the raster data layer fine, but all cells with have points in them appear to have a value of 0.995968. I’ve tried editing the gdal code (even making the resulting raster data layer an integer layer), but I still cannot get it to produce a raster with a value of 1 rather than just a number very close to one. 

Does anyone have any suggestions of where I might be going wrong and/or how to solve this issue?

On a related note, is it possible to use the Rasterize tool to work out the average or total values for all the points which fall in each grid cell? If so, how (I can’t find anything in the gdal instructions themselves which would suggest this is possible, but I might be missing something). If this isn’t possible to do with the Rasterize tool, are there other tools in QGIS which can do this?

Thanks for any help anyone can give on this.

All the best,

Colin

==================================================================================
GIS IN ECOLOGY - Providing Training, Advice And Consultancy On The Use Of GIS In Ecology

Web: www.GISinEcology.com Email: info at GISinEcology.com

Need to ask a question about using GIS? Try the GIS In Ecology Forum: www.GISinEcology.com/GIS_in_Ecology_forum.htm

Books From GIS In Ecology Staff:

An Introduction To Using GIS In Marine Biology; RRP: £44.99
An Introduction To Using GIS In Marine Biology: Supplementary Workbook One - Creating Maps Of Species Distribution; RRP: £19:99 
An Introduction To Using GIS In Marine Biology: Supplementary Workbook Two - Working With Raster Data Layers; RRP: £19.99 

If you wish to purchase these books, visit: http://www.gisinecology.com/Book_Shop.htm

To help the environment, please do not print out this email unless it is unavoidable.
==================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140410/00b9e26b/attachment.html>


More information about the Qgis-user mailing list