Home > georuby-pip

georuby-pip

Georuby-pip is a project mainly written in RUBY and C, it's free.

GeoRuby extension for asking whether a given point lies inside a polygon

Point-in-Polygon extension for GeoRuby

Description

  • Ruby C-extension for finding if a point lies inside a polygon
  • Original ray casting algorithm taken from here
  • An extension for GeoRuby is provided
  • Compatible with Ruby 1.9.2 only, I think... (not tested on 1.8.x)

Usage

To compile extension do:

$ ruby extconf.rb
$ make