Commit Graph
868 Commits
Author SHA1 Message Date
Eric Fischer 68c3bafab0 Merge pull request #234 from mapbox/clipper-update
Update clipper to 9edc2924e39:
2016-05-02 16:31:10 -07:00
Eric Fischer 1aac686670 Update clipper to 9edc2924e39:
commit 9edc2924e39266d70774b0ed0e07329a95e76f10
Author: Blake Thompson <flippmoke@gmail.com>
Date:   Mon May 2 14:45:21 2016 -0400

	Updated to prevent segfault in case where specific iterator was being deleted
	and therefore, the range second no longer existed.
2016-05-02 16:23:08 -07:00
Eric Fischer 364450ad4c Merge pull request #233 from mapbox/overflow
Make better use of the C++ standard library
2016-04-28 16:41:18 -07:00
Eric Fischer 023ce03672 Fix indentation and bump version number 2016-04-28 15:11:57 -07:00
Eric Fischer adc70341ad Use std::set to track the layer-wide feature attribute types.
Track them during parsing, not tiling.  Remove the old string pool code.
2016-04-28 14:59:58 -07:00
Eric Fischer 87b90a5033 Use std::set to track included and excluded feature properties 2016-04-28 12:57:03 -07:00
Eric Fischer f75d9e0dd4 Avoid needlessly constructing a temporary string 2016-04-28 12:46:40 -07:00
Eric Fischer 444de1f086 Get rid of malloc around layer names 2016-04-28 12:20:51 -07:00
Eric Fischer 3f0904cce8 Use std::string instead of malloc strings to make mbtiles metadata 2016-04-28 11:56:30 -07:00
Eric Fischer 40a6b7b37a Another attempt to ensure that string hashing can't overflow 2016-04-28 11:52:16 -07:00
Eric Fischer 5490f3e15f Fix numeric overflow 2016-04-28 11:52:09 -07:00
Eric Fischer 666565e820 Merge pull request #232 from mapbox/cplusplus
Convert everything to C++
2016-04-27 15:52:05 -07:00
Eric Fischer 744915025d Restore dependency on headers in subdirectories 2016-04-27 15:41:40 -07:00
Eric Fischer 2b393ad8e5 Move jsonpull into a subdirectory like other included libraries 2016-04-27 15:33:30 -07:00
Eric Fischer 48a82039ce Oops, I didn't check main.cpp in. 2016-04-27 15:14:09 -07:00
Eric Fischer 24db559f0b Fix complaint about duplicate #define 2016-04-27 15:12:03 -07:00
Eric Fischer c4274303ea Fix indentation 2016-04-27 15:10:26 -07:00
Eric Fischer ee97e6c307 Whittle down tile.hpp to the things that actually related to tile.cpp 2016-04-27 15:09:06 -07:00
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