<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Ok, row and col are known, but when I call <br><pre>G_col_to_easting or G_row_to_northing, they return lat/lon coordinates.<br>So I don't know how to tell to these functions that I want UTM coordinates.<br><br><br></pre><br>--- <b>Sab 26/7/08, Glynn Clements <i><glynn@gclements.plus.com></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Glynn Clements <glynn@gclements.plus.com><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: Sabato 26 luglio 2008, 15:13<br><br><pre>roberto caselli wrote:<br><br>> This is the prototype of the function <br>> double G_col_to_easting <br>> (<br>> double <br>> col, <br>> const struct
Cell_head * <br>> window <br>> )<br><br>> For each cell I know the geographic decimal coordinate (for example<br>> -78.847804 , -2.814949) but what I'd like to know is its UTM<br>> 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<br>> have these translations<br><br>If it is actually a cell of a GRASS raster map, then you also know its<br>row and column, which you can use with these functions.<br><br>If you want to transform arbitrary lat/lon coordinates to or from the<br>cartographic coordinate system used by the current location, see the<br>source code for v.proj for example code.<br><br>OTOH, if this doesn't actually involve GRASS in any way, you are<br>probably better off using the PROJ library directly. The only reason<br>to use the GRASS interface is if you want to use the projection<br>information from a location's
PROJ_INFO file.<br><br>-- <br>Glynn Clements <glynn@gclements.plus.com><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'home page che piace a te!</a>.