GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
vinput2d.c File Reference
#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>
Include dependency graph for vinput2d.c:

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)
 

Detailed Description

Author
Written by H. Mitasova, I. Kosinovsky, D. Gerdes Fall 1993 University of Illinois US Army Construction Engineering Research Lab
Mitasova (University of Illinois), I. Kosinovsky, (USA-CERL), and D.Gerdes (USA-CERL)
modified by McCauley in August 1995
modified by Mitasova in August 1995
modofied by Mitasova in Nov 1999 (dmax fix)

Definition in file vinput2d.c.

Function Documentation

◆ IL_vector_input_data_2d()

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):

  • z coordinates in 3D file -> field = 0
  • categories -> field > 0, zcol = NULL
  • attributes -> field > 0, zcol != NULL
Parameters
paramsinterpolation parameters
Mapinput vector map
fieldcategory field number
zcolname of the column containing z values
scolname of the column containing smooth values
infoquadtree info
n_pointsnumber of points used for interpolation
dmaxmax distance between points

Definition at line 51 of file vinput2d.c.

◆ process_point()

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.