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 +6 -3
- package/package.json +1 -1
- package/www/mapshaper-gui.js +1 -1
- package/www/mapshaper.js +6 -3
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.
|
|
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
package/www/mapshaper-gui.js
CHANGED
|
@@ -5949,7 +5949,7 @@
|
|
|
5949
5949
|
box: 'rectangle tool',
|
|
5950
5950
|
data: 'edit attributes',
|
|
5951
5951
|
labels: 'position labels',
|
|
5952
|
-
edit_points: 'add/
|
|
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.
|
|
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.
|