|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
|
GIS Library - Window mapping functions. More...

Go to the source code of this file.
Functions | |
| double | G_adjust_east_longitude (double east, double west) |
| Adjust east longitude. | |
| double | G_adjust_easting (double east, const struct Cell_head *window) |
| Returns east not smaller than west. | |
| void | G__init_window (void) |
| Initialize window (region). | |
GIS Library - Window mapping functions.
SPDX-FileCopyrightText: 2001-2009, 2011 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file gis/window_map.c.
Initialize window (region).
Definition at line 74 of file gis/window_map.c.
References G_get_window(), G_initialize_done(), G_is_initialized(), G__::window, and G__::window_set.
Referenced by G_get_set_window(), G_init_all(), and Rast__init_window().
Adjust east longitude.
This routine returns an equivalent east that is at least as large as the west coordinate.
Note: This routine should be used only with latitude-longitude coordinates.
| east | east coordinate |
| west | west coordinate |
Definition at line 30 of file gis/window_map.c.
Returns east not smaller than west.
If the region projection is PROJECTION_LL, then this routine returns an equivalent east that is not smaller than the coordinate for the western edge of the region and, if possible, smaller than the coordinate for the eastern edge of the region. Otherwise no adjustment is made and the original east is returned.
| east | east coordinate |
| window | pointer to Cell_head |
Definition at line 56 of file gis/window_map.c.
References Cell_head::east, Cell_head::proj, and PROJECTION_LL.
Referenced by G_plot_where_en(), G_plot_where_xy(), and Rast_easting_to_col().