Skip to content

Commit

Permalink
v0.6.62
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Feb 12, 2024
1 parent 40f00e0 commit 9eaff70
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.6.62
* Removed restrictions on the allowable size of the graticule interval (in degrees).
* Added `targets` object to the `-run` command expression context, giving access to multiple target layers.

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.

Expand Down
5 changes: 5 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ Create mapshaper commands on-the-fly and run them.

Expression context:

If command has a single target layer:
`target` object provides data and information about the command's target layer
- `target.layer_name` Name of layer
- `target.geojson` (getter) Returns a GeoJSON FeatureCollection for the layer
Expand All @@ -1081,6 +1082,10 @@ Expression context:
- `target.bbox` GeoJSON-style bounding box
- `target.proj4` PROJ-formatted string giving the CRS (coordinate reference system) of the layer

`targets` object gives access to all layers targetted by the run command.
- by numerical index, like an array (`targets[0]` refers to the first target layer)
- by layer name (`targets.states` refers to a layer named "states")

`io` object has a method for passing data to the `-i` command.
- `io.ifile(<filename>, <data>)` Create a temp file to use as input in a `-run` command (see example 2 below)

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.61",
"version": "0.6.62",
"description": "A tool for editing vector datasets for mapping and GIS.",
"keywords": [
"shapefile",
Expand Down

0 comments on commit 9eaff70

Please sign in to comment.