From 32894fd48fc210ec05c1d418527011b6e1d37d1c Mon Sep 17 00:00:00 2001 From: Matthew Bloch Date: Thu, 18 Jan 2024 21:16:24 -0500 Subject: [PATCH] v0.6.61 --- CHANGELOG.md | 3 +++ REFERENCE.md | 13 +++++++++---- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fdd0d40..395916ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +v0.6.61 +* Introduced the `fix-geometry` option to the `-snap` and `-o` commands, for removing segment intersections caused by coordinate rounding and TopoJSON quantization. + v0.6.60 * Officially added the previously undocumented -scalebar command. diff --git a/REFERENCE.md b/REFERENCE.md index 0872a005..4cc05070 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -210,6 +210,8 @@ Save content of the target layer(s) to a file or files. `precision=` Round all coordinates to a specified precision, e.g. `precision=0.001`. Useful for reducing the size of GeoJSON files. +`fix-geometry` Remove segment intersections caused by rounding (via the `precision=` option) or TopoJSON quantization, by reverting intersecting areas to the original coordinates. This option is only applied if the original paths are free of intersections. In the case of quantized TopoJSON output, this option produces delta-encoded arcs that contain some decimal numbers. Be sure to test your software for compatibility. + `bbox-index` Export a JSON file containing bounding boxes of each output layer. `encoding=` (Shapefile/CSV) Encoding of input text (by default, Shapefile encoding is auto-detected and CSV files are assumed to be UTF-8). @@ -264,7 +266,6 @@ Save content of the target layer(s) to a file or files. `point-symbol=square` (SVG) Use squares instead of circles to symbolize point data. - `delimiter=` (CSV) Set the field delimiter for CSV/delimited text output; e.g. `delimiter=|`. `decimal-comma` (CSV) Export numbers with decimal commas instead of decimal points (common in Europe and elsewhere). @@ -1130,9 +1131,11 @@ module.exports.voronoi = async function(points, bbox) { ### -scalebar -Add a scale bar to an SVG map. The command creates a data-only layer containing the scale bar's data properties. A scale bar is rendered if the layer is included in SVG output. If no `label` property is given, the text, length and units will be assigned automatically. +Add a scale bar to an SVG map. The command creates a data-only layer containing the scale bar's data properties. A scale bar is rendered if this layer is included as a target layer in SVG output. -`