Skip to content

Commit

Permalink
v0.6.52
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Nov 30, 2023
1 parent 38ef6ac commit b6b20ff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.6.52
* Added -calc + option, which saves calc output to a new layer.
* Added -info + option, which saves info output to a new layer.

v0.6.51
* Improved support for running applyCommands() api function in a web browser.

Expand All @@ -17,7 +21,7 @@ v0.6.47

v0.6.46
* Added save to clipboard option to web UI export menu.
* In -each expressions, `this.geojson` setter now accepts nulls and FeatureCollectsions in addition to single Features.
* In -each expressions, `this.geojson` setter now accepts nulls and FeatureCollections in addition to single Features.

v0.6.45
* Added -o hoist=<fields> option for moving GeoJSON Feature properties to the root of each Feature.
Expand Down
10 changes: 7 additions & 3 deletions REFERENCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# COMMAND REFERENCE

This documentation applies to version 0.6.47 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.52 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

Expand Down Expand Up @@ -602,6 +602,7 @@ Polygon layers
- `this.centroidY` Y-coord of centroid
- `this.innerX` X-coord of an interior point (for anchoring symbols or labels)
- `this.innerY` Y-coord of an interior point
- `this.perimeter` Perimeter of each feature. For lat-long datasets, returns length in meters.

Polyline layers
- `this.length` Length of each polyline feature. For lat-long datasets, returns length in meters.
Expand Down Expand Up @@ -1518,8 +1519,9 @@ mapshaper data.csv \
`<expression>` or `expression=` JS expression containing calls to one or more `-calc` functions.

`where=` Perform calculations on a subset of records, using a boolean JS expression as a filter (similar to [`-filter`](#-filter) command).

Common options: `target=`
`+` Save output to a layer.
`name=` Name the output layer (default name is "calc").
`target=`

**Examples**

Expand Down Expand Up @@ -1559,6 +1561,8 @@ mapshaper mystery_file.json -info
```

`save-to=` Save information to a .json file.
`+` Save output to a layer.
`name=` Name the output layer (default name is "info").

### -inspect

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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapshaper",
"version": "0.6.51",
"version": "0.6.52",
"description": "A tool for editing vector datasets for mapping and GIS.",
"keywords": [
"shapefile",
Expand Down Expand Up @@ -76,7 +76,7 @@
"mocha": {
"reporter": "dot",
"node-option": [
"experimental-specifier-resolution=node"
"experimental-loader=./test/_loader.js"
],
"check-leaks": true,
"parallel": true,
Expand Down

0 comments on commit b6b20ff

Please sign in to comment.