16 #include <grass/gis.h>
38 ns = (src->ns_res * src->rows) / rows;
39 ew = (src->ew_res * src->cols) / cols;
51 dst->rows = (dst->north - dst->south) / dst->ns_res;
52 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.