rgeo 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/geos_c_impl/extconf.rb +1 -0
- data/ext/geos_c_impl/factory.c +10 -1
- data/ext/geos_c_impl/geometry.c +25 -3
- data/ext/geos_c_impl/line_string.c +1 -12
- data/ext/geos_c_impl/polygon.c +0 -3
- data/ext/geos_c_impl/preface.h +3 -0
- data/lib/rgeo.rb +0 -1
- data/lib/rgeo/feature/geometry.rb +17 -0
- data/lib/rgeo/feature/types.rb +4 -4
- data/lib/rgeo/geographic/projected_feature_methods.rb +1 -22
- data/lib/rgeo/geos/ffi_feature_methods.rb +5 -0
- data/lib/rgeo/geos/utils.rb +2 -0
- data/lib/rgeo/impl_helper/basic_line_string_methods.rb +1 -0
- data/lib/rgeo/version.rb +1 -1
- metadata +11 -171
- data/lib/rgeo/yaml.rb +0 -23
- data/test/cartesian_analysis_test.rb +0 -65
- data/test/cartesian_bbox_test.rb +0 -123
- data/test/common/factory_tests.rb +0 -78
- data/test/common/geometry_collection_tests.rb +0 -237
- data/test/common/line_string_tests.rb +0 -330
- data/test/common/multi_line_string_tests.rb +0 -182
- data/test/common/multi_point_tests.rb +0 -200
- data/test/common/multi_polygon_tests.rb +0 -191
- data/test/common/point_tests.rb +0 -370
- data/test/common/polygon_tests.rb +0 -228
- data/test/coord_sys/ogc_cs_test.rb +0 -342
- data/test/coord_sys/proj4_srs_data_test.rb +0 -41
- data/test/coord_sys/proj4_test.rb +0 -150
- data/test/coord_sys/sr_org_test.rb +0 -32
- data/test/coord_sys/url_reader_test.rb +0 -42
- data/test/geos_capi/factory_test.rb +0 -31
- data/test/geos_capi/geometry_collection_test.rb +0 -24
- data/test/geos_capi/line_string_test.rb +0 -24
- data/test/geos_capi/misc_test.rb +0 -116
- data/test/geos_capi/multi_line_string_test.rb +0 -24
- data/test/geos_capi/multi_point_test.rb +0 -24
- data/test/geos_capi/multi_polygon_test.rb +0 -39
- data/test/geos_capi/parsing_unparsing_test.rb +0 -40
- data/test/geos_capi/point_test.rb +0 -72
- data/test/geos_capi/polygon_test.rb +0 -154
- data/test/geos_capi/zmfactory_test.rb +0 -57
- data/test/geos_ffi/factory_test.rb +0 -31
- data/test/geos_ffi/geometry_collection_test.rb +0 -24
- data/test/geos_ffi/line_string_test.rb +0 -24
- data/test/geos_ffi/misc_test.rb +0 -63
- data/test/geos_ffi/multi_line_string_test.rb +0 -24
- data/test/geos_ffi/multi_point_test.rb +0 -24
- data/test/geos_ffi/multi_polygon_test.rb +0 -33
- data/test/geos_ffi/parsing_unparsing_test.rb +0 -41
- data/test/geos_ffi/point_test.rb +0 -77
- data/test/geos_ffi/polygon_test.rb +0 -46
- data/test/geos_ffi/zmfactory_test.rb +0 -58
- data/test/mixins_test.rb +0 -141
- data/test/oneoff_test.rb +0 -26
- data/test/projected_geographic/factory_test.rb +0 -25
- data/test/projected_geographic/geometry_collection_test.rb +0 -24
- data/test/projected_geographic/line_string_test.rb +0 -24
- data/test/projected_geographic/multi_line_string_test.rb +0 -26
- data/test/projected_geographic/multi_point_test.rb +0 -30
- data/test/projected_geographic/multi_polygon_test.rb +0 -25
- data/test/projected_geographic/point_test.rb +0 -51
- data/test/projected_geographic/polygon_test.rb +0 -24
- data/test/simple_cartesian/calculations_test.rb +0 -99
- data/test/simple_cartesian/factory_test.rb +0 -27
- data/test/simple_cartesian/geometry_collection_test.rb +0 -30
- data/test/simple_cartesian/line_string_test.rb +0 -31
- data/test/simple_cartesian/multi_line_string_test.rb +0 -28
- data/test/simple_cartesian/multi_point_test.rb +0 -31
- data/test/simple_cartesian/multi_polygon_test.rb +0 -31
- data/test/simple_cartesian/point_test.rb +0 -50
- data/test/simple_cartesian/polygon_test.rb +0 -28
- data/test/simple_mercator/factory_test.rb +0 -25
- data/test/simple_mercator/geometry_collection_test.rb +0 -24
- data/test/simple_mercator/line_string_test.rb +0 -24
- data/test/simple_mercator/multi_line_string_test.rb +0 -26
- data/test/simple_mercator/multi_point_test.rb +0 -29
- data/test/simple_mercator/multi_polygon_test.rb +0 -25
- data/test/simple_mercator/point_test.rb +0 -55
- data/test/simple_mercator/polygon_test.rb +0 -24
- data/test/simple_mercator/window_test.rb +0 -173
- data/test/spherical_geographic/calculations_test.rb +0 -167
- data/test/spherical_geographic/factory_test.rb +0 -27
- data/test/spherical_geographic/geometry_collection_test.rb +0 -31
- data/test/spherical_geographic/line_string_test.rb +0 -31
- data/test/spherical_geographic/multi_line_string_test.rb +0 -29
- data/test/spherical_geographic/multi_point_test.rb +0 -31
- data/test/spherical_geographic/multi_polygon_test.rb +0 -31
- data/test/spherical_geographic/point_test.rb +0 -78
- data/test/spherical_geographic/polygon_test.rb +0 -28
- data/test/types_test.rb +0 -42
- data/test/wkrep/wkb_generator_test.rb +0 -185
- data/test/wkrep/wkb_parser_test.rb +0 -293
- data/test/wkrep/wkt_generator_test.rb +0 -294
- data/test/wkrep/wkt_parser_test.rb +0 -412
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b118363a5e851576b03d15095fc20d43e9e4c29
|
4
|
+
data.tar.gz: 878518023c981c1b0c7200b81bc183120d93c2cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9731327e808aeafd48276409f2a7432536ba723c11dff9f5faf739b31d0731fb71b3c01f224c5663b55f1b088f564b7bd5004663238d7269adc77763a04c383
|
7
|
+
data.tar.gz: 82dd3124fd0e669bfafd256abc7ff181f4e4c8f3381cbee492c7948adf244b28d0c664ba15413228cd34f67ac44e80b1105372253b7a8020bae0c4425f93f37c
|
data/ext/geos_c_impl/extconf.rb
CHANGED
@@ -28,6 +28,7 @@ else
|
|
28
28
|
found_geos_ = true if have_func("GEOSSetSRID_r", "geos_c.h")
|
29
29
|
have_func("GEOSPreparedContains_r", "geos_c.h")
|
30
30
|
have_func("GEOSPreparedDisjoint_r", "geos_c.h")
|
31
|
+
have_func("GEOSUnaryUnion_r", "geos_c.h")
|
31
32
|
have_func("rb_memhash", "ruby.h")
|
32
33
|
end
|
33
34
|
|
data/ext/geos_c_impl/factory.c
CHANGED
@@ -337,7 +337,6 @@ static VALUE method_factory_write_for_psych(VALUE self, VALUE obj)
|
|
337
337
|
const GEOSGeometry* geom;
|
338
338
|
VALUE result;
|
339
339
|
char* str;
|
340
|
-
size_t size;
|
341
340
|
char has_3d;
|
342
341
|
#ifndef RGEO_GEOS_SUPPORTS_SETOUTPUTDIMENSION
|
343
342
|
RGeo_Globals* globals;
|
@@ -389,6 +388,15 @@ static VALUE cmethod_factory_geos_version(VALUE klass)
|
|
389
388
|
}
|
390
389
|
|
391
390
|
|
391
|
+
static VALUE cmethod_factory_supports_unary_union(VALUE klass)
|
392
|
+
{
|
393
|
+
#ifdef RGEO_GEOS_SUPPORTS_UNARYUNION
|
394
|
+
return Qtrue;
|
395
|
+
#else
|
396
|
+
return Qfalse;
|
397
|
+
#endif
|
398
|
+
}
|
399
|
+
|
392
400
|
static VALUE cmethod_factory_create(VALUE klass, VALUE flags, VALUE srid, VALUE buffer_resolution,
|
393
401
|
VALUE wkt_generator, VALUE wkb_generator, VALUE proj4_obj, VALUE coord_sys_obj)
|
394
402
|
{
|
@@ -621,6 +629,7 @@ RGeo_Globals* rgeo_init_geos_factory()
|
|
621
629
|
rb_define_method(geos_factory_class, "_write_for_psych", method_factory_write_for_psych, 1);
|
622
630
|
rb_define_module_function(geos_factory_class, "_create", cmethod_factory_create, 7);
|
623
631
|
rb_define_module_function(geos_factory_class, "_geos_version", cmethod_factory_geos_version, 0);
|
632
|
+
rb_define_module_function(geos_factory_class, "_supports_unary_union?", cmethod_factory_supports_unary_union, 0);
|
624
633
|
|
625
634
|
// Pre-define implementation classes and set up allocation methods
|
626
635
|
globals->geos_geometry = rb_define_class_under(globals->geos_module, "CAPIGeometryImpl", rb_cObject);
|
data/ext/geos_c_impl/geometry.c
CHANGED
@@ -728,7 +728,6 @@ static VALUE method_geometry_buffer(VALUE self, VALUE distance)
|
|
728
728
|
RGeo_GeometryData* self_data;
|
729
729
|
const GEOSGeometry* self_geom;
|
730
730
|
VALUE factory;
|
731
|
-
int resolution;
|
732
731
|
|
733
732
|
result = Qnil;
|
734
733
|
self_data = RGEO_GEOMETRY_DATA_PTR(self);
|
@@ -747,14 +746,13 @@ static VALUE method_geometry_buffer_with_style(VALUE self, VALUE distance, VALUE
|
|
747
746
|
RGeo_GeometryData* self_data;
|
748
747
|
const GEOSGeometry* self_geom;
|
749
748
|
VALUE factory;
|
750
|
-
int resolution;
|
751
749
|
|
752
750
|
result = Qnil;
|
753
751
|
self_data = RGEO_GEOMETRY_DATA_PTR(self);
|
754
752
|
self_geom = self_data->geom;
|
755
753
|
if (self_geom) {
|
756
754
|
factory = self_data->factory;
|
757
|
-
result = rgeo_wrap_geos_geometry(factory,
|
755
|
+
result = rgeo_wrap_geos_geometry(factory,
|
758
756
|
GEOSBufferWithStyle_r(self_data->geos_context, self_geom,
|
759
757
|
rb_num2dbl(distance),
|
760
758
|
RGEO_FACTORY_DATA_PTR(factory)->buffer_resolution,
|
@@ -861,6 +859,29 @@ static VALUE method_geometry_union(VALUE self, VALUE rhs)
|
|
861
859
|
}
|
862
860
|
|
863
861
|
|
862
|
+
static VALUE method_geometry_unary_union(VALUE self)
|
863
|
+
{
|
864
|
+
VALUE result;
|
865
|
+
RGeo_GeometryData* self_data;
|
866
|
+
const GEOSGeometry* self_geom;
|
867
|
+
|
868
|
+
result = Qnil;
|
869
|
+
|
870
|
+
#ifdef RGEO_GEOS_SUPPORTS_UNARYUNION
|
871
|
+
self_data = RGEO_GEOMETRY_DATA_PTR(self);
|
872
|
+
self_geom = self_data->geom;
|
873
|
+
if (self_geom) {
|
874
|
+
GEOSContextHandle_t self_context = self_data->geos_context;
|
875
|
+
result = rgeo_wrap_geos_geometry(self_data->factory,
|
876
|
+
GEOSUnaryUnion_r(self_context, self_geom),
|
877
|
+
Qnil);
|
878
|
+
}
|
879
|
+
#endif
|
880
|
+
|
881
|
+
return result;
|
882
|
+
}
|
883
|
+
|
884
|
+
|
864
885
|
static VALUE method_geometry_difference(VALUE self, VALUE rhs)
|
865
886
|
{
|
866
887
|
VALUE result;
|
@@ -1079,6 +1100,7 @@ void rgeo_init_geos_geometry(RGeo_Globals* globals)
|
|
1079
1100
|
rb_define_method(geos_geometry_methods, "intersection", method_geometry_intersection, 1);
|
1080
1101
|
rb_define_method(geos_geometry_methods, "*", method_geometry_intersection, 1);
|
1081
1102
|
rb_define_method(geos_geometry_methods, "union", method_geometry_union, 1);
|
1103
|
+
rb_define_method(geos_geometry_methods, "unary_union", method_geometry_unary_union, 0);
|
1082
1104
|
rb_define_method(geos_geometry_methods, "+", method_geometry_union, 1);
|
1083
1105
|
rb_define_method(geos_geometry_methods, "difference", method_geometry_difference, 1);
|
1084
1106
|
rb_define_method(geos_geometry_methods, "-", method_geometry_difference, 1);
|
@@ -98,17 +98,9 @@ static VALUE method_line_string_num_points(VALUE self)
|
|
98
98
|
}
|
99
99
|
|
100
100
|
|
101
|
-
static void d(VALUE v) {
|
102
|
-
ID sym_puts = rb_intern("puts");
|
103
|
-
ID sym_inspect = rb_intern("inspect");
|
104
|
-
rb_funcall(rb_mKernel, sym_puts, 1,
|
105
|
-
rb_funcall(v, sym_inspect, 0));
|
106
|
-
}
|
107
|
-
|
108
101
|
static VALUE method_line_string_coordinates(VALUE self)
|
109
102
|
{
|
110
103
|
VALUE result;
|
111
|
-
VALUE point_tuple;
|
112
104
|
RGeo_GeometryData* self_data;
|
113
105
|
const GEOSGeometry* self_geom;
|
114
106
|
const GEOSCoordSequence* coord_sequence;
|
@@ -204,9 +196,6 @@ static VALUE method_line_string_points(VALUE self)
|
|
204
196
|
const GEOSCoordSequence* coord_seq;
|
205
197
|
char has_z;
|
206
198
|
unsigned int size;
|
207
|
-
double x;
|
208
|
-
double y;
|
209
|
-
double z;
|
210
199
|
unsigned int i;
|
211
200
|
VALUE point;
|
212
201
|
|
@@ -644,7 +633,7 @@ VALUE rgeo_is_geos_line_string_closed(GEOSContextHandle_t context, const GEOSGeo
|
|
644
633
|
{
|
645
634
|
VALUE result;
|
646
635
|
unsigned int n;
|
647
|
-
double x1, x2, y1, y2
|
636
|
+
double x1, x2, y1, y2;
|
648
637
|
const GEOSCoordSequence* coord_seq;
|
649
638
|
|
650
639
|
result = Qnil;
|
data/ext/geos_c_impl/polygon.c
CHANGED
@@ -122,9 +122,6 @@ static VALUE method_polygon_coordinates(VALUE self)
|
|
122
122
|
const GEOSGeometry* self_geom;
|
123
123
|
GEOSContextHandle_t self_context;
|
124
124
|
|
125
|
-
GEOSGeometry* ring;
|
126
|
-
GEOSCoordSequence* coord_sequence;
|
127
|
-
unsigned int interior_ring_count;
|
128
125
|
int zCoordinate;
|
129
126
|
|
130
127
|
self_data = RGEO_GEOMETRY_DATA_PTR(self);
|
data/ext/geos_c_impl/preface.h
CHANGED
@@ -18,6 +18,9 @@
|
|
18
18
|
#ifdef HAVE_GEOSWKTWWRITER_SETOUTPUTDIMENSION_R
|
19
19
|
#define RGEO_GEOS_SUPPORTS_SETOUTPUTDIMENSION
|
20
20
|
#endif
|
21
|
+
#ifdef HAVE_GEOSUNARYUNION_R
|
22
|
+
#define RGEO_GEOS_SUPPORTS_UNARYUNION
|
23
|
+
#endif
|
21
24
|
#ifdef HAVE_RB_MEMHASH
|
22
25
|
#define RGEO_SUPPORTS_NEW_HASHING
|
23
26
|
#endif
|
data/lib/rgeo.rb
CHANGED
@@ -540,6 +540,23 @@ module RGeo
|
|
540
540
|
raise Error::UnsupportedOperation, "Method Geometry#rep_equals? not defined."
|
541
541
|
end
|
542
542
|
|
543
|
+
# Unions a collection of Geometry or a single Geometry
|
544
|
+
# (which may be a collection) together. By using this
|
545
|
+
# special-purpose operation over a collection of geometries
|
546
|
+
# it is possible to take advantage of various optimizations
|
547
|
+
# to improve performance. Heterogeneous GeometryCollections
|
548
|
+
# are fully supported.
|
549
|
+
#
|
550
|
+
# This is not a standard SFS method, but when it is available
|
551
|
+
# in GEOS, it is a very performant way to union all the
|
552
|
+
# geometries in a collection. GEOS version 3.3 or greater
|
553
|
+
# is required. If the feature is not available, unary_union
|
554
|
+
# returns nil.
|
555
|
+
#
|
556
|
+
def unary_union
|
557
|
+
raise Error::UnsupportedOperation, "Method Geometry#unary_union not defined."
|
558
|
+
end
|
559
|
+
|
543
560
|
# This method should behave almost the same as the rep_equals?
|
544
561
|
# method, with two key differences.
|
545
562
|
#
|
data/lib/rgeo/feature/types.rb
CHANGED
@@ -256,23 +256,23 @@ module RGeo
|
|
256
256
|
if type_ == Point
|
257
257
|
nfactory_.multi_point([cast(obj_, nfactory_, opts_)])
|
258
258
|
elsif type_ == GeometryCollection
|
259
|
-
nfactory_.multi_point(obj_.map { |
|
259
|
+
nfactory_.multi_point(obj_.map { |p_| cast(p_, nfactory_, opts_) })
|
260
260
|
end
|
261
261
|
elsif ntype_ == MultiLineString
|
262
262
|
if type_ == Line || type_ == LinearRing || type_ == LineString
|
263
263
|
nfactory_.multi_line_string([cast(obj_, nfactory_, opts_)])
|
264
264
|
elsif type_ == GeometryCollection
|
265
|
-
nfactory_.multi_line_string(obj_.map { |
|
265
|
+
nfactory_.multi_line_string(obj_.map { |p_| cast(p_, nfactory_, opts_) })
|
266
266
|
end
|
267
267
|
elsif ntype_ == MultiPolygon
|
268
268
|
if type_ == Polygon
|
269
269
|
nfactory_.multi_polygon([cast(obj_, nfactory_, opts_)])
|
270
270
|
elsif type_ == GeometryCollection
|
271
|
-
nfactory_.multi_polygon(obj_.map { |
|
271
|
+
nfactory_.multi_polygon(obj_.map { |p_| cast(p_, nfactory_, opts_) })
|
272
272
|
end
|
273
273
|
elsif ntype_ == GeometryCollection
|
274
274
|
if type_ == MultiPoint || type_ == MultiLineString || type_ == MultiPolygon
|
275
|
-
nfactory_.collection(obj_.map { |
|
275
|
+
nfactory_.collection(obj_.map { |p_| cast(p_, nfactory_, opts_) })
|
276
276
|
else
|
277
277
|
nfactory_.collection([cast(obj_, nfactory_, opts_)])
|
278
278
|
end
|
@@ -151,28 +151,7 @@ module RGeo
|
|
151
151
|
|
152
152
|
module ProjectedLineStringMethods # :nodoc:
|
153
153
|
def _validate_geometry
|
154
|
-
|
155
|
-
if size_ > 1
|
156
|
-
last_ = @points[0]
|
157
|
-
(1...size_).each do |i_|
|
158
|
-
p_ = @points[i_]
|
159
|
-
last_x_ = last_.x
|
160
|
-
p_x_ = p_.x
|
161
|
-
changed_ = true
|
162
|
-
if p_x_ < last_x_ - 180.0
|
163
|
-
p_x_ += 360.0 while p_x_ < last_x_ - 180.0
|
164
|
-
elsif p_x_ > last_x_ + 180.0
|
165
|
-
p_x_ -= 360.0 while p_x_ > last_x_ + 180.0
|
166
|
-
else
|
167
|
-
changed_ = false
|
168
|
-
end
|
169
|
-
if changed_
|
170
|
-
p_ = factory.point(p_x_, p_.y)
|
171
|
-
@points[i_] = p_
|
172
|
-
end
|
173
|
-
last_ = p_
|
174
|
-
end
|
175
|
-
end
|
154
|
+
@points = @points.map(&:canonical_point)
|
176
155
|
super
|
177
156
|
end
|
178
157
|
end
|
@@ -237,6 +237,11 @@ module RGeo
|
|
237
237
|
|
238
238
|
alias_method :+, :union
|
239
239
|
|
240
|
+
def unary_union
|
241
|
+
return unless @fg_geom.respond_to?(:unary_union)
|
242
|
+
@factory.wrap_fg_geom(@fg_geom.unary_union)
|
243
|
+
end
|
244
|
+
|
240
245
|
def difference(rhs_)
|
241
246
|
fg_ = factory._convert_to_fg_geometry(rhs_)
|
242
247
|
fg_ ? @factory._wrap_fg_geom(@fg_geom.difference(fg_), nil) : nil
|
data/lib/rgeo/geos/utils.rb
CHANGED
@@ -58,6 +58,7 @@ module RGeo
|
|
58
58
|
@ffi_supports_prepared_level_1 = ::Geos::FFIGeos.respond_to?(:GEOSPreparedContains_r)
|
59
59
|
@ffi_supports_prepared_level_2 = ::Geos::FFIGeos.respond_to?(:GEOSPreparedDisjoint_r)
|
60
60
|
@ffi_supports_set_output_dimension = ::Geos::FFIGeos.respond_to?(:GEOSWKTWriter_setOutputDimension_r)
|
61
|
+
@ffi_supports_unary_union = ::Geos::FFIGeos.respond_to?(:GEOSUnaryUnion_r)
|
61
62
|
end
|
62
63
|
@psych_wkt_generator = WKRep::WKTGenerator.new(convert_case: :upper)
|
63
64
|
@marshal_wkb_generator = WKRep::WKBGenerator.new
|
@@ -66,6 +67,7 @@ module RGeo
|
|
66
67
|
attr_reader :ffi_supports_prepared_level_1
|
67
68
|
attr_reader :ffi_supports_prepared_level_2
|
68
69
|
attr_reader :ffi_supports_set_output_dimension
|
70
|
+
attr_reader :ffi_supports_unary_union
|
69
71
|
attr_reader :psych_wkt_generator
|
70
72
|
attr_reader :marshal_wkb_generator
|
71
73
|
end
|
@@ -131,6 +131,7 @@ module RGeo
|
|
131
131
|
super
|
132
132
|
if @points.size > 0
|
133
133
|
@points << @points.first if @points.first != @points.last
|
134
|
+
@points = @points.chunk {|x| x}.map(&:first)
|
134
135
|
if !@factory.property(:uses_lenient_assertions) && !is_ring?
|
135
136
|
raise Error::InvalidGeometry, "LinearRing failed ring test"
|
136
137
|
end
|
data/lib/rgeo/version.rb
CHANGED
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.
|
4
|
+
version: 0.6.0
|
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:
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '12.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '12.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ffi-geos
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: test-unit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,86 +200,6 @@ files:
|
|
200
200
|
- lib/rgeo/wkrep/wkb_parser.rb
|
201
201
|
- lib/rgeo/wkrep/wkt_generator.rb
|
202
202
|
- lib/rgeo/wkrep/wkt_parser.rb
|
203
|
-
- lib/rgeo/yaml.rb
|
204
|
-
- test/cartesian_analysis_test.rb
|
205
|
-
- test/cartesian_bbox_test.rb
|
206
|
-
- test/common/factory_tests.rb
|
207
|
-
- test/common/geometry_collection_tests.rb
|
208
|
-
- test/common/line_string_tests.rb
|
209
|
-
- test/common/multi_line_string_tests.rb
|
210
|
-
- test/common/multi_point_tests.rb
|
211
|
-
- test/common/multi_polygon_tests.rb
|
212
|
-
- test/common/point_tests.rb
|
213
|
-
- test/common/polygon_tests.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
|
283
203
|
homepage: https://github.com/rgeo/rgeo
|
284
204
|
licenses: []
|
285
205
|
metadata: {}
|
@@ -291,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
291
211
|
requirements:
|
292
212
|
- - ">="
|
293
213
|
- !ruby/object:Gem::Version
|
294
|
-
version: 1.
|
214
|
+
version: 2.1.0
|
295
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
216
|
requirements:
|
297
217
|
- - ">="
|
@@ -299,88 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
219
|
version: '0'
|
300
220
|
requirements: []
|
301
221
|
rubyforge_project:
|
302
|
-
rubygems_version: 2.
|
222
|
+
rubygems_version: 2.6.10
|
303
223
|
signing_key:
|
304
224
|
specification_version: 4
|
305
225
|
summary: RGeo is a geospatial data library for Ruby.
|
306
|
-
test_files:
|
307
|
-
- test/cartesian_analysis_test.rb
|
308
|
-
- test/cartesian_bbox_test.rb
|
309
|
-
- test/common/factory_tests.rb
|
310
|
-
- test/common/geometry_collection_tests.rb
|
311
|
-
- test/common/line_string_tests.rb
|
312
|
-
- test/common/multi_line_string_tests.rb
|
313
|
-
- test/common/multi_point_tests.rb
|
314
|
-
- test/common/multi_polygon_tests.rb
|
315
|
-
- test/common/point_tests.rb
|
316
|
-
- test/common/polygon_tests.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:
|
226
|
+
test_files: []
|