Commit Graph

156 Commits

Author SHA1 Message Date
Eric Fischer
3ad499fa44 Merge branch 'master' into multithread
Conflicts:
	tile.cc
2015-10-19 10:31:13 -07:00
Eric Fischer
f64e2c94e2 Let Clipper clean up polygons again after scaling and simplification 2015-10-15 17:11:29 -07:00
Eric Fischer
5dc9f50345 Clean up polygon generation and clipping. Make sure winding order is correct. 2015-10-07 16:52:52 -07:00
Eric Fischer
c0480673c5 Add a tippecanoe-specific GeoJSON extension for feature minzoom and maxzoom. 2015-10-06 16:51:23 -07:00
Eric Fischer
763bc36563 Add const to fix the build 2015-09-15 13:23:34 -07:00
Eric Fischer
5ab2673b8c Add a flag to preserve the original order of the features from the input 2015-09-14 15:42:06 -07:00
Eric Fischer
601c092883 Merge branch 'master' into multithread
Conflicts:
	tile.cc
2015-09-14 10:52:58 -07:00
Eric Fischer
541d3518c2 Change some defaults that keep tripping people up:
* Default detail with low -z is only 13, so it works with GL
* No coalescing, line-reversing, or reordering by attributes except by request
* Dropping lines like points moves from -d to -a
2015-08-27 16:04:37 -07:00
Eric Fischer
10e35c4300 Fix memory leak when closing out tiles that had all features clipped away 2015-07-29 16:45:41 -07:00
Eric Fischer
cc05f46fb7 Don't crash if there are more than 128 layers 2015-07-27 16:20:20 -07:00
Eric Fischer
b897712a10 Remove double-setting of thread task list 2015-07-23 16:24:50 -07:00
Eric Fischer
a64913c989 Move the data that threads will need into a parameter block 2015-07-23 16:17:23 -07:00
Eric Fischer
9d25afa41f Fix buffer overflow in length of temporary file names 2015-07-10 10:26:23 -07:00
Eric Fischer
d55af3b3a6 Run through the thread task queues, although still sequentially 2015-07-09 16:14:24 -07:00
Eric Fischer
2957f16b4b Assign tasks (reading temporary files) to threads 2015-07-09 16:09:40 -07:00
Eric Fischer
2bdb51e995 Calculate how many threads should be run 2015-07-09 15:24:47 -07:00
Eric Fischer
5d4ab6df1b Merge branch 'master' into multithread 2015-07-08 16:36:58 -07:00
Eric Fischer
3452ee92ab Fix formatting 2015-07-08 16:35:02 -07:00
Eric Fischer
e5a6f981b7 Work out the sharding math for multhreading 2015-07-08 16:33:22 -07:00
Eric Fischer
138699d243 Add option to quiet the chatty progress indicators 2015-07-08 15:06:21 -07:00
Eric Fischer
e7b4443838 Enforce code style 2015-07-08 14:42:12 -07:00
Eric Fischer
1b72804358 Precalculate which child tiles a feature can overlap
instead of looping over them all
2015-07-01 15:17:35 -07:00
Eric Fischer
18cdcb0732 Drop linetos smaller than tile resolution before doing normal simplification
Since simplification is rather expensive
2015-07-01 12:16:50 -07:00
Eric Fischer
af13a95dc1 Shard the child tiles as widely as possible even if not skipping levels
to help future parallelization
2015-07-01 12:04:45 -07:00
Eric Fischer
0d3192b863 Break rewriting the geometry for the next zoom out into its own function 2015-06-30 16:36:26 -07:00
Eric Fischer
4bb88e228a Fix buffer overflow. This is a bounding box, not sub-tiles. 2015-06-29 17:05:33 -07:00
Eric Fischer
7724e2c329 Skip over some intermediate zooms below minzoom 2015-06-29 16:42:26 -07:00
Eric Fischer
efe3c62bb1 Start breaking the assumption that the next zoom is exactly 1 deeper 2015-06-29 16:16:38 -07:00
Eric Fischer
62052cafab Move zoom traversal into C++ 2015-06-19 17:29:56 -07:00
Eric Fischer
a185073f0a Shrink the geometry by shaving off bits below the maxzoom tile resolution 2015-06-18 14:16:16 -07:00
Eric Fischer
a1d3ecf9bb Save another byte per attribute by moving the type to the string pool 2015-06-18 12:12:20 -07:00
Eric Fischer
1a44538bdf Use the first coordinates of the first feature as the origin for deltas 2015-06-18 10:52:01 -07:00
Eric Fischer
46626e4f08 Delta encoding for motion within features 2015-06-17 17:48:29 -07:00
Eric Fischer
725ea71e57 Fix formatting 2015-06-17 17:30:17 -07:00
Eric Fischer
cde1e60603 Use a string pool to avoid duplicating keys and values 2015-06-17 17:18:08 -07:00
Eric Fischer
d5d322f36a Clearer message about projections 2015-06-05 10:34:19 -07:00
Eric Fischer
263ae94e75 Add a warning when data appears to be in the wrong projection 2015-06-05 10:23:25 -07:00
Eric Fischer
8a1f0d83e1 Consistent indent style with clang-format 2015-06-03 11:22:13 -07:00
Eric Fischer
34b00eca73 Merge pull request #50 from mapbox/gl4096
Add a command line option to specify the minimum allowed tile extent
2015-06-03 11:11:16 -07:00
Eric Fischer
bc2f243f0b Add a command line option to specify the minimum allowed tile extent 2015-06-01 15:01:46 -07:00
Eric Fischer
901f6a76b6 Keep the resolution constant as we drop features to make the tile fit 2015-05-20 15:15:45 -07:00
Eric Fischer
555ababd2e Add a flag to dynamically drop a fraction of features from large tiles 2015-05-20 14:57:00 -07:00
Eric Fischer
1381f0f276 Add a flag to let you drop lines at low zooms just like points 2015-04-21 08:19:51 -07:00
Eric Fischer
d64328ac35 Fix crash when encoding boolean properties. 2015-04-10 13:03:11 -07:00
Eric Fischer
4041811372 Add flags to disable simplification/coalescing/limits when unwanted 2015-04-10 11:36:30 -07:00
Eric Fischer
a076c5619d Merge remote-tracking branch 'origin/master' into multilayer 2015-03-25 13:54:29 -07:00
Eric Fischer
86925eea4c Write out geometries for all layers 2015-03-24 17:07:51 -07:00
Eric Fischer
73b63133e2 Multiple layers make it into JSON metadata now 2015-03-24 16:28:31 -07:00
Eric Fischer
2198bcc2a6 Handle multiple reading. Multiple writing still crashes. 2015-03-23 17:44:23 -07:00
Eric Fischer
eb24c6e21e Include the layer number in the serialized geometry 2015-03-23 15:37:49 -07:00