Skip to content

Commit

Permalink
Update website
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Jun 16, 2024
1 parent cc57554 commit 02a56a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mapshaper-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -5949,7 +5949,7 @@
box: 'rectangle tool',
data: 'edit attributes',
labels: 'position labels',
edit_points: 'add/edit points',
edit_points: 'add/drag points',
edit_lines: 'draw/edit polylines',
edit_polygons: 'draw/edit polygons',
vertices: 'edit vertices',
Expand Down
9 changes: 6 additions & 3 deletions mapshaper.js
Original file line number Diff line number Diff line change
Expand Up @@ -25134,12 +25134,10 @@ ${svg}
// describe: 'multiply min-area by Polsby-Popper compactness (0-1)'
type: 'flag',
})
/*
.option('remove-empty', {
type: 'flag',
describe: 'delete features with null geometry'
})
*/
.option('target', targetOpt);

parser.command('graticule')
Expand Down Expand Up @@ -34748,6 +34746,11 @@ ${svg}

editShapes(lyr.shapes, pathFilter);
message(utils.format("Removed %'d sliver%s using %s", removed, utils.pluralSuffix(removed), filterData.label));

// Remove null shapes (likely removed by clipping/erasing, although possibly already present)
if (opts.remove_empty) {
cmd.filterFeatures(lyr, dataset.arcs, {remove_empty: true, verbose: false});
}
return removed;
}

Expand Down Expand Up @@ -45687,7 +45690,7 @@ ${svg}
});
}

var version = "0.6.97";
var version = "0.6.98";

// Parse command line args into commands and run them
// Function takes an optional Node-style callback. A Promise is returned if no callback is given.
Expand Down

0 comments on commit 02a56a3

Please sign in to comment.