38 if (window->
north <= S)
44 while (E < window->west) {
48 while (
W > window->
east) {
54 if (window->
east <=
W)
56 if (window->
west >= E)
81 double S,
double E,
double W)
88 if ((n = window->
north) >
N)
90 if ((s = window->
south) < S)
106 while (E + shift > window->
east)
108 while (E + shift < window->west)
115 if ((e = window->
east) > E)
117 if ((w = window->
west) <
W)
121 H = (E > window->
west && E < window->
east);
128 while (
W + shift < window->west)
130 while (
W + shift > window->
east)
135 if ((e = window->
east) > E)
137 if ((w = window->
west) <
W)
147 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.