1 Index: create_funcs.sql
2 ===================================================================
3 --- create_funcs.sql (revision 3096)
4 +++ create_funcs.sql (working copy)
7 $$ LANGUAGE SQL; -- }}}
9 +-- closelog(): Lister ut de nærmeste punktene i loggen for et koordinat
10 +CREATE OR REPLACE FUNCTION closelog(point) RETURNS void -- {{{
13 + PERFORM (point($1) <-> coor)::numeric(8,5) AS distance, *
14 + FROM logg ORDER BY distance LIMIT 100;
16 +$$ LANGUAGE plpgsql; -- }}}
18 -- findpos(): Beregn koordinater for et tidspunkt som ligger mellom to trackpunkter.
19 CREATE OR REPLACE FUNCTION findpos(currtime timestamptz) RETURNS point AS $$ -- {{{