5#include <grass/lidar.h>
53 snprintf(buf,
sizeof(buf),
"INSERT INTO %s (ID, X, Y, Interp)",
57 snprintf(buf,
sizeof(buf),
" VALUES (");
71 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
87 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
101 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
119 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
135 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
144 else if ((*point->
y >=
Overlap.S) &&
149 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
165 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
179 snprintf(buf,
sizeof(buf),
"%lf", *point->
z);
double dataInterpolateBicubic(double x, double y, double deltaX, double deltaY, int xNum, int yNum, double xMin, double yMin, double *parVect)
double dataInterpolateBilin(double x, double y, double deltaX, double deltaY, int xNum, int yNum, double xMin, double yMin, double *parVect)
int db_commit_transaction(dbDriver *)
Commit transaction.
int db_begin_transaction(dbDriver *)
Begin transaction.
int db_execute_immediate(dbDriver *, dbString *)
Execute SQL statements.
void db_init_string(dbString *)
Initialize dbString.
int db_append_string(dbString *, const char *)
Append string to dbString.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
double Rast_row_to_northing(double, const struct Cell_head *)
Row to northing.
double Rast_col_to_easting(double, const struct Cell_head *)
Column to easting.
int Segment_get(SEGMENT *, void *, off_t, off_t)
Get value from segment file.
int Segment_put(SEGMENT *, const void *, off_t, off_t)
void Vect_destroy_line_struct(struct line_pnts *)
Frees all memory associated with a line_pnts structure, including the structure itself.
int Vect_copy_xyz_to_pnts(struct line_pnts *, const double *, const double *, const double *, int)
Copy points from array to line_pnts structure.
off_t Vect_write_line(struct Map_info *, int, const struct line_pnts *, const struct line_cats *)
Writes a new feature.
int Vect_point_in_box(double, double, double, const struct bound_box *)
Tests if point is in 3D box.
struct line_pnts * Vect_new_line_struct(void)
Creates and initializes a line_pnts structure.
#define GV_POINT
Feature types used in memory on run time (may change)
float mean(IClass_statistics *statistics, int band)
Helper function for computing mean.
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)
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)
2D/3D raster map header (used also for region)
Feature geometry info - coordinates.
double * y
Array of Y coordinates.
double * x
Array of X coordinates.
double * z
Array of Z coordinates.