• Stars
    star
    34
  • Rank 740,968 (Top 16 %)
  • Language
    C++
  • License
    BSD 3-Clause "New...
  • Created almost 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GDAL/OGR bindings for ruby

gdal-ruby Build Status

Native bindings for GDAL/OGR for ruby. The GDAL repository contains ruby bindings in the swig/ruby directory, but they aren't compiled or installed with default installations of GDAL. In addition to not typically being installed, the GDAL build system places the files in a global ruby directory which can cause some problems since it's not the way other ruby libraries are typically installed. This gem simply turns the ruby bindings from the GDAL repo into a gem which can be easily managed like all of the other dependencies in your application. This simplifies the process of being able to switch between versions of ruby and use bundler to manage the extension. Also this gem enables you to install GDAL from the standard package managers that don't include the ruby bindings.

Installation

You will first need to install GDAL. There are several ways to install it, but the easiest way is using a package manager.

OS X:

brew install gdal

Ubuntu:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libgdal-dev

Add this line to your application's Gemfile:

gem 'gdal'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gdal

Installing on Mac using The Framework way GDAL :

  • Download and install GDAL Complete dmg from kyngchaos.

  • Export path export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH in your bash or zsh profile

  • Verify the installation gdal-config --version

  • Install the gem using:

    $ gem install gdal -- --with-gdal-lib=/Library/Frameworks/GDAL.framework/unix/lib --with-gdal-includes=/Library/Frameworks/GDAL.framework/Versions/Current/Headers/

Usage

To test it out:

$ ruby -e "require 'gdal-ruby/ogr'; puts Gdal::Ogr.create_geometry_from_wkt('POINT (30 10)').export_to_json"

The best documentation for right now is the autotest code in the GDAL source tree. You can see various patterns for accessing files and using the OGR API from the autotest sources.

License

This gem is BSD. The .c and .cpp files in the ext/gdal-ruby directory are from GDAL. For more info, See ext/gdal-ruby/LICENSE or visit gdal.org.

More Repositories

1

pg-query-parser

PostgreSQL Query Parser for Node.js
JavaScript
144
star
2

symbola

An icon font made for TileMill and Mapnik
JavaScript
86
star
3

icu-ios

Static universal build of ICU compatible with the simulator, armv7, armv7s, and arm64
C++
64
star
4

node-spatialite

Standalone, cross-platform SpatiaLite 4.0 binding for node.js with all features enabled
C
64
star
5

geobox

A hackbox for geo stuff
Ruby
48
star
6

node-ogr

OGR bindings for node
C++
30
star
7

node-pg-query-native

PostgreSQL Query Parser for Node.js
C++
28
star
8

osmchanges-postgres

OpenStreetMap changeset sync to PostgreSQL using the minute diffs
Ruby
12
star
9

filegdb-osx

FileGDB plugin for the GDAL/OGR framework on Mac OSX
Shell
11
star
10

macvimhax

My vim setup
Vim Script
10
star
11

ffmpeg-ubuntu

FFmpeg install script for Ubuntu
Shell
8
star
12

pg-postgis-types

PostGIS Data Types for Node.js / node-postgres
JavaScript
8
star
13

tinystring

A tiny wrapper around std::stringstream for efficient string building in Nodejs
C++
7
star
14

kw

Kill dead whitespace
JavaScript
5
star
15

minidb

Tiny ORM for PostgreSQL and SQLite
JavaScript
4
star
16

great-circles

Great Circles on iPad
Objective-C
4
star
17

fulcrum-cli

Fulcrum CLI
TypeScript
4
star
18

csvtool

A little tiny web tool to build lists for Fulcrum from CSV data
JavaScript
4
star
19

osmstats

An experiment with d3js and the Overpass API
JavaScript
4
star
20

lwgeom

liblwgeom from PostGIS with gyp build system and Windows MSVC support
C
4
star
21

zsh

My zsh / iTerm2 configuration
Shell
3
star
22

cartodb-tools

Command line tool for uploading data to CartoDB
Ruby
3
star
23

togeotiff

Create a GeoTIFF from a tile server given a GeoJSON bounding box and desired zoom level.
Ruby
3
star
24

foxsoccer.tv

minify script for foxsoccer.tv
JavaScript
2
star
25

tiger

TIGER review plugin for JOSM
Java
2
star
26

xls2fulcrum

XLSForm to Fulcrum Converter
JavaScript
2
star
27

video-player

Georeferenced Video Player
JavaScript
2
star
28

pg-query-deparser

Format PostgreSQL Queries
JavaScript
2
star
29

TagHighlight

A git mirror of https://bitbucket.org/abudden/taghighlight
Vim Script
2
star
30

steth

TypeScript
2
star
31

osmchanges

OpenStreetMap changeset sync to MongoDB using the minute diffs
Ruby
2
star
32

soccertv

Soccer TV schedule from the command line using nodejs
JavaScript
2
star
33

foursquare-osm-alerts

Get a push notification when you checkin on Foursquare at a place that's not mapped on OSM
JavaScript
1
star
34

bash

My bash profile
Shell
1
star
35

minisqlite

SQLite bindings for nodejs
C++
1
star
36

grow

Auto-growing textareas
JavaScript
1
star
37

ogrbar

OSX menubar application for ogr2ogr
Objective-C
1
star
38

zhm.github.com

JavaScript
1
star
39

osm-areas

Areas of OSM that have good imagery but not much data
1
star
40

dotfiles

My dotfiles
JavaScript
1
star
41

airbrake-mongo

Sync Airbrake errors to a local mongo database for searching.
Ruby
1
star
42

s3cmd

s3cmd wrapper
Python
1
star
43

minipg

High performance libpq bindings for Nodejs using single-row mode
C++
1
star
44

pg-type-names

PostgreSQL Type Names for Nodejs
JavaScript
1
star
45

video-coverage

Compute polygons from GPS referenced video tracks
Ruby
1
star
46

gss-test

Testing out GSS
1
star
47

s3_cmd_bin

Embedded version of s3cmd you can install using bundler
Python
1
star
48

nginx-ubuntu-build

nginx deb package for Ubuntu that includes the upload module
Shell
1
star