Commit Graph

176 Commits

Author SHA1 Message Date
Eric Fischer
fee8b33bc8 Fix a place where it was still passing around maxzoom as basezoom 2015-12-15 12:08:07 -08:00
Eric Fischer
76de0c82d2 Further cleanup of minzoom- and maxzoom-related variable names 2015-12-15 12:00:05 -08:00
Eric Fischer
7372a2c4bc Add basezoom parameter for dot-dropping, independent of maxzoom 2015-12-15 11:56:49 -08:00
Eric Fischer
a60a9238e5 Use integers instead of floating point for numeric attributes if possible 2015-12-14 15:45:57 -08:00
Eric Fischer
cf279940da Don't simplify "unused" movetos from points. Don't write empty geometries. 2015-12-11 12:34:55 -08:00
Eric Fischer
256139b385 Clipping is faster with only one duplicate/shifted geometry copy 2015-12-08 16:57:04 -08:00
Eric Fischer
c832b34160 Better handling of features that cross the antimeridian 2015-12-03 13:12:34 -08:00
Eric Fischer
e1f4bdd36c Check how many CPUs and filehandles there are instead of guessing 2015-11-11 16:10:39 -08:00
Eric Fischer
7f24cd6767 Don't produce layers with no features. Say "layer" instead of "name" in decode. 2015-11-02 14:03:45 -08:00
Eric Fischer
358e9cad5b Use closepath for each polygon ring to match the vector tile spec 2015-10-28 14:34:57 -07:00
Eric Fischer
e554a121fb Fix formatting 2015-10-20 12:03:49 -07:00
Eric Fischer
eb5c78482a Bump version number and add changelog details 2015-10-20 12:01:10 -07:00
Eric Fischer
a38668a6da Add volatile declaration to shared global variables 2015-10-20 10:15:02 -07:00
Eric Fischer
e4e14b2078 Link with -lpthread 2015-10-19 15:43:06 -07:00
Eric Fischer
965176f254 Make the progress indicator more aware of progress in other threads 2015-10-19 14:19:32 -07:00
Eric Fischer
56910fd016 Restore the error message when a tile can't be made small enough 2015-10-19 13:39:44 -07:00
Eric Fischer
3bb87227ec Locking for map center 2015-10-19 13:32:02 -07:00
Eric Fischer
ef5fdf4036 Locking around the file keys 2015-10-19 13:26:47 -07:00
Eric Fischer
3da692250d Remove unused argument 2015-10-19 13:11:00 -07:00
Eric Fischer
5d014e040f Actually create threads and hand the tiling tasks off to them 2015-10-19 12:32:40 -07:00
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