2014-09-22 16:27:10 -07:00
|
|
|
#define VT_POINT 1
|
|
|
|
#define VT_LINE 2
|
|
|
|
#define VT_POLYGON 3
|
|
|
|
|
2014-09-22 16:50:24 -07:00
|
|
|
#define VT_END 0
|
2014-09-22 16:27:10 -07:00
|
|
|
#define VT_MOVETO 1
|
|
|
|
#define VT_LINETO 2
|
|
|
|
#define VT_CLOSEPATH 7
|
|
|
|
|
|
|
|
#define VT_STRING 1
|
|
|
|
#define VT_NUMBER 2
|
|
|
|
#define VT_BOOLEAN 7
|
|
|
|
|
2014-09-29 12:17:35 -07:00
|
|
|
struct pool;
|
2014-09-22 16:27:10 -07:00
|
|
|
|
|
|
|
void deserialize_int(char **f, int *n);
|
|
|
|
struct pool_val *deserialize_string(char **f, struct pool *p, int type);
|
|
|
|
|
|
|
|
|
|
|
|
struct index {
|
2014-11-05 10:07:05 -08:00
|
|
|
unsigned long long index;
|
2014-11-05 12:17:12 -08:00
|
|
|
long long fpos : 48;
|
2014-11-05 10:07:05 -08:00
|
|
|
int maxzoom : 8;
|
2014-11-05 12:17:12 -08:00
|
|
|
int type : 8;
|
2014-09-22 16:27:10 -07:00
|
|
|
};
|
|
|
|
|
2014-10-27 13:20:17 -07:00
|
|
|
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned x, unsigned y, int detail, int basezoom, struct pool *file_keys, char *layername, sqlite3 *outdb, double droprate, int buffer);
|