GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-b4187339ee
|
#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.
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.