Package-level declarations

Types

Link copied to clipboard

Thrown when tile bytes do not parse as a Mapbox Vector Tile.

Link copied to clipboard
class MvtCoordinate(val x: Double, val y: Double)

A 2-D tile-local coordinate.

Link copied to clipboard

The empty geometry.

Link copied to clipboard

Axis-aligned bounds, the replacement for org.locationtech.jts.geom.Envelope.

Link copied to clipboard
class MvtFeature(val layerName: String, val extent: Int, val geometry: MvtGeometry, val attributes: Map<String, Any?>, val id: Long)

One decoded feature from a Mapbox Vector Tile layer.

Link copied to clipboard
sealed class MvtGeometry

Base type for every decoded MVT geometry.

Link copied to clipboard
class MvtLineString(val coordinates: Array<MvtCoordinate>) : MvtGeometry

An open or closed run of coordinates.

Link copied to clipboard

Two or more linestrings decoded from a single MVT feature.

Link copied to clipboard
class MvtMultiPoint(val coordinates: Array<MvtCoordinate>) : MvtGeometry

Two or more points decoded from a single MVT feature.

Link copied to clipboard
class MvtMultiPolygon(val geometries: Array<MvtPolygon>) : MvtGeometry

Two or more polygons decoded from a single MVT feature.

Link copied to clipboard
class MvtPoint(val x: Double, val y: Double) : MvtGeometry

A single tile-local point.

Link copied to clipboard
class MvtPolygon(val exteriorRing: MvtLineString, val interiorRings: Array<MvtLineString>) : MvtGeometry

A polygon: one exterior ring plus zero or more interior rings (holes).

Link copied to clipboard
object MvtReader

Protobuf-free reader for Mapbox Vector Tile (MVT) 2.1 bytes.