]> git.openstreetmap.org Git - rails.git/blobdiff - db/functions/quadtile.c
Adding new browse controller test, which is mostly stubs just now. Also adding the...
[rails.git] / db / functions / quadtile.c
index c0eb1ec3a38fdc57e00b74714bd398a505fb8a76..d60189245bd3f2ef5c09fe61a91bc87beab01868 100644 (file)
@@ -27,5 +27,5 @@ long long tile_for_point(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *
    long long lat = *(long long *)args->args[0];
    long long lon = *(long long *)args->args[1];
 
    long long lat = *(long long *)args->args[0];
    long long lon = *(long long *)args->args[1];
 
-   return xy2tile(lon2x(lon / 1000000.0), lat2y(lat / 1000000.0));
+   return xy2tile(lon2x(lon / 10000000.0), lat2y(lat / 10000000.0));
 }
 }