GDAL/OGR In Ruby

The GDAL project (primarily Charles Savage) maintains SWIG generated Ruby bindings for GDAL and OGR. Generally speaking the classes and methods mostly match those of the GDAL and OGR C++ classes, but there is currently no Ruby specific documentation beyond this wiki topic.

Useful Links

  • autotest/ruby contains some test scripts using the ruby bindings.

Building

Note: SWIG 2 is required to build the Ruby bindings against Ruby 1.9.2. (SWIG 1.3.40 is fine for Ruby 1.8.7)