Byte Offset |
Content |
Notes |
0 |
START [hex
00] |
a TinyPoint encoded BLOB value must always start with a 0x00 byte |
1 |
ENDIAN [hex 80 or hex 81] |
if this TinyPoint is BIG_ENDIAN ordered must contain a 0x80 byte value
otherwise, if this TinyPoint is LITTLE_ENDIAN ordered must contain a 0x81 byte value
Any other value [neither 0x80 nor 0x81],
means that this BLOB cannot be a valid TinyPoint |
2 - 5 |
SRID |
a 32-bits integer value [little-
big-endian ordered, accordingly with the precedent one] corresponding to the
SRID for this TinyPoint |
6 |
TINYPOINT TYPE |
- 0x01 = TINYPOINT_XY
- 0x02 = TINYPOINT XYZ
- 0x03 = TINYPOINT_XYM
- 0x04 = TINYPOINT_XYZM
All following bytes are interpreted accordingly to this one Type declaration; any other
value in this position causes the current one to be considered as an invalid TinyPoint.
|
7 - ... |
Point Type specific |
length and content depends on Point Type [POINT, POINT Z,
POINT M or POINT ZM] |
LAST |
END [hex FE] |
a TinyPoint encoded BLOB value must always end with a 0xFE byte |