Crate versatiles_geometry

Crate versatiles_geometry 

Source
Expand description

This crate provides geometric data structures and utilities for the VersaTiles ecosystem.

It includes modules for:

  • geo: core geometry primitives and traits (e.g., Point, Polygon, etc.).
  • geojson: parsing and serialization for GeoJSON and NDGeoJSON.
  • tile_outline: helper for generating polygonal outlines from tile bounding boxes.
  • vector_tile: support for reading and writing Mapbox Vector Tile (MVT) protobuf data.

These modules form the geometric backbone for reading, transforming, and exporting geospatial data in VersaTiles.

Modules§

geo
The main geo module of the versatiles_geometry crate.
geojson
This module provides functionality for parsing and reading GeoJSON data.
tile_outline
This module defines the TileOutline utility for aggregating tile bounding boxes into unified polygonal outlines. It can collect multiple tile or geographic bounding boxes, merge them into a single MultiPolygon, and export them as GeoFeature objects suitable for GeoJSON serialization.
vector_tile
Vector Tile (MVT) support.

Macros§

impl_from_array
Automatically implements From conversions for vector- and array-like collections into geometry container types.