|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
#include <grass/gis.h>#include <grass/gmath.h>#include <grass/vector.h>#include <grass/dbmi.h>#include <grass/raster.h>#include <grass/segment.h>#include <grass/glocale.h>
Go to the source code of this file.
Data Structures | |
| struct | Reg_dimens |
| struct | Point |
| struct | element |
Macros | |
| #define | NSPLX_MAX |
| #define | NSPLY_MAX |
| #define | OVERLAP_SIZE 10 /* Subregions overlapping size. */ |
| #define | LATO 1000 /* Side's size for v.lidar.growing. */ |
| #define | CONTOUR 15 |
| #define | GENERAL_ROW 0 |
| #define | GENERAL_COLUMN 1 |
| #define | FIRST_ROW 2 |
| #define | LAST_ROW 3 |
| #define | FIRST_COLUMN 4 |
| #define | LAST_COLUMN 5 |
| #define | F_EDGE_DETECTION_CLASS 1 |
| #define | F_CLASSIFICATION 2 |
| #define | F_INTERPOLATION 3 |
| #define | F_COUNTER_OBJ 4 |
| #define | PRE_TERRAIN 1 |
| #define | PRE_EDGE 2 |
| #define | PRE_UNKNOWN 3 |
| #define | TERRAIN_SINGLE 1 |
| #define | TERRAIN_DOUBLE 2 |
| #define | OBJECT_DOUBLE 3 |
| #define | OBJECT_SINGLE 4 |
| #define | SINGLE_PULSE 1 |
| #define | DOUBLE_PULSE 2 |
| #define | P_BILINEAR 1 |
| #define | P_BICUBIC 0 |
| #define NSPLX_MAX |
| #define NSPLY_MAX |
| #define OVERLAP_SIZE 10 /* Subregions overlapping size. */ |
| double dataInterpolateBicubic | ( | double | x, |
| double | y, | ||
| double | deltaX, | ||
| double | deltaY, | ||
| int | xNum, | ||
| int | yNum, | ||
| double | xMin, | ||
| double | yMin, | ||
| double * | parVect | ||
| ) |
Definition at line 497 of file InterpSpline.c.
References node_x(), node_y(), order(), phi_33(), phi_34(), phi_43(), phi_44(), and x.
Referenced by P_Regular_Points(), and P_Sparse_Points().
| double dataInterpolateBilin | ( | double | x, |
| double | y, | ||
| double | deltaX, | ||
| double | deltaY, | ||
| int | xNum, | ||
| int | yNum, | ||
| double | xMin, | ||
| double | yMin, | ||
| double * | parVect | ||
| ) |
Definition at line 604 of file InterpSpline.c.
References node_x(), node_y(), order(), phi(), and x.
Referenced by P_Regular_Points(), and P_Sparse_Points().
Definition at line 399 of file InterpSpline.c.
References N.
Definition at line 199 of file InterpSpline.c.
Definition at line 540 of file zones.c.
References DCELL_TYPE, G_incr_void_ptr, G_percent(), Rast_allocate_buf(), Rast_cell_size(), Rast_put_d_row(), Rast_set_d_null_value(), Rast_set_d_value(), Rast_window_cols(), and Rast_window_rows().
| void P_Aux_to_Vector | ( | struct Map_info * | Map, |
| struct Map_info * | Out, | ||
| dbDriver * | driver, | ||
| char * | tab_name | ||
| ) |
Definition at line 565 of file zones.c.
References line_cats::cat, Point::coordX, Point::coordY, Point::coordZ, db_append_string(), DB_C_TYPE_DOUBLE, DB_C_TYPE_INT, db_fetch(), db_get_column_sqltype(), db_get_column_value(), db_get_cursor_table(), db_get_table_column(), db_get_value_double(), db_init_string(), DB_NEXT, DB_OK, db_open_select_cursor(), DB_SEQUENTIAL, db_sqltype_to_Ctype(), db_zero_string(), GV_POINT, Vect_cat_set(), Vect_copy_xyz_to_pnts(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_reset_cats(), and Vect_write_line().
Definition at line 465 of file zones.c.
References _, db_alloc_table(), db_create_table(), db_get_table_column(), DB_OK, db_set_column_name(), db_set_column_sqltype(), db_set_table_description(), db_set_table_name(), DB_SQL_TYPE_INTEGER, DB_SQL_TYPE_REAL, FALSE, G_debug(), G_warning(), and TRUE.
Definition at line 493 of file zones.c.
References _, db_alloc_table(), db_create_table(), db_get_table_column(), DB_OK, db_set_column_name(), db_set_column_sqltype(), db_set_table_description(), db_set_table_name(), DB_SQL_TYPE_DOUBLE_PRECISION, DB_SQL_TYPE_INTEGER, DB_SQL_TYPE_REAL, FALSE, G_debug(), G_warning(), and TRUE.
Definition at line 529 of file zones.c.
References db_append_string(), db_execute_immediate(), and db_init_string().
Definition at line 259 of file zones.c.
References G_get_set_window(), GV_POINT, NULL, Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_point_in_box(), Vect_read_next_line(), Vect_region_box(), Vect_rewind(), line_pnts::x, x, line_pnts::y, and line_pnts::z.
Definition at line 218 of file zones.c.
References P_BILINEAR.
Definition at line 196 of file zones.c.
References Reg_dimens::edge_h, Reg_dimens::edge_v, P_BICUBIC, and P_BILINEAR.
Definition at line 231 of file zones.c.
References CONTOUR, mean(), Vect_point_in_box(), and Vect_region_box().
| struct Point * P_Read_Raster_Region_Map | ( | SEGMENT * | in_seg, |
| struct Cell_head * | Elaboration, | ||
| struct Cell_head * | Original, | ||
| int * | num_points, | ||
| int | dim_vect | ||
| ) |
Definition at line 387 of file zones.c.
References G_calloc, G_realloc, Rast_col_to_easting(), Rast_is_d_null_value, Rast_row_to_northing(), Segment_get(), Vect_point_in_box(), Vect_region_box(), and x.
| struct Point * P_Read_Vector_Region_Map | ( | struct Map_info * | Map, |
| struct Cell_head * | Elaboration, | ||
| int * | num_points, | ||
| int | dim_vect, | ||
| int | layer | ||
| ) |
Definition at line 322 of file zones.c.
References Point::cat, G_calloc, G_realloc, GV_POINT, NULL, Vect_cat_get(), Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_point_in_box(), Vect_read_next_line(), Vect_region_box(), Vect_rewind(), line_pnts::x, x, line_pnts::y, and line_pnts::z.
| int P_Regular_Points | ( | struct Cell_head * | Elaboration, |
| struct Cell_head * | Original, | ||
| struct bound_box | General, | ||
| struct bound_box | Overlap, | ||
| SEGMENT * | out_seg, | ||
| double * | param, | ||
| double | passoN, | ||
| double | passoE, | ||
| double | overlap, | ||
| double | mean, | ||
| int | nsplx, | ||
| int | nsply, | ||
| int | nrows, | ||
| int | ncols, | ||
| int | bilin | ||
| ) |
Definition at line 199 of file lidar/raster.c.
References dataInterpolateBicubic(), dataInterpolateBilin(), mean(), Rast_col_to_easting(), Rast_row_to_northing(), Segment_get(), Segment_put(), Vect_point_in_box(), X, and Y.
Definition at line 117 of file zones.c.
References Reg_dimens::edge_h, Reg_dimens::edge_v, Reg_dimens::ew_size, G_get_window(), Reg_dimens::overlap, and Reg_dimens::sn_size.
| int P_set_regions | ( | struct Cell_head * | Elaboration, |
| struct bound_box * | General, | ||
| struct bound_box * | Overlap, | ||
| struct Reg_dimens | dim, | ||
| int | type | ||
| ) |
Definition at line 53 of file zones.c.
References Reg_dimens::edge_h, Reg_dimens::edge_v, Reg_dimens::ew_size, FIRST_COLUMN, FIRST_ROW, G_get_window(), GENERAL_COLUMN, GENERAL_ROW, LAST_COLUMN, LAST_ROW, Reg_dimens::overlap, and Reg_dimens::sn_size.
| void P_Sparse_Points | ( | struct Map_info * | Out, |
| struct Cell_head * | Elaboration, | ||
| struct bound_box | General, | ||
| struct bound_box | Overlap, | ||
| double ** | obs, | ||
| double * | param, | ||
| int * | line_num, | ||
| double | pe, | ||
| double | pn, | ||
| double | overlap, | ||
| int | nsplx, | ||
| int | nsply, | ||
| int | num_points, | ||
| int | bilin, | ||
| struct line_cats * | categories, | ||
| dbDriver * | driver, | ||
| double | mean, | ||
| char * | tab_name | ||
| ) |
Definition at line 9 of file lidar/raster.c.
References _, dataInterpolateBicubic(), dataInterpolateBilin(), db_append_string(), db_begin_transaction(), db_commit_transaction(), db_execute_immediate(), db_init_string(), DB_OK, G_fatal_error(), GV_POINT, mean(), Vect_copy_xyz_to_pnts(), Vect_destroy_line_struct(), Vect_new_line_struct(), Vect_point_in_box(), Vect_write_line(), line_pnts::x, line_pnts::y, and line_pnts::z.
| void P_zero_dim | ( | struct Reg_dimens * | dim | ) |
Definition at line 9 of file zones.c.
References Reg_dimens::edge_h, Reg_dimens::edge_v, Reg_dimens::ew_size, Reg_dimens::overlap, and Reg_dimens::sn_size.