Well-known binary (WKB) geometry
ID wkb
DatatypeNot PIIDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Geometry in the well-known binary (WKB) encoding of the OGC Simple Features standard: a byte order flag (0 big-endian, 1 little-endian), a geometry type and the coordinates. GeoParquet and GeoPackage files keep it as bytes; databases and text exports write it as hexadecimal, PostGIS in its extended form (EWKB) with the spatial reference id. The text form is wkt.
- Categories
- Geographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 1 rule (0 by field name, 1 by value)
wkbbyvaluedata, common/geo.yaml
- Supported by tools
- metacrafter
Regular expression
^(?:00|01)[0-9A-Fa-f]{8}(?:[0-9A-Fa-f]{2})+$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 0101000000000000000000F03F000000000000F03F | POINT (1 1) |
| 0101000020E6100000000000000000F03F000000000000F03F | EWKB POINT (1 1) with SRID 4326 |
| POINT (1 1) invalid | WKT: wkt |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Геометрия WKB |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/wkb - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/wkb.yamlon GitHub