VectorReader
Added in version 1.2.
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
frombytes
.Added in version 1.2.
- Parameters:
bytes – A tile in Mapbox Vector Tile format
Methods
- class VectorReader
- iterate() VectorReaderIter
Creates a new
VectorReaderIter
forself
.Added in version 1.2.