rgeo 2.3.1 → 2.4.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/analysis.c +4 -2
- data/ext/geos_c_impl/analysis.h +1 -3
- data/ext/geos_c_impl/errors.c +2 -2
- data/ext/geos_c_impl/extconf.rb +1 -0
- data/ext/geos_c_impl/factory.c +167 -170
- data/ext/geos_c_impl/factory.h +15 -48
- data/ext/geos_c_impl/geometry.c +8 -8
- data/ext/geos_c_impl/geometry.h +1 -3
- data/ext/geos_c_impl/geometry_collection.c +38 -43
- data/ext/geos_c_impl/geometry_collection.h +1 -3
- data/ext/geos_c_impl/globals.c +91 -0
- data/ext/geos_c_impl/globals.h +45 -0
- data/ext/geos_c_impl/line_string.c +25 -26
- data/ext/geos_c_impl/line_string.h +1 -3
- data/ext/geos_c_impl/main.c +10 -9
- data/ext/geos_c_impl/point.c +8 -7
- data/ext/geos_c_impl/point.h +1 -3
- data/ext/geos_c_impl/polygon.c +14 -14
- data/ext/geos_c_impl/polygon.h +1 -3
- data/ext/geos_c_impl/preface.h +5 -0
- data/lib/rgeo/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abb42ec2fb37f915e49d13c7e802279560588d75f376d06d37f3a4e4f0e1ab61
|
4
|
+
data.tar.gz: 6606d1fe12f30d645fb66edf95e694708ffb24ba81afa78ce03a961456f67686
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807c3f239731755e4afe348d70b2ebf0c81f29754a5677a4123dce474c0a18e7a6e63df5ee36fb244a05b04a9ef70356a3e966fab336a0925365afc05e331d5a
|
7
|
+
data.tar.gz: c940601cc0c30944b5bc4e5f8d9ed632704295b28cb8115973a1856c823f01a7a0b655bc2e277ebe09268a08cf4fe9e1b0abbb4c192a598d2f06c95baef58901
|
data/ext/geos_c_impl/analysis.c
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
#include <ruby.h>
|
10
10
|
#include <geos_c.h>
|
11
11
|
|
12
|
+
#include "globals.h"
|
13
|
+
|
12
14
|
#include "analysis.h"
|
13
15
|
#include "factory.h"
|
14
16
|
#include "errors.h"
|
@@ -62,11 +64,11 @@ VALUE rgeo_geos_analysis_supports_ccw(VALUE self)
|
|
62
64
|
}
|
63
65
|
|
64
66
|
|
65
|
-
void rgeo_init_geos_analysis(
|
67
|
+
void rgeo_init_geos_analysis()
|
66
68
|
{
|
67
69
|
VALUE geos_analysis_module;
|
68
70
|
|
69
|
-
geos_analysis_module = rb_define_module_under(
|
71
|
+
geos_analysis_module = rb_define_module_under(rgeo_geos_module, "Analysis");
|
70
72
|
rb_define_singleton_method(geos_analysis_module, "ccw_supported?", rgeo_geos_analysis_supports_ccw, 0);
|
71
73
|
#ifdef RGEO_GEOS_SUPPORTS_ISCCW
|
72
74
|
rb_define_singleton_method(geos_analysis_module, "ccw?", rgeo_geos_analysis_ccw_p, 1);
|
data/ext/geos_c_impl/analysis.h
CHANGED
@@ -9,8 +9,6 @@
|
|
9
9
|
|
10
10
|
#ifdef RGEO_GEOS_SUPPORTED
|
11
11
|
|
12
|
-
#include "factory.h"
|
13
|
-
|
14
12
|
RGEO_BEGIN_C
|
15
13
|
|
16
14
|
/*
|
@@ -33,7 +31,7 @@ VALUE rgeo_geos_analysis_ccw_p(VALUE self, VALUE ring);
|
|
33
31
|
*/
|
34
32
|
VALUE rgeo_geos_analysis_supports_ccw(VALUE self);
|
35
33
|
|
36
|
-
void rgeo_init_geos_analysis(
|
34
|
+
void rgeo_init_geos_analysis();
|
37
35
|
|
38
36
|
RGEO_END_C
|
39
37
|
|
data/ext/geos_c_impl/errors.c
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
#ifdef RGEO_GEOS_SUPPORTED
|
10
10
|
|
11
|
+
#include "globals.h"
|
12
|
+
|
11
13
|
#include "errors.h"
|
12
14
|
|
13
15
|
RGEO_BEGIN_C
|
@@ -19,10 +21,8 @@ VALUE geos_error;
|
|
19
21
|
|
20
22
|
|
21
23
|
void rgeo_init_geos_errors() {
|
22
|
-
VALUE rgeo_module;
|
23
24
|
VALUE error_module;
|
24
25
|
|
25
|
-
rgeo_module = rb_define_module("RGeo");
|
26
26
|
error_module = rb_define_module_under(rgeo_module, "Error");
|
27
27
|
rgeo_error = rb_define_class_under(error_module, "RGeoError", rb_eRuntimeError);
|
28
28
|
geos_error = rb_define_class_under(error_module, "GeosError", rgeo_error);
|