mapshaper 0.6.97 → 0.6.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mapshaper.js CHANGED
@@ -25134,12 +25134,10 @@ ${svg}
25134
25134
  // describe: 'multiply min-area by Polsby-Popper compactness (0-1)'
25135
25135
  type: 'flag',
25136
25136
  })
25137
- /*
25138
25137
  .option('remove-empty', {
25139
25138
  type: 'flag',
25140
25139
  describe: 'delete features with null geometry'
25141
25140
  })
25142
- */
25143
25141
  .option('target', targetOpt);
25144
25142
 
25145
25143
  parser.command('graticule')
@@ -34748,6 +34746,11 @@ ${svg}
34748
34746
 
34749
34747
  editShapes(lyr.shapes, pathFilter);
34750
34748
  message(utils.format("Removed %'d sliver%s using %s", removed, utils.pluralSuffix(removed), filterData.label));
34749
+
34750
+ // Remove null shapes (likely removed by clipping/erasing, although possibly already present)
34751
+ if (opts.remove_empty) {
34752
+ cmd.filterFeatures(lyr, dataset.arcs, {remove_empty: true, verbose: false});
34753
+ }
34751
34754
  return removed;
34752
34755
  }
34753
34756
 
@@ -45687,7 +45690,7 @@ ${svg}
45687
45690
  });
45688
45691
  }
45689
45692
 
45690
- var version = "0.6.97";
45693
+ var version = "0.6.98";
45691
45694
 
45692
45695
  // Parse command line args into commands and run them
45693
45696
  // Function takes an optional Node-style callback. A Promise is returned if no callback is given.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapshaper",
3
- "version": "0.6.97",
3
+ "version": "0.6.98",
4
4
  "description": "A tool for editing vector datasets for mapping and GIS.",
5
5
  "keywords": [
6
6
  "shapefile",
@@ -5949,7 +5949,7 @@
5949
5949
  box: 'rectangle tool',
5950
5950
  data: 'edit attributes',
5951
5951
  labels: 'position labels',
5952
- edit_points: 'add/edit points',
5952
+ edit_points: 'add/drag points',
5953
5953
  edit_lines: 'draw/edit polylines',
5954
5954
  edit_polygons: 'draw/edit polygons',
5955
5955
  vertices: 'edit vertices',
package/www/mapshaper.js CHANGED
@@ -25134,12 +25134,10 @@ ${svg}
25134
25134
  // describe: 'multiply min-area by Polsby-Popper compactness (0-1)'
25135
25135
  type: 'flag',
25136
25136
  })
25137
- /*
25138
25137
  .option('remove-empty', {
25139
25138
  type: 'flag',
25140
25139
  describe: 'delete features with null geometry'
25141
25140
  })
25142
- */
25143
25141
  .option('target', targetOpt);
25144
25142
 
25145
25143
  parser.command('graticule')
@@ -34748,6 +34746,11 @@ ${svg}
34748
34746
 
34749
34747
  editShapes(lyr.shapes, pathFilter);
34750
34748
  message(utils.format("Removed %'d sliver%s using %s", removed, utils.pluralSuffix(removed), filterData.label));
34749
+
34750
+ // Remove null shapes (likely removed by clipping/erasing, although possibly already present)
34751
+ if (opts.remove_empty) {
34752
+ cmd.filterFeatures(lyr, dataset.arcs, {remove_empty: true, verbose: false});
34753
+ }
34751
34754
  return removed;
34752
34755
  }
34753
34756
 
@@ -45687,7 +45690,7 @@ ${svg}
45687
45690
  });
45688
45691
  }
45689
45692
 
45690
- var version = "0.6.97";
45693
+ var version = "0.6.98";
45691
45694
 
45692
45695
  // Parse command line args into commands and run them
45693
45696
  // Function takes an optional Node-style callback. A Promise is returned if no callback is given.