Commit Graph

850 Commits

Author SHA1 Message Date
Eric Fischer
3662f1a66b Split main program functions apart from GeoJSON parsing 2016-04-27 14:59:20 -07:00
Eric Fischer
a52733eb07 Use protozero functions for zigzag encoding and decoding 2016-04-27 14:22:44 -07:00
Eric Fischer
f3b9e15267 Move serialization code to its own file 2016-04-27 14:19:10 -07:00
Eric Fischer
65253cba50 Drag header files into C++ 2016-04-27 14:00:14 -07:00
Eric Fischer
a57c247508 Don't try to reindent Clipper and Protozero 2016-04-27 13:55:28 -07:00
Eric Fischer
7b0bb9a443 Drag the main function and GeoJSON parsing into C++ 2016-04-27 13:54:00 -07:00
Eric Fischer
3f3a341c0a Drag constant pool handling into C++ 2016-04-27 12:44:46 -07:00
Eric Fischer
3d56a56464 Drag memory-mapped file handling into C++ 2016-04-27 12:41:49 -07:00
Eric Fischer
fb9f3b6068 Drag tileset enumeration into C++ 2016-04-27 12:40:19 -07:00
Eric Fischer
575072bb2f Drag projection math into C++ 2016-04-27 12:39:21 -07:00
Eric Fischer
94db232a89 Drag mbtiles handling into C++ 2016-04-27 12:38:04 -07:00
Eric Fischer
d32d4bb35f No need for line clipping to have its own source file 2016-04-27 12:36:51 -07:00
Eric Fischer
b12413eddb Rename everything from .cc to .cpp to match other projects 2016-04-27 12:22:47 -07:00
Eric Fischer
8c7ac58ba1 Fix memory leaks and questionable arithmetic
Fix memory leaks and questionable arithmetic
2016-04-27 12:11:24 -07:00
Eric Fischer
737ae44dd7 Fix warnings about questionable numeric operations 2016-04-27 11:57:46 -07:00
Eric Fischer
d4504da2f5 Rationalize the highest allowed maxzoom in terms of detail 2016-04-27 11:46:24 -07:00
Dane Springmeyer
3182930f35 fix 'negation of 1 cannot be represented in type unsigned int' error - refs #227 2016-04-27 11:46:16 -07:00
Dane Springmeyer
d35ef72a99 fix 'runtime error: left shift of negative value -12' error - refs #227 2016-04-27 11:46:05 -07:00
Eric Fischer
87fea8082f Make indent, and finish writing a comment that I started 2016-04-27 10:51:54 -07:00
Eric Fischer
5cfd7cf68f Don't leak layer names 2016-04-27 10:46:01 -07:00
Eric Fischer
1e16eb9294 Don't leak whatever is left of one parse tree when starting another 2016-04-27 10:45:55 -07:00
Eric Fischer
39c180a673 Don't leak the non-GeoJSON objects in the JSON parse tree 2016-04-27 10:45:41 -07:00
Eric Fischer
60318e664e Fix leak of pools for -x and -y options 2016-04-27 10:45:33 -07:00
Eric Fischer
6a37ea4e54 Fix leaks of input source lists and bounding boxes 2016-04-27 10:45:25 -07:00
Eric Fischer
0205086886 Fix memory leak of temporary filenames 2016-04-27 10:45:17 -07:00
Dane Springmeyer
235939ea23 Merge pull request #226 from mapbox/c++-math
use std::fabs instead of clib fabs
2016-04-26 17:03:00 -07:00
Dane Springmeyer
65964c93f5 more std:: usage in c++ files 2016-04-26 16:56:24 -07:00
Dane Springmeyer
d0b5ba3862 use std::fabs instead of clib fabs 2016-04-26 16:51:12 -07:00
Dane Springmeyer
b2063108b2 Merge pull request #222 from mapbox/debug-builds
Explict Release/Debug modes to build
2016-04-26 15:52:45 -07:00
Dane Springmeyer
86e6cd717a Add OSX Debug build 2016-04-26 15:46:58 -07:00
Dane Springmeyer
ef3b9bea7c Explict Release/Debug modes to build 2016-04-26 15:39:42 -07:00
Dane Springmeyer
ce64565b38 [build] use AR variable in Makefile 2016-04-26 15:26:15 -07:00
Eric Fischer
bd5dc4ad18 Merge pull request #187 from mapbox/earcut-polygon
Upgrade Clipper to 07b828b1 to fix self-intersecting polygons
2016-04-26 14:26:10 -07:00
Eric Fischer
77bc24d743 Bump version number 2016-04-26 14:16:19 -07:00
Eric Fischer
bebb0dda90 Add missing #include 2016-04-26 14:01:59 -07:00
Eric Fischer
49d29ad368 But no, I still left a few more dependencies 2016-04-26 13:54:08 -07:00
Eric Fischer
33f9d91a4c Remove protobuf prerequisites again 2016-04-26 13:50:08 -07:00
Eric Fischer
a9a14b33e0 Merge remote-tracking branch 'origin/master' into earcut-polygon 2016-04-26 13:48:03 -07:00
Dane Springmeyer
535b328425 add libprotobuf back to packages (not sources) 2016-04-26 12:51:48 -07:00
Dane Springmeyer
3570d93434 whoops, libprotobuf is still required a bit (for now) 2016-04-26 12:48:32 -07:00
Dane Springmeyer
c4a13fc6e0 fix clang++ build by upgrading to 3.5 2016-04-26 12:41:27 -07:00
Eric Fischer
8c82ee4c5f Merge branch 'master' into earcut-polygon
Conflicts:
	tile.cc
2016-04-26 12:09:56 -07:00
Eric Fischer
d72639b8f7 Merge pull request #219 from mapbox/protozero
Use protozero for reading and writing vector tile protocol buffers
2016-04-25 17:00:32 -07:00
Eric Fischer
aaec2c98b6 Clearer names 2016-04-25 16:52:20 -07:00
Eric Fischer
52f2804122 Make lexical feature ordering work again, and add a test for it 2016-04-25 16:47:30 -07:00
Eric Fischer
e10a71e152 Use the mvt constant pool when tiling 2016-04-25 16:19:52 -07:00
Eric Fischer
7bb4c7dbe9 Add a helper method to manage the tile layer's key-value constant pool 2016-04-25 14:20:21 -07:00
Eric Fischer
2dea1d1564 Fix hardwired layer version number 2016-04-25 12:23:40 -07:00
Eric Fischer
23934166b1 Methods instead of functions 2016-04-25 12:13:52 -07:00
Eric Fischer
2afd0bf31b Try with clang++ instead 2016-04-25 10:22:14 -07:00