Skip to content

Commit

Permalink
v0.6.61
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Jan 19, 2024
1 parent a8094cc commit 32894fd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
13 changes: 9 additions & 4 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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.

`<label>` or `label=` Label giving the size and units of the scalebar, e.g. `"25 k.m."`.
The length of the scale bar reflects the scale in the center of the map's rectangular frame.

`<label>` or `label=` Optional label giving the size and units of the scalebar, e.g. `"25 k.m."`. If only units are given, a length will be assigned. If the `label` property is missing, scale bar properties will be auto-generated.


### -shape
Expand Down Expand Up @@ -1203,7 +1206,9 @@ Snap together nearby vertices

`endpoints` Only snap endpoints of polyline features.

`precision=` Tound all coordinates to a given decimal precision (e.g. 0.000001).
`precision=` Round all coordinates to a given decimal precision (e.g. 0.000001).

`fix-geometry` Remove segment intersections caused by rounding or snapping by reverting intersecting areas to original coordinates. This option is only applied if the original paths are free of intersections.

[`target=`](#common-options)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapshaper",
"version": "0.6.60",
"version": "0.6.61",
"description": "A tool for editing vector datasets for mapping and GIS.",
"keywords": [
"shapefile",
Expand Down

0 comments on commit 32894fd

Please sign in to comment.