16 #include <grass/gis.h>
39 ns = (src->ns_res * src->rows) / rows;
40 ew = (src->ew_res * src->cols) / cols;
52 dst->rows = (dst->north - dst->south) / dst->ns_res;
53 dst->cols = (dst->east - dst->west) / dst->ew_res;
void G_adjust_window_to_box(const struct Cell_head *src, struct Cell_head *dst, int rows, int cols)
Adjusts window to a rectangular box.