topomerge [options] <target=source> [file]
Merges polygons (or meshes lines) from the specified source TopoJSON geometry collection object, assigning to the target object.
- -h, --help
Output usage information.
- -V, --version
Output the version number.
- -o, --out file
Specify the output TopoJSON file name. Defaults to - for stdout.
- -k, --key expression
topomerge states=counties -k 'd.id.slice(0, 2)' < us-counties.json > us-states.json
If a key is not specified, all input geometry objects will be merged together. For example, this can be used to merge the state boundaries into a single nation boundary:
topomerge nation=states < us-states.json > us.json
- -f, --filter expression
Generate a geometry collection of lines rather than polygons.
geo2topo(1), topo2geo(1), topoquantize(1), toposimplify(1)
geo2topo(1), topo2geo(1), topoquantize(1), toposimplify(1).