Skip to main content

Crate godot_gis

Crate godot_gis 

Source
Expand description

§Godot-GIS

A Godot-Rust GDExtension for integrating Geographic Information Systems (GIS) with Godot.

This crate provides geometry types, coordinate transformations, spatial indexing, and support for loading/saving Mapbox Vector Tiles (MVT).

§Core Modules

  • geometry - GIS geometry types (Point, Line, Polygon, etc.) with geo algorithm support
  • projection - Coordinate reference system transformations using PROJ
  • rstar - R*-tree spatial indexing for efficient spatial queries
  • formats - Resource loaders and savers for geographic data formats (MVT, GPKG, Shapefile)
  • mvt - Mapbox Vector Tile resources and layers
  • gpkg - GeoPackage resources and layers
  • geojson - GeoJSON resources and layers
  • text - Experimental; Text rendering utilities for curved paths
  • graph - Experimental; Graph networks and algorithms
  • renderer - Renderer; Renders features using Godot’s RenderServer API

§Quick Start

When using as a Godot addon, the extension registers automatically. When using as a Rust crate with the no-extension-library feature, you must register godot_gis manually with godot_gis::register() inside your own extension.

§Features

  • mvt (default) - Enables Mapbox Vector Tile (.mvt) support
  • gpkg (default) - Enables GeoPackage (.gpkg) support
  • shp (default) - Enables Shapefile (.shp) support
  • no-extension-library - Disables standalone extension, for embedding in other extensions

Modules§

formats
Resource format handlers for geographic data formats.
geojson
geometry
Geometry types and operations for GIS features.
gpkg
graph
Graph structures and algorithms for spatial networks.
mvt
projection
Coordinate reference system transformations using PROJ.
renderer
rstar
R*-tree spatial indexing for GIS features.
shp
singleton
text
Text rendering utilities for GIS applications.

Macros§

impl_geo_area
impl_geo_bounding_rect
impl_geo_buffer
impl_geo_centroid
impl_geo_closest_point
impl_geo_contains
Implements containment testing methods for various geometry types.
impl_geo_densify
Implements geometry densification (adding intermediate points).
impl_geo_distance
Implements distance calculation methods.
impl_geo_intersection
Implements intersection testing methods for various geometry types.
impl_geo_is_within
Implements “is within” testing methods for various geometry types.
impl_geo_length
Implements length calculation methods using different distance metrics.
impl_geo_simplify
Implements geometry simplification algorithms.
impl_geo_transform
Implements PROJ coordinate transformation support.
impl_geo_type
Implements basic geometry type methods and geozero::ToGeo conversion.
impl_geo_wkt
Implements WKT (Well-Known Text) serialization and deserialization.

Functions§

deinit
init