Commit Graph
20 Commits
Author SHA1 Message Date
Erica Fischer a34f1ec39e Clip label spirals to the feature bounds 2022-10-07 16:05:08 -07:00
Erica Fischer 7f5f9c775d Checkpoint work on spiral labels 2022-10-07 15:34:13 -07:00
Erica Fischer 75c6abfbdd Revert "Use a label point for the general representative point for polygons"
This reverts commit 2261adf05e.
2022-10-07 14:09:58 -07:00
Erica Fischer 2261adf05e Use a label point for the general representative point for polygons
(Skipping the iteration to find one that is as far as possible from
the borders)

This makes the labels look better in many cases (like France at z1)
but unfortunately ripples into changing the sequence of polygons in
many tests, so the diff is big.
2022-10-07 12:11:12 -07:00
Erica Fischer 2f0c9bf9c8 Checkerboard which tiles labels are generated in, to reduce adjacency 2022-10-07 11:00:09 -07:00
Erica Fischer c34348218f Try a little harder to find an optimal label point 2022-10-06 13:05:38 -07:00
Erica Fischer ffd07befce Don't choose a label point that is too close to a border 2022-10-06 11:46:10 -07:00
Erica Fischer 7127f8af97 If the label point isn't within the polygon, find one that is 2022-10-06 11:27:44 -07:00
Erica Fischer dd43a8d79a Use Turf's center-of-mass algorithm for polygon label points 2022-10-05 19:02:30 -07:00
Erica Fischer ce54668d7c Add --order-smallest-first and --order-largest-first options 2022-10-05 10:43:10 -07:00
Erica Fischer daf5992e3b Revert "Change all these places where I said "extent" but really meant "area""
This reverts commit 403828d2f7.
2022-10-04 16:24:25 -07:00
Erica Fischer 403828d2f7 Change all these places where I said "extent" but really meant "area" 2022-10-04 16:12:33 -07:00
Erica Fischer 1885f989bf Add an option to generate label points in place of polygons 2022-10-04 16:02:31 -07:00
Erica Fischer 4ea8a37611 Accept tilestats limiting options in tile-join, not just tippecanoe (#8) 2022-08-12 13:57:04 -07:00
Erica Fischer fec5e8354c Improve maxzoom guessing for tightly-clustered point data sources (#4)
* Improve maxzoom guessing for tightly-clustered point data sources

* Go back to the old distance estimate, since it is less mysterious

* Update changelog and version
2022-08-11 10:13:54 -07:00
Erica Fischer a9bf6cacd4 Add --smallest-maximum-zoom-guess to specify a minimum maxzoom to guess (#2)
* Add --maximum-zoom-at-least to specify a minimum maxzoom to guess

* Check whether the specified minimum maxzoom is out of range

* Rename the option to --smallest-maximum-zoom-guess

* Update tests, changelog, and version
2022-08-11 10:04:03 -07:00
Erica Fischer 86f3e98c02 Track the desired tile size for each zoom level in tileset metadata (#7) 2022-08-11 09:58:00 -07:00
Erica Fischer c65d6938a4 Drop or coalesce points too when dropping or coalescing smallest (#6)
* Handle points too when dropping or coalescing the "smallest" features.

* Add statistics of tile size reduction strategies to tileset metadata

* Update changelog and version

* Update documentation
2022-08-09 15:29:03 -07:00
Erica Fischer 67cd9d8d85 Reduce tippecanoe memory usage (#5)
* Change JSON objects to a union type to use less memory

* Stop storing the string representation of JSON numbers

* Restore the ability to create features with large integer attributes

* Make sure large-integer feature IDs still behave as before

* Add missing #include

* Don't preallocate as much space for arrays and objects

* Treat inability to check free disk space as a warning, not an error

* Update changelog and version
2022-08-09 15:18:51 -07:00
Erica Fischer 6978a0e102 Reindent with clang-format (#3) 2022-07-28 11:19:30 -07:00