Shumate.VectorReader¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Shumate.VectorReader(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Provides low-level access to the contents of a vector tile.
To create a new [class`VectorReader`], use [ctor`VectorReader`.new] and pass the bytes of a vector tile, which you might get from a [class`DataSource`]. Then, use [method`VectorReader`.iterate] to get a [class`VectorReaderIter`] and iterate over the features in the tile. You can create multiple [class`VectorReaderIter`]s from the same [class`VectorReader`].
New in version 1.2.
- classmethod new(bytes)¶
- Parameters:
bytes (
GLib.Bytes
) – A tile in Mapbox Vector Tile format- Returns:
A new [class`VectorReader`]
- Return type:
Creates a new [class`VectorReader`] from bytes.
New in version 1.2.
- iterate()¶
- Returns:
A new [class`VectorReaderIter`]
- Return type:
Creates a new [class`VectorReaderIter`] for self.
New in version 1.2.