first of all thanks for building mapshaper. Its such an incredible tool with so many cool commands.
I am probably missing the correct the way to do the following:
I have two layers of polygon mosaic data. The layers are non-overlapping and form another mosaic (each layer contains data for some counties). Unfortunately, one of the layer is simplified while the other contains precise data.
My goal is to merge the two layers in order to form a clean mosaic of polygons. The gap areas between the simplified layer and the precise layer should be dissolved into the polygons in the simplified layer only, not to the precise layer. Is this possible with with mapshaper?
I already tried the following:
Use dissolve2 to remove gaps and overlaps
mapshaper -i <simplified> <precise> combine-files -merge-layers -dissolve2 id gap-fill-area=7km2
Unfortunately, gaps areas are dissolved into both layers, even though the polygons in precise layer are smaller than the ones in the simplified layer (wiki says that gaps are merged into the largest neighbor polygon)
Remove overlaps - Create gap polygons - Dissolve gaps with simplified layer
mapshaper -i <simplified> erase <precise> -o <simplified_1> -> removes overlaps of the simplified layer
mapshaper -i <simplified_1> <precise> combine-files -merge-layers -dissolve2 id gap-fill-area=7km2 -> creates gap area polygons
Now I don't know how to merge gap area polygons with their closest neighbor polygon in the layer
Hi,
first of all thanks for building mapshaper. Its such an incredible tool with so many cool commands. I am probably missing the correct the way to do the following:
I have two layers of polygon mosaic data. The layers are non-overlapping and form another mosaic (each layer contains data for some counties). Unfortunately, one of the layer is simplified while the other contains precise data.
My goal is to merge the two layers in order to form a clean mosaic of polygons. The gap areas between the simplified layer and the precise layer should be dissolved into the polygons in the simplified layer only, not to the precise layer. Is this possible with with mapshaper?
I already tried the following:
Use dissolve2 to remove gaps and overlaps
mapshaper -i <simplified> <precise> combine-files -merge-layers -dissolve2 id gap-fill-area=7km2
Unfortunately, gaps areas are dissolved into both layers, even though the polygons in precise layer are smaller than the ones in the simplified layer (wiki says that gaps are merged into the largest neighbor polygon)
Remove overlaps - Create gap polygons - Dissolve gaps with simplified layer
mapshaper -i <simplified> erase <precise> -o <simplified_1>
-> removes overlaps of the simplified layermapshaper -i <simplified_1> <precise> combine-files -merge-layers -dissolve2 id gap-fill-area=7km2
-> creates gap area polygons