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
|
|
|
|
2015-03-24 00:44:23 +00:00
|
|
|
void serialize_int(FILE *out, int n, long long *fpos, const char *fname);
|
|
|
|
void serialize_long_long(FILE *out, long long n, long long *fpos, const char *fname);
|
|
|
|
void serialize_byte(FILE *out, signed char n, long long *fpos, const char *fname);
|
|
|
|
void serialize_uint(FILE *out, unsigned n, long long *fpos, const char *fname);
|
|
|
|
void serialize_string(FILE *out, const char *s, long long *fpos, const char *fname);
|
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);
|
|
|
|
|
2015-06-29 22:50:46 +00:00
|
|
|
long long write_tile(char **geom, char *metabase, char *stringpool, unsigned *file_bbox, int z, unsigned x, unsigned y, int detail, int min_detail, int basezoom, struct pool **file_keys, char **layernames, sqlite3 *outdb, double droprate, int buffer, const char *fname, FILE **geomfile, int file_minzoom, int file_maxzoom, double todo, char *geomstart, long long along, double gamma, int nlayers, char *prevent);
|
2015-06-18 17:50:57 +00:00
|
|
|
|
2015-06-29 22:50:46 +00:00
|
|
|
int traverse_zooms(int *geomfd, off_t *geom_size, char *metabase, char *stringpool, unsigned *file_bbox, struct pool **file_keys, unsigned *midx, unsigned *midy, char **layernames, int maxzoom, int minzoom, sqlite3 *outdb, double droprate, int buffer, const char *fname, const char *tmpdir, double gamma, int nlayers, char *prevent, int full_detail, int low_detail, int min_detail);
|
2015-06-20 00:29:56 +00:00
|
|
|
|
2015-06-18 17:50:57 +00:00
|
|
|
extern unsigned initial_x, initial_y;
|
2015-06-18 21:16:16 +00:00
|
|
|
extern int geometry_scale;
|
2015-07-08 22:06:21 +00:00
|
|
|
extern int quiet;
|
2015-06-29 22:50:46 +00:00
|
|
|
|
2015-06-30 00:18:48 +00:00
|
|
|
#define MAX_ZOOM_INCREMENT 3
|