19 #include <grass/gis.h> 
   45     window->ns_res = ref->ns_res;
 
   46     window->ew_res = ref->ew_res;
 
   47     window->zone = ref->zone;
 
   48     window->proj = ref->proj;
 
   50     preserve = window->proj == PROJECTION_LL &&
 
   51         window->east == (window->west + 360);
 
   61     if (window->proj == PROJECTION_LL) {
 
   62         while (window->north > 90.0)
 
   63             window->north -= window->ns_res;
 
   64         while (window->south < -90.0)
 
   65             window->south += window->ns_res;
 
   68             window->east = window->west + 360;
 
   70             while (window->east - window->west > 360.0)
 
   71                 window->east -= window->ew_res;
 
double G_easting_to_col(double east, const struct Cell_head *window)
Easting to column. 
 
double G_row_to_northing(double row, const struct Cell_head *window)
Row to northing. 
 
double G_col_to_easting(double col, const struct Cell_head *window)
Column to easting. 
 
char * G_adjust_Cell_head(struct Cell_head *cellhd, int row_flag, int col_flag)
Adjust cell header. 
 
double G_northing_to_row(double north, const struct Cell_head *window)
Northing to row. 
 
char * G_align_window(struct Cell_head *window, const struct Cell_head *ref)
Align two regions.