swh:1:snp:ff2a11cd2e44dd19ec3814028ef2ce6605664e63
Raw File
Tip revision: 37ff3d2a65f4758d6fa038c13a8f2177cb57f41a authored by Eric Fischer on 03 January 2018, 20:49:24 UTC
Type cleanup: geometry operations are unsigned chars
Tip revision: 37ff3d2
geojson.hpp
#ifndef GEOJSON_HPP
#define GEOJSON_HPP

#include <stdio.h>
#include <set>
#include <map>
#include <string>
#include "mbtiles.hpp"
#include "jsonpull/jsonpull.h"
#include "serial.hpp"

struct parse_json_args {
	json_pull *jp;
	size_t layer;
	std::string *layername;

	struct serialization_state *sst;

	parse_json_args(json_pull *jp1, size_t layer1, std::string *layername1, struct serialization_state *sst1)
	    : jp(jp1), layer(layer1), layername(layername1), sst(sst1) {
	}
};

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

void parse_json(struct serialization_state *sst, json_pull *jp, size_t layer, std::string layername);
void *run_parse_json(void *v);

#endif
back to top