Class ColumnCacheReader

Column Cache Reader Stores all data in a column format. Upon construction, all columns are decoded from the protobuf. This allows for quick and easy access to data in a column format.

Constructors

Properties

0 1 2 3 4 5 6 7 8 9

Methods

Constructors

  • Parameters

    • pbf: Pbf

      the pbf protocol we are reading from

    • end: number = 0

      the position to stop at

    Returns ColumnCacheReader

Properties

0: ColumnValueReadSimple<string> = []

strings are stored in a column of strings

1: ColumnValueReadSimple<number> = []

unsigned whole numbers are stored in unsigned

2: ColumnValueReadSimple<number> = []

negative numbers are stored in signed

3: ColumnValueReadSimple<number> = []

non-whole 32-bit numbers are stored in float

4: ColumnValueReadSimple<number> = []

non-whole numbers greater than 32-bit are stored in double

for geometry types each column is individually weaved and delta encoded

for geometry types each column is individually weaved and delta encoded

7: ColumnValueReadSimple<number> = []

store M-Value indices, geometry indices, and geometry shapes

8: ColumnValueRead<number[]> = []

shapes and possibly value indices are stored in a number[] to be decoded by readShape

Stores both BBox and BBox3D in a single column

Methods

  • Type Parameters

    • T

    Parameters

    • col: OColumnName

      the column to read/store the parsed data

    • index: number

      the index in the column to read/store the parsed data

    Returns T

    • the parsed data