swh:1:snp:ff2a11cd2e44dd19ec3814028ef2ce6605664e63
Raw File
Tip revision: cd47a398fa219d2b85443b07dac1681e27c5c1c7 authored by Eric Fischer on 13 October 2017, 19:32:32 UTC
Merge pull request #477 from mapbox/empty-attribute-keys
Tip revision: cd47a39
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;
	int layer;
	std::string *layername;
	std::map<std::string, int> const *attribute_types;
	bool want_dist;

	struct serialization_state *sst;
};

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

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

#endif
back to top