38 VIZ_GEOREF_SPLINE_ZERO_POINTS,
39 VIZ_GEOREF_SPLINE_ONE_POINT,
40 VIZ_GEOREF_SPLINE_TWO_POINTS,
41 VIZ_GEOREF_SPLINE_ONE_DIMENSIONAL,
42 VIZ_GEOREF_SPLINE_FULL,
44 VIZ_GEOREF_SPLINE_POINT_WAS_ADDED,
45 VIZ_GEOREF_SPLINE_POINT_WAS_DELETED
50 #define VIZGEOREF_MAX_VARS 2 58 unused = index = NULL;
59 for(
int i = 0; i < nof_vars; i++ )
71 type = VIZ_GEOREF_SPLINE_ZERO_POINTS;
80 for(
int i = 0; i < _nof_vars; i++ )
92 void set_toler(
double tx,
double ty ){
97 void get_toler(
double& tx,
double& ty) {
102 vizGeorefInterType get_interpolation_type ( ){
106 void dump_data_points()
108 for (
int i = 0; i < _nof_points; i++ )
110 fprintf(stderr,
"X = %f Y = %f Vars = ", x[i], y[i]);
111 for (
int v = 0; v < _nof_vars; v++ )
112 fprintf(stderr,
"%f ", rhs[v][i+3]);
113 fprintf(stderr,
"\n");
120 type = VIZ_GEOREF_SPLINE_ZERO_POINTS;
136 int add_point(
const double Px,
const double Py,
const double *Pvars );
137 int get_point(
const double Px,
const double Py,
double *Pvars );
139 int delete_point(
const double Px,
const double Py );
140 bool get_xy(
int index,
double& x,
double& y);
141 bool change_point(
int index,
double x,
double y,
double* Pvars);
142 void reset(
void) { _nof_points = 0; }
148 vizGeorefInterType type;
164 double *rhs[VIZGEOREF_MAX_VARS];
165 double *coef[VIZGEOREF_MAX_VARS];
Definition: thinplatespline.h:52
Various convenience functions for CPL.
Public (C callable) GDAL algorithm entry points, and definitions.