Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GeoJSON
  3. rust-geojson

rust-geojson

Apache-2.0Rust

A Rust library for serializing and deserializing GeoJSON vector GIS file format.

Visit WebsiteGitHubGitHub
341 stars69 forks0 contributors

What is rust-geojson?

geojson is a Rust library for working with the GeoJSON vector GIS file format. It provides tools for parsing, validating, and serializing geographic data structures according to the official GeoJSON specification. The library enables Rust developers to easily integrate geographic data into their applications with type safety and proper error handling.

Target Audience

Rust developers working with geographic data, GIS applications, or spatial analysis who need to read, write, or manipulate GeoJSON files in their projects.

Value Proposition

Developers choose this library because it provides a complete, spec-compliant implementation of GeoJSON in Rust with an idiomatic API, type safety, and seamless integration with Rust's ecosystem, making it the standard choice for GeoJSON handling in Rust.

Overview

Library for serializing the GeoJSON vector GIS file format

Use Cases

Best For

  • Parsing GeoJSON data from external sources in Rust applications
  • Serializing custom geographic data to GeoJSON format
  • Building GIS tools or spatial analysis applications in Rust
  • Validating GeoJSON data against the official specification
  • Converting between different geographic data formats in Rust
  • Creating REST APIs that serve geographic data in GeoJSON format

Not Ideal For

  • Projects requiring advanced spatial operations like buffering or intersection calculations, as the library focuses solely on data serialization without built-in GIS algorithms.
  • Teams heavily invested in polyglot ecosystems where non-Rust languages dominate, as this library is Rust-specific and requires integration efforts.
  • Applications needing real-time processing of streaming GeoJSON data, where performance optimizations for large datasets might be lacking.

Pros & Cons

Pros

Complete Spec Compliance

Implements all GeoJSON geometry and collection types per the official specification, ensuring correct handling of geographic data structures.

Type-Safe API

Leverages Rust's type system to enforce valid GeoJSON structures at compile time, reducing runtime errors and improving code reliability.

Flexible Serialization

Supports both reading from and writing to GeoJSON strings with proper error handling, as shown in the README examples for parsing and serialization.

Foreign Members Support

Preserves non-standard JSON properties during serialization/deserialization, allowing for extended use cases without data loss.

Cons

No Spatial Analysis

Limited to GeoJSON serialization; does not provide functions for spatial operations like distance calculation or overlays, requiring additional crates.

Rust Ecosystem Dependency

Heavily relies on integration with other Rust crates for advanced GIS features, which can complicate project setup and increase maintenance.

Basic Error Handling

Error messages might be generic for complex invalid GeoJSON, as the library focuses on spec compliance rather than detailed validation feedback.

Frequently Asked Questions

Quick Stats

Stars341
Forks69
Contributors0
Open Issues19
Last commit2 months ago
CreatedSince 2014

Tags

#parsing#geojson#geospatial#gis#serialization#geo#rust#data-format#vector-data

Built With

R
Rust

Links & Resources

Website

Included in

GeoJSON2.5k
Auto-fetched 19 hours ago

Related Projects

python-geojsonpython-geojson

Python bindings and utilities for GeoJSON

Stars994
Forks134
Last commit1 month ago
mapbox-javamapbox-java

The Mapbox Java SDK – Java wrappers around Mapbox APIs and other location data

Stars440
Forks117
Last commit5 months ago
geojson-jacksongeojson-jackson

GeoJson POJOs for Jackson - serialize and deserialize objects with ease

Stars276
Forks100
Last commit7 months ago
rgeo-geojsonrgeo-geojson

RGeo component for reading and writing GeoJSON

Stars205
Forks38
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub