https://github.com/mapbox/tippecanoe
Revision daafdc39a4305fcc1459fa1ee030e8a985f329bc authored by Eric Fischer on 11 June 2016, 00:17:00 UTC, committed by Eric Fischer on 11 June 2016, 00:17:00 UTC
1 parent 73c3c90
Raw File
Tip revision: daafdc39a4305fcc1459fa1ee030e8a985f329bc authored by Eric Fischer on 11 June 2016, 00:17:00 UTC
Use chain pointers instead of copying
Tip revision: daafdc3
mbtiles.hpp
struct type_and_string {
	int type;
	std::string string;

	bool operator<(const type_and_string &o) const;
};

sqlite3 *mbtiles_open(char *dbname, char **argv, int forcetable);

void mbtiles_write_tile(sqlite3 *outdb, int z, int tx, int ty, const char *data, int size);

void mbtiles_write_metadata(sqlite3 *outdb, const char *fname, std::vector<std::string> &layername, int minzoom, int maxzoom, double minlat, double minlon, double maxlat, double maxlon, double midlat, double midlon, std::vector<std::set<type_and_string> > &file_keys, int nlayers, int forcetable, const char *attribution);

void mbtiles_close(sqlite3 *outdb, char **argv);

void aprintf(std::string *buf, const char *format, ...);
back to top