<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">This is the prototype of the function <br><table style="width: 393px; height: 65px;" class="memname"><tbody><tr><td class="memname">double G_col_to_easting           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br></td>
          <td><br></td>
          <td class="paramtype">const struct Cell_head *&nbsp;</td>
          <td class="paramname"> <em>window</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br></td>
          <td>)</td>
          <td><br></td></tr></tbody></table>For each cell I know the geographic decimal coordinate (for example -78.847804 , -2.814949) but what I'd like to know is its UTM coordinate (x=739254.864 , y=9688649.285594).<br><br>I don't know how using G_col_to_easting and G_row_to_northing to have these translations<br><br>--- <b>Ven 25/7/08, Glynn Clements <i>&lt;glynn@gclements.plus.com&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Glynn Clements &lt;glynn@gclements.plus.com&gt;<br>Oggetto: Re: [GRASS-dev] A function for obtaining UTM coordinate<br>A: roberto.caselli@yahoo.it<br>Cc: grass-dev@lists.osgeo.org<br>Data: Venerdì 25 luglio 2008, 21:03<br><br><pre>roberto caselli wrote:<br><br>&gt; I need a GRASS function for obtaining for each cell its UTM<br>&gt; coordinate.<br><br>In C, G_col_to_easting() and G_row_to_northing() translate col/row<br>coordinates to geographic
 or cartographic coordinates. Note that the<br>arguments are floating point values, so you need to use e.g. col+0.5<br>and row+0.5 if you want the coordinate of the cell's centre.<br><br>In r.mapcalc, the x() and y() functions return the coordinates of the<br>cell's centre.<br><br>-- <br>Glynn Clements &lt;glynn@gclements.plus.com&gt;<br></pre></blockquote></td></tr></table><br>



      <hr size=1>
Posta, news, sport, oroscopo: tutto in una sola pagina<br> <a  
href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52437/*http://www.yahoo.it/latuapagina" target=_blank>Crea l&#39;home page che piace a te!</a>.