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 59 type(VIZ_GEOREF_SPLINE_ZERO_POINTS),
77 for(
int i = 0; i < VIZGEOREF_MAX_VARS; i++ )
92 for(
int i = 0; i < _nof_vars; i++ )
100 int get_nof_points(){
104 void set_toler(
double tx,
double ty ){
109 void get_toler(
double& tx,
double& ty) {
114 vizGeorefInterType get_interpolation_type ( ){
118 void dump_data_points()
120 for (
int i = 0; i < _nof_points; i++ )
122 fprintf(stderr,
"X = %f Y = %f Vars = ", x[i], y[i]);
123 for (
int v = 0; v < _nof_vars; v++ )
124 fprintf(stderr,
"%f ", rhs[v][i+3]);
125 fprintf(stderr,
"\n");
132 type = VIZ_GEOREF_SPLINE_ZERO_POINTS;
147 bool add_point(
const double Px,
const double Py,
const double *Pvars );
148 int get_point(
const double Px,
const double Py,
double *Pvars );
150 int delete_point(
const double Px,
const double Py );
151 bool get_xy(
int index,
double& x,
double& y);
152 bool change_point(
int index,
double x,
double y,
double* Pvars);
153 void reset(
void) { _nof_points = 0; }
159 vizGeorefInterType type;
179 double *rhs[VIZGEOREF_MAX_VARS];
180 double *coef[VIZGEOREF_MAX_VARS];
Definition: thinplatespline.h:52
Various convenience functions for CPL.
Public (C callable) GDAL algorithm entry points, and definitions.