|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <grass/bitmap.h>#include <grass/linkm.h>#include <grass/gis.h>#include <grass/dbmi.h>#include <grass/vector.h>#include <grass/glocale.h>#include <grass/interpf.h>
Go to the source code of this file.
Functions | |
| int | IL_vector_input_data_2d (struct interp_params *params, struct Map_info *Map, int field, char *zcol, char *scol, struct tree_info *info, double *xmin, double *xmax, double *ymin, double *ymax, double *zmin, double *zmax, int *n_points, double *dmax) |
| int | process_point (double x, double y, double z, double sm, struct tree_info *info, double zmult, double *xmin, double *xmax, double *ymin, double *ymax, double *zmin, double *zmax, int *npoint, int *OUTRANGE, int *total) |
Definition in file vinput2d.c.
| int IL_vector_input_data_2d | ( | struct interp_params * | params, |
| struct Map_info * | Map, | ||
| int | field, | ||
| char * | zcol, | ||
| char * | scol, | ||
| struct tree_info * | info, | ||
| double * | xmin, | ||
| double * | xmax, | ||
| double * | ymin, | ||
| double * | ymax, | ||
| double * | zmin, | ||
| double * | zmax, | ||
| int * | n_points, | ||
| double * | dmax | ||
| ) |
Insert into a quad tree
Inserts input data inside the region into a quad tree. Also translates data. Returns number of segments in the quad tree.
As z values may be used (in Map):
| params | interpolation parameters |
| Map | input vector map |
| field | category field number |
| zcol | name of the column containing z values |
| scol | name of the column containing smooth values |
| info | quadtree info |
| n_points | number of points used for interpolation |
| dmax | max distance between points |
Definition at line 50 of file vinput2d.c.
References _, line_cats::cat, DB_C_TYPE_DOUBLE, DB_C_TYPE_INT, db_CatValArray_free(), db_CatValArray_get_value_double(), db_CatValArray_get_value_int(), db_CatValArray_init(), db_close_database_shutdown_driver(), db_column_Ctype(), db_init_handle(), db_init_string(), DB_OK, db_open_database(), db_select_CatValArray(), db_set_handle(), db_start_driver(), field_info::driver, G_debug(), G_fatal_error(), G_important_message(), G_message(), G_verbose_message(), G_warning(), GV_BOUNDARY, GV_LINE, GV_POINT, interp_params::kmax, interp_params::KMAX2, interp_params::kmin, quaddata::n_cols, line_pnts::n_points, quaddata::n_rows, NULL, process_point(), tree_info::root, translate_quad(), Vect_cat_get(), Vect_get_field(), Vect_get_full_name(), Vect_is_3d(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_next_line(), interp_params::wheresql, line_pnts::x, quaddata::x_orig, quaddata::xmax, line_pnts::y, quaddata::y_orig, quaddata::ymax, line_pnts::z, and interp_params::zmult.
| int process_point | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | sm, | ||
| struct tree_info * | info, | ||
| double | zmult, | ||
| double * | xmin, | ||
| double * | xmax, | ||
| double * | ymin, | ||
| double * | ymax, | ||
| double * | zmin, | ||
| double * | zmax, | ||
| int * | npoint, | ||
| int * | OUTRANGE, | ||
| int * | total | ||
| ) |
Definition at line 306 of file vinput2d.c.
References _, amax1(), amin1(), free(), G_warning(), MT_insert(), quad_point_new(), tree_info::root, x, quaddata::x_orig, quaddata::xmax, quaddata::y_orig, and quaddata::ymax.
Referenced by IL_vector_input_data_2d().