Releases: mbloch/mapshaper
Releases · mbloch/mapshaper
v0.2.17
v0.2.16
v0.2.15
v0.2.14
v0.2.13
- Add
-calc
command for calculating simple statistics about a data layer using a JS expression. Functions include sum() median() average() min() max() count(). - Add function for finding interior points of polygon features, for anchoring symbols and labels.
- Add
inner
andcentroid
options to the-points
command -- for creating a layer of centroids or interior points from a polygon layer - Add
-sort
command for sorting the features in a layer -o id-field=
now supports a comma-sep. list of field names -- useful for assigning ids to multiple TopoJSON objects with different data properties.
v0.2.12
- Add
-filter-islands
command withmin-area
,min-vertices
andremove-empty
options. - Add
-points
command withx
andy
options, for creating a point layer from x, y coordinates in an attribute table. - Add
-o prettify
option to generate human-readable GeoJSON and TopoJSON. - mapshaper.applyCommands() now returns an array only if output includes more than one JSON object.
- Bug fixes
v0.2.11
- Halt when
-merge-layers
fails - Print a warning if
-innerlines
output is null - Apply snapping after multiple import files are merged/combined
- Let users apply arbitrarily large snap intervals instead of capping at avg. segment length
- Use APIError type for invalid API function call parameters
- Switch from async csv parsing using node-csv to synchronous parsing using d3.dsv
- Merge mapshaper.runCommandString() into mapshaper.runCommands()
- Add mapshaper.applyCommands() to tranform Geo/TopoJSON programmatically.