MapBox MBTiles Vector Tiles (MVT) Feature Representation (Format Attributes)

In addition to the generic FME feature attributes that FME Workbench adds to all features (see About Feature Type Attributes), this format also adds format-specific attributes (Format Attributes).

Features read from an MBTiles file consist of geometry and a series of attribute values. The attribute names are as defined in the workspace.

String attribute values are stored in UTF-8 encoding.

Attribute Name

Contents

mvt_id

Unique identifier for each source feature.

mvt_tile_column

An integer value indicating the tile number in the X direction, according to the tiling scheme, for the tile containing the current feature.

mvt_tile_row

An integer value indicating the tile number in the Y direction, according to the tiling scheme, for the tile containing the current feature.

mvt_type

The format geometry type for the feature. See Geometry.

mvt_zoom_level

An integer value between 0 and 22 that indicates the zoom level for the tile containing the current feature.

Attribute Type Mapping

Attribute Type

FME Attribute Type

string

fme_buffer

string

fme_xml

string

fme_json

string

fme_varchar(width)

string

fme_char(width)

string

fme_binarybuffer

string

fme_varbinary(width)

string

fme_binary(width)

string

fme_datetime

string

fme_date

string

fme_time

double

fme_real64

float

fme_real32

double

fme_decimal(width, decimal)

int64

fme_int64

int64

fme_int32

int64

fme_int16

int64

fme_int8

double

fme_uint64

int64

fme_uint32

int64

fme_uint16

int64

fme_uint8

bool

fme_boolean

Geometry

The geometry of MBTiles Vector Tiles features may be identified by the mvt_type attribute and correspond to 2D vector geometries. The valid values for this attribute are:

mvt_type

Description

wkb_line

2D Linear feature.

wkb_multi_line

2D Feature with multiple line geometries.

wkb_multi_point

2D Feature with multiple heterogeneous point geometries.

wkb_multi_polygon

2D Feature with multiple polygon geometries.

wkb_point

2D Point feature.

wkb_polygon

2D Simple polygon or donut feature.

wkb_unknown

An unsupported geometry type other than those listed above. This may include optional or experimental geometry types.

wkb_none

Absence of geometry. Can occur on read if there is a parsing error in the geometry

For more information about the MBTiles file specification, see the Mapbox MBTiles Specification.

For more information about vector tile data that can be stored in the tiles table, see the Mapbox Vector Tile Specification.