Revision a3202488570ef0be4ae443df897c26f5f21d1c60 authored by Shan-Chun Kuo on 07 April 2017, 12:33:01 UTC, committed by Shan-Chun Kuo on 07 April 2017, 12:33:01 UTC
1 parent 9fb1208
projection.hpp
void lonlat2tile(double lon, double lat, int zoom, long long *x, long long *y);
void epsg3857totile(double ix, double iy, int zoom, long long *x, long long *y);
void tile2lonlat(long long x, long long y, int zoom, double *lon, double *lat);
void tiletoepsg3857(long long x, long long y, int zoom, double *ox, double *oy);
unsigned long long encode(unsigned int wx, unsigned int wy);
void decode(unsigned long long index, unsigned *wx, unsigned *wy);
void set_projection_or_exit(const char *optarg);
struct projection {
const char *name;
void (*project)(double ix, double iy, int zoom, long long *ox, long long *oy);
void (*unproject)(long long ix, long long iy, int zoom, double *ox, double *oy);
const char *alias;
};
extern struct projection *projection;
extern struct projection projections[];
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...