rgeo 0.1.12 → 0.1.13
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/History.rdoc +9 -7
- data/README.rdoc +7 -5
- data/Version +1 -1
- data/ext/geos_c_impl/factory.c +12 -19
- data/ext/geos_c_impl/factory.h +15 -21
- data/ext/geos_c_impl/geometry.c +19 -36
- data/ext/geos_c_impl/geometry.h +2 -12
- data/ext/geos_c_impl/geometry_collection.c +38 -157
- data/ext/geos_c_impl/geometry_collection.h +2 -12
- data/ext/geos_c_impl/line_string.c +83 -80
- data/ext/geos_c_impl/line_string.h +2 -12
- data/ext/geos_c_impl/main.c +5 -0
- data/ext/geos_c_impl/point.c +2 -12
- data/ext/geos_c_impl/point.h +2 -12
- data/ext/geos_c_impl/polygon.c +5 -14
- data/ext/geos_c_impl/polygon.h +2 -12
- data/ext/geos_c_impl/preface.h +8 -0
- data/lib/rgeo.rb +34 -16
- data/lib/rgeo/{geography/simple_spherical/geometry_collection_impl.rb → cartesian.rb} +19 -26
- data/lib/rgeo/cartesian/calculations.rb +129 -0
- data/lib/rgeo/cartesian/interface.rb +85 -0
- data/lib/rgeo/cartesian/simple_factory.rb +159 -0
- data/lib/rgeo/cartesian/simple_feature_classes.rb +187 -0
- data/lib/rgeo/cartesian/simple_feature_methods.rb +97 -0
- data/lib/rgeo/features.rb +1 -0
- data/lib/rgeo/features/curve.rb +3 -2
- data/lib/rgeo/features/factory.rb +62 -37
- data/lib/rgeo/features/geometry.rb +10 -32
- data/lib/rgeo/features/geometry_collection.rb +3 -2
- data/lib/rgeo/features/line.rb +3 -2
- data/lib/rgeo/features/line_string.rb +3 -2
- data/lib/rgeo/features/linear_ring.rb +3 -2
- data/lib/rgeo/features/multi_curve.rb +3 -2
- data/lib/rgeo/features/multi_line_string.rb +3 -2
- data/lib/rgeo/features/multi_point.rb +3 -2
- data/lib/rgeo/features/multi_polygon.rb +3 -2
- data/lib/rgeo/features/multi_surface.rb +3 -2
- data/lib/rgeo/features/point.rb +3 -2
- data/lib/rgeo/features/polygon.rb +3 -2
- data/lib/rgeo/features/surface.rb +3 -2
- data/lib/rgeo/features/types.rb +198 -0
- data/lib/rgeo/geography.rb +4 -14
- data/lib/rgeo/geography/factory.rb +7 -64
- data/lib/rgeo/geography/{simple_spherical/geometry_methods.rb → helper.rb} +4 -13
- data/lib/rgeo/geography/simple_mercator/feature_classes.rb +35 -89
- data/lib/rgeo/geography/simple_mercator/feature_methods.rb +22 -31
- data/lib/rgeo/geography/simple_mercator/projector.rb +4 -8
- data/lib/rgeo/geography/simple_spherical/calculations.rb +11 -9
- data/lib/rgeo/geography/simple_spherical/feature_classes.rb +189 -0
- data/lib/rgeo/geography/simple_spherical/{line_string_impl.rb → feature_methods.rb} +16 -64
- data/lib/rgeo/geos/factory.rb +26 -40
- data/lib/rgeo/geos/impl_additions.rb +3 -5
- data/lib/rgeo/{geography/simple_spherical/polygon_impl.rb → impl_helpers.rb} +16 -26
- data/lib/rgeo/impl_helpers/basic_geometry_collection_methods.rb +186 -0
- data/lib/rgeo/impl_helpers/basic_geometry_methods.rb +90 -0
- data/lib/rgeo/impl_helpers/basic_line_string_methods.rb +188 -0
- data/lib/rgeo/impl_helpers/basic_point_methods.rb +149 -0
- data/lib/rgeo/{geography/common/helper.rb → impl_helpers/basic_polygon_methods.rb} +62 -53
- data/lib/rgeo/{geography/common/polygon_methods.rb → impl_helpers/serialization.rb} +50 -42
- data/tests/common/geometry_collection_tests.rb +9 -7
- data/tests/common/multi_line_string_tests.rb +16 -13
- data/tests/common/multi_point_tests.rb +16 -13
- data/tests/common/multi_polygon_tests.rb +8 -6
- data/tests/common/point_tests.rb +1 -2
- data/tests/common/polygon_tests.rb +9 -9
- data/tests/geos/tc_multi_line_string.rb +2 -2
- data/tests/simple_cartesian/tc_calculations.rb +138 -0
- data/tests/simple_cartesian/tc_geometry_collection.rb +68 -0
- data/tests/simple_cartesian/tc_line_string.rb +70 -0
- data/{lib/rgeo/geography/simple_spherical/multi_line_string_impl.rb → tests/simple_cartesian/tc_multi_line_string.rb} +19 -19
- data/{lib/rgeo/geography/simple_spherical/multi_polygon_impl.rb → tests/simple_cartesian/tc_multi_point.rb} +19 -19
- data/{lib/rgeo/geography/common/geometry_methods.rb → tests/simple_cartesian/tc_multi_polygon.rb} +19 -41
- data/{lib/rgeo/geography/simple_spherical/point_impl.rb → tests/simple_cartesian/tc_point.rb} +33 -35
- data/tests/simple_cartesian/tc_polygon.rb +67 -0
- data/tests/simple_spherical/tc_geometry_collection.rb +68 -0
- data/tests/simple_spherical/tc_line_string.rb +10 -171
- data/tests/simple_spherical/tc_multi_line_string.rb +67 -0
- data/{lib/rgeo/geography/simple_spherical/multi_point_impl.rb → tests/simple_spherical/tc_multi_point.rb} +19 -19
- data/tests/simple_spherical/tc_multi_polygon.rb +70 -0
- data/tests/simple_spherical/tc_point.rb +17 -115
- data/tests/simple_spherical/tc_polygon.rb +67 -0
- metadata +46 -18
- data/ext/geos_c_impl/globals.h +0 -58
- data/lib/rgeo/geography/common/geometry_collection_methods.rb +0 -217
- data/lib/rgeo/geography/common/line_string_methods.rb +0 -201
- data/lib/rgeo/geography/common/point_methods.rb +0 -153
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# Tests for the simple spherical multi point implementation
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
6
|
# Copyright 2010 Daniel Azuma
|
@@ -34,34 +34,34 @@
|
|
34
34
|
;
|
35
35
|
|
36
36
|
|
37
|
+
require 'test/unit'
|
38
|
+
require 'rgeo'
|
39
|
+
|
40
|
+
require ::File.expand_path('../common/multi_point_tests.rb', ::File.dirname(__FILE__))
|
41
|
+
|
42
|
+
|
37
43
|
module RGeo
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
module SimpleSpherical
|
44
|
+
module Tests # :nodoc:
|
45
|
+
module SimpleSpherical # :nodoc:
|
42
46
|
|
43
|
-
|
44
|
-
class MultiPointImpl
|
47
|
+
class TestMultiPoint < ::Test::Unit::TestCase # :nodoc:
|
45
48
|
|
46
49
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
include Common::GeometryCollectionMethods
|
51
|
-
include Common::MultiPointMethods
|
50
|
+
def create_factory
|
51
|
+
@factory = ::RGeo::Geography.simple_spherical
|
52
|
+
end
|
52
53
|
|
53
54
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
include ::RGeo::Tests::Common::MultiPointTests
|
56
|
+
|
57
|
+
|
58
|
+
undef_method :test_fully_equal
|
59
|
+
undef_method :test_geometrically_equal
|
60
|
+
undef_method :test_not_equal
|
58
61
|
|
59
62
|
|
60
63
|
end
|
61
64
|
|
62
|
-
|
63
65
|
end
|
64
|
-
|
65
66
|
end
|
66
|
-
|
67
67
|
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# -----------------------------------------------------------------------------
|
2
|
+
#
|
3
|
+
# Tests for the simple spherical multi polygon implementation
|
4
|
+
#
|
5
|
+
# -----------------------------------------------------------------------------
|
6
|
+
# Copyright 2010 Daniel Azuma
|
7
|
+
#
|
8
|
+
# All rights reserved.
|
9
|
+
#
|
10
|
+
# Redistribution and use in source and binary forms, with or without
|
11
|
+
# modification, are permitted provided that the following conditions are met:
|
12
|
+
#
|
13
|
+
# * Redistributions of source code must retain the above copyright notice,
|
14
|
+
# this list of conditions and the following disclaimer.
|
15
|
+
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
+
# this list of conditions and the following disclaimer in the documentation
|
17
|
+
# and/or other materials provided with the distribution.
|
18
|
+
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
+
# contributors to this software, may be used to endorse or promote products
|
20
|
+
# derived from this software without specific prior written permission.
|
21
|
+
#
|
22
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
+
# -----------------------------------------------------------------------------
|
34
|
+
;
|
35
|
+
|
36
|
+
|
37
|
+
require 'test/unit'
|
38
|
+
require 'rgeo'
|
39
|
+
|
40
|
+
require ::File.expand_path('../common/multi_polygon_tests.rb', ::File.dirname(__FILE__))
|
41
|
+
|
42
|
+
|
43
|
+
module RGeo
|
44
|
+
module Tests # :nodoc:
|
45
|
+
module SimpleSpherical # :nodoc:
|
46
|
+
|
47
|
+
class TestMultiPolygon < ::Test::Unit::TestCase # :nodoc:
|
48
|
+
|
49
|
+
|
50
|
+
def create_factories
|
51
|
+
@factory = ::RGeo::Geography.simple_spherical
|
52
|
+
@lenient_factory = ::RGeo::Geography.simple_spherical(:lenient_multi_polygon_assertions => true)
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
include ::RGeo::Tests::Common::MultiPolygonTests
|
57
|
+
|
58
|
+
|
59
|
+
undef_method :test_creation_wrong_type
|
60
|
+
undef_method :test_creation_overlapping
|
61
|
+
undef_method :test_creation_connected
|
62
|
+
undef_method :test_equal
|
63
|
+
undef_method :test_not_equal
|
64
|
+
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -37,6 +37,8 @@
|
|
37
37
|
require 'test/unit'
|
38
38
|
require 'rgeo'
|
39
39
|
|
40
|
+
require ::File.expand_path('../common/point_tests.rb', ::File.dirname(__FILE__))
|
41
|
+
|
40
42
|
|
41
43
|
module RGeo
|
42
44
|
module Tests # :nodoc:
|
@@ -50,121 +52,7 @@ module RGeo
|
|
50
52
|
end
|
51
53
|
|
52
54
|
|
53
|
-
|
54
|
-
point_ = @factory.point(21, -22)
|
55
|
-
assert(!point_.respond_to?(:projection))
|
56
|
-
assert_equal(21, point_.x)
|
57
|
-
assert_equal(-22, point_.y)
|
58
|
-
assert_equal(21, point_.longitude)
|
59
|
-
assert_equal(-22, point_.latitude)
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
def test_wkt_creation
|
64
|
-
point1_ = @factory.parse_wkt('POINT(21 -22)')
|
65
|
-
assert_equal(21, point1_.x)
|
66
|
-
assert_equal(-22, point1_.y)
|
67
|
-
assert_equal(21, point1_.longitude)
|
68
|
-
assert_equal(-22, point1_.latitude)
|
69
|
-
end
|
70
|
-
|
71
|
-
|
72
|
-
def test_clone
|
73
|
-
point1_ = @factory.point(11, 12)
|
74
|
-
point2_ = point1_.clone
|
75
|
-
assert_equal(point1_, point2_)
|
76
|
-
point3_ = @factory.point(13, 12)
|
77
|
-
point4_ = point3_.dup
|
78
|
-
assert_equal(point3_, point4_)
|
79
|
-
assert_not_equal(point2_, point4_)
|
80
|
-
end
|
81
|
-
|
82
|
-
|
83
|
-
def test_type_check
|
84
|
-
point_ = @factory.point(21, 22)
|
85
|
-
assert(::RGeo::Features::Geometry.check_type(point_))
|
86
|
-
assert(::RGeo::Features::Point.check_type(point_))
|
87
|
-
assert(!::RGeo::Features::GeometryCollection.check_type(point_))
|
88
|
-
assert(!::RGeo::Features::Curve.check_type(point_))
|
89
|
-
end
|
90
|
-
|
91
|
-
|
92
|
-
def test_geometry_type
|
93
|
-
point_ = @factory.point(11, 12)
|
94
|
-
assert_equal(::RGeo::Features::Point, point_.geometry_type)
|
95
|
-
end
|
96
|
-
|
97
|
-
|
98
|
-
def test_dimension
|
99
|
-
point_ = @factory.point(11, 12)
|
100
|
-
assert_equal(0, point_.dimension)
|
101
|
-
end
|
102
|
-
|
103
|
-
|
104
|
-
def test_srid
|
105
|
-
point_ = @factory.point(11, 12)
|
106
|
-
assert_equal(4326, point_.srid)
|
107
|
-
end
|
108
|
-
|
109
|
-
|
110
|
-
def test_envelope
|
111
|
-
point_ = @factory.point(11, 12)
|
112
|
-
assert_equal(point_, point_.envelope)
|
113
|
-
end
|
114
|
-
|
115
|
-
|
116
|
-
def test_as_text_wkt_round_trip
|
117
|
-
point1_ = @factory.point(11, 12)
|
118
|
-
text_ = point1_.as_text
|
119
|
-
point2_ = @factory.parse_wkt(text_)
|
120
|
-
assert_equal(point2_, point1_)
|
121
|
-
end
|
122
|
-
|
123
|
-
|
124
|
-
def test_as_binary_wkb_round_trip
|
125
|
-
point1_ = @factory.point(211, 12)
|
126
|
-
binary_ = point1_.as_binary
|
127
|
-
point2_ = @factory.parse_wkb(binary_)
|
128
|
-
assert_equal(point2_, point1_)
|
129
|
-
end
|
130
|
-
|
131
|
-
|
132
|
-
def test_is_empty
|
133
|
-
point1_ = @factory.point(0, 0)
|
134
|
-
assert(!point1_.is_empty?)
|
135
|
-
end
|
136
|
-
|
137
|
-
|
138
|
-
def test_is_simple
|
139
|
-
point1_ = @factory.point(0, 0)
|
140
|
-
assert(point1_.is_simple?)
|
141
|
-
end
|
142
|
-
|
143
|
-
|
144
|
-
def test_boundary
|
145
|
-
point_ = @factory.point(11, 12)
|
146
|
-
boundary_ = point_.boundary
|
147
|
-
assert(boundary_.is_empty?)
|
148
|
-
end
|
149
|
-
|
150
|
-
|
151
|
-
def test_equals
|
152
|
-
point1_ = @factory.point(11, 12)
|
153
|
-
point2_ = @factory.point(11, 12)
|
154
|
-
point3_ = @factory.point(13, 12)
|
155
|
-
assert(point1_.equals?(point2_))
|
156
|
-
assert(point1_ == point2_)
|
157
|
-
assert(point1_.eql?(point2_))
|
158
|
-
assert(!point1_.equals?(point3_))
|
159
|
-
assert(point1_ != point3_)
|
160
|
-
assert(!point1_.eql?(point3_))
|
161
|
-
end
|
162
|
-
|
163
|
-
|
164
|
-
def test_convex_hull
|
165
|
-
point_ = @factory.point(11, 12)
|
166
|
-
assert_equal(point_, point_.convex_hull)
|
167
|
-
end
|
55
|
+
include ::RGeo::Tests::Common::PointTests
|
168
56
|
|
169
57
|
|
170
58
|
def test_latlon
|
@@ -189,6 +77,20 @@ module RGeo
|
|
189
77
|
end
|
190
78
|
|
191
79
|
|
80
|
+
undef_method :test_disjoint
|
81
|
+
undef_method :test_intersects
|
82
|
+
undef_method :test_touches
|
83
|
+
undef_method :test_crosses
|
84
|
+
undef_method :test_within
|
85
|
+
undef_method :test_contains
|
86
|
+
undef_method :test_overlaps
|
87
|
+
undef_method :test_convex_hull
|
88
|
+
undef_method :test_intersection
|
89
|
+
undef_method :test_union
|
90
|
+
undef_method :test_difference
|
91
|
+
undef_method :test_sym_difference
|
92
|
+
|
93
|
+
|
192
94
|
end
|
193
95
|
|
194
96
|
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# -----------------------------------------------------------------------------
|
2
|
+
#
|
3
|
+
# Tests for the simple spherical polygon implementation
|
4
|
+
#
|
5
|
+
# -----------------------------------------------------------------------------
|
6
|
+
# Copyright 2010 Daniel Azuma
|
7
|
+
#
|
8
|
+
# All rights reserved.
|
9
|
+
#
|
10
|
+
# Redistribution and use in source and binary forms, with or without
|
11
|
+
# modification, are permitted provided that the following conditions are met:
|
12
|
+
#
|
13
|
+
# * Redistributions of source code must retain the above copyright notice,
|
14
|
+
# this list of conditions and the following disclaimer.
|
15
|
+
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
+
# this list of conditions and the following disclaimer in the documentation
|
17
|
+
# and/or other materials provided with the distribution.
|
18
|
+
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
+
# contributors to this software, may be used to endorse or promote products
|
20
|
+
# derived from this software without specific prior written permission.
|
21
|
+
#
|
22
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
+
# -----------------------------------------------------------------------------
|
34
|
+
;
|
35
|
+
|
36
|
+
|
37
|
+
require 'test/unit'
|
38
|
+
require 'rgeo'
|
39
|
+
|
40
|
+
require ::File.expand_path('../common/polygon_tests.rb', ::File.dirname(__FILE__))
|
41
|
+
|
42
|
+
|
43
|
+
module RGeo
|
44
|
+
module Tests # :nodoc:
|
45
|
+
module SimpleSpherical # :nodoc:
|
46
|
+
|
47
|
+
class TestPolygon < ::Test::Unit::TestCase # :nodoc:
|
48
|
+
|
49
|
+
|
50
|
+
def setup
|
51
|
+
@factory = ::RGeo::Geography.simple_spherical
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
include ::RGeo::Tests::Common::PolygonTests
|
56
|
+
|
57
|
+
|
58
|
+
undef_method :test_fully_equal
|
59
|
+
undef_method :test_geometrically_equal_but_ordered_different
|
60
|
+
undef_method :test_geometrically_equal_but_different_directions
|
61
|
+
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 13
|
9
|
+
version: 0.1.13
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Azuma
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-26 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -42,6 +42,12 @@ extra_rdoc_files:
|
|
42
42
|
- History.rdoc
|
43
43
|
- README.rdoc
|
44
44
|
files:
|
45
|
+
- lib/rgeo/cartesian/calculations.rb
|
46
|
+
- lib/rgeo/cartesian/interface.rb
|
47
|
+
- lib/rgeo/cartesian/simple_factory.rb
|
48
|
+
- lib/rgeo/cartesian/simple_feature_classes.rb
|
49
|
+
- lib/rgeo/cartesian/simple_feature_methods.rb
|
50
|
+
- lib/rgeo/cartesian.rb
|
45
51
|
- lib/rgeo/errors.rb
|
46
52
|
- lib/rgeo/features/curve.rb
|
47
53
|
- lib/rgeo/features/factory.rb
|
@@ -58,37 +64,34 @@ files:
|
|
58
64
|
- lib/rgeo/features/point.rb
|
59
65
|
- lib/rgeo/features/polygon.rb
|
60
66
|
- lib/rgeo/features/surface.rb
|
67
|
+
- lib/rgeo/features/types.rb
|
61
68
|
- lib/rgeo/features.rb
|
62
69
|
- lib/rgeo/geo_json/coder.rb
|
63
70
|
- lib/rgeo/geo_json/entities.rb
|
64
71
|
- lib/rgeo/geo_json/interface.rb
|
65
72
|
- lib/rgeo/geo_json.rb
|
66
|
-
- lib/rgeo/geography/common/geometry_collection_methods.rb
|
67
|
-
- lib/rgeo/geography/common/geometry_methods.rb
|
68
|
-
- lib/rgeo/geography/common/helper.rb
|
69
|
-
- lib/rgeo/geography/common/line_string_methods.rb
|
70
|
-
- lib/rgeo/geography/common/point_methods.rb
|
71
|
-
- lib/rgeo/geography/common/polygon_methods.rb
|
72
73
|
- lib/rgeo/geography/factories.rb
|
73
74
|
- lib/rgeo/geography/factory.rb
|
75
|
+
- lib/rgeo/geography/helper.rb
|
74
76
|
- lib/rgeo/geography/projected_window.rb
|
75
77
|
- lib/rgeo/geography/simple_mercator/feature_classes.rb
|
76
78
|
- lib/rgeo/geography/simple_mercator/feature_methods.rb
|
77
79
|
- lib/rgeo/geography/simple_mercator/projector.rb
|
78
80
|
- lib/rgeo/geography/simple_spherical/calculations.rb
|
79
|
-
- lib/rgeo/geography/simple_spherical/
|
80
|
-
- lib/rgeo/geography/simple_spherical/
|
81
|
-
- lib/rgeo/geography/simple_spherical/line_string_impl.rb
|
82
|
-
- lib/rgeo/geography/simple_spherical/multi_line_string_impl.rb
|
83
|
-
- lib/rgeo/geography/simple_spherical/multi_point_impl.rb
|
84
|
-
- lib/rgeo/geography/simple_spherical/multi_polygon_impl.rb
|
85
|
-
- lib/rgeo/geography/simple_spherical/point_impl.rb
|
86
|
-
- lib/rgeo/geography/simple_spherical/polygon_impl.rb
|
81
|
+
- lib/rgeo/geography/simple_spherical/feature_classes.rb
|
82
|
+
- lib/rgeo/geography/simple_spherical/feature_methods.rb
|
87
83
|
- lib/rgeo/geography.rb
|
88
84
|
- lib/rgeo/geos/factory.rb
|
89
85
|
- lib/rgeo/geos/impl_additions.rb
|
90
86
|
- lib/rgeo/geos/interface.rb
|
91
87
|
- lib/rgeo/geos.rb
|
88
|
+
- lib/rgeo/impl_helpers/basic_geometry_collection_methods.rb
|
89
|
+
- lib/rgeo/impl_helpers/basic_geometry_methods.rb
|
90
|
+
- lib/rgeo/impl_helpers/basic_line_string_methods.rb
|
91
|
+
- lib/rgeo/impl_helpers/basic_point_methods.rb
|
92
|
+
- lib/rgeo/impl_helpers/basic_polygon_methods.rb
|
93
|
+
- lib/rgeo/impl_helpers/serialization.rb
|
94
|
+
- lib/rgeo/impl_helpers.rb
|
92
95
|
- lib/rgeo/version.rb
|
93
96
|
- lib/rgeo.rb
|
94
97
|
- History.rdoc
|
@@ -109,6 +112,14 @@ files:
|
|
109
112
|
- tests/geos/tc_multi_polygon.rb
|
110
113
|
- tests/geos/tc_point.rb
|
111
114
|
- tests/geos/tc_polygon.rb
|
115
|
+
- tests/simple_cartesian/tc_calculations.rb
|
116
|
+
- tests/simple_cartesian/tc_geometry_collection.rb
|
117
|
+
- tests/simple_cartesian/tc_line_string.rb
|
118
|
+
- tests/simple_cartesian/tc_multi_line_string.rb
|
119
|
+
- tests/simple_cartesian/tc_multi_point.rb
|
120
|
+
- tests/simple_cartesian/tc_multi_polygon.rb
|
121
|
+
- tests/simple_cartesian/tc_point.rb
|
122
|
+
- tests/simple_cartesian/tc_polygon.rb
|
112
123
|
- tests/simple_mercator/tc_geometry_collection.rb
|
113
124
|
- tests/simple_mercator/tc_line_string.rb
|
114
125
|
- tests/simple_mercator/tc_multi_line_string.rb
|
@@ -118,8 +129,13 @@ files:
|
|
118
129
|
- tests/simple_mercator/tc_polygon.rb
|
119
130
|
- tests/simple_mercator/tc_window.rb
|
120
131
|
- tests/simple_spherical/tc_calculations.rb
|
132
|
+
- tests/simple_spherical/tc_geometry_collection.rb
|
121
133
|
- tests/simple_spherical/tc_line_string.rb
|
134
|
+
- tests/simple_spherical/tc_multi_line_string.rb
|
135
|
+
- tests/simple_spherical/tc_multi_point.rb
|
136
|
+
- tests/simple_spherical/tc_multi_polygon.rb
|
122
137
|
- tests/simple_spherical/tc_point.rb
|
138
|
+
- tests/simple_spherical/tc_polygon.rb
|
123
139
|
- tests/tc_geojson.rb
|
124
140
|
- tests/tc_oneoff.rb
|
125
141
|
- ext/geos_c_impl/extconf.rb
|
@@ -133,7 +149,6 @@ files:
|
|
133
149
|
- ext/geos_c_impl/factory.h
|
134
150
|
- ext/geos_c_impl/geometry.h
|
135
151
|
- ext/geos_c_impl/geometry_collection.h
|
136
|
-
- ext/geos_c_impl/globals.h
|
137
152
|
- ext/geos_c_impl/line_string.h
|
138
153
|
- ext/geos_c_impl/point.h
|
139
154
|
- ext/geos_c_impl/polygon.h
|
@@ -190,6 +205,14 @@ test_files:
|
|
190
205
|
- tests/geos/tc_multi_polygon.rb
|
191
206
|
- tests/geos/tc_point.rb
|
192
207
|
- tests/geos/tc_polygon.rb
|
208
|
+
- tests/simple_cartesian/tc_calculations.rb
|
209
|
+
- tests/simple_cartesian/tc_geometry_collection.rb
|
210
|
+
- tests/simple_cartesian/tc_line_string.rb
|
211
|
+
- tests/simple_cartesian/tc_multi_line_string.rb
|
212
|
+
- tests/simple_cartesian/tc_multi_point.rb
|
213
|
+
- tests/simple_cartesian/tc_multi_polygon.rb
|
214
|
+
- tests/simple_cartesian/tc_point.rb
|
215
|
+
- tests/simple_cartesian/tc_polygon.rb
|
193
216
|
- tests/simple_mercator/tc_geometry_collection.rb
|
194
217
|
- tests/simple_mercator/tc_line_string.rb
|
195
218
|
- tests/simple_mercator/tc_multi_line_string.rb
|
@@ -199,7 +222,12 @@ test_files:
|
|
199
222
|
- tests/simple_mercator/tc_polygon.rb
|
200
223
|
- tests/simple_mercator/tc_window.rb
|
201
224
|
- tests/simple_spherical/tc_calculations.rb
|
225
|
+
- tests/simple_spherical/tc_geometry_collection.rb
|
202
226
|
- tests/simple_spherical/tc_line_string.rb
|
227
|
+
- tests/simple_spherical/tc_multi_line_string.rb
|
228
|
+
- tests/simple_spherical/tc_multi_point.rb
|
229
|
+
- tests/simple_spherical/tc_multi_polygon.rb
|
203
230
|
- tests/simple_spherical/tc_point.rb
|
231
|
+
- tests/simple_spherical/tc_polygon.rb
|
204
232
|
- tests/tc_geojson.rb
|
205
233
|
- tests/tc_oneoff.rb
|