From 893d8f72a670cbcee601420c3322c34b790160bd Mon Sep 17 00:00:00 2001 From: Matthew Bloch Date: Sun, 5 Nov 2023 22:28:00 -0500 Subject: [PATCH] v0.6.45 --- CHANGELOG.md | 4 ++++ REFERENCE.md | 4 +++- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0a6f26..3a10853f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +v0.6.45 +* Added -o hoist= option for moving GeoJSON Feature properties to the root of each Feature. +* Simplification data is removed from snapshot files (except for temporary snapshots in the web UI). + v0.6.44 * Added -style css= option for adding inline CSS to SVG symbols. * Bug fixes diff --git a/REFERENCE.md b/REFERENCE.md index 2eb4d9d7..0c4b8802 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -1,6 +1,6 @@ # COMMAND REFERENCE -This documentation applies to version 0.6.43 of mapshaper's command line program. Run `mapshaper -v` to check your version. For an introduction to the command line tool, read [this page](https://github.com/mbloch/mapshaper/wiki/Introduction-to-the-Command-Line-Tool) first. +This documentation applies to version 0.6.45 of mapshaper's command line program. Run `mapshaper -v` to check your version. For an introduction to the command line tool, read [this page](https://github.com/mbloch/mapshaper/wiki/Introduction-to-the-Command-Line-Tool) first. ## Command line syntax @@ -241,6 +241,8 @@ Save content of the target layer(s) to a file or files. `geojson-type=` (GeoJSON) Overrides the default output type. Possible values: "FeatureCollection", "GeometryCollection", "Feature" (for a single feature). +`hoist=` (GeoJSON) Move one or more properties to the root level of each Feature. Hoisting a field named "id" creates an id for each Feature. This option can also be used to create non-standard Feature attributes (as used by the tippecanoe program). + `width=` (SVG/TopoJSON) Set the width of the output dataset in pixels. When used with TopoJSON output, this option switches the output coordinates from geographic units to pixels and flips the Y axis. SVG output is always in pixels (default SVG width is 800). `height=` (SVG/TopoJSON) Similar to the `width` option. If both `height` and `width` are set, content is centered inside the `[0, 0, width, height]` bounding box. diff --git a/package-lock.json b/package-lock.json index cd9c5213..6d7db2e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mapshaper", - "version": "0.6.44", + "version": "0.6.45", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mapshaper", - "version": "0.6.44", + "version": "0.6.45", "license": "MPL-2.0", "dependencies": { "@placemarkio/tokml": "^0.3.3", diff --git a/package.json b/package.json index b1ea0c1b..af2b97bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mapshaper", - "version": "0.6.44", + "version": "0.6.45", "description": "A tool for editing vector datasets for mapping and GIS.", "keywords": [ "shapefile",