VectorReader

Added in version 1.2.

class VectorReader(**properties: Any)

Superclasses: Object

Provides low-level access to the contents of a vector tile.

To create a new VectorReader, use new and pass the bytes of a vector tile, which you might get from a DataSource. Then, use iterate to get a VectorReaderIter and iterate over the features in the tile. You can create multiple VectorReaderIter’s from the same VectorReader.

Constructors

class VectorReader
classmethod new(bytes: Bytes) VectorReader

Creates a new VectorReader from bytes.

Added in version 1.2.

Parameters:

bytes – A tile in Mapbox Vector Tile format

Methods

class VectorReader
iterate() VectorReaderIter

Creates a new VectorReaderIter for self.

Added in version 1.2.