georuby-ext 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +27 -9
- data/Gemfile +2 -2
- data/LICENSE.md +19 -0
- data/README.md +67 -0
- data/georuby-ext.gemspec +6 -8
- data/lib/georuby-ext.rb +0 -1
- data/lib/georuby-ext/georuby/line_string.rb +6 -0
- data/lib/georuby-ext/georuby/linear_ring.rb +4 -0
- data/lib/georuby-ext/georuby/locators.rb +0 -3
- data/lib/georuby-ext/georuby/srid.rb +1 -1
- data/lib/georuby-ext/proj4.rb +5 -1
- data/lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb +5 -1
- data/lib/georuby-ext/rspec_helper.rb +4 -4
- data/spec/lib/georuby/envelope_spec.rb +1 -1
- data/spec/lib/georuby/geometry_spec.rb +2 -2
- data/spec/lib/georuby/linear_ring_spec.rb +1 -1
- data/spec/lib/georuby/point_spec.rb +2 -2
- data/spec/lib/georuby/polygon_spec.rb +1 -1
- data/spec/lib/georuby/rtree_spec.rb +7 -7
- data/spec/lib/proj4_spec.rb +4 -0
- data/travis/ar31.gemfile +8 -0
- data/travis/ar32.gemfile +8 -0
- data/travis/ar40.gemfile +9 -0
- metadata +290 -244
- data/.jrubyrc +0 -1
- data/MIT-LICENSE +0 -20
- data/README.rdoc +0 -11
data/.travis.yml
CHANGED
@@ -1,23 +1,41 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.3
|
4
3
|
- 1.8.7
|
4
|
+
- 1.9.3
|
5
|
+
- 2.0.0
|
5
6
|
- jruby-18mode
|
7
|
+
- jruby-19mode
|
6
8
|
jdk:
|
7
9
|
- oraclejdk7
|
8
10
|
- openjdk7
|
9
|
-
|
11
|
+
gemfile:
|
12
|
+
- travis/ar32.gemfile
|
13
|
+
- travis/ar40.gemfile
|
10
14
|
matrix:
|
11
|
-
exclude:
|
12
|
-
- rvm:
|
15
|
+
exclude:
|
16
|
+
- rvm: 1.8.7
|
17
|
+
gemfile: travis/ar40.gemfile
|
13
18
|
jdk: openjdk7
|
14
|
-
- rvm:
|
19
|
+
- rvm: 1.8.7
|
20
|
+
gemfile: travis/ar40.gemfile
|
21
|
+
jdk: oraclejdk7
|
22
|
+
- rvm: 1.9.3
|
15
23
|
jdk: openjdk7
|
16
|
-
- rvm:
|
24
|
+
- rvm: jruby-18mode
|
25
|
+
gemfile: travis/ar40.gemfile
|
26
|
+
jdk: openjdk7
|
27
|
+
- rvm: jruby-18mode
|
28
|
+
gemfile: travis/ar40.gemfile
|
17
29
|
jdk: oraclejdk7
|
18
|
-
|
30
|
+
# TEMP: jdbc adapters don't seem to work with Rails 4 yet, as of 2013-02-27
|
31
|
+
- rvm: jruby-19mode
|
32
|
+
gemfile: travis/ar40.gemfile
|
33
|
+
jdk: openjdk7
|
34
|
+
- rvm: jruby-19mode
|
35
|
+
gemfile: travis/ar40.gemfile
|
19
36
|
jdk: oraclejdk7
|
37
|
+
# END TEMP
|
20
38
|
before_install:
|
21
39
|
- sudo apt-get update
|
22
|
-
- sudo apt-get install libproj-dev libgeos-dev libffi-dev
|
23
|
-
script:
|
40
|
+
- sudo apt-get install libproj-dev libgeos-dev libffi-dev
|
41
|
+
script: bundle exec rake spec
|
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ source "http://rubygems.org"
|
|
4
4
|
gemspec
|
5
5
|
|
6
6
|
group :development do
|
7
|
-
gem 'rb-inotify', ">= 0.
|
7
|
+
gem 'rb-inotify', ">= 0.9", :require => RUBY_PLATFORM.include?('linux') && 'rb-inotify'
|
8
8
|
gem 'libnotify', ">= 0.8.0", :require => RUBY_PLATFORM.include?('linux') && 'libnotify'
|
9
9
|
gem 'rb-fsevent', ">= 0.9.3", :require => RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
|
10
|
-
end
|
10
|
+
end
|
data/LICENSE.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2010-2013 Cityway, inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Georuby-ext [](http://travis-ci.org/dryade/georuby-ext?branch=master) [](https://gemnasium.com/dryade/georuby-ext) [](https://codeclimate.com/github/dryade/georuby-ext)
|
2
|
+
|
3
|
+
Georuby-ext allows to use ruby geometry libraries together. It includes :
|
4
|
+
- Rgeo
|
5
|
+
- GeoRuby
|
6
|
+
- Geokit
|
7
|
+
- Proj4j
|
8
|
+
|
9
|
+
Requirements
|
10
|
+
------------
|
11
|
+
|
12
|
+
This code has been run and tested on [Travis](http://travis-ci.org/afimb/chouette2?branch=master) with :
|
13
|
+
* Ruby 1.8.7
|
14
|
+
* Ruby 1.9.3
|
15
|
+
* Ruby 2.0
|
16
|
+
* JRuby 1.7.2 with oraclejdk7, openjdk7, openjdk6
|
17
|
+
|
18
|
+
External Deps
|
19
|
+
-------------
|
20
|
+
On Debian/Ubuntu/Kubuntu OS :
|
21
|
+
```sh
|
22
|
+
sudo apt-get install libproj-dev libgeos-dev libffi-dev
|
23
|
+
```
|
24
|
+
|
25
|
+
Installation
|
26
|
+
------------
|
27
|
+
|
28
|
+
Without bundler :
|
29
|
+
gem install georuby-ext
|
30
|
+
|
31
|
+
|
32
|
+
With bundler add to your Gemfile :
|
33
|
+
gem 'georuby-ext', '>=0.0.2'
|
34
|
+
|
35
|
+
|
36
|
+
Test
|
37
|
+
----
|
38
|
+
|
39
|
+
```sh
|
40
|
+
bundle exec rake spec
|
41
|
+
```
|
42
|
+
|
43
|
+
More Information
|
44
|
+
----------------
|
45
|
+
|
46
|
+
More information can be found on the [project website on GitHub](.).
|
47
|
+
There is extensive usage documentation available [on the wiki](../../wiki).
|
48
|
+
|
49
|
+
Example Usage
|
50
|
+
-------------
|
51
|
+
|
52
|
+
TODO ...
|
53
|
+
|
54
|
+
License
|
55
|
+
-------
|
56
|
+
|
57
|
+
This project is licensed under the MIT license, a copy of which can be found in the [LICENSE](./LICENSE.md) file.
|
58
|
+
|
59
|
+
Release Notes
|
60
|
+
-------------
|
61
|
+
|
62
|
+
The release notes can be found in [CHANGELOG](./CHANGELOG.md) file
|
63
|
+
|
64
|
+
Support
|
65
|
+
-------
|
66
|
+
|
67
|
+
Users looking for support should file an issue on the GitHub [issue tracking page](../../issues), or file a [pull request](../../pulls) if you have a fix available.
|
data/georuby-ext.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "georuby-ext"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.3"
|
7
7
|
s.authors = ["Marc Florisson", "Luc Donnet", "Alban Peignier"]
|
8
8
|
s.email = ["mflorisson@cityway.fr", "ldonnet@cityway.fr", "alban@tryphon.eu"]
|
9
9
|
s.homepage = "http://github.com/dryade/georuby-ext"
|
@@ -21,14 +21,12 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency "guard-rspec"
|
22
22
|
s.add_development_dependency "guard-bundler"
|
23
23
|
|
24
|
-
s.add_dependency "georuby", "1.9.8"
|
24
|
+
s.add_dependency "georuby", ">=1.9.8"
|
25
25
|
s.add_dependency "dbf"
|
26
|
-
s.add_dependency "nokogiri"
|
27
26
|
s.add_dependency "geokit"
|
28
|
-
s.add_dependency "rgeo", "0.3.20"
|
29
|
-
s.add_dependency "
|
30
|
-
s.add_dependency "ffi-
|
31
|
-
s.add_dependency "dr-ffi-proj4", "0.0.1"
|
27
|
+
s.add_dependency "rgeo", ">=0.3.20"
|
28
|
+
s.add_dependency "ffi-geos", ">=0.1.1"
|
29
|
+
s.add_dependency "dr-ffi-proj4", ">=0.0.1"
|
32
30
|
|
33
|
-
s.add_dependency "activesupport"
|
31
|
+
s.add_dependency "activesupport", ">= 3.2.13"
|
34
32
|
end
|
data/lib/georuby-ext.rb
CHANGED
@@ -161,7 +161,6 @@ class GeoRuby::SimpleFeatures::LineString
|
|
161
161
|
end
|
162
162
|
|
163
163
|
class PointLocator
|
164
|
-
extend ActiveSupport::Memoizable
|
165
164
|
include Math
|
166
165
|
|
167
166
|
attr_reader :target, :segment
|
@@ -206,7 +205,6 @@ class GeoRuby::SimpleFeatures::LineString
|
|
206
205
|
departure_target_metric_delta[0]*departure_arrival_metric_delta[0] +
|
207
206
|
departure_target_metric_delta[1]*departure_arrival_metric_delta[1]
|
208
207
|
end
|
209
|
-
memoize :scalar_product
|
210
208
|
|
211
209
|
def angle
|
212
210
|
acos cos_angle
|
@@ -223,7 +221,6 @@ class GeoRuby::SimpleFeatures::LineString
|
|
223
221
|
def square_of_segment_distance
|
224
222
|
segment_distance ** 2
|
225
223
|
end
|
226
|
-
memoize :square_of_segment_distance
|
227
224
|
|
228
225
|
def segment_distance
|
229
226
|
segment.distance
|
@@ -11,7 +11,7 @@ class GeoRuby::SimpleFeatures::Srid
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def rgeo_factory
|
14
|
-
@rgeo_factory ||= RGeo::Geos.factory(:srid => srid, :wkt_parser => {:support_ewkt => true})
|
14
|
+
@rgeo_factory ||= RGeo::Geos.factory(:srid => srid, :native_interface => :ffi, :wkt_parser => {:support_ewkt => true})
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
data/lib/georuby-ext/proj4.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
module RGeo
|
2
2
|
module Geos
|
3
|
+
|
4
|
+
def preferred_native_interface
|
5
|
+
:ffi
|
6
|
+
end
|
7
|
+
|
3
8
|
module FFIGeometryMethods
|
4
9
|
|
5
10
|
def to_georuby
|
@@ -152,7 +157,6 @@ module RGeo
|
|
152
157
|
end
|
153
158
|
|
154
159
|
class PointLocator
|
155
|
-
extend ActiveSupport::Memoizable
|
156
160
|
include Math
|
157
161
|
|
158
162
|
attr_reader :target, :segment, :factory
|
@@ -34,7 +34,7 @@ end
|
|
34
34
|
|
35
35
|
def line_string(*points)
|
36
36
|
if points.one? and String === points.first
|
37
|
-
geometry("LINESTRING(#{points})")
|
37
|
+
geometry("LINESTRING(#{points.join(",")})")
|
38
38
|
else
|
39
39
|
GeoRuby::SimpleFeatures::LineString.from_points(points, points.first.srid)
|
40
40
|
end
|
@@ -42,7 +42,7 @@ end
|
|
42
42
|
|
43
43
|
def multi_line_string(*lines)
|
44
44
|
if lines.one? and String === lines.first
|
45
|
-
geometry("MULTILINESTRING(#{lines})")
|
45
|
+
geometry("MULTILINESTRING(#{lines.join(",")})")
|
46
46
|
else
|
47
47
|
GeoRuby::SimpleFeatures::MultiLineString.from_line_strings lines, lines.first.srid
|
48
48
|
end
|
@@ -61,7 +61,7 @@ end
|
|
61
61
|
|
62
62
|
def polygon(*points)
|
63
63
|
if points.one? and String === points.first
|
64
|
-
geometry("POLYGON(#{points})")
|
64
|
+
geometry("POLYGON(#{points.join(",")})")
|
65
65
|
else
|
66
66
|
GeoRuby::SimpleFeatures::Polygon.from_points([points], points.first.srid)
|
67
67
|
end
|
@@ -72,7 +72,7 @@ def multi_polygon(*polygons)
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def rgeo_factory
|
75
|
-
@rgeo_factory ||= RGeo::Geos.factory(:srid => 4326, :wkt_parser => {:support_ewkt => true})
|
75
|
+
@rgeo_factory ||= RGeo::Geos.factory(:srid => 4326, :native_interface => :ffi, :wkt_parser => {:support_ewkt => true})
|
76
76
|
end
|
77
77
|
|
78
78
|
def rgeo_point(x = 0, y = 0, srid = 4326)
|
@@ -24,7 +24,7 @@ describe GeoRuby::SimpleFeatures::Envelope do
|
|
24
24
|
describe ".bounds" do
|
25
25
|
|
26
26
|
it "should return a global bounds of children" do
|
27
|
-
geometries = [polygon("(0 0,1 1,1 0, 0 0)"), polygon("(1 1,2 2,2 0, 1 1)")]
|
27
|
+
geometries = [polygon("(0 0,1 1,1 0, 0 0)"), polygon("(1 1,2 2,2 0, 1 1)")]
|
28
28
|
GeoRuby::SimpleFeatures::Envelope.bounds(geometries).should == envelope("0 0","2 2")
|
29
29
|
end
|
30
30
|
end
|
@@ -50,7 +50,7 @@ describe GeoRuby::SimpleFeatures::Geometry do
|
|
50
50
|
|
51
51
|
describe "#to_wgs84" do
|
52
52
|
|
53
|
-
let(:projected_geometry) {
|
53
|
+
let(:projected_geometry) { double }
|
54
54
|
|
55
55
|
it "should return a geometry with 4326 srid" do
|
56
56
|
subject.to_wgs84.srid.should == 4326
|
@@ -65,7 +65,7 @@ describe GeoRuby::SimpleFeatures::Geometry do
|
|
65
65
|
|
66
66
|
describe "#to_google" do
|
67
67
|
|
68
|
-
let(:projected_geometry) {
|
68
|
+
let(:projected_geometry) { double }
|
69
69
|
|
70
70
|
it "should return a geometry with 900913 srid" do
|
71
71
|
subject.to_google.srid.should == 900913
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe GeoRuby::SimpleFeatures::LinearRing do
|
4
|
-
let(:result) { rgeo_factory.linear_ring([rgeo_point(0, 0), rgeo_point(2, 1), rgeo_point(3, 2), rgeo_point(0, 0)])}
|
4
|
+
let(:result) { rgeo_factory.linear_ring([rgeo_point(0.0, 0.0), rgeo_point(2.0, 1.0), rgeo_point(3.0, 2.0), rgeo_point(0.0, 0.0)])}
|
5
5
|
|
6
6
|
describe "to_rgeo" do
|
7
7
|
it "should create a RGeo::Feature::LinearRing" do
|
@@ -6,7 +6,7 @@ describe GeoRuby::SimpleFeatures::Point do
|
|
6
6
|
|
7
7
|
describe "#==" do
|
8
8
|
|
9
|
-
let(:other) {
|
9
|
+
let(:other) { double :other, :lat => nil, :lng => nil }
|
10
10
|
|
11
11
|
it "should return false if other is nil" do
|
12
12
|
subject.should_not == nil
|
@@ -162,7 +162,7 @@ describe GeoRuby::SimpleFeatures::Point do
|
|
162
162
|
|
163
163
|
describe "#projection" do
|
164
164
|
|
165
|
-
let(:projection) {
|
165
|
+
let(:projection) { double :projection }
|
166
166
|
|
167
167
|
it "should return projection associated to srid" do
|
168
168
|
Proj4::Projection.should_receive(:for_srid).with(subject.srid).and_return(projection)
|
@@ -115,7 +115,7 @@ describe GeoRuby::SimpleFeatures::Polygon do
|
|
115
115
|
|
116
116
|
it "should return 2 polygons which have no intersection" do
|
117
117
|
result = geometry("MULTIPOLYGON( ((0 0, 0 2, 2 2, 2 0, 0 0)), ((3 3, 3 4, 4 4, 4 3, 3 3)) )")
|
118
|
-
georuby_polygon2 = geometry("POLYGON((3 3, 4
|
118
|
+
georuby_polygon2 = geometry("POLYGON((3 3, 3 4, 4 4, 4 3, 3 3))")
|
119
119
|
GeoRuby::SimpleFeatures::Polygon.union([georuby_polygon, georuby_polygon2]).should == result
|
120
120
|
end
|
121
121
|
|
@@ -118,15 +118,15 @@ describe GeoRuby::Rtree::Node do
|
|
118
118
|
|
119
119
|
end
|
120
120
|
|
121
|
-
describe "#containing" do
|
122
|
-
|
123
|
-
|
121
|
+
# describe "#containing" do
|
122
|
+
# bound = envelope("0 0","1 1")
|
123
|
+
# let(:children) { [ polygon("(0 0,0 1,1 1,1 0,0 0)"), polygon("(0 0,0 2,2 2,2 0,0 0)"), polygon("(0 0,0 0.5,0.5 0.5,0.5 0,0 0)") ] }
|
124
124
|
|
125
|
-
|
126
|
-
|
127
|
-
|
125
|
+
# it "should return elements if containing bounds" do
|
126
|
+
# GeoRuby::Rtree::Node.new(children).containing(bound).should == children
|
127
|
+
# end
|
128
128
|
|
129
|
-
end
|
129
|
+
# end
|
130
130
|
|
131
131
|
|
132
132
|
end
|
data/spec/lib/proj4_spec.rb
CHANGED
@@ -12,6 +12,10 @@ describe Proj4::Projection do
|
|
12
12
|
Proj4::Projection.for_srid(900913).should == Proj4::Projection.google
|
13
13
|
end
|
14
14
|
|
15
|
+
it "should return built projection projection for srid 27572" do
|
16
|
+
Proj4::Projection.for_srid(27572).definition.include?('epsg:27572').should be_true
|
17
|
+
end
|
18
|
+
|
15
19
|
it "should raise an error when srid isn't supported" do
|
16
20
|
lambda do
|
17
21
|
Proj4::Projection.for_srid(123)
|
data/travis/ar31.gemfile
ADDED
data/travis/ar32.gemfile
ADDED
data/travis/ar40.gemfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gem "pg", ">= 0.15.1", :platform => :ruby
|
4
|
+
gem "activerecord-jdbcpostgresql-adapter", '>= 1.3.0.beta2', :platform => :jruby
|
5
|
+
gem "ffi-geos", :platform => :jruby
|
6
|
+
gem "activerecord", '~> 4.0.0'
|
7
|
+
# gem "activerecord", :git => "git://github.com/rails/rails.git", :branch => 'master'
|
8
|
+
|
9
|
+
gemspec :path => "../"
|
metadata
CHANGED
@@ -1,262 +1,308 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: georuby-ext
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Marc Florisson
|
9
|
+
- Luc Donnet
|
10
|
+
- Alban Peignier
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
14
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rspec
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: !binary |-
|
23
|
+
MA==
|
24
|
+
none: false
|
25
|
+
requirement: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: !binary |-
|
30
|
+
MA==
|
31
|
+
none: false
|
32
|
+
prerelease: false
|
33
|
+
type: :development
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rake
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: !binary |-
|
41
|
+
MA==
|
42
|
+
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: !binary |-
|
48
|
+
MA==
|
49
|
+
none: false
|
50
|
+
prerelease: false
|
51
|
+
type: :development
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: guard
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 1.3.3
|
59
|
+
none: false
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.3.3
|
65
|
+
none: false
|
66
|
+
prerelease: false
|
67
|
+
type: :development
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: guard-rspec
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: !binary |-
|
75
|
+
MA==
|
76
|
+
none: false
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: !binary |-
|
82
|
+
MA==
|
83
|
+
none: false
|
84
|
+
prerelease: false
|
85
|
+
type: :development
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: guard-bundler
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: !binary |-
|
93
|
+
MA==
|
94
|
+
none: false
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: !binary |-
|
100
|
+
MA==
|
101
|
+
none: false
|
102
|
+
prerelease: false
|
103
|
+
type: :development
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: georuby
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.9.8
|
111
|
+
none: false
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 1.9.8
|
117
|
+
none: false
|
118
|
+
prerelease: false
|
119
|
+
type: :runtime
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: dbf
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: !binary |-
|
127
|
+
MA==
|
128
|
+
none: false
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: !binary |-
|
134
|
+
MA==
|
135
|
+
none: false
|
136
|
+
prerelease: false
|
137
|
+
type: :runtime
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: geokit
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: !binary |-
|
145
|
+
MA==
|
146
|
+
none: false
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: !binary |-
|
152
|
+
MA==
|
153
|
+
none: false
|
154
|
+
prerelease: false
|
155
|
+
type: :runtime
|
156
|
+
- !ruby/object:Gem::Dependency
|
157
|
+
name: rgeo
|
158
|
+
version_requirements: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.3.20
|
163
|
+
none: false
|
164
|
+
requirement: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 0.3.20
|
169
|
+
none: false
|
170
|
+
prerelease: false
|
171
|
+
type: :runtime
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
name: ffi-geos
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 0.1.1
|
179
|
+
none: false
|
180
|
+
requirement: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: 0.1.1
|
185
|
+
none: false
|
186
|
+
prerelease: false
|
187
|
+
type: :runtime
|
188
|
+
- !ruby/object:Gem::Dependency
|
189
|
+
name: dr-ffi-proj4
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.0.1
|
195
|
+
none: false
|
196
|
+
requirement: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.0.1
|
201
|
+
none: false
|
202
|
+
prerelease: false
|
203
|
+
type: :runtime
|
204
|
+
- !ruby/object:Gem::Dependency
|
205
|
+
name: activesupport
|
206
|
+
version_requirements: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 3.2.13
|
211
|
+
none: false
|
212
|
+
requirement: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: 3.2.13
|
217
|
+
none: false
|
218
|
+
prerelease: false
|
219
|
+
type: :runtime
|
171
220
|
description: Use together GeoRuby, rgeo, geokit, proj4j (and others)
|
172
|
-
email:
|
173
|
-
|
174
|
-
|
175
|
-
|
221
|
+
email:
|
222
|
+
- mflorisson@cityway.fr
|
223
|
+
- ldonnet@cityway.fr
|
224
|
+
- alban@tryphon.eu
|
176
225
|
executables: []
|
177
|
-
|
178
226
|
extensions: []
|
179
|
-
|
180
227
|
extra_rdoc_files: []
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
+
files:
|
229
|
+
- ".gitignore"
|
230
|
+
- ".travis.yml"
|
231
|
+
- Gemfile
|
232
|
+
- Guardfile
|
233
|
+
- LICENSE.md
|
234
|
+
- README.md
|
235
|
+
- Rakefile
|
236
|
+
- georuby-ext.gemspec
|
237
|
+
- lib/georuby-ext.rb
|
238
|
+
- lib/georuby-ext/core_ext.rb
|
239
|
+
- lib/georuby-ext/geokit.rb
|
240
|
+
- lib/georuby-ext/georuby/envelope.rb
|
241
|
+
- lib/georuby-ext/georuby/ewkb_parser.rb
|
242
|
+
- lib/georuby-ext/georuby/ewkt_parser.rb
|
243
|
+
- lib/georuby-ext/georuby/geometry.rb
|
244
|
+
- lib/georuby-ext/georuby/line_string.rb
|
245
|
+
- lib/georuby-ext/georuby/linear_ring.rb
|
246
|
+
- lib/georuby-ext/georuby/locators.rb
|
247
|
+
- lib/georuby-ext/georuby/multi_polygon.rb
|
248
|
+
- lib/georuby-ext/georuby/point.rb
|
249
|
+
- lib/georuby-ext/georuby/polygon.rb
|
250
|
+
- lib/georuby-ext/georuby/rtree.rb
|
251
|
+
- lib/georuby-ext/georuby/srid.rb
|
252
|
+
- lib/georuby-ext/proj4.rb
|
253
|
+
- lib/georuby-ext/rgeo/cartesian/feature_methods.rb
|
254
|
+
- lib/georuby-ext/rgeo/feature/geometry.rb
|
255
|
+
- lib/georuby-ext/rgeo/feature/geometry_collection.rb
|
256
|
+
- lib/georuby-ext/rgeo/feature/rgeo.rb
|
257
|
+
- lib/georuby-ext/rgeo/geos/ffi_feature_methods.rb
|
258
|
+
- lib/georuby-ext/rspec_helper.rb
|
259
|
+
- spec/lib/geokit_spec.rb
|
260
|
+
- spec/lib/georuby/envelope_spec.rb
|
261
|
+
- spec/lib/georuby/geometry_spec.rb
|
262
|
+
- spec/lib/georuby/line_string_spec.rb
|
263
|
+
- spec/lib/georuby/linear_ring_spec.rb
|
264
|
+
- spec/lib/georuby/locators_spec.rb
|
265
|
+
- spec/lib/georuby/multi_polygon_spec.rb
|
266
|
+
- spec/lib/georuby/point_spec.rb
|
267
|
+
- spec/lib/georuby/polygon_spec.rb
|
268
|
+
- spec/lib/georuby/rtree_spec.rb
|
269
|
+
- spec/lib/proj4_spec.rb
|
270
|
+
- spec/lib/rgeo/cartesian/feature_methods_spec.rb
|
271
|
+
- spec/lib/rgeo/geos/ffi_feature_methods_spec.rb
|
272
|
+
- spec/spec_helper.rb
|
273
|
+
- travis/ar31.gemfile
|
274
|
+
- travis/ar32.gemfile
|
275
|
+
- travis/ar40.gemfile
|
228
276
|
homepage: http://github.com/dryade/georuby-ext
|
229
277
|
licenses: []
|
230
|
-
|
231
|
-
post_install_message:
|
278
|
+
post_install_message:
|
232
279
|
rdoc_options: []
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
280
|
+
require_paths:
|
281
|
+
- lib
|
282
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
283
|
+
requirements:
|
284
|
+
- - ">="
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
segments:
|
287
|
+
- 0
|
288
|
+
hash: 2
|
289
|
+
version: !binary |-
|
290
|
+
MA==
|
237
291
|
none: false
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
292
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
|
+
requirements:
|
294
|
+
- - ">="
|
295
|
+
- !ruby/object:Gem::Version
|
296
|
+
segments:
|
297
|
+
- 0
|
298
|
+
hash: 2
|
299
|
+
version: !binary |-
|
300
|
+
MA==
|
246
301
|
none: false
|
247
|
-
requirements:
|
248
|
-
- - ">="
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
hash: 2
|
251
|
-
segments:
|
252
|
-
- 0
|
253
|
-
version: "0"
|
254
302
|
requirements: []
|
255
|
-
|
256
|
-
rubyforge_project:
|
303
|
+
rubyforge_project:
|
257
304
|
rubygems_version: 1.8.24
|
258
|
-
signing_key:
|
305
|
+
signing_key:
|
259
306
|
specification_version: 3
|
260
307
|
summary: Extension to Ruby geometry libraries
|
261
308
|
test_files: []
|
262
|
-
|
data/.jrubyrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
compat.version=1.8
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2012 YOURNAME
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
== Georuby-ext {<img src="https://travis-ci.org/dryade/georuby-ext.png?branch=master" alt="Build Status" />}[https://travis-ci.org/dryade/georuby-ext] {<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/dryade/georuby-ext]
|
2
|
-
|
3
|
-
georuby-ext is an extension to Ruby geometry libraries
|
4
|
-
|
5
|
-
=== Summary
|
6
|
-
|
7
|
-
GeoRuby, rgeo, geokit, proj4j (...) are nice ruby libraries which cover the same domain. georuby-ext allows to <b>use them together</b>.
|
8
|
-
|
9
|
-
=== License
|
10
|
-
|
11
|
-
This project uses MIT-LICENSE.
|