mirror of
https://github.com/felt/tippecanoe.git
synced 2026-12-05 06:41:41 +01:00
Document that -pn leaves out polygons that collapse entirely and only border others
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CQ6vQUJtmGZnqz7RmVYQaJ
This commit is contained in:
+4
-1
@@ -32,7 +32,10 @@
|
||||
rectangle had 11 times the area of the polygon it replaced. Polygons that
|
||||
are within about a pixel in every direction still get the rectangle, which
|
||||
is then one pixel. With --no-spindle-preservation, the rectangle is still
|
||||
used.
|
||||
used. With --no-simplification-of-shared-nodes, the outline leaves out the
|
||||
borders that the polygon shares with other features, and a polygon whose
|
||||
borders are all shared is left out entirely, so that its neighbors close
|
||||
over the space instead of being overlapped.
|
||||
* Fix Wagyu's snap rounding so that an edge that intersects no other edge
|
||||
is no longer snapped to a hot pixel whose corner it only touches, unless
|
||||
that hot pixel is the rounded location of an intersection. Previously, two
|
||||
|
||||
@@ -513,7 +513,7 @@ the same layer, enclose them in an `all` expression so they will all be evaluate
|
||||
* `-pt` or `--no-tiny-polygon-reduction`: Don't combine the area of very small polygons into small squares that represent their combined area.
|
||||
* `-pT` or `--no-tiny-polygon-reduction-at-maximum-zoom`: Combine the area of very small polygons into small squares that represent their combined area only at zoom levels below the maximum.
|
||||
* `--tiny-polygon-size=`_size_: Use the specified _size_ for tiny polygons instead of the default 2. Anything above 6 or so will lead to visible artifacts with the default tile detail.
|
||||
* `--no-spindle-preservation`: Don't preserve the narrow parts of polygons. Normally, parts of polygons that are too narrow to survive being rounded to tile coordinates (like a buffer of a few meters around a long road or river) are kept as continuous lines of polygon one pixel wide, and long, narrow polygons are kept as polygons rather than being combined into tiny-polygon squares. A polygon that still collapses away entirely is replaced by a line one pixel wide along its outline, rather than by a rectangle with its area. With this option, they are allowed to collapse away, which leaves them as scattered fragments wherever the rounding happens to keep their two sides apart. With `--no-simplification-of-shared-nodes`, narrow parts are not preserved where that would make them overlap a neighboring feature that shares a border with them, like a panhandle between two other political units, so that features that tile exactly continue to do so.
|
||||
* `--no-spindle-preservation`: Don't preserve the narrow parts of polygons. Normally, parts of polygons that are too narrow to survive being rounded to tile coordinates (like a buffer of a few meters around a long road or river) are kept as continuous lines of polygon one pixel wide, and long, narrow polygons are kept as polygons rather than being combined into tiny-polygon squares. A polygon that still collapses away entirely is replaced by a line one pixel wide along its outline, rather than by a rectangle with its area. With this option, they are allowed to collapse away, which leaves them as scattered fragments wherever the rounding happens to keep their two sides apart. With `--no-simplification-of-shared-nodes`, narrow parts are not preserved where that would make them overlap a neighboring feature that shares a border with them, like a panhandle between two other political units, and a polygon that collapses away entirely and only borders other features is left out rather than replaced, so that features that tile exactly continue to do so.
|
||||
* `-av` or `--visvalingam`: Use Visvalingam's simplification algorithm rather than Douglas-Peucker's.
|
||||
|
||||
### Attempts to improve shared polygon boundaries
|
||||
|
||||
+1
-1
@@ -550,7 +550,7 @@ the line or polygon within one tile unit of its proper location. You can probabl
|
||||
.IP \(bu 2
|
||||
\fB--tiny-polygon-size=\fR\fIsize\fP: Use the specified \fIsize\fP for tiny polygons instead of the default 2. Anything above 6 or so will lead to visible artifacts with the default tile detail.
|
||||
.IP \(bu 2
|
||||
\fB--no-spindle-preservation\fR: Don't preserve the narrow parts of polygons. Normally, parts of polygons that are too narrow to survive being rounded to tile coordinates (like a buffer of a few meters around a long road or river) are kept as continuous lines of polygon one pixel wide, and long, narrow polygons are kept as polygons rather than being combined into tiny-polygon squares. A polygon that still collapses away entirely is replaced by a line one pixel wide along its outline, rather than by a rectangle with its area. With this option, they are allowed to collapse away, which leaves them as scattered fragments wherever the rounding happens to keep their two sides apart. With \fB--no-simplification-of-shared-nodes\fR, narrow parts are not preserved where that would make them overlap a neighboring feature that shares a border with them, like a panhandle between two other political units, so that features that tile exactly continue to do so.
|
||||
\fB--no-spindle-preservation\fR: Don't preserve the narrow parts of polygons. Normally, parts of polygons that are too narrow to survive being rounded to tile coordinates (like a buffer of a few meters around a long road or river) are kept as continuous lines of polygon one pixel wide, and long, narrow polygons are kept as polygons rather than being combined into tiny-polygon squares. A polygon that still collapses away entirely is replaced by a line one pixel wide along its outline, rather than by a rectangle with its area. With this option, they are allowed to collapse away, which leaves them as scattered fragments wherever the rounding happens to keep their two sides apart. With \fB--no-simplification-of-shared-nodes\fR, narrow parts are not preserved where that would make them overlap a neighboring feature that shares a border with them, like a panhandle between two other political units, and a polygon that collapses away entirely and only borders other features is left out rather than replaced, so that features that tile exactly continue to do so.
|
||||
.IP \(bu 2
|
||||
\fB-av\fR or \fB--visvalingam\fR: Use Visvalingam's simplification algorithm rather than Douglas-Peucker's.
|
||||
.SS Attempts to improve shared polygon boundaries
|
||||
|
||||
Reference in New Issue
Block a user