Skip to main content

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ยง

arc_graph
Arc graph: a topological decomposition of polygon rings and linestrings that lets shared edges be simplified once.
ext
Extension traits and free-function helpers operating on geo_types geometries.
feature_import
In-memory feature-import engine.
feature_source
Sources that load vector features from on-disk formats.
geo
Feature/property layer 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.