<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>In QGIS, ensure Processing plugin is enabled.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>From Processing interface, change the interface to Advanced (bottom of the toolbar)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Within the module search, type <b>v.to.rast<o:p></o:p></b></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>From the module list, select <b>v.to.rast.attribute<o:p></o:p></b></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Fill in appropriate boxes and hit Run.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Saber<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Saber Razmjooei<br><b>Lutra Consulting</b><br><a href="http://www.lutraconsulting.co.uk/" target="_blank" title="This external link will open in a new window"><span style='color:blue'>www.lutraconsulting.co.uk</span></a><br><br><br><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> qgis-user-bounces@lists.osgeo.org [mailto:qgis-user-bounces@lists.osgeo.org] <b>On Behalf Of </b>Colin D. MacLeod<br><b>Sent:</b> 10 April 2014 14:20<br><b>To:</b> qgis-user@lists.osgeo.org<br><b>Subject:</b> [Qgis-user] Problem with Rasterize (Vector to raster) tool<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Hi All,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>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. <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Does anyone have any suggestions of where I might be going wrong and/or how to solve this issue?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>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?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Thanks for any help anyone can give on this.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>All the best,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Colin<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>==================================================================================<br>GIS IN ECOLOGY - Providing Training, Advice And Consultancy On The Use Of GIS In Ecology<br><br>Web: <a href="http://www.GISinEcology.com">www.GISinEcology.com</a> Email: <a href="mailto:info@GISinEcology.com">info@GISinEcology.com</a><br><br>Need to ask a question about using GIS? Try the GIS In Ecology Forum: <a href="http://www.GISinEcology.com/GIS_in_Ecology_forum.htm">www.GISinEcology.com/GIS_in_Ecology_forum.htm</a><br><br>Books From GIS In Ecology Staff:<br><br>An Introduction To Using GIS In Marine Biology; RRP: £44.99<br>An Introduction To Using GIS In Marine Biology: Supplementary Workbook One - Creating Maps Of Species Distribution; RRP: £19:99 <br>An Introduction To Using GIS In Marine Biology: Supplementary Workbook Two - Working With Raster Data Layers; RRP: £19.99 <br><br>If you wish to purchase these books, visit: <a href="http://www.gisinecology.com/Book_Shop.htm">http://www.gisinecology.com/Book_Shop.htm</a><br><br>To help the environment, please do not print out this email unless it is unavoidable.<br>==================================================================================<o:p></o:p></span></p></div></div></div></div>
<br><br/>
<hr/>
<p style="font-family:arial,sans-serif; font-size:10px; color:#999;">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.</p>
<p style="font-family:arial,sans-serif; font-size:10px; color:#999;">Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viruses is  
 taken and it is your responsibility to carry out such checks as you feel appropriate.</p>
<p style="font-family:arial,sans-serif; font-size:10px; color:#999;">If this email contains a quote or offer to sell products, carry out work or perform services then our <a href="http://www.lutraconsulting.co.uk/downloads/Lutra%20Consulting%20Standard%20Terms%20and%20Conditions.pdf">standard terms and conditions</a> shall apply unless explicitly stated otherwise.</p>
<p style="font-family:arial,sans-serif; font-size:10px; color:#999;">Saber Razmjooei and Peter Wells trading as Lutra Consulting.</p>
<br/>

<br></body></html>