mbloch / mapshaper

Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files
http://mapshaper.org
Other
3.8k stars 536 forks source link

-mosaic after dissolve yields strange results #442

Open ericemc3 opened 4 years ago

ericemc3 commented 4 years ago

it looks like -mosaic, applied to a dissolved layer, takes into account the initial layer

Here is a reprex: https://mapshaper.org/?files=https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_60M_2016_3857_LEVL_1.geojson -mosaic -info => 211 records

https://mapshaper.org/?files=https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_60M_2016_3857_LEVL_1.geojson -dissolve CNTR_CODE + name=cntr -mosaic -info => 211 records

https://mapshaper.org/?files=https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_60M_2016_3857_LEVL_1.geojson -dissolve CNTR_CODE + name=cntr -drop target=1 -mosaic -info => 127 records

mbloch commented 4 years ago

Thanks for reporting this bug :)