Shumate.VectorReader

g GObject.Object GObject.Object Shumate.VectorReader Shumate.VectorReader GObject.Object->Shumate.VectorReader

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (bytes)

iterate ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Shumate.VectorReader(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Shumate.VectorReaderClass

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:

Shumate.VectorReader

Creates a new [class`VectorReader`] from bytes.

New in version 1.2.

iterate()
Returns:

A new [class`VectorReaderIter`]

Return type:

Shumate.VectorReaderIter

Creates a new [class`VectorReaderIter`] for self.

New in version 1.2.