Blob Blame History Raw
.TH TOPOQUANTIZE "1" "January 2021" "" "User Commands"
.SH NAME
topoquantize \- quantizes TopoJSON
.SH SYNOPSIS
.B topoquantize
.RI [ options ]
.RI < n >
.RI [ file ]
.SH DESCRIPTION
.P
Quantizes the coordinates of the input TopoJSON topology and delta-encodes the topology's arcs.
The quantization parameter
.I n
must be a positive integer greater than one, and determines the maximum expressible number of unique values per dimension in the resulting quantized coordinates; typically, a power of ten is chosen such as 1e4, 1e5 or 1e6.
If the
.I topology
does not already have a bbox, one is computed and assigned.
If the
.I topology
is already quantized, an error is thrown.
.SH OPTIONS
.TP
\fB\-h\fR, \fB\-\-help\fR
Output usage information.
.TP
.BR \-V , \ \-\-version
Output the version number.
.TP
.BR \-o , \ \-\-out\ \fIfile
Specify the output TopoJSON file name.
Defaults to
.B \-
for stdout.
.SH "SEE ALSO"
.BR geo2topo (1),
.BR topo2geo (1),
.BR topomerge (1),
.BR toposimplify (1)