NAME

wkt2wkb, wkb2wkt - manipulate OpenGIS Well-Known Binary (WKB) and Well-Known Text (WKT) formats

SYNOPSIS

wkb2wkt [-dh] [-o output_filename ] [ file ]

wkt2wkb [-bdhx] [-o output_filename ] [ file ]

DESCRIPTION

wkb2wkt

The wkb2wkt utility will read WKB files and output WKT text. If no input file is specified the standard input will be read. If no output file is specified, the result will be written to standard output.

wkt2wkb

The wkt2wkb utility will read WKT files and output either the WKB representation, a hexidecimal version of the WKB representation, or a verbose textual representation. If no input file is specified the standard input will be read. If no output file is specified, the result will be written to standard output.

OPTIONS

The following options are supported:

-o output_file will cause the output to be written to output_file. If the -o option is not used, the output will be written to the standard output.
-h will cause usage information to be printed.

wkb2wkt

-d will cause the byteorder and geometry type portions of the WKB format to be reported interspersed in the WKT format (this means that the output will NOT be valid WKT format).

wkt2wkb

-b will cause the output format to be the WKB representation.
-d will cause the output format to be the verbose textual representation.
-x will cause the output format to be the hexidecimal version of the WKB representation. In this version, each digit represents 4 bits of the WKB version (i.e, each byte is represented by two hexidecimal digits).

OPERANDS

The following operands are supported:
file A path name of a file to be manipulated. If file is not specified, the standard input will be used.