Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Ruby
  3. rgeo

rgeo

NOASSERTIONRuby

A Ruby geospatial data library implementing OGC Simple Features for modeling and analyzing location data.

Visit WebsiteGitHubGitHub
1.1k stars159 forks0 contributors

What is rgeo?

RGeo is a geospatial data library for Ruby that implements the OGC Simple Features Specification. It provides data representations of geometric objects like points, lines, and polygons along with spatial analysis operations, enabling developers to build location-aware applications and handle geolocation data effectively.

Target Audience

Ruby developers building applications that require geospatial data processing, such as mapping services, location-based analytics, GIS tools, or any software needing geometric calculations and spatial relationships.

Value Proposition

Developers choose RGeo because it offers a comprehensive, standards-compliant geospatial toolkit specifically for Ruby, with support for spherical geometry, projections, and seamless integration with spatial databases through its extension ecosystem.

Overview

Geospatial data library for Ruby

Use Cases

Best For

  • Building location-aware Ruby applications with geometric data modeling
  • Performing spatial analysis operations like intersections and buffering
  • Handling spherical geometry and geographic projections in Ruby
  • Reading and writing WKT/WKB data formats for spatial databases
  • Integrating geospatial functionality with ActiveRecord via PostGIS/MySQL adapters
  • Processing GeoJSON and ESRI shapefiles in Ruby environments

Not Ideal For

  • Applications requiring only basic latitude/longitude storage without geometric analysis or spatial operations
  • Development environments where installing system-level C libraries like GEOS is restricted or problematic
  • Teams heavily invested in non-Ruby stacks or needing cross-language geospatial interoperability without Ruby integration
  • Projects on Windows without prior experience in setting up FFI or native extensions, as indicated by the need for ffi-geos

Pros & Cons

Pros

OGC Standards Compliance

Implements the industry-standard OGC Simple Features Specification for geometric objects and operations, ensuring interoperability with spatial databases and tools, as highlighted in the core features.

Comprehensive Spatial Analysis

Supports a wide range of operations like intersections, buffering, and length/area calculations, making it suitable for complex geospatial applications, directly from the summary.

Spherical Geometry Support

Correctly handles spherical geometry and geographic projections for map display and analysis, essential for accurate geolocation data, as noted in the key features.

Extensible Ecosystem

Offers optional add-on modules for Proj4, GeoJSON, shapefiles, and database adapters, enhancing functionality for specific use cases, detailed in the extensions section.

Cons

System Dependency Hassles

Requires installation of external C libraries like GEOS and potentially Proj4, which can be challenging on some platforms, as admitted in the dependencies section with notes for Windows and JRuby.

JRuby Limitations

Only partial support for JRuby, with features like CAPI unavailable and reliance on ffi-geos, limiting its effectiveness in JVM-based Ruby environments.

Breaking Changes Complexity

Version 3.0 introduces breaking changes requiring a dedicated upgrade guide, which can cause migration headaches and additional maintenance overhead for existing projects.

Extension Maintenance Gaps

Some extensions, such as the activerecord-spatialite-adapter, are explicitly noted as not maintained, leading to potential compatibility and support issues over time.

Frequently Asked Questions

Quick Stats

Stars1,060
Forks159
Contributors0
Open Issues40
Last commit5 months ago
CreatedSince 2010

Tags

#geojson#geospatial#location-data#geolocation#geometry#gis#spatial-analysis#rgeo#ruby

Built With

J
JRuby
R
Ruby
F
FFI
G
GEOS

Links & Resources

Website

Included in

Ruby14.1k
Auto-fetched 21 hours ago

Related Projects

GeocoderGeocoder

Complete Ruby geocoding solution.

Stars6,446
Forks1,198
Last commit1 month ago
Google Maps for RailsGoogle Maps for Rails

Enables easy Google map + overlays creation in Ruby apps

Stars2,248
Forks375
Last commit8 years ago
GeokitGeokit

Official Geokit Gem. Geokit gem provides geocoding and distance/heading calculations. Pair with the geokit-rails plugin for full-fledged location-based app functionality.

Stars1,626
Forks358
Last commit2 years ago
geoipgeoip

The Ruby gem for querying Maxmind.com's GeoIP database, which returns the geographic location of a server given its IP address

Stars723
Forks82
Last commit7 years 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