X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b1a0e5ae8b3e3d1052cc7c3e3ec12750060cb173..2e2b556a254e25610d28083c4e87f0f9d3daa542:/db/functions/quadtile.c diff --git a/db/functions/quadtile.c b/db/functions/quadtile.c index c0eb1ec3a..d60189245 100644 --- a/db/functions/quadtile.c +++ b/db/functions/quadtile.c @@ -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]; - return xy2tile(lon2x(lon / 1000000.0), lat2y(lat / 1000000.0)); + return xy2tile(lon2x(lon / 10000000.0), lat2y(lat / 10000000.0)); }