tippecanoe/geojson.hpp

29 lines
611 B
C++
Raw Normal View History

#ifndef GEOJSON_HPP
#define GEOJSON_HPP
#include <stdio.h>
#include <set>
#include <map>
#include <string>
#include "mbtiles.hpp"
#include "jsonpull/jsonpull.h"
2017-08-23 18:43:48 +00:00
#include "serial.hpp"
struct parse_json_args {
2016-04-27 22:10:26 +00:00
json_pull *jp;
int layer;
std::string *layername;
std::map<std::string, int> const *attribute_types;
bool want_dist;
2017-08-23 18:43:48 +00:00
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