:right-sidebar: True VectorReader =================================================================== .. currentmodule:: gi.repository.Shumate .. versionadded:: 1.2 .. class:: VectorReader(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Provides low-level access to the contents of a vector tile. To create a new :obj:`~gi.repository.Shumate.VectorReader`\, use :obj:`~gi.repository.VectorReader.new` and pass the bytes of a vector tile, which you might get from a :obj:`~gi.repository.Shumate.DataSource`\. Then, use :obj:`~gi.repository.VectorReader.iterate` to get a :obj:`~gi.repository.Shumate.VectorReaderIter` and iterate over the features in the tile. You can create multiple :obj:`~gi.repository.Shumate.VectorReaderIter`\s from the same :obj:`~gi.repository.Shumate.VectorReader`\. Constructors ------------ .. rst-class:: interim-class .. class:: VectorReader :no-index: .. classmethod:: new(bytes: ~gi.repository.GLib.Bytes) -> ~gi.repository.Shumate.VectorReader Creates a new :obj:`~gi.repository.Shumate.VectorReader` from ``bytes``\. .. versionadded:: 1.2 :param bytes: A tile in Mapbox Vector Tile format Methods ------- .. rst-class:: interim-class .. class:: VectorReader :no-index: .. method:: iterate() -> ~gi.repository.Shumate.VectorReaderIter Creates a new :obj:`~gi.repository.Shumate.VectorReaderIter` for ``self``\. .. versionadded:: 1.2