From 754e66c02cc4159be161098cc8389da7d48179f6 Mon Sep 17 00:00:00 2001 From: abelvm Date: Wed, 21 Sep 2016 14:24:35 +0200 Subject: [PATCH] leftovers and docs --- doc/08_interpolation.md | 3 +++ src/pg/sql/08_interpolation.sql | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/08_interpolation.md b/doc/08_interpolation.md index 87b5124..c17269e 100644 --- a/doc/08_interpolation.md +++ b/doc/08_interpolation.md @@ -37,6 +37,9 @@ Function to interpolate a numeric attribute of a point in a scatter dataset of p |-------------|------|-------------| | value | numeric | Interpolated value at the given point, `-888.888` if the given point is out of the boundaries of the source points set | +Default values: +* -888.888: when using Barycentric, the target point is out of the realm of the input points +* -777.777: asking for a method not available #### Example Usage diff --git a/src/pg/sql/08_interpolation.sql b/src/pg/sql/08_interpolation.sql index d13d8e7..cb0a20a 100644 --- a/src/pg/sql/08_interpolation.sql +++ b/src/pg/sql/08_interpolation.sql @@ -1,7 +1,7 @@ -- 0: nearest neighbor(s) -- 1: barymetric -- 2: IDW --- 3: krigin +-- 3: krigin ---> TO DO CREATE OR REPLACE FUNCTION CDB_SpatialInterpolation( @@ -52,7 +52,7 @@ DECLARE vc numeric; output numeric; BEGIN - output := -999.999; + -- output := -999.999; -- nearest neighbors -- p1: limit the number of neighbors, 0-> closest one @@ -133,7 +133,7 @@ BEGIN -- krigin ELSIF method = 3 THEN - + -- TO DO END IF;