1TOPO2GEO(1)                      User Commands                     TOPO2GEO(1)
2
3
4

NAME

6       topo2geo - converts TopoJSON objects to GeoJSON features
7

SYNOPSIS

9       topo2geo [options] <[name=]file> ...
10

DESCRIPTION

12       Converts  one or more TopoJSON objects from an input topology to one or
13       more GeoJSON features.  For example, to convert the  “states”  TopoJSON
14       GeometryCollection object in us.json to a GeoJSON feature collection in
15       us-states.json:
16
17           topo2geo states=us-states.json < us.json
18
19       For convenience, you can omit the object name and specify only the file
20       name; the object name will be the basename of the file, with the direc‐
21       tory and extension removed.  For example, to convert the “states” Topo‐
22       JSON  GeometryCollection object in us.json to a GeoJSON feature collec‐
23       tion in states.json:
24
25           topo2geo states.json < us.json
26

OPTIONS

28       -h, --help
29              Output usage information.
30
31       -V, --version
32              Output the version number.
33
34       -n, --newline-delimited
35              Output newline-delimited JSON  ⟨https://ndjson.org/⟩,  with  one
36              feature per line.
37
38       -i, --in file
39              Specify the input TopoJSON file name.  Defaults to - for stdin.
40
41       -l, --list
42              List  the  names  of the objects in the input topology, and then
43              exit.  For example, this:
44
45                  topo2geo -l < us.json
46
47              Will output this:
48
49                  counties
50                  states
51                  nation
52

SEE ALSO

54       geo2topo(1), topomerge(1), topoquantize(1), toposimplify(1)
55
56
57
58                                 January 2021                      TOPO2GEO(1)
Impressum