Using ArcGIS Pro and ArcPy (https://pro.arcgis.com/en/pro-app/latest/tool-reference/editing/align-features.htm), I was trying to align the Canada border to the USA border, but the tool does not work.
- downloaded the shapefiles of countries from https://hub.arcgis.com/datasets/2b93b06dc0dc4e809d3c8db5cb96ba69_0/explore?location=-2.688200%2C0.000000%2C2.00
- simplify the Canada shapefile by using mapshaper, so the borders between Canada and USA have small gaps: mapshaper ca.shp -simplify 30% keep-shapes -o ca_30.shp
- arcpy.edit.AlignFeatures("ca_30.shp", "us.shp", "0.00005 Decimal Degrees") # I also tried a lot of other search distance
- opened ArcGIS Pro and opened the "Align feature" tool and tried a lot of different search distances
- The results are either wired Canada borders or the gaps are still there
Attached are the shapefiles