Merge branch 'master' into multithread-input2

This commit is contained in:
Eric Fischer 2015-12-22 14:10:21 -08:00
commit a8b39aa2ff
6 changed files with 30 additions and 1 deletions

18
.travis.yml Normal file
View File

@ -0,0 +1,18 @@
language: c
sudo: false
matrix:
include:
- os: linux
addons:
apt:
packages: [ 'protobuf-compiler', 'libprotobuf-dev' ]
install:
- make
script:
- echo '{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}' > test.json
- ./tippecanoe -o test.mbtiles test.json

View File

@ -1,3 +1,8 @@
## 1.5.1
* Fix internal error when number of CPUs is not a power of 2
* Add missing #include
## 1.5.0
* Base zoom for dot-dropping can be specified independently of

View File

@ -4,6 +4,8 @@ tippecanoe
Builds [vector tilesets](https://www.mapbox.com/developers/vector-tiles/) from large collections of [GeoJSON](http://geojson.org/)
features. This is a tool for [making maps from huge datasets](MADE_WITH.md).
[![Build Status](https://travis-ci.org/mapbox/tippecanoe.svg)](https://travis-ci.org/mapbox/tippecanoe)
Intent
------

View File

@ -71,6 +71,9 @@ void init_cpus() {
CPUS = 1;
}
// Round down to a power of 2
CPUS = 1 << (int) (log(CPUS) / log(2));
TEMP_FILES = 64;
struct rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) != 0) {

View File

@ -17,6 +17,7 @@
#include <math.h>
#include <sqlite3.h>
#include <pthread.h>
#include <errno.h>
#include "vector_tile.pb.h"
#include "geometry.hh"

View File

@ -1 +1 @@
#define VERSION "tippecanoe v1.5.0\n"
#define VERSION "tippecanoe v1.5.1\n"