2014-09-22 23:27:10 +00:00
|
|
|
#define VT_POINT 1
|
|
|
|
#define VT_LINE 2
|
|
|
|
#define VT_POLYGON 3
|
|
|
|
|
2014-09-22 23:50:24 +00:00
|
|
|
#define VT_END 0
|
2014-09-22 23:27:10 +00: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 19:17:35 +00:00
|
|
|
struct pool;
|
2014-12-04 00:18:43 +00:00
|
|
|
struct json_pull;
|
|
|
|
|
|
|
|
void serialize_int(FILE *out, int n, long long *fpos, const char *fname, struct json_pull *source);
|
|
|
|
void serialize_long_long(FILE *out, long long n, long long *fpos, const char *fname, struct json_pull *source);
|
|
|
|
void serialize_byte(FILE *out, signed char n, long long *fpos, const char *fname, struct json_pull *source);
|
|
|
|
void serialize_uint(FILE *out, unsigned n, long long *fpos, const char *fname, struct json_pull *source);
|
|
|
|
void serialize_string(FILE *out, const char *s, long long *fpos, const char *fname, struct json_pull *source);
|
2014-09-22 23:27:10 +00:00
|
|
|
|
|
|
|
void deserialize_int(char **f, int *n);
|
2014-12-04 00:18:43 +00:00
|
|
|
void deserialize_long_long(char **f, long long *n);
|
2014-12-03 02:03:07 +00:00
|
|
|
void deserialize_uint(char **f, unsigned *n);
|
2014-11-05 22:37:54 +00:00
|
|
|
void deserialize_byte(char **f, signed char *n);
|
2014-09-22 23:27:10 +00:00
|
|
|
struct pool_val *deserialize_string(char **f, struct pool *p, int type);
|
|
|
|
|
2014-12-17 19:10:46 +00:00
|
|
|
long long write_tile(char **geom, char *metabase, unsigned *file_bbox, int z, unsigned x, unsigned y, int detail, int basezoom, struct pool *file_keys, const char *layername, sqlite3 *outdb, double droprate, int buffer, const char *fname, struct json_pull *jp, FILE *geomfile[4], int file_minzoom, int file_maxzoom);
|