18 #include <grass/gis.h>
22 #define alloc_index(n) (COLUMN_MAPPING *) G_malloc((n)*sizeof(COLUMN_MAPPING))
64 while (west > fcb->
cellhd.west + 360.0)
66 while (west < fcb->
cellhd.west)
71 C2 = (west - fcb->
cellhd.west +
77 if (x < 0 || x >= fcb->
cellhd.cols)
86 C2 = (west - 360.0 - fcb->
cellhd.west +
92 if (x < 0 || x >= fcb->
cellhd.cols)
131 return (window->north - north) / window->ns_res;
151 while (east > west + 360.0)
176 if (window->proj == PROJECTION_LL) {
178 if (east > window->east && east == window->west + 360)
202 return (east - window->west) / window->ew_res;
225 return window->north - row * window->ns_res;
245 return window->west + col * window->ew_res;
357 f = row * fcb->
C1 + fcb->
C2;
363 f = row * fcb->
C1 + fcb->
C2;