]> git.openstreetmap.org Git - rails.git/commitdiff
CREATE FUNCTION statement for pgsql
authorDaniel Silverstone <dsilvers@svn.openstreetmap.org>
Sat, 8 Nov 2008 19:21:03 +0000 (19:21 +0000)
committerDaniel Silverstone <dsilvers@svn.openstreetmap.org>
Sat, 8 Nov 2008 19:21:03 +0000 (19:21 +0000)
db/functions/maptile.c

index 2c15d2b411c27bc0544885a742a041103f207f7b..c2baac5d467c109c2d392b18313b048a4319d7b4 100644 (file)
@@ -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