Skip to content
Wrapper for the GDAL API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
rgdal.gemspec

README.md

RGdal

Ruby wrapper for GDAL/OGR

Terminology Reference:

GDAL Database
layer table
field_def column
feature record
field attribute

Examples

Writing

> file = RGdal::SHP.new('tmp/tmpfolder')
> file.create_layer('filename')
> file.feature(lat, long, {attr: 'foo', bar: 'baz'})
> file.close

Reading

> file = RGdal::SHP.new('tmp/tmpfolder')
> layer = file.current_layer
> layer.features.first.attributes
=> {attr: 'foo', bar: 'baz'}
> file.close

Installation

Add this line to your application's Gemfile:

gem 'rgdal', git: 'git@github.com:spatialnetworks/RGdal.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rgdal
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.