From 509b8d52074e7dce2ac078d16056f336536e8dac Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 8 Nov 2008 19:21:03 +0000 Subject: [PATCH] CREATE FUNCTION statement for pgsql --- db/functions/maptile.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/db/functions/maptile.c b/db/functions/maptile.c index 2c15d2b41..c2baac5d4 100644 --- a/db/functions/maptile.c +++ b/db/functions/maptile.c @@ -76,6 +76,16 @@ maptile_for_point(PG_FUNCTION_ARGS) PG_FUNCTION_INFO_V1(maptile_for_point); +/* + * To bind this into PGSQL, try something like: + * + * CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 + * AS '/path/to/rails-port/db/functions/libpgosm', 'maptile_for_point' + * LANGUAGE C STRICT; + * + * (without all the *s) + */ + #ifdef PG_MODULE_MAGIC PG_MODULE_MAGIC; #endif -- 2.43.2