rgeo 0.5.2 → 0.5.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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/ext/geos_c_impl/geometry.c +65 -0
  3. data/lib/rgeo/geographic/projected_feature_methods.rb +4 -0
  4. data/lib/rgeo/version.rb +1 -1
  5. data/test/{tc_cartesian_analysis.rb → cartesian_analysis_test.rb} +0 -0
  6. data/test/{tc_cartesian_bbox.rb → cartesian_bbox_test.rb} +0 -0
  7. data/test/coord_sys/{tc_ogc_cs.rb → ogc_cs_test.rb} +0 -0
  8. data/test/coord_sys/{tc_proj4_srs_data.rb → proj4_srs_data_test.rb} +0 -0
  9. data/test/coord_sys/{tc_proj4.rb → proj4_test.rb} +0 -0
  10. data/test/coord_sys/{tc_sr_org.rb → sr_org_test.rb} +0 -0
  11. data/test/coord_sys/{tc_url_reader.rb → url_reader_test.rb} +0 -0
  12. data/test/geos_capi/{tc_factory.rb → factory_test.rb} +0 -0
  13. data/test/geos_capi/{tc_geometry_collection.rb → geometry_collection_test.rb} +0 -0
  14. data/test/geos_capi/{tc_line_string.rb → line_string_test.rb} +0 -0
  15. data/test/geos_capi/{tc_misc.rb → misc_test.rb} +0 -0
  16. data/test/geos_capi/{tc_multi_line_string.rb → multi_line_string_test.rb} +0 -0
  17. data/test/geos_capi/{tc_multi_point.rb → multi_point_test.rb} +0 -0
  18. data/test/geos_capi/{tc_multi_polygon.rb → multi_polygon_test.rb} +0 -0
  19. data/test/geos_capi/{tc_parsing_unparsing.rb → parsing_unparsing_test.rb} +0 -0
  20. data/test/geos_capi/{tc_point.rb → point_test.rb} +0 -0
  21. data/test/geos_capi/{tc_polygon.rb → polygon_test.rb} +54 -3
  22. data/test/geos_capi/{tc_zmfactory.rb → zmfactory_test.rb} +0 -0
  23. data/test/geos_ffi/{tc_factory.rb → factory_test.rb} +0 -0
  24. data/test/geos_ffi/{tc_geometry_collection.rb → geometry_collection_test.rb} +0 -0
  25. data/test/geos_ffi/{tc_line_string.rb → line_string_test.rb} +0 -0
  26. data/test/geos_ffi/{tc_misc.rb → misc_test.rb} +0 -0
  27. data/test/geos_ffi/{tc_multi_line_string.rb → multi_line_string_test.rb} +0 -0
  28. data/test/geos_ffi/{tc_multi_point.rb → multi_point_test.rb} +0 -0
  29. data/test/geos_ffi/{tc_multi_polygon.rb → multi_polygon_test.rb} +0 -0
  30. data/test/geos_ffi/{tc_parsing_unparsing.rb → parsing_unparsing_test.rb} +0 -0
  31. data/test/geos_ffi/{tc_point.rb → point_test.rb} +0 -0
  32. data/test/geos_ffi/{tc_polygon.rb → polygon_test.rb} +0 -0
  33. data/test/geos_ffi/{tc_zmfactory.rb → zmfactory_test.rb} +0 -0
  34. data/test/{tc_mixins.rb → mixins_test.rb} +0 -0
  35. data/test/{tc_oneoff.rb → oneoff_test.rb} +0 -0
  36. data/test/projected_geographic/{tc_factory.rb → factory_test.rb} +0 -0
  37. data/test/projected_geographic/{tc_geometry_collection.rb → geometry_collection_test.rb} +0 -0
  38. data/test/projected_geographic/{tc_line_string.rb → line_string_test.rb} +0 -0
  39. data/test/projected_geographic/{tc_multi_line_string.rb → multi_line_string_test.rb} +0 -0
  40. data/test/projected_geographic/{tc_multi_point.rb → multi_point_test.rb} +0 -0
  41. data/test/projected_geographic/{tc_multi_polygon.rb → multi_polygon_test.rb} +0 -0
  42. data/test/projected_geographic/{tc_point.rb → point_test.rb} +0 -0
  43. data/test/projected_geographic/{tc_polygon.rb → polygon_test.rb} +0 -0
  44. data/test/simple_cartesian/{tc_calculations.rb → calculations_test.rb} +0 -0
  45. data/test/simple_cartesian/{tc_factory.rb → factory_test.rb} +0 -0
  46. data/test/simple_cartesian/{tc_geometry_collection.rb → geometry_collection_test.rb} +0 -0
  47. data/test/simple_cartesian/{tc_line_string.rb → line_string_test.rb} +0 -0
  48. data/test/simple_cartesian/{tc_multi_line_string.rb → multi_line_string_test.rb} +0 -0
  49. data/test/simple_cartesian/{tc_multi_point.rb → multi_point_test.rb} +0 -0
  50. data/test/simple_cartesian/{tc_multi_polygon.rb → multi_polygon_test.rb} +0 -0
  51. data/test/simple_cartesian/{tc_point.rb → point_test.rb} +0 -0
  52. data/test/simple_cartesian/{tc_polygon.rb → polygon_test.rb} +0 -0
  53. data/test/simple_mercator/{tc_factory.rb → factory_test.rb} +0 -0
  54. data/test/simple_mercator/{tc_geometry_collection.rb → geometry_collection_test.rb} +0 -0
  55. data/test/simple_mercator/{tc_line_string.rb → line_string_test.rb} +0 -0
  56. data/test/simple_mercator/{tc_multi_line_string.rb → multi_line_string_test.rb} +0 -0
  57. data/test/simple_mercator/{tc_multi_point.rb → multi_point_test.rb} +0 -0
  58. data/test/simple_mercator/{tc_multi_polygon.rb → multi_polygon_test.rb} +0 -0
  59. data/test/simple_mercator/{tc_point.rb → point_test.rb} +0 -0
  60. data/test/simple_mercator/{tc_polygon.rb → polygon_test.rb} +0 -0
  61. data/test/simple_mercator/{tc_window.rb → window_test.rb} +0 -0
  62. data/test/spherical_geographic/{tc_calculations.rb → calculations_test.rb} +0 -0
  63. data/test/spherical_geographic/{tc_factory.rb → factory_test.rb} +0 -0
  64. data/test/spherical_geographic/{tc_geometry_collection.rb → geometry_collection_test.rb} +0 -0
  65. data/test/spherical_geographic/{tc_line_string.rb → line_string_test.rb} +0 -0
  66. data/test/spherical_geographic/{tc_multi_line_string.rb → multi_line_string_test.rb} +0 -0
  67. data/test/spherical_geographic/{tc_multi_point.rb → multi_point_test.rb} +0 -0
  68. data/test/spherical_geographic/{tc_multi_polygon.rb → multi_polygon_test.rb} +0 -0
  69. data/test/spherical_geographic/{tc_point.rb → point_test.rb} +0 -0
  70. data/test/spherical_geographic/{tc_polygon.rb → polygon_test.rb} +0 -0
  71. data/test/{tc_types.rb → types_test.rb} +0 -0
  72. data/test/wkrep/{tc_wkb_generator.rb → wkb_generator_test.rb} +0 -0
  73. data/test/wkrep/{tc_wkb_parser.rb → wkb_parser_test.rb} +0 -0
  74. data/test/wkrep/{tc_wkt_generator.rb → wkt_generator_test.rb} +0 -0
  75. data/test/wkrep/{tc_wkt_parser.rb → wkt_parser_test.rb} +0 -0
  76. metadata +160 -145
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: caa2d9cf16debf7c8a179722c869d495231a1e60
4
- data.tar.gz: 1997fbab92a4c9a09b5c4320b517f4490536288d
3
+ metadata.gz: 271b1d25a4e132b9bb47167baa18f7fe115d115c
4
+ data.tar.gz: 4955f5e3e07501603608011709b7abb4f828e0f1
5
5
  SHA512:
6
- metadata.gz: 3efb5ad117346bfef57e0c28d22178832a63af8a108ceeed4a852d5f48c19b0bab02ea3a446e530d336abc683e6ce9aa5a399377b41db02a57cc9f07b2e322e0
7
- data.tar.gz: 645c51c63379aca330510b0249b9ae4ef6eb1ca057645a7eb42f81726f1b7bb6b104f2b78d3a1778bee816213016079790ba3867ace145a9c0f309e7d4bff8f5
6
+ metadata.gz: 06db61e1bf1192048a0b2bf77c40f1279981b57fcb097aef674b5cb515ff34ec0e4b4c86d45affbaed2e00f2952660597e5d7f930d1c5c096f44f781cd695533
7
+ data.tar.gz: 9ace533036e1af0abcdac0c753ba6436a784ff4f0c54bc99b92d5701a765c14f86cd66cd20da31fcc1e15cd274b45ff6722ecda025050ea9007b52ab5a887f22
@@ -782,6 +782,24 @@ static VALUE method_geometry_simplify(VALUE self, VALUE tolerance)
782
782
  return result;
783
783
  }
784
784
 
785
+ static VALUE method_geometry_simplify_preserve_topology(VALUE self, VALUE tolerance)
786
+ {
787
+ VALUE result;
788
+ RGeo_GeometryData* self_data;
789
+ const GEOSGeometry* self_geom;
790
+ VALUE factory;
791
+
792
+ result = Qnil;
793
+ self_data = RGEO_GEOMETRY_DATA_PTR(self);
794
+ self_geom = self_data->geom;
795
+ if (self_geom) {
796
+ factory = self_data->factory;
797
+ result = rgeo_wrap_geos_geometry(factory, GEOSTopologyPreserveSimplify_r(self_data->geos_context, self_geom,
798
+ rb_num2dbl(tolerance)), Qnil);
799
+ }
800
+ return result;
801
+ }
802
+
785
803
 
786
804
  static VALUE method_geometry_convex_hull(VALUE self)
787
805
  {
@@ -970,6 +988,50 @@ static VALUE method_geometry_steal(VALUE self, VALUE orig)
970
988
  return self;
971
989
  }
972
990
 
991
+ static VALUE method_geometry_is_valid(VALUE self)
992
+ {
993
+ VALUE result;
994
+ RGeo_GeometryData* self_data;
995
+ const GEOSGeometry* self_geom;
996
+ char val;
997
+
998
+ result = Qnil;
999
+ self_data = RGEO_GEOMETRY_DATA_PTR(self);
1000
+ self_geom = self_data->geom;
1001
+ if (self_geom) {
1002
+ val = GEOSisValid_r(self_data->geos_context, self_geom);
1003
+ if (val == 0) {
1004
+ result = Qfalse;
1005
+ }
1006
+ else if (val == 1) {
1007
+ result = Qtrue;
1008
+ }
1009
+ }
1010
+ return result;
1011
+ }
1012
+
1013
+ static VALUE method_geometry_invalid_reason(VALUE self)
1014
+ {
1015
+ VALUE result;
1016
+ RGeo_GeometryData* self_data;
1017
+ const GEOSGeometry* self_geom;
1018
+ char* str;
1019
+
1020
+ result = Qnil;
1021
+ self_data = RGEO_GEOMETRY_DATA_PTR(self);
1022
+ self_geom = self_data->geom;
1023
+ if (self_geom) {
1024
+ str = GEOSisValidReason_r(self_data->geos_context, self_geom);
1025
+ if (str) {
1026
+ result = rb_str_new2(str);
1027
+ }
1028
+ else {
1029
+ result = rb_str_new2("Exception");
1030
+ }
1031
+ }
1032
+ return result;
1033
+ }
1034
+
973
1035
 
974
1036
  /**** INITIALIZATION FUNCTION ****/
975
1037
 
@@ -1012,6 +1074,7 @@ void rgeo_init_geos_geometry(RGeo_Globals* globals)
1012
1074
  rb_define_method(geos_geometry_methods, "buffer", method_geometry_buffer, 1);
1013
1075
  rb_define_method(geos_geometry_methods, "buffer_with_style", method_geometry_buffer_with_style, 4);
1014
1076
  rb_define_method(geos_geometry_methods, "simplify", method_geometry_simplify, 1);
1077
+ rb_define_method(geos_geometry_methods, "simplify_preserve_topology", method_geometry_simplify_preserve_topology, 1);
1015
1078
  rb_define_method(geos_geometry_methods, "convex_hull", method_geometry_convex_hull, 0);
1016
1079
  rb_define_method(geos_geometry_methods, "intersection", method_geometry_intersection, 1);
1017
1080
  rb_define_method(geos_geometry_methods, "*", method_geometry_intersection, 1);
@@ -1020,6 +1083,8 @@ void rgeo_init_geos_geometry(RGeo_Globals* globals)
1020
1083
  rb_define_method(geos_geometry_methods, "difference", method_geometry_difference, 1);
1021
1084
  rb_define_method(geos_geometry_methods, "-", method_geometry_difference, 1);
1022
1085
  rb_define_method(geos_geometry_methods, "sym_difference", method_geometry_sym_difference, 1);
1086
+ rb_define_method(geos_geometry_methods, "valid?", method_geometry_is_valid, 0);
1087
+ rb_define_method(geos_geometry_methods, "invalid_reason", method_geometry_invalid_reason, 0);
1023
1088
  }
1024
1089
 
1025
1090
 
@@ -85,6 +85,10 @@ module RGeo
85
85
  factory.unproject(projection.simplify(tolerance_))
86
86
  end
87
87
 
88
+ def simplify_preserve_topology(tolerance_)
89
+ factory.unproject(projection.simplify_preserve_topology(tolerance_))
90
+ end
91
+
88
92
  def convex_hull
89
93
  factory.unproject(projection.convex_hull)
90
94
  end
@@ -1,3 +1,3 @@
1
1
  module RGeo
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
@@ -4,10 +4,10 @@
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- require "test/unit"
8
- require "rgeo"
7
+ require 'test/unit'
8
+ require 'rgeo'
9
9
 
10
- require ::File.expand_path("../common/polygon_tests.rb", ::File.dirname(__FILE__))
10
+ require ::File.expand_path('../common/polygon_tests.rb', ::File.dirname(__FILE__))
11
11
 
12
12
  module RGeo
13
13
  module Tests # :nodoc:
@@ -73,6 +73,24 @@ module RGeo
73
73
  assert_equal polygon, polygon2
74
74
  end
75
75
 
76
+ def test_simplify_preserve_topology()
77
+ xys1 = [[0.0, 0.0], [5.0, 0.0], [10.0, 0.0], [10.0, 10.0], [5.0, 12.0], [0.0, 10.0], [0.0, 0.0]]
78
+ xys2 = [[0.1, 0.1], [0.1, 0.6], [0.3, 0.8], [0.5, 0.5], [0.7, 0.3], [0.3, 0.1], [0.1, 0.1]]
79
+
80
+ points1 = xys1.collect { |x,y| @factory.point(x, y) }
81
+ points2 = xys2.collect { |x,y| @factory.point(x, y) }
82
+
83
+ ln1 = @factory.line_string(points1)
84
+ ln2 = @factory.line_string(points2)
85
+
86
+ poly = @factory.polygon(ln1,[ln2])
87
+
88
+ simplified = poly.simplify_preserve_topology(1)
89
+ interior_points = simplified.interior_rings[0].points
90
+
91
+ assert_equal 5, interior_points.length
92
+ end
93
+
76
94
  def test_buffer_with_style
77
95
  polygon_coordinates = [[0.7316718427000253, 3.865835921350013],
78
96
  [1.0, 4.3], [6.0, 4.3], [6.3, 4.3],
@@ -97,6 +115,39 @@ module RGeo
97
115
 
98
116
  assert_equal polygon, buffered_line_string
99
117
  end
118
+
119
+ def test_is_valid_polygon
120
+ polygon_coordinates = [[0, 0], [0, 5], [5, 5], [5, 0], [0, 0]]
121
+ points_arr = polygon_coordinates.map{|v| @factory.point(v[0],v[1])}
122
+ outer_ring = @factory.linear_ring(points_arr)
123
+ polygon = @factory.polygon(outer_ring)
124
+
125
+ assert_equal(polygon.valid?, true)
126
+
127
+ polygon_coordinates = [[-1, -1], [-1, 0], [1, 0], [1, 1], [0, 1], [0, -1], [-1, -1]]
128
+ points_arr = polygon_coordinates.map{|v| @factory.point(v[0],v[1])}
129
+ outer_ring = @factory.linear_ring(points_arr)
130
+ polygon = @factory.polygon(outer_ring)
131
+
132
+ assert_equal(polygon.valid?, false)
133
+ end
134
+
135
+ def test_invalid_reason
136
+ polygon_coordinates = [[-1, -1], [-1, 0], [1, 0], [1, 1], [0, 1], [0, -1], [-1, -1]]
137
+ points_arr = polygon_coordinates.map{|v| @factory.point(v[0],v[1])}
138
+ outer_ring = @factory.linear_ring(points_arr)
139
+ polygon = @factory.polygon(outer_ring)
140
+
141
+ assert_equal(polygon.invalid_reason, "Self-intersection[0 0 0]")
142
+ end
143
+
144
+ def test_invalid_reason_with_valid_polygon
145
+ polygon_coordinates = [[0, 0], [0, 5], [5, 5], [5, 0], [0, 0]]
146
+ points_arr = polygon_coordinates.map{|v| @factory.point(v[0],v[1])}
147
+ outer_ring = @factory.linear_ring(points_arr)
148
+ polygon = @factory.polygon(outer_ring)
149
+ polygon.invalid_reason
150
+ end
100
151
  end
101
152
  end
102
153
  end
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma, Tee Parham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.35'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake-compiler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: RGeo is a geospatial data library for Ruby. It provides an implementation
84
98
  of the Open Geospatial Consortium's Simple Features Specification, used by most
85
99
  standard spatial/geographic data storage systems such as PostGIS. A number of add-on
@@ -187,6 +201,8 @@ files:
187
201
  - lib/rgeo/wkrep/wkt_generator.rb
188
202
  - lib/rgeo/wkrep/wkt_parser.rb
189
203
  - lib/rgeo/yaml.rb
204
+ - test/cartesian_analysis_test.rb
205
+ - test/cartesian_bbox_test.rb
190
206
  - test/common/factory_tests.rb
191
207
  - test/common/geometry_collection_tests.rb
192
208
  - test/common/line_string_tests.rb
@@ -195,77 +211,75 @@ files:
195
211
  - test/common/multi_polygon_tests.rb
196
212
  - test/common/point_tests.rb
197
213
  - test/common/polygon_tests.rb
198
- - test/coord_sys/tc_ogc_cs.rb
199
- - test/coord_sys/tc_proj4.rb
200
- - test/coord_sys/tc_proj4_srs_data.rb
201
- - test/coord_sys/tc_sr_org.rb
202
- - test/coord_sys/tc_url_reader.rb
203
- - test/geos_capi/tc_factory.rb
204
- - test/geos_capi/tc_geometry_collection.rb
205
- - test/geos_capi/tc_line_string.rb
206
- - test/geos_capi/tc_misc.rb
207
- - test/geos_capi/tc_multi_line_string.rb
208
- - test/geos_capi/tc_multi_point.rb
209
- - test/geos_capi/tc_multi_polygon.rb
210
- - test/geos_capi/tc_parsing_unparsing.rb
211
- - test/geos_capi/tc_point.rb
212
- - test/geos_capi/tc_polygon.rb
213
- - test/geos_capi/tc_zmfactory.rb
214
- - test/geos_ffi/tc_factory.rb
215
- - test/geos_ffi/tc_geometry_collection.rb
216
- - test/geos_ffi/tc_line_string.rb
217
- - test/geos_ffi/tc_misc.rb
218
- - test/geos_ffi/tc_multi_line_string.rb
219
- - test/geos_ffi/tc_multi_point.rb
220
- - test/geos_ffi/tc_multi_polygon.rb
221
- - test/geos_ffi/tc_parsing_unparsing.rb
222
- - test/geos_ffi/tc_point.rb
223
- - test/geos_ffi/tc_polygon.rb
224
- - test/geos_ffi/tc_zmfactory.rb
225
- - test/projected_geographic/tc_factory.rb
226
- - test/projected_geographic/tc_geometry_collection.rb
227
- - test/projected_geographic/tc_line_string.rb
228
- - test/projected_geographic/tc_multi_line_string.rb
229
- - test/projected_geographic/tc_multi_point.rb
230
- - test/projected_geographic/tc_multi_polygon.rb
231
- - test/projected_geographic/tc_point.rb
232
- - test/projected_geographic/tc_polygon.rb
233
- - test/simple_cartesian/tc_calculations.rb
234
- - test/simple_cartesian/tc_factory.rb
235
- - test/simple_cartesian/tc_geometry_collection.rb
236
- - test/simple_cartesian/tc_line_string.rb
237
- - test/simple_cartesian/tc_multi_line_string.rb
238
- - test/simple_cartesian/tc_multi_point.rb
239
- - test/simple_cartesian/tc_multi_polygon.rb
240
- - test/simple_cartesian/tc_point.rb
241
- - test/simple_cartesian/tc_polygon.rb
242
- - test/simple_mercator/tc_factory.rb
243
- - test/simple_mercator/tc_geometry_collection.rb
244
- - test/simple_mercator/tc_line_string.rb
245
- - test/simple_mercator/tc_multi_line_string.rb
246
- - test/simple_mercator/tc_multi_point.rb
247
- - test/simple_mercator/tc_multi_polygon.rb
248
- - test/simple_mercator/tc_point.rb
249
- - test/simple_mercator/tc_polygon.rb
250
- - test/simple_mercator/tc_window.rb
251
- - test/spherical_geographic/tc_calculations.rb
252
- - test/spherical_geographic/tc_factory.rb
253
- - test/spherical_geographic/tc_geometry_collection.rb
254
- - test/spherical_geographic/tc_line_string.rb
255
- - test/spherical_geographic/tc_multi_line_string.rb
256
- - test/spherical_geographic/tc_multi_point.rb
257
- - test/spherical_geographic/tc_multi_polygon.rb
258
- - test/spherical_geographic/tc_point.rb
259
- - test/spherical_geographic/tc_polygon.rb
260
- - test/tc_cartesian_analysis.rb
261
- - test/tc_cartesian_bbox.rb
262
- - test/tc_mixins.rb
263
- - test/tc_oneoff.rb
264
- - test/tc_types.rb
265
- - test/wkrep/tc_wkb_generator.rb
266
- - test/wkrep/tc_wkb_parser.rb
267
- - test/wkrep/tc_wkt_generator.rb
268
- - test/wkrep/tc_wkt_parser.rb
214
+ - test/coord_sys/ogc_cs_test.rb
215
+ - test/coord_sys/proj4_srs_data_test.rb
216
+ - test/coord_sys/proj4_test.rb
217
+ - test/coord_sys/sr_org_test.rb
218
+ - test/coord_sys/url_reader_test.rb
219
+ - test/geos_capi/factory_test.rb
220
+ - test/geos_capi/geometry_collection_test.rb
221
+ - test/geos_capi/line_string_test.rb
222
+ - test/geos_capi/misc_test.rb
223
+ - test/geos_capi/multi_line_string_test.rb
224
+ - test/geos_capi/multi_point_test.rb
225
+ - test/geos_capi/multi_polygon_test.rb
226
+ - test/geos_capi/parsing_unparsing_test.rb
227
+ - test/geos_capi/point_test.rb
228
+ - test/geos_capi/polygon_test.rb
229
+ - test/geos_capi/zmfactory_test.rb
230
+ - test/geos_ffi/factory_test.rb
231
+ - test/geos_ffi/geometry_collection_test.rb
232
+ - test/geos_ffi/line_string_test.rb
233
+ - test/geos_ffi/misc_test.rb
234
+ - test/geos_ffi/multi_line_string_test.rb
235
+ - test/geos_ffi/multi_point_test.rb
236
+ - test/geos_ffi/multi_polygon_test.rb
237
+ - test/geos_ffi/parsing_unparsing_test.rb
238
+ - test/geos_ffi/point_test.rb
239
+ - test/geos_ffi/polygon_test.rb
240
+ - test/geos_ffi/zmfactory_test.rb
241
+ - test/mixins_test.rb
242
+ - test/oneoff_test.rb
243
+ - test/projected_geographic/factory_test.rb
244
+ - test/projected_geographic/geometry_collection_test.rb
245
+ - test/projected_geographic/line_string_test.rb
246
+ - test/projected_geographic/multi_line_string_test.rb
247
+ - test/projected_geographic/multi_point_test.rb
248
+ - test/projected_geographic/multi_polygon_test.rb
249
+ - test/projected_geographic/point_test.rb
250
+ - test/projected_geographic/polygon_test.rb
251
+ - test/simple_cartesian/calculations_test.rb
252
+ - test/simple_cartesian/factory_test.rb
253
+ - test/simple_cartesian/geometry_collection_test.rb
254
+ - test/simple_cartesian/line_string_test.rb
255
+ - test/simple_cartesian/multi_line_string_test.rb
256
+ - test/simple_cartesian/multi_point_test.rb
257
+ - test/simple_cartesian/multi_polygon_test.rb
258
+ - test/simple_cartesian/point_test.rb
259
+ - test/simple_cartesian/polygon_test.rb
260
+ - test/simple_mercator/factory_test.rb
261
+ - test/simple_mercator/geometry_collection_test.rb
262
+ - test/simple_mercator/line_string_test.rb
263
+ - test/simple_mercator/multi_line_string_test.rb
264
+ - test/simple_mercator/multi_point_test.rb
265
+ - test/simple_mercator/multi_polygon_test.rb
266
+ - test/simple_mercator/point_test.rb
267
+ - test/simple_mercator/polygon_test.rb
268
+ - test/simple_mercator/window_test.rb
269
+ - test/spherical_geographic/calculations_test.rb
270
+ - test/spherical_geographic/factory_test.rb
271
+ - test/spherical_geographic/geometry_collection_test.rb
272
+ - test/spherical_geographic/line_string_test.rb
273
+ - test/spherical_geographic/multi_line_string_test.rb
274
+ - test/spherical_geographic/multi_point_test.rb
275
+ - test/spherical_geographic/multi_polygon_test.rb
276
+ - test/spherical_geographic/point_test.rb
277
+ - test/spherical_geographic/polygon_test.rb
278
+ - test/types_test.rb
279
+ - test/wkrep/wkb_generator_test.rb
280
+ - test/wkrep/wkb_parser_test.rb
281
+ - test/wkrep/wkt_generator_test.rb
282
+ - test/wkrep/wkt_parser_test.rb
269
283
  homepage: https://github.com/rgeo/rgeo
270
284
  licenses: []
271
285
  metadata: {}
@@ -285,11 +299,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
299
  version: '0'
286
300
  requirements: []
287
301
  rubyforge_project:
288
- rubygems_version: 2.5.0
302
+ rubygems_version: 2.5.2
289
303
  signing_key:
290
304
  specification_version: 4
291
305
  summary: RGeo is a geospatial data library for Ruby.
292
306
  test_files:
307
+ - test/cartesian_analysis_test.rb
308
+ - test/cartesian_bbox_test.rb
293
309
  - test/common/factory_tests.rb
294
310
  - test/common/geometry_collection_tests.rb
295
311
  - test/common/line_string_tests.rb
@@ -298,74 +314,73 @@ test_files:
298
314
  - test/common/multi_polygon_tests.rb
299
315
  - test/common/point_tests.rb
300
316
  - test/common/polygon_tests.rb
301
- - test/coord_sys/tc_ogc_cs.rb
302
- - test/coord_sys/tc_proj4.rb
303
- - test/coord_sys/tc_proj4_srs_data.rb
304
- - test/coord_sys/tc_sr_org.rb
305
- - test/coord_sys/tc_url_reader.rb
306
- - test/geos_capi/tc_factory.rb
307
- - test/geos_capi/tc_geometry_collection.rb
308
- - test/geos_capi/tc_line_string.rb
309
- - test/geos_capi/tc_misc.rb
310
- - test/geos_capi/tc_multi_line_string.rb
311
- - test/geos_capi/tc_multi_point.rb
312
- - test/geos_capi/tc_multi_polygon.rb
313
- - test/geos_capi/tc_parsing_unparsing.rb
314
- - test/geos_capi/tc_point.rb
315
- - test/geos_capi/tc_polygon.rb
316
- - test/geos_capi/tc_zmfactory.rb
317
- - test/geos_ffi/tc_factory.rb
318
- - test/geos_ffi/tc_geometry_collection.rb
319
- - test/geos_ffi/tc_line_string.rb
320
- - test/geos_ffi/tc_misc.rb
321
- - test/geos_ffi/tc_multi_line_string.rb
322
- - test/geos_ffi/tc_multi_point.rb
323
- - test/geos_ffi/tc_multi_polygon.rb
324
- - test/geos_ffi/tc_parsing_unparsing.rb
325
- - test/geos_ffi/tc_point.rb
326
- - test/geos_ffi/tc_polygon.rb
327
- - test/geos_ffi/tc_zmfactory.rb
328
- - test/projected_geographic/tc_factory.rb
329
- - test/projected_geographic/tc_geometry_collection.rb
330
- - test/projected_geographic/tc_line_string.rb
331
- - test/projected_geographic/tc_multi_line_string.rb
332
- - test/projected_geographic/tc_multi_point.rb
333
- - test/projected_geographic/tc_multi_polygon.rb
334
- - test/projected_geographic/tc_point.rb
335
- - test/projected_geographic/tc_polygon.rb
336
- - test/simple_cartesian/tc_calculations.rb
337
- - test/simple_cartesian/tc_factory.rb
338
- - test/simple_cartesian/tc_geometry_collection.rb
339
- - test/simple_cartesian/tc_line_string.rb
340
- - test/simple_cartesian/tc_multi_line_string.rb
341
- - test/simple_cartesian/tc_multi_point.rb
342
- - test/simple_cartesian/tc_multi_polygon.rb
343
- - test/simple_cartesian/tc_point.rb
344
- - test/simple_cartesian/tc_polygon.rb
345
- - test/simple_mercator/tc_factory.rb
346
- - test/simple_mercator/tc_geometry_collection.rb
347
- - test/simple_mercator/tc_line_string.rb
348
- - test/simple_mercator/tc_multi_line_string.rb
349
- - test/simple_mercator/tc_multi_point.rb
350
- - test/simple_mercator/tc_multi_polygon.rb
351
- - test/simple_mercator/tc_point.rb
352
- - test/simple_mercator/tc_polygon.rb
353
- - test/simple_mercator/tc_window.rb
354
- - test/spherical_geographic/tc_calculations.rb
355
- - test/spherical_geographic/tc_factory.rb
356
- - test/spherical_geographic/tc_geometry_collection.rb
357
- - test/spherical_geographic/tc_line_string.rb
358
- - test/spherical_geographic/tc_multi_line_string.rb
359
- - test/spherical_geographic/tc_multi_point.rb
360
- - test/spherical_geographic/tc_multi_polygon.rb
361
- - test/spherical_geographic/tc_point.rb
362
- - test/spherical_geographic/tc_polygon.rb
363
- - test/tc_cartesian_analysis.rb
364
- - test/tc_cartesian_bbox.rb
365
- - test/tc_mixins.rb
366
- - test/tc_oneoff.rb
367
- - test/tc_types.rb
368
- - test/wkrep/tc_wkb_generator.rb
369
- - test/wkrep/tc_wkb_parser.rb
370
- - test/wkrep/tc_wkt_generator.rb
371
- - test/wkrep/tc_wkt_parser.rb
317
+ - test/coord_sys/ogc_cs_test.rb
318
+ - test/coord_sys/proj4_srs_data_test.rb
319
+ - test/coord_sys/proj4_test.rb
320
+ - test/coord_sys/sr_org_test.rb
321
+ - test/coord_sys/url_reader_test.rb
322
+ - test/geos_capi/factory_test.rb
323
+ - test/geos_capi/geometry_collection_test.rb
324
+ - test/geos_capi/line_string_test.rb
325
+ - test/geos_capi/misc_test.rb
326
+ - test/geos_capi/multi_line_string_test.rb
327
+ - test/geos_capi/multi_point_test.rb
328
+ - test/geos_capi/multi_polygon_test.rb
329
+ - test/geos_capi/parsing_unparsing_test.rb
330
+ - test/geos_capi/point_test.rb
331
+ - test/geos_capi/polygon_test.rb
332
+ - test/geos_capi/zmfactory_test.rb
333
+ - test/geos_ffi/factory_test.rb
334
+ - test/geos_ffi/geometry_collection_test.rb
335
+ - test/geos_ffi/line_string_test.rb
336
+ - test/geos_ffi/misc_test.rb
337
+ - test/geos_ffi/multi_line_string_test.rb
338
+ - test/geos_ffi/multi_point_test.rb
339
+ - test/geos_ffi/multi_polygon_test.rb
340
+ - test/geos_ffi/parsing_unparsing_test.rb
341
+ - test/geos_ffi/point_test.rb
342
+ - test/geos_ffi/polygon_test.rb
343
+ - test/geos_ffi/zmfactory_test.rb
344
+ - test/mixins_test.rb
345
+ - test/oneoff_test.rb
346
+ - test/projected_geographic/factory_test.rb
347
+ - test/projected_geographic/geometry_collection_test.rb
348
+ - test/projected_geographic/line_string_test.rb
349
+ - test/projected_geographic/multi_line_string_test.rb
350
+ - test/projected_geographic/multi_point_test.rb
351
+ - test/projected_geographic/multi_polygon_test.rb
352
+ - test/projected_geographic/point_test.rb
353
+ - test/projected_geographic/polygon_test.rb
354
+ - test/simple_cartesian/calculations_test.rb
355
+ - test/simple_cartesian/factory_test.rb
356
+ - test/simple_cartesian/geometry_collection_test.rb
357
+ - test/simple_cartesian/line_string_test.rb
358
+ - test/simple_cartesian/multi_line_string_test.rb
359
+ - test/simple_cartesian/multi_point_test.rb
360
+ - test/simple_cartesian/multi_polygon_test.rb
361
+ - test/simple_cartesian/point_test.rb
362
+ - test/simple_cartesian/polygon_test.rb
363
+ - test/simple_mercator/factory_test.rb
364
+ - test/simple_mercator/geometry_collection_test.rb
365
+ - test/simple_mercator/line_string_test.rb
366
+ - test/simple_mercator/multi_line_string_test.rb
367
+ - test/simple_mercator/multi_point_test.rb
368
+ - test/simple_mercator/multi_polygon_test.rb
369
+ - test/simple_mercator/point_test.rb
370
+ - test/simple_mercator/polygon_test.rb
371
+ - test/simple_mercator/window_test.rb
372
+ - test/spherical_geographic/calculations_test.rb
373
+ - test/spherical_geographic/factory_test.rb
374
+ - test/spherical_geographic/geometry_collection_test.rb
375
+ - test/spherical_geographic/line_string_test.rb
376
+ - test/spherical_geographic/multi_line_string_test.rb
377
+ - test/spherical_geographic/multi_point_test.rb
378
+ - test/spherical_geographic/multi_polygon_test.rb
379
+ - test/spherical_geographic/point_test.rb
380
+ - test/spherical_geographic/polygon_test.rb
381
+ - test/types_test.rb
382
+ - test/wkrep/wkb_generator_test.rb
383
+ - test/wkrep/wkb_parser_test.rb
384
+ - test/wkrep/wkt_generator_test.rb
385
+ - test/wkrep/wkt_parser_test.rb
386
+ has_rdoc: