swh:1:snp:ff2a11cd2e44dd19ec3814028ef2ce6605664e63
Raw File
Tip revision: 77b451f2c8f6cd8e4e4e138d83e29aa5e4791b0d authored by Eric Fischer on 12 October 2015, 19:51:55 UTC
Fix some rounding error just by staying in double precision
Tip revision: 77b451f
projection.h
void latlon2tile(double lat, double lon, int zoom, unsigned int *x, unsigned int *y);
void tile2latlon(unsigned int x, unsigned int y, int zoom, double *lat, double *lon);
unsigned long long encode(unsigned int wx, unsigned int wy);
void decode(unsigned long long index, unsigned *wx, unsigned *wy);
back to top