35 if (window->
north <= S)
45 while (
W > window->
east) {
51 if (window->
east <=
W)
53 if (window->
west >= E)
77 double S,
double E,
double W)
84 if ((n = window->
north) >
N)
86 if ((s = window->
south) < S)
102 while (E + shift > window->
east)
111 if ((e = window->
east) > E)
113 if ((w = window->
west) <
W)
117 H = (E > window->
west && E < window->
east);
126 while (
W + shift > window->
east)
131 if ((e = window->
east) > E)
133 if ((w = window->
west) <
W)
143 return (
H * V) / ((
N - S) * (E -
W));
#define PROJECTION_LL
Projection code - Latitude-Longitude.
2D/3D raster map header (used also for region)
double north
Extent coordinates (north)
double east
Extent coordinates (east)
double south
Extent coordinates (south)
double west
Extent coordinates (west)
double G_window_percentage_overlap(const struct Cell_head *window, double N, double S, double E, double W)
Determines percentage of box is contained in the window.
int G_window_overlap(const struct Cell_head *window, double N, double S, double E, double W)
Determines if a box overlays a map window.