<div dir="ltr"><div>Here a short example for a subregion of the North Carolina Sample Dataset with resolution 10x10 m</div><div><br></div><div>g.region -p </div>
<div>projection: 99 (Lambert Conformal Conic)</div><div>zone: 0</div><div>datum: nad83</div><div>ellipsoid: a=6378137 es=0.006694380022900787</div><div>north: 224820</div><div>south: 224450</div><div>
west: 641120</div><div>east: 641660</div><div>nsres: 10</div><div>ewres: 10</div><div>rows: 37</div><div>cols: 54</div><div>cells: 1998</div><div><br></div><div>When I run following command I get a raster map with the value 1 for the coordinate pair 641335.0/224515<span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px;color:rgb(0,0,0)">.00 (cell center). All </span><span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px;color:rgb(0,0,0)">other cell have the value 0.</span><br>
</div><div><br></div><div><span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px;color:rgb(0,0,0)">r.mapcalc "newmap = if(abs(x()-</span>641335.0<span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px;color:rgb(0,0,0)">)<0.001 && abs(y()-</span>224515<span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px;color:rgb(0,0,0)">.00)<0.001, 1, 0)"</span></div>
<div><span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px;color:rgb(0,0,0)"><br></span></div><div><font class="Apple-style-span" color="#000000" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">/Johannes</span></font></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 10, 2013 at 2:21 PM, Ivan Marchesini <span dir="ltr"><<a href="mailto:ivan.marchesini@gmail.com" target="_blank">ivan.marchesini@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrea,<br>
may be you need something like that:<br>
<a href="http://grass.osgeo.org/grass65/manuals/r.in.xyz.html" target="_blank">http://grass.osgeo.org/grass65/manuals/r.in.xyz.html</a><br>
<br>
I'm not sure if that was the problem.<br>
<br>
all the best<br>
<span class="HOEnZb"><font color="#888888"><br>
Ivan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, 2013-12-10 at 05:01 -0800, aborruso wrote:<br>
> Hi Johannes,<br>
> thank you.<br>
><br>
> Johannes Radinger wrote<br>
> > What do you mean exactly with creating a raster from a coordinate pair?<br>
><br>
> You are rigth, I have to be more understandable.<br>
><br>
> I have defined region, with a defined extent and a defined resolution.<br>
> Starting from a coordinate pair I would like to create a boolean raster<br>
> (with the same extent and resolution of my region) that "register" my pair<br>
> (in example 1 for my pixel and 0 for all the rest).<br>
><br>
> Best regards,<br>
><br>
> Andrea<br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Create-a-raster-starting-from-a-coordinate-pair-tp5093513p5093523.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Create-a-raster-starting-from-a-coordinate-pair-tp5093513p5093523.html</a><br>
> Sent from the Grass - Users mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</div></div></blockquote></div><br></div>