Revision 240ccbd2196516918017353ffd8704c858cb44f9 authored by Eric Fischer on 31 May 2017, 21:07:57 UTC, committed by GitHub on 31 May 2017, 21:07:57 UTC
Add an option to increase maxzoom if features are still being dropped
2 parent s b80a1d7 + dba2495
Raw File
geojson.hpp
struct parse_json_args {
	json_pull *jp;
	const char *reading;
	volatile long long *layer_seq;
	volatile long long *progress_seq;
	long long *metapos;
	long long *geompos;
	long long *indexpos;
	std::set<std::string> *exclude;
	std::set<std::string> *include;
	int exclude_all;
	FILE *metafile;
	FILE *geomfile;
	FILE *indexfile;
	struct memfile *poolfile;
	struct memfile *treefile;
	char *fname;
	int basezoom;
	int layer;
	double droprate;
	long long *file_bbox;
	int segment;
	int *initialized;
	unsigned *initial_x;
	unsigned *initial_y;
	struct reader *readers;
	int maxzoom;
	std::map<std::string, layermap_entry> *layermap;
	std::string *layername;
	bool uses_gamma;
	std::map<std::string, int> const *attribute_types;
	double *dist_sum;
	size_t *dist_count;
	bool want_dist;
};

struct json_pull *json_begin_map(char *map, long long len);
void json_end_map(struct json_pull *jp);

void parse_json(json_pull *jp, const char *reading, volatile long long *layer_seq, volatile long long *progress_seq, long long *metapos, long long *geompos, long long *indexpos, std::set<std::string> *exclude, std::set<std::string> *include, int exclude_all, FILE *metafile, FILE *geomfile, FILE *indexfile, struct memfile *poolfile, struct memfile *treefile, char *fname, int basezoom, int layer, double droprate, long long *file_bbox, int segment, int *initialized, unsigned *initial_x, unsigned *initial_y, struct reader *readers, int maxzoom, std::map<std::string, layermap_entry> *layermap, std::string layername, bool uses_gamma, std::map<std::string, int> const *attribute_types, double *dist_sum, size_t *dist_count, bool want_dist);
void *run_parse_json(void *v);
back to top