GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-1d42e580e2
|
Go to the source code of this file.
Functions | |
void | Rast3d_extract2d_region (RASTER3D_Region *region3d, struct Cell_head *region2d) |
Returns in region2d the 2d portion of region3d. More... | |
void | Rast3d_region_to_cell_head (RASTER3D_Region *region3d, struct Cell_head *region2d) |
Returns in region2d the 2d portion of region3d. More... | |
void | Rast3d_incorporate2d_region (struct Cell_head *region2d, RASTER3D_Region *region3d) |
Replaces the 2d portion of region3d with the values stored in region2d. More... | |
void | Rast3d_region_from_to_cell_head (struct Cell_head *region2d, RASTER3D_Region *region3d) |
Replaces the 2d portion of region3d with the values stored in region2d. More... | |
void | Rast3d_adjust_region (RASTER3D_Region *region) |
Computes an adjusts the resolutions in the region structure from the region boundaries and number of cells per dimension. More... | |
void | Rast3d_adjust_region_res (RASTER3D_Region *region) |
Computes an adjusts the number of cells per dimension in the region structure from the region boundaries and resolutions. More... | |
void | Rast3d_region_copy (RASTER3D_Region *regionDest, RASTER3D_Region *regionSrc) |
Copies the values of regionSrc into regionDst. More... | |
int | Rast3d_read_region_map (const char *name, const char *mapset, RASTER3D_Region *region) |
int | Rast3d_is_valid_location (RASTER3D_Region *region, double north, double east, double top) |
Returns 1 if region-coordinates (north, east, top) are inside the region of map. Returns 0 otherwise. More... | |
void | Rast3d_location2coord (RASTER3D_Region *region, double north, double east, double top, int *x, int *y, int *z) |
Converts region-coordinates (north, east, top) into cell-coordinates (x, y, z). More... | |
void | Rast3d_location2coord_double (RASTER3D_Region *region, double north, double east, double top, double *x, double *y, double *z) |
Converts region-coordinates (north, east, top) into cell-coordinates (x, y, z). More... | |
void | Rast3d_location2coord2 (RASTER3D_Region *region, double north, double east, double top, int *x, int *y, int *z) |
Converts region-coordinates (north, east, top) into cell-coordinates (x, y, z). This function calls Rast3d_fatal_error in case location is not in window. More... | |
void | Rast3d_coord2location (RASTER3D_Region *region, double x, double y, double z, double *north, double *east, double *top) |
Converts cell-coordinates (x, y, z) into region-coordinates (north, east, top). More... | |
void Rast3d_adjust_region | ( | RASTER3D_Region * | region | ) |
void Rast3d_adjust_region_res | ( | RASTER3D_Region * | region | ) |
void Rast3d_coord2location | ( | RASTER3D_Region * | region, |
double | x, | ||
double | y, | ||
double | z, | ||
double * | north, | ||
double * | east, | ||
double * | top | ||
) |
Converts cell-coordinates (x, y, z) into region-coordinates (north, east, top).
region | |
x | |
y | |
z | |
north | |
east | |
top |
void Rast3d_extract2d_region | ( | RASTER3D_Region * | region3d, |
struct Cell_head * | region2d | ||
) |
Returns in region2d the 2d portion of region3d.
region3d | |
region2d |
Definition at line 19 of file region.c.
References Cell_head::cols, RASTER3D_Region::cols, Cell_head::east, RASTER3D_Region::east, Cell_head::ew_res, RASTER3D_Region::ew_res, Cell_head::north, RASTER3D_Region::north, Cell_head::ns_res, RASTER3D_Region::ns_res, Cell_head::proj, RASTER3D_Region::proj, Cell_head::rows, RASTER3D_Region::rows, Cell_head::south, RASTER3D_Region::south, Cell_head::west, RASTER3D_Region::west, Cell_head::zone, and RASTER3D_Region::zone.
void Rast3d_incorporate2d_region | ( | struct Cell_head * | region2d, |
RASTER3D_Region * | region3d | ||
) |
Replaces the 2d portion of region3d with the values stored in region2d.
region2d | |
region3d |
Definition at line 86 of file region.c.
References Cell_head::cols, RASTER3D_Region::cols, Cell_head::east, RASTER3D_Region::east, Cell_head::ew_res, RASTER3D_Region::ew_res, Cell_head::north, RASTER3D_Region::north, Cell_head::ns_res, RASTER3D_Region::ns_res, Cell_head::proj, RASTER3D_Region::proj, Cell_head::rows, RASTER3D_Region::rows, Cell_head::south, RASTER3D_Region::south, Cell_head::west, RASTER3D_Region::west, Cell_head::zone, and RASTER3D_Region::zone.
int Rast3d_is_valid_location | ( | RASTER3D_Region * | region, |
double | north, | ||
double | east, | ||
double | top | ||
) |
void Rast3d_location2coord | ( | RASTER3D_Region * | region, |
double | north, | ||
double | east, | ||
double | top, | ||
int * | x, | ||
int * | y, | ||
int * | z | ||
) |
void Rast3d_location2coord2 | ( | RASTER3D_Region * | region, |
double | north, | ||
double | east, | ||
double | top, | ||
int * | x, | ||
int * | y, | ||
int * | z | ||
) |
void Rast3d_location2coord_double | ( | RASTER3D_Region * | region, |
double | north, | ||
double | east, | ||
double | top, | ||
double * | x, | ||
double * | y, | ||
double * | z | ||
) |
int Rast3d_read_region_map | ( | const char * | name, |
const char * | mapset, | ||
RASTER3D_Region * | region | ||
) |
void Rast3d_region_copy | ( | RASTER3D_Region * | regionDest, |
RASTER3D_Region * | regionSrc | ||
) |
Copies the values of regionSrc into regionDst.
regionDest | |
regionSrc |
Definition at line 203 of file region.c.
References RASTER3D_Region::bottom, RASTER3D_Region::cols, RASTER3D_Region::depths, RASTER3D_Region::east, RASTER3D_Region::ew_res, RASTER3D_Region::north, RASTER3D_Region::ns_res, RASTER3D_Region::proj, RASTER3D_Region::rows, RASTER3D_Region::south, RASTER3D_Region::tb_res, RASTER3D_Region::top, RASTER3D_Region::west, and RASTER3D_Region::zone.
void Rast3d_region_from_to_cell_head | ( | struct Cell_head * | region2d, |
RASTER3D_Region * | region3d | ||
) |
Replaces the 2d portion of region3d with the values stored in region2d.
region2d | |
region3d |
Definition at line 115 of file region.c.
References Cell_head::bottom, RASTER3D_Region::bottom, RASTER3D_Region::cols, Cell_head::cols3, Cell_head::depths, RASTER3D_Region::depths, Cell_head::east, RASTER3D_Region::east, RASTER3D_Region::ew_res, Cell_head::ew_res3, Cell_head::north, RASTER3D_Region::north, RASTER3D_Region::ns_res, Cell_head::ns_res3, Cell_head::proj, RASTER3D_Region::proj, RASTER3D_Region::rows, Cell_head::rows3, Cell_head::south, RASTER3D_Region::south, Cell_head::tb_res, RASTER3D_Region::tb_res, Cell_head::top, RASTER3D_Region::top, Cell_head::west, RASTER3D_Region::west, Cell_head::zone, and RASTER3D_Region::zone.
void Rast3d_region_to_cell_head | ( | RASTER3D_Region * | region3d, |
struct Cell_head * | region2d | ||
) |
Returns in region2d the 2d portion of region3d.
region3d | |
region2d |
Definition at line 47 of file region.c.
References Cell_head::bottom, RASTER3D_Region::bottom, Cell_head::cols, RASTER3D_Region::cols, Cell_head::cols3, Cell_head::depths, RASTER3D_Region::depths, Cell_head::east, RASTER3D_Region::east, Cell_head::ew_res, RASTER3D_Region::ew_res, Cell_head::ew_res3, Cell_head::north, RASTER3D_Region::north, Cell_head::ns_res, RASTER3D_Region::ns_res, Cell_head::ns_res3, Cell_head::proj, RASTER3D_Region::proj, Cell_head::rows, RASTER3D_Region::rows, Cell_head::rows3, Cell_head::south, RASTER3D_Region::south, Cell_head::tb_res, RASTER3D_Region::tb_res, Cell_head::top, RASTER3D_Region::top, Cell_head::west, RASTER3D_Region::west, Cell_head::zone, and RASTER3D_Region::zone.
Referenced by N_init_geom_data_3d().