X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ee656dd1f3ee556e9c6793a70781d4346abfe01e..d6f7bbfcd1c0c4befeb85b5a3ee8e2d8ecf1892d:/db/functions/maptile.c?ds=sidebyside 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