mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Drag header files into C++
This commit is contained in:
+2
-5
@@ -12,11 +12,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include "mvt.hpp"
|
#include "mvt.hpp"
|
||||||
#include "tile.h"
|
#include "tile.hpp"
|
||||||
|
#include "projection.hpp"
|
||||||
extern "C" {
|
|
||||||
#include "projection.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
void printq(const char *s) {
|
void printq(const char *s) {
|
||||||
putchar('"');
|
putchar('"');
|
||||||
|
|||||||
+7
-6
@@ -32,14 +32,15 @@
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "jsonpull.h"
|
#include "jsonpull.h"
|
||||||
#include "tile.h"
|
|
||||||
#include "pool.h"
|
|
||||||
#include "mbtiles.h"
|
|
||||||
#include "projection.h"
|
|
||||||
#include "version.h"
|
|
||||||
#include "memfile.h"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "tile.hpp"
|
||||||
|
#include "pool.hpp"
|
||||||
|
#include "mbtiles.hpp"
|
||||||
|
#include "projection.hpp"
|
||||||
|
#include "version.hpp"
|
||||||
|
#include "memfile.hpp"
|
||||||
|
|
||||||
static int low_detail = 12;
|
static int low_detail = 12;
|
||||||
static int full_detail = -1;
|
static int full_detail = -1;
|
||||||
static int min_detail = 7;
|
static int min_detail = 7;
|
||||||
|
|||||||
+3
-6
@@ -8,14 +8,11 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <sqlite3.h>
|
||||||
#include "geometry.hpp"
|
#include "geometry.hpp"
|
||||||
#include "clipper/clipper.hpp"
|
#include "clipper/clipper.hpp"
|
||||||
|
#include "tile.hpp"
|
||||||
extern "C" {
|
#include "projection.hpp"
|
||||||
#include <sqlite3.h>
|
|
||||||
#include "tile.h"
|
|
||||||
#include "projection.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
static int pnpoly(drawvec &vert, size_t start, size_t nvert, long long testx, long long testy);
|
static int pnpoly(drawvec &vert, size_t start, size_t nvert, long long testx, long long testy);
|
||||||
static int clip(double *x0, double *y0, double *x1, double *y1, double xmin, double ymin, double xmax, double ymax);
|
static int clip(double *x0, double *y0, double *x1, double *y1, double xmin, double ymin, double xmax, double ymax);
|
||||||
|
|||||||
+3
-6
@@ -5,12 +5,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sqlite3.h>
|
#include <sqlite3.h>
|
||||||
#include "pool.h"
|
#include "pool.hpp"
|
||||||
#include "tile.h"
|
#include "tile.hpp"
|
||||||
|
#include "mbtiles.hpp"
|
||||||
extern "C" {
|
|
||||||
#include "mbtiles.h"
|
|
||||||
};
|
|
||||||
|
|
||||||
sqlite3 *mbtiles_open(char *dbname, char **argv, int forcetable) {
|
sqlite3 *mbtiles_open(char *dbname, char **argv, int forcetable) {
|
||||||
sqlite3 *outdb;
|
sqlite3 *outdb;
|
||||||
|
|||||||
+1
-4
@@ -2,10 +2,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include "memfile.hpp"
|
||||||
extern "C" {
|
|
||||||
#include "memfile.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#define INCREMENT 131072
|
#define INCREMENT 131072
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "pool.hpp"
|
||||||
extern "C" {
|
|
||||||
#include "pool.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#define POOL_WIDTH 256
|
#define POOL_WIDTH 256
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -1,8 +1,5 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "projection.hpp"
|
||||||
extern "C" {
|
|
||||||
#include "projection.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
// http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
|
// http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
|
||||||
void latlon2tile(double lat, double lon, int zoom, long long *x, long long *y) {
|
void latlon2tile(double lat, double lon, int zoom, long long *x, long long *y) {
|
||||||
|
|||||||
+4
-7
@@ -10,13 +10,10 @@
|
|||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "mvt.hpp"
|
#include "mvt.hpp"
|
||||||
#include "tile.h"
|
#include "tile.hpp"
|
||||||
|
#include "projection.hpp"
|
||||||
extern "C" {
|
#include "pool.hpp"
|
||||||
#include "projection.h"
|
#include "mbtiles.hpp"
|
||||||
#include "pool.h"
|
|
||||||
#include "mbtiles.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string dequote(std::string s);
|
std::string dequote(std::string s);
|
||||||
|
|
||||||
|
|||||||
@@ -21,13 +21,10 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "mvt.hpp"
|
#include "mvt.hpp"
|
||||||
#include "geometry.hpp"
|
#include "geometry.hpp"
|
||||||
|
#include "tile.hpp"
|
||||||
extern "C" {
|
#include "pool.hpp"
|
||||||
#include "tile.h"
|
#include "mbtiles.hpp"
|
||||||
#include "pool.h"
|
#include "projection.hpp"
|
||||||
#include "mbtiles.h"
|
|
||||||
#include "projection.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#define CMD_BITS 3
|
#define CMD_BITS 3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user