Change the gps_points table to store latitude and longitude values to

seven decimal places to given a worse case precision of about 1cm.
This commit is contained in:
Tom Hughes 2007-09-18 23:29:47 +00:00
parent 62dfa5ff45
commit 9afb35449b
5 changed files with 14 additions and 14 deletions

View 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];
return xy2tile(lon2x(lon / 1000000.0), lat2y(lat / 1000000.0));
return xy2tile(lon2x(lon / 10000000.0), lat2y(lat / 10000000.0));
}