[][src]Crate mvt

A library for encoding mapbox vector tiles (MVT).

Structs

BBox

A bounding box is an axis-aligned rectangle. It is defined by two corners: north_west and south_east.

Feature

Features contain map geometry with related metadata.

GeomData

Validated geometry data for Features. Use GeomEncoder to encode.

GeomEncoder

Encoder for Feature geometry. This can consist of Point, Linestring or Polygon data.

Layer

A layer is a set of related features in a tile.

MapGrid

A map grid is used to address tiles on a map. The grid should be in projected coördinates.

Tile

A tile represents a rectangular region of a map. Each tile can contain any number of layers. When all layers have been added to the tile, it can be written out or converted to a Vec<u8>.

TileId

A tile ID identifies a tile on a map grid at a specific zoom level. It uses XYZ addressing, with X increasing from west to east and Y increasing from north to south. The X and Y values can range from 0 to 2Z-1.

Transform

An affine transform can translate, scale, rotate and skew 2D points.

Vec2

2-dimensional vector / point.

Enums

Error

MVT Error types

GeomType

Geometry types for Features.