VectorReaderIter


Object Hierarchy:

Object hierarchy for VectorReaderIter

Description:

[ CCode ( type_id = "shumate_vector_reader_iter_get_type ()" ) ]
[ Version ( since = "1.2" ) ]
public class VectorReaderIter : Object

Reads the layers and features of a vector tile.

To create a new [class@VectorReaderIter], use [method@VectorReader.iterate].

A vector tile consists of named layers, which contain features. Each feature has an ID, a geometry, and a set of key/value tags. The meanings of the IDs and tags depends on the data source that the tile came from. The OpenMapTiles schema is a common schema for vector tiles.

To read all layers in a tile, use [method@VectorReaderIter.get_layer_count] and [method@VectorReaderIter.read_layer]. If you know the name of the layer you want, you can also use [method@VectorReaderIter.read_layer_by_name]. Once the iterator is reading a layer, you can call [method@VectorReaderIter.next_feature] in a loop to read all the features in the layer.

A [class@VectorReaderIter] is not thread-safe, but iterators created from the same [class@VectorReader] can be used in different threads.

See the Mapbox Vector Tile specification for more information about the vector tile format.


Namespace: Shumate
Package: shumate-1.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members: