No subject

Dinen Dra dinendra at
Tue Aug 30 07:55:18 EDT 1994

Hi ,

I am trying to read a raster file and I think I am not doing
something correctly.

This is how the relevant portion of the code looks like
struct Cell_head region ;
double east   		;
double north		;
int row, col		;

G_get_window(&region)   ;

row = (int)G_northing_to_row(north,&region)     ;

col = (int)G_easting_to_col(east,&region)       ;

/* to get the index of the row and col prior to reading
it using */

G_get_map_row(fd,buf,row) ;

Am I forgetting something? Because the value that I get for
the 'north' and 'east' values are absurd. That in turn leads
to ridiculous values for 'row' and 'col'.

All help is appreciated. If somebody wants to see more of the
code then I can send it to them. 


More information about the grass-dev mailing list