Files
tippecanoe/errors.hpp
Erica Fischer b763625862 Add an option to generate label points in place of polygons (#20)
* Add an option to generate label points in place of polygons

* Change all these places where I said "extent" but really meant "area"

* Revert "Change all these places where I said "extent" but really meant "area""

This reverts commit 403828d2f7.

* Add --order-smallest-first and --order-largest-first options

* Use Turf's center-of-mass algorithm for polygon label points

* If the label point isn't within the polygon, find one that is

* Don't choose a label point that is too close to a border

* Try a little harder to find an optimal label point

* Checkerboard which tiles labels are generated in, to reduce adjacency

* 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.

* Revert "Use a label point for the general representative point for polygons"

This reverts commit 2261adf05e.

* Checkpoint work on spiral labels

* Clip label spirals to the feature bounds

* Fix label test

* Be careful not to place spiral labels too close to borders either

* For spiral anchors, only check tile scale, not feature size

* Update test

* Only try to find a central label point for the largest ring

* In tiny polygon dust, keep the attributes of the largest feature
2022-10-13 14:21:36 -07:00

24 lines
558 B
C++

#define EXIT_INCOMPLETE 100
#define EXIT_ARGS 101
#define EXIT_CLOSE 102
#define EXIT_CSV 103
#define EXIT_EXISTS 104
#define EXIT_FILTER 105
#define EXIT_IMPOSSIBLE 106
#define EXIT_JSON 107
#define EXIT_MEMORY 108
#define EXIT_MVT 109
#define EXIT_NODATA 110
#define EXIT_OPEN 111
#define EXIT_PROTOBUF 112
#define EXIT_PTHREAD 113
#define EXIT_READ 114
#define EXIT_SEEK 115
#define EXIT_SQLITE 116
#define EXIT_STAT 117
#define EXIT_UNLINK 118
#define EXIT_UTF8 119
#define EXIT_WRITE 120
// avoid 124, 125, 126, 127, 137, which are used by GNU timeout