37 if (window->
north <= S)
43 while (E < window->west) {
47 while (
W > window->
east) {
53 if (window->
east <=
W)
55 if (window->
west >= E)
79 double S,
double E,
double W)
86 if ((n = window->
north) >
N)
88 if ((s = window->
south) < S)
104 while (E + shift > window->
east)
106 while (E + shift < window->west)
113 if ((e = window->
east) > E)
115 if ((w = window->
west) <
W)
119 H = (E > window->
west && E < window->
east);
126 while (
W + shift < window->west)
128 while (
W + shift > window->
east)
133 if ((e = window->
east) > E)
135 if ((w = window->
west) <
W)
145 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.