static byte encodeGeomTypeAndScale(VectorTile.VectorGeometry geometry) {
    assert geometry.geomType().asByte() >= 0 && geometry.geomType().asByte() <= 8;
    assert geometry.scale() >= 0 && geometry.scale() < (1 << 5);
    return (byte) ((geometry.geomType().asByte() & 0xff) | (geometry.scale() << 3));
  }
Encode key by {@code tile} asc, {@code layer} asc, {@code sortKey} asc with an extra bit to indicate whether the
value contains grouping information.
planetiler-core/src/main/java/com/onthegomap/planetiler/collection/FeatureGroup.java