mapshaper icon indicating copy to clipboard operation
mapshaper copied to clipboard

Remove spaces between polygons?

Open ricardoekm opened this issue 5 years ago • 2 comments

Is it possible to fill in small gaps between two different polygons? I've come across this Command to remove splinter polygons, but couldn't tell from the comments whether this was implemented or not.

Thanks.

ricardoekm avatar Nov 25 '20 02:11 ricardoekm

The -clean command can fill gaps. You can use the gap-fill-area= option to control the maximum-sized gap that will be filled. (wiki entry: https://github.com/mbloch/mapshaper/wiki/Command-Reference#-clean)

Mapshaper only knows how to fill gaps that are entirely surrounded by polygons. It can't currently fill gaps that are open on one side.

mbloch avatar Nov 26 '20 04:11 mbloch

Mapshaper only knows how to fill gaps that are entirely surrounded by polygons. It can't currently fill gaps that are open on one side.

Does this limitation apply to a single layer or to the whole dataset? For example if I import a mosaic from 2 files with combine-files. Can mapshaper remove gaps at the border between those two layers?

mkieselmann avatar Jan 02 '21 15:01 mkieselmann