Skip to main contentCrate wkb_wkt_converter
Source pub use error::Error;pub use error::Result;pub use types::Dimension;pub use types::GeomType;
- error
- types
- WkbWriter
- Write token returned by
wkb_strip_srid_writer and wkb_set_srid_writer.
- Input
- Explicit input selector for generic converters.
- SridMode
- Controls SRID handling in the output of direct and generic converters.
- hex_wkb_to_wkt
- Converts a hex-encoded WKB/EWKB string to a WKT/EWKT string.
- to_hex_wkb
- Converts any WKT/EWKT string, hex-encoded WKB/EWKB string, or raw WKB bytes to an uppercase
hex-encoded EWKB string.
- to_wkb
- Converts WKT/EWKT text, hex-encoded WKB/EWKB text, or raw WKB/EWKB bytes to WKB bytes.
- to_wkt
- Converts any WKT/EWKT string, hex-encoded WKB/EWKB string, or raw WKB bytes to a WKT
string.
- wkb_header_srid
- Reads the SRID embedded in the top-level EWKB header without converting
the full geometry.
- wkb_set_srid
- Embeds or replaces the SRID in a WKB/EWKB byte slice.
- wkb_set_srid_writer
- Returns the output byte count and a writer for embedding or replacing the
SRID in a WKB/EWKB byte slice.
- wkb_strip_srid
- Strips the top-level SRID flag and SRID field from a WKB/EWKB byte slice.
- wkb_strip_srid_writer
- Returns the output byte count and a writer for stripping the SRID from a
WKB/EWKB byte slice.
- wkb_to_wkt
- Converts WKB/EWKB bytes to a WKT/EWKT string.
- wkb_to_wkt_split_srid
- Converts WKB/EWKB bytes to a WKT string, returning the SRID separately.
The returned WKT string does not include a
SRID=N; prefix. - wkt_to_hex_wkb
- Converts a WKT/EWKT string to an uppercase hex-encoded EWKB string.
- wkt_to_wkb
- Converts a WKT/EWKT string to EWKB bytes.
- wkt_to_wkb_split_srid
- Converts a WKT/EWKT string to EWKB bytes, returning the SRID separately.
The SRID is not embedded in the returned bytes.