Commit Graph

207 Commits

Author SHA1 Message Date
Eric Fischer
574a2b79c8 Add an option to drop a fraction of polygons by zoom.
Only warn once about polygon cleaning failures.
2016-04-06 14:17:44 -07:00
Eric Fischer
4a572b810b Close some file descriptors that were left dangling before 2016-04-05 14:07:24 -07:00
Eric Fischer
e394501faa Check for errors when closing files 2016-04-05 11:13:31 -07:00
Eric Fischer
c62762078a Can't tell Linux to free pages, so just say we don't need them 2016-04-04 16:18:55 -07:00
Eric Fischer
72e485f285 Also advise when unmapping pages 2016-04-04 16:14:26 -07:00
Eric Fischer
b1d3849889 Sprinkle madvise calls to hint about how files should be paged in 2016-04-04 16:03:13 -07:00
Eric Fischer
c9e542e688 Keep meta count inline to avoid thrash if no attributes 2016-04-04 11:18:37 -07:00
Eric Fischer
edce0f088d Add GNU-style long options 2016-03-28 15:03:28 -07:00
Eric Fischer
c2231318bd Many places where I used unsigned array indices but meant size_t 2016-03-25 12:20:32 -07:00
Eric Fischer
eee596d5f5 Check return values from memory allocation 2016-03-25 11:57:33 -07:00
Eric Fischer
310887e019 Fix duplicated variable name 2016-03-07 13:40:32 -08:00
Eric Fischer
81d2a8bfed Encourage -B, not -z, to set the base zoom level 2016-03-07 13:21:53 -08:00
Eric Fischer
f17cec5c44 Factor out gap logic instead of duplicating it 2016-03-03 17:03:47 -08:00
Eric Fischer
a847db8c5f Remove dead code 2016-03-02 14:58:07 -08:00
Eric Fischer
4f419ae9b2 Make indent 2016-02-11 12:22:22 -08:00
Eric Fischer
ea304d3a98 Split complex polygons into multiple features 2016-02-11 12:14:32 -08:00
Eric Fischer
c6ad34427a Some work toward letting features have sub-geometries 2016-02-11 11:09:05 -08:00
Eric Fischer
e786379358 Fix warning and let the autoformatter do its thing 2016-01-28 15:35:22 -08:00
Eric Fischer
b17f8fc663 Stabilize map center and mbtiles filename to fix test flakiness 2016-01-28 14:38:10 -08:00
Eric Fischer
7aa27b7f4c Make calculation of child tile overlap match clipping behavior.
Coordinates that are right on the tile boundary appear in both
adjacent tiles.

Make tippecanoe-decode also use exact edge coordinates instead of
half-pixel locations.
2016-01-20 13:58:17 -08:00
Eric Fischer
ffbddef756 Accurate feature count, more chatty base zoom determination, less chatty tiling 2016-01-11 13:11:21 -08:00
Eric Fischer
404bf69847 Give an error if -p or -a is used with an undefined option letter 2016-01-11 10:47:06 -08:00
Eric Fischer
93d0767829 Add an option to do line simplification only at zooms below maxzoom 2016-01-08 11:31:10 -08:00
Eric Fischer
1f8b6faec8 Simplify lines consistently on opposite sides of tile boundaries 2016-01-07 11:35:11 -08:00
Eric Fischer
c8573634e1 Track how many threads are active to calculate how many sub-threads to use 2016-01-05 13:56:36 -08:00
Eric Fischer
977533e449 Use multiple threads within a single tile for geometric simplification 2016-01-05 12:29:40 -08:00
Eric Fischer
228a4d6bb9 Make the geometric origin a per-reader property for thread safety 2015-12-22 16:58:27 -08:00
Eric Fischer
a8b39aa2ff Merge branch 'master' into multithread-input2 2015-12-22 14:10:21 -08:00
Eric Fischer
bd081c864e It tiles again! 2015-12-21 18:00:07 -08:00
Eric Fischer
de60545da8 Include the segment number in the serialized geometry 2015-12-21 17:21:18 -08:00
Dane Springmeyer
fee18cc31e Add errno.h - refs #131 2015-12-20 15:13:33 -08:00
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