VectorTile geometries are stored as packed lists of "Command Integers".
There are currently three legal Commands: MoveTo, LineTo, and ClosePath.
Each adhere to the following format:
[ ... 00000 | 000 ]
-------------------
| |
| --- The "Command ID". MoveTo: 001 (1)
| LineTo: 010 (2)
| ClosePath: 111 (7)
|
--- The remaining 29 bits are the "Parameter Count".
This indicates the number of _pairs_ of ints
that follow that should be interpreted as Z-encoded
deltas from the current "cursor".
The "cursor" is the location of the current vertex being considered,
and it starts at (0,0) for each Feature. As MoveTo and LineTo commands
are read, the cursor moves according the list of parsed delta pairs.
ClosePath does not move the cursor, but may in future versions of the spec.
Caveats:
Point features, whether single or multi, will always consist of a single MoveTo.
Any Polygon in a Polygon feature must have a LineTo with a count of at least 2.
ClosePath must always have a parameter count of 1.
VectorTile geometries are stored as packed lists of "Command Integers". There are currently three legal Commands: MoveTo, LineTo, and ClosePath. Each adhere to the following format:
The "cursor" is the location of the current vertex being considered, and it starts at (0,0) for each Feature. As MoveTo and LineTo commands are read, the cursor moves according the list of parsed delta pairs. ClosePath does not move the cursor, but may in future versions of the spec.
Caveats: