Repository is archived
No commit activity in last 3 years
No release in over 3 years
Pretty wrapper for GDAL/OGR
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

~> 0.0.5
 Project Readme

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