librtree 1.0.3 → 1.0.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/ext/rtree/extconf.rb +18 -3
- data/ext/rtree/lib/bindex.c +18 -1
- data/ext/rtree/lib/branch.c +2 -2
- data/ext/rtree/lib/branches.c +2 -2
- data/ext/rtree/lib/bsrt.c +6 -7
- data/ext/rtree/lib/csv.c +3 -2
- data/ext/rtree/lib/error.c +3 -3
- data/ext/rtree/lib/json.c +6 -5
- data/ext/rtree/lib/mk/Hdr.mk +9 -3
- data/ext/rtree/lib/node.c +5 -6
- data/ext/rtree/lib/package.c +1 -1
- data/ext/rtree/lib/page.c +1 -1
- data/ext/rtree/lib/postscript.c +6 -6
- data/ext/rtree/lib/{bindex.h → private/bindex.h} +3 -8
- data/ext/rtree/lib/{bounds.h → private/bounds.h} +3 -3
- data/ext/rtree/lib/{branch.h → private/branch.h} +10 -9
- data/ext/rtree/lib/{branches.h → private/branches.h} +8 -14
- data/ext/rtree/lib/{bsrt.h → private/bsrt.h} +5 -5
- data/ext/rtree/lib/{constants.h → private/constants.h} +3 -3
- data/ext/rtree/lib/{csv.h → private/csv.h} +6 -6
- data/ext/rtree/lib/{endianness.h → private/endianness.h} +4 -8
- data/ext/rtree/lib/{json.h → private/json.h} +5 -5
- data/ext/rtree/lib/{node.h → private/node.h} +6 -4
- data/ext/rtree/lib/private/page.h +13 -0
- data/ext/rtree/lib/private/postscript.h +17 -0
- data/ext/rtree/lib/{rect.h → private/rect.h} +7 -7
- data/ext/rtree/lib/{rtree → private}/rectf.h +3 -14
- data/ext/rtree/lib/private/rtree.h +20 -0
- data/ext/rtree/lib/{search.h → private/search.h} +7 -8
- data/ext/rtree/lib/private/split.h +15 -0
- data/ext/rtree/lib/{spvol.h → private/spvol.h} +3 -3
- data/ext/rtree/lib/{state.h → private/state.h} +11 -10
- data/ext/rtree/lib/rect.c +3 -2
- data/ext/rtree/lib/rectf.c +1 -1
- data/ext/rtree/lib/rtree/node.h +0 -1
- data/ext/rtree/lib/rtree/postscript.h +9 -12
- data/ext/rtree/lib/rtree/state.h +0 -1
- data/ext/rtree/lib/rtree-base.c +8 -8
- data/ext/rtree/lib/rtree.h +0 -6
- data/ext/rtree/lib/search.c +4 -5
- data/ext/rtree/lib/split.c +9 -8
- data/ext/rtree/lib/spvol.c +1 -1
- data/ext/rtree/lib/state.c +7 -7
- data/ext/rtree/rtree.c +9 -10
- data/lib/rtree.rb +62 -37
- metadata +21 -20
- data/ext/rtree/lib/page.h +0 -13
- data/ext/rtree/lib/rtree/branch.h +0 -19
- data/ext/rtree/lib/split.h +0 -15
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
private/split.h
|
3
|
+
Copyright (c) J.J. Green 2020
|
4
|
+
*/
|
5
|
+
|
6
|
+
#ifndef PRIVATE_SPLIT_H
|
7
|
+
#define PRIVATE_SPLIT_H
|
8
|
+
|
9
|
+
#include <private/branch.h>
|
10
|
+
#include <private/node.h>
|
11
|
+
#include <private/state.h>
|
12
|
+
|
13
|
+
node_t* split_node(const state_t*, node_t*, branch_t*);
|
14
|
+
|
15
|
+
#endif
|
@@ -1,19 +1,20 @@
|
|
1
1
|
/*
|
2
|
-
state.h
|
2
|
+
private/state.h
|
3
3
|
Copyright (c) J.J. Green 2023
|
4
4
|
*/
|
5
5
|
|
6
|
-
#ifndef
|
7
|
-
#define
|
6
|
+
#ifndef PRIVATE_STATE_H
|
7
|
+
#define PRIVATE_STATE_H
|
8
8
|
|
9
|
-
#include <
|
10
|
-
|
9
|
+
#include <private/rectf.h>
|
10
|
+
|
11
|
+
#include <rtree/state.h>
|
12
|
+
#include <rtree/types.h>
|
11
13
|
|
12
|
-
#include
|
13
|
-
#include
|
14
|
-
#include "rtree/rectf.h"
|
14
|
+
#include <stddef.h>
|
15
|
+
#include <stdbool.h>
|
15
16
|
|
16
|
-
struct
|
17
|
+
typedef struct
|
17
18
|
{
|
18
19
|
size_t dims, factor;
|
19
20
|
rtree_coord_t volume;
|
@@ -25,7 +26,7 @@ struct state_t
|
|
25
26
|
rectf_rc_t *combine;
|
26
27
|
} rectf;
|
27
28
|
state_flags_t flags;
|
28
|
-
};
|
29
|
+
} state_t;
|
29
30
|
|
30
31
|
state_t* state_new(size_t, state_flags_t);
|
31
32
|
state_t* state_clone(const state_t*);
|
data/ext/rtree/lib/rect.c
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
#include "config.h"
|
3
3
|
#endif
|
4
4
|
|
5
|
-
#include "rect.h"
|
6
|
-
#include "state.h"
|
5
|
+
#include "private/rect.h"
|
6
|
+
#include "private/state.h"
|
7
7
|
|
8
8
|
#include "rtree/error.h"
|
9
9
|
|
@@ -19,6 +19,7 @@
|
|
19
19
|
|
20
20
|
#include <string.h>
|
21
21
|
#include <errno.h>
|
22
|
+
#include <stdlib.h>
|
22
23
|
|
23
24
|
int rect_init(const state_t *state, rtree_coord_t *rect)
|
24
25
|
{
|
data/ext/rtree/lib/rectf.c
CHANGED
data/ext/rtree/lib/rtree/node.h
CHANGED
@@ -10,16 +10,16 @@
|
|
10
10
|
extern "C" {
|
11
11
|
#endif
|
12
12
|
|
13
|
-
|
13
|
+
#include <rtree/extent.h>
|
14
14
|
|
15
15
|
#include <stdio.h>
|
16
|
-
#include <rtree/node.h>
|
17
|
-
#include <rtree/state.h>
|
18
|
-
#include <rtree/extent.h>
|
19
16
|
|
20
|
-
typedef enum
|
21
|
-
|
22
|
-
|
17
|
+
typedef enum {
|
18
|
+
model_none,
|
19
|
+
model_grey,
|
20
|
+
model_rgb,
|
21
|
+
model_cmyk
|
22
|
+
} postscript_colour_model_t;
|
23
23
|
|
24
24
|
typedef struct {
|
25
25
|
postscript_colour_model_t model;
|
@@ -48,17 +48,14 @@ typedef struct {
|
|
48
48
|
postscript_style_t* postscript_style_read(FILE*);
|
49
49
|
void postscript_style_destroy(postscript_style_t*);
|
50
50
|
|
51
|
-
struct rtree_postscript_t
|
51
|
+
typedef struct rtree_postscript_t
|
52
52
|
{
|
53
53
|
const postscript_style_t *style;
|
54
54
|
extent_axis_t axis;
|
55
55
|
float extent;
|
56
56
|
float margin;
|
57
57
|
const char *title;
|
58
|
-
};
|
59
|
-
|
60
|
-
int postscript_write(const state_t*, const node_t*,
|
61
|
-
const rtree_postscript_t*, FILE*);
|
58
|
+
} rtree_postscript_t;
|
62
59
|
|
63
60
|
#ifdef __cplusplus
|
64
61
|
}
|
data/ext/rtree/lib/rtree/state.h
CHANGED
data/ext/rtree/lib/rtree-base.c
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
#include "config.h"
|
3
3
|
#endif
|
4
4
|
|
5
|
-
#include "
|
6
|
-
|
7
|
-
#include "
|
8
|
-
#include "
|
9
|
-
#include "
|
10
|
-
#include "
|
11
|
-
#include "
|
12
|
-
#include "state.h"
|
5
|
+
#include "private/bsrt.h"
|
6
|
+
#include "private/csv.h"
|
7
|
+
#include "private/json.h"
|
8
|
+
#include "private/node.h"
|
9
|
+
#include "private/postscript.h"
|
10
|
+
#include "private/search.h"
|
11
|
+
#include "private/state.h"
|
13
12
|
|
13
|
+
#include "rtree.h"
|
14
14
|
#include "rtree/error.h"
|
15
15
|
|
16
16
|
#include <errno.h>
|
data/ext/rtree/lib/rtree.h
CHANGED
@@ -24,12 +24,6 @@ typedef uint16_t rtree_height_t;
|
|
24
24
|
#include <rtree/search.h>
|
25
25
|
#include <rtree/error.h>
|
26
26
|
|
27
|
-
struct rtree_t
|
28
|
-
{
|
29
|
-
state_t *state;
|
30
|
-
node_t *root;
|
31
|
-
};
|
32
|
-
|
33
27
|
rtree_t* rtree_alloc(void);
|
34
28
|
int rtree_init(rtree_t*, size_t, state_flags_t);
|
35
29
|
rtree_t* rtree_new(size_t, state_flags_t);
|
data/ext/rtree/lib/search.c
CHANGED
@@ -2,14 +2,13 @@
|
|
2
2
|
#include "config.h"
|
3
3
|
#endif
|
4
4
|
|
5
|
-
#include "search.h"
|
6
|
-
#include "node.h"
|
7
|
-
#include "branch.h"
|
8
|
-
#include "rect.h"
|
5
|
+
#include "private/search.h"
|
6
|
+
#include "private/node.h"
|
7
|
+
#include "private/branch.h"
|
8
|
+
#include "private/rect.h"
|
9
9
|
|
10
10
|
#include "rtree/error.h"
|
11
11
|
|
12
|
-
|
13
12
|
typedef struct
|
14
13
|
{
|
15
14
|
rtree_search_t *callback;
|
data/ext/rtree/lib/split.c
CHANGED
@@ -2,8 +2,17 @@
|
|
2
2
|
#include "config.h"
|
3
3
|
#endif
|
4
4
|
|
5
|
+
#include "private/bindex.h"
|
6
|
+
#include "private/branch.h"
|
7
|
+
#include "private/branches.h"
|
8
|
+
#include "private/node.h"
|
9
|
+
#include "private/split.h"
|
10
|
+
|
11
|
+
#include "rtree/error.h"
|
12
|
+
|
5
13
|
#include <float.h>
|
6
14
|
#include <errno.h>
|
15
|
+
#include <stdlib.h>
|
7
16
|
|
8
17
|
#ifdef HAVE_TGMATH_H
|
9
18
|
#include <tgmath.h>
|
@@ -11,14 +20,6 @@
|
|
11
20
|
#include <math.h>
|
12
21
|
#endif
|
13
22
|
|
14
|
-
#include "rtree/error.h"
|
15
|
-
|
16
|
-
#include "branches.h"
|
17
|
-
#include "branch.h"
|
18
|
-
#include "split.h"
|
19
|
-
#include "bindex.h"
|
20
|
-
#include "node.h"
|
21
|
-
|
22
23
|
typedef struct
|
23
24
|
{
|
24
25
|
bindex_t *choice, *taken;
|
data/ext/rtree/lib/spvol.c
CHANGED
data/ext/rtree/lib/state.c
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
#include "config.h"
|
3
3
|
#endif
|
4
4
|
|
5
|
-
#include "
|
6
|
-
|
7
|
-
#include "
|
8
|
-
#include "page.h"
|
9
|
-
#include "
|
10
|
-
#include "
|
11
|
-
#include "node.h"
|
5
|
+
#include "private/branch.h"
|
6
|
+
#include "private/constants.h"
|
7
|
+
#include "private/node.h"
|
8
|
+
#include "private/page.h"
|
9
|
+
#include "private/spvol.h"
|
10
|
+
#include "private/state.h"
|
12
11
|
|
13
12
|
#include <errno.h>
|
14
13
|
#include <string.h>
|
14
|
+
#include <stdlib.h>
|
15
15
|
|
16
16
|
#ifdef HAVE_TGMATH_H
|
17
17
|
#include <tgmath.h>
|
data/ext/rtree/rtree.c
CHANGED
@@ -35,7 +35,7 @@ static VALUE rt_init(VALUE self, VALUE dim_obj, VALUE flags_obj)
|
|
35
35
|
Check_Type(dim_obj, T_FIXNUM);
|
36
36
|
size_t dim = FIX2ULONG(dim_obj);
|
37
37
|
|
38
|
-
Check_Type(
|
38
|
+
Check_Type(flags_obj, T_FIXNUM);
|
39
39
|
state_flags_t flags = FIX2UINT(flags_obj);
|
40
40
|
|
41
41
|
rtree_t *rtree;
|
@@ -241,7 +241,7 @@ static VALUE rt_csv_read(VALUE cls,
|
|
241
241
|
Check_Type(dim_obj, T_FIXNUM);
|
242
242
|
size_t dim = FIX2ULONG(dim_obj);
|
243
243
|
|
244
|
-
Check_Type(
|
244
|
+
Check_Type(flags_obj, T_FIXNUM);
|
245
245
|
state_flags_t flags = FIX2UINT(flags_obj);
|
246
246
|
|
247
247
|
rtree_t *rtree;
|
@@ -415,14 +415,13 @@ static VALUE rt_postscript(VALUE self,
|
|
415
415
|
Check_Type(axis_obj, T_FIXNUM);
|
416
416
|
extent_axis_t axis = FIX2UINT(axis_obj);
|
417
417
|
|
418
|
-
rtree_postscript_t opt =
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
};
|
418
|
+
rtree_postscript_t opt = {
|
419
|
+
.style = style,
|
420
|
+
.axis = axis,
|
421
|
+
.extent = extent,
|
422
|
+
.margin = margin,
|
423
|
+
.title = "librtree-ruby output"
|
424
|
+
};
|
426
425
|
|
427
426
|
int err;
|
428
427
|
if ((err = rtree_postscript(rtree, &opt, fp)) != 0)
|
data/lib/rtree.rb
CHANGED
@@ -15,7 +15,7 @@ require 'fcntl'
|
|
15
15
|
# @author RTree J. J. Green
|
16
16
|
#
|
17
17
|
# A Ruby native extension implementing the R-tree spatial index of
|
18
|
-
# Guttman-Green. The code is an
|
18
|
+
# Guttman-Green. The code is an embedded version of
|
19
19
|
# {http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/librtree librtree}.
|
20
20
|
#
|
21
21
|
# Use
|
@@ -69,6 +69,21 @@ class RTree < RTreeBase
|
|
69
69
|
module IOUtil
|
70
70
|
extend self
|
71
71
|
|
72
|
+
# @!visibility private
|
73
|
+
#
|
74
|
+
def io_with_mode(arg, mode)
|
75
|
+
case arg
|
76
|
+
when String, Pathname
|
77
|
+
File.open(arg, mode) do |io|
|
78
|
+
yield io
|
79
|
+
end
|
80
|
+
when File, IO
|
81
|
+
yield arg
|
82
|
+
else
|
83
|
+
raise TypeError, arg
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
72
87
|
# @!visibility private
|
73
88
|
#
|
74
89
|
def deserialise(string, encoding)
|
@@ -138,15 +153,19 @@ class RTree < RTreeBase
|
|
138
153
|
|
139
154
|
class << self
|
140
155
|
|
141
|
-
# Create a new RTree instance from JSON stream
|
142
|
-
# @param
|
156
|
+
# Create a new RTree instance from JSON path or stream
|
157
|
+
# @param io_arg [String|IO] a path or readable stream
|
143
158
|
# @return [RTree] the newly instantiated RTree
|
144
159
|
# @see #json_write
|
145
|
-
# @example
|
160
|
+
# @example Using a path
|
161
|
+
# rtree = RTree.json_read('rtree.json')
|
162
|
+
# @example Using a stream
|
146
163
|
# rtree = File.open('rtree.json', 'r') { |io| RTree.json_read(io) }
|
147
164
|
#
|
148
|
-
def json_read(
|
149
|
-
|
165
|
+
def json_read(io_arg)
|
166
|
+
RTree::IOUtil.io_with_mode(io_arg, 'r') do |io|
|
167
|
+
super(io)
|
168
|
+
end
|
150
169
|
end
|
151
170
|
|
152
171
|
# Create a new RTree instance from JSON string
|
@@ -159,15 +178,17 @@ class RTree < RTreeBase
|
|
159
178
|
end
|
160
179
|
|
161
180
|
# Create a new RTree instance from BSRT (binary serialised R-tree)
|
162
|
-
# stream
|
163
|
-
# @param
|
181
|
+
# path or stream
|
182
|
+
# @param io_arg [String|IO] a path or readable stream
|
164
183
|
# @return [RTree] the newly instantiated RTree
|
165
184
|
# @see #bsrt_write
|
166
|
-
# @example Read from
|
167
|
-
# rtree =
|
185
|
+
# @example Read from path
|
186
|
+
# rtree = RTree.bsrt_read('rtree.bsrt')
|
168
187
|
#
|
169
|
-
def bsrt_read(
|
170
|
-
|
188
|
+
def bsrt_read(io_arg)
|
189
|
+
RTree::IOUtil.io_with_mode(io_arg, 'rb') do |io|
|
190
|
+
super(io)
|
191
|
+
end
|
171
192
|
end
|
172
193
|
|
173
194
|
# Create a new RTree instance from BSRT (binary serialised R-tree)
|
@@ -180,8 +201,8 @@ class RTree < RTreeBase
|
|
180
201
|
deserialise(bsrt, Encoding::BINARY) { |io| bsrt_read(io) }
|
181
202
|
end
|
182
203
|
|
183
|
-
# Build a new RTree instance from CSV stream
|
184
|
-
# @param
|
204
|
+
# Build a new RTree instance from CSV path or stream
|
205
|
+
# @param io_arg [String|IO] a path or readable stream
|
185
206
|
# @param dim [Integer] the dimension of the tree
|
186
207
|
# @param split [:linear, :quadratic, :greene] See {#initialize}
|
187
208
|
# @param node_page [Integer] See {#initialize}
|
@@ -192,9 +213,11 @@ class RTree < RTreeBase
|
|
192
213
|
# useful feature is the reason that the dimension is a required
|
193
214
|
# argument).
|
194
215
|
#
|
195
|
-
def csv_read(
|
216
|
+
def csv_read(io_arg, dim, split: :quadratic, node_page: 0)
|
196
217
|
flags = split_flag(split) | node_page_flag(node_page)
|
197
|
-
|
218
|
+
RTree::IOUtil.io_with_mode(io_arg, 'r') do |io|
|
219
|
+
super(io, dim, flags)
|
220
|
+
end
|
198
221
|
end
|
199
222
|
|
200
223
|
# Build a new RTree instance from CSV string
|
@@ -363,26 +386,28 @@ class RTree < RTreeBase
|
|
363
386
|
super
|
364
387
|
end
|
365
388
|
|
366
|
-
# Serialise to JSON
|
367
|
-
# @param
|
389
|
+
# Serialise to JSON
|
390
|
+
# @param io_arg [String|IO] a path or writable stream
|
368
391
|
# @return [self]
|
369
392
|
# @see .json_read
|
370
393
|
# @example Write to file
|
371
|
-
#
|
394
|
+
# rtree.json_write('rtree.json')
|
372
395
|
#
|
373
|
-
def json_write(
|
374
|
-
super
|
396
|
+
def json_write(io_arg)
|
397
|
+
RTree::IOUtil.io_with_mode(io_arg, 'w') { |io| super(io) }
|
398
|
+
self
|
375
399
|
end
|
376
400
|
|
377
|
-
# Serialise to BSRT (binary serialised R-tree)
|
378
|
-
# @param
|
401
|
+
# Serialise to BSRT (binary serialised R-tree)
|
402
|
+
# @param io_arg [String|IO] a path or writable stream
|
379
403
|
# @return [self]
|
380
404
|
# @see .bsrt_read
|
381
405
|
# @example Write to file
|
382
|
-
#
|
406
|
+
# rtree.bsrt_write('rtree.bsrt')
|
383
407
|
#
|
384
|
-
def bsrt_write(
|
385
|
-
super
|
408
|
+
def bsrt_write(io_arg)
|
409
|
+
RTree::IOUtil.io_with_mode(io_arg, 'wb') { |io| super(io) }
|
410
|
+
self
|
386
411
|
end
|
387
412
|
|
388
413
|
# Serialise to JSON string
|
@@ -476,7 +501,7 @@ class RTree < RTreeBase
|
|
476
501
|
|
477
502
|
# Create a PostScript plot of the RTree
|
478
503
|
#
|
479
|
-
# @param
|
504
|
+
# @param io_arg [String|IO] a path or writeable stream
|
480
505
|
# @param style [RTree::Style] a style object describing the fill
|
481
506
|
# colour and stroke width and colour for each level of the tree.
|
482
507
|
# @param height [Float] the height of the plot in units of PostScript
|
@@ -487,7 +512,7 @@ class RTree < RTreeBase
|
|
487
512
|
# @param margin [Float] extra space around the plot in units of
|
488
513
|
# PostScript point (1/72 inch), default zero
|
489
514
|
#
|
490
|
-
def postscript(
|
515
|
+
def postscript(io_arg, style, height: nil, width: nil, margin: 0)
|
491
516
|
if height && width then
|
492
517
|
raise ArgumentError, 'cannot specify both height and width'
|
493
518
|
end
|
@@ -498,7 +523,9 @@ class RTree < RTreeBase
|
|
498
523
|
axis = AXIS_WIDTH
|
499
524
|
extent = width || 216
|
500
525
|
end
|
501
|
-
|
526
|
+
RTree::IOUtil.io_with_mode(io_arg, 'w') do |io|
|
527
|
+
super(style, axis, extent, margin, io)
|
528
|
+
end
|
502
529
|
end
|
503
530
|
|
504
531
|
private
|
@@ -523,7 +550,7 @@ class RTree < RTreeBase
|
|
523
550
|
|
524
551
|
end
|
525
552
|
|
526
|
-
# @author RTree::Style J.
|
553
|
+
# @author RTree::Style J.J. Green
|
527
554
|
#
|
528
555
|
# A Ruby wrapper around RTree styles, used in PostScript plotting.
|
529
556
|
# in particular by {RTree#postscript}.
|
@@ -532,16 +559,14 @@ class RTree::Style < RTreeStyleBase
|
|
532
559
|
|
533
560
|
class << self
|
534
561
|
|
535
|
-
# Create a new Style instance from JSON stream
|
536
|
-
# @param
|
562
|
+
# Create a new Style instance from JSON path or stream
|
563
|
+
# @param io_arg [String|IO] a path or readable stream
|
537
564
|
# @return [RTree::Style] the newly instantiated Style
|
538
565
|
# @example Read from file
|
539
|
-
# style =
|
540
|
-
# RTree::Style.json_read(io)
|
541
|
-
# end
|
566
|
+
# style = RTree::Style.json_read('some.style')
|
542
567
|
#
|
543
|
-
def json_read(
|
544
|
-
super
|
568
|
+
def json_read(io_arg)
|
569
|
+
RTree::IOUtil.io_with_mode(io_arg, 'r') { |io| super(io) }
|
545
570
|
end
|
546
571
|
|
547
572
|
# Create a new Style instance from JSON string
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librtree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.J. Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -151,53 +151,54 @@ files:
|
|
151
151
|
- ext/rtree/extconf.rb
|
152
152
|
- ext/rtree/lib/README.md
|
153
153
|
- ext/rtree/lib/bindex.c
|
154
|
-
- ext/rtree/lib/bindex.h
|
155
|
-
- ext/rtree/lib/bounds.h
|
156
154
|
- ext/rtree/lib/branch.c
|
157
|
-
- ext/rtree/lib/branch.h
|
158
155
|
- ext/rtree/lib/branches.c
|
159
|
-
- ext/rtree/lib/branches.h
|
160
156
|
- ext/rtree/lib/bsrt.c
|
161
|
-
- ext/rtree/lib/bsrt.h
|
162
|
-
- ext/rtree/lib/constants.h
|
163
157
|
- ext/rtree/lib/csv.c
|
164
|
-
- ext/rtree/lib/csv.h
|
165
|
-
- ext/rtree/lib/endianness.h
|
166
158
|
- ext/rtree/lib/error.c
|
167
159
|
- ext/rtree/lib/json.c
|
168
|
-
- ext/rtree/lib/json.h
|
169
160
|
- ext/rtree/lib/mk/Hdr.mk
|
170
161
|
- ext/rtree/lib/mk/MakeDepend
|
171
162
|
- ext/rtree/lib/mk/Obj.mk
|
172
163
|
- ext/rtree/lib/node.c
|
173
|
-
- ext/rtree/lib/node.h
|
174
164
|
- ext/rtree/lib/package.c
|
175
165
|
- ext/rtree/lib/page.c
|
176
|
-
- ext/rtree/lib/page.h
|
177
166
|
- ext/rtree/lib/postscript.c
|
167
|
+
- ext/rtree/lib/private/bindex.h
|
168
|
+
- ext/rtree/lib/private/bounds.h
|
169
|
+
- ext/rtree/lib/private/branch.h
|
170
|
+
- ext/rtree/lib/private/branches.h
|
171
|
+
- ext/rtree/lib/private/bsrt.h
|
172
|
+
- ext/rtree/lib/private/constants.h
|
173
|
+
- ext/rtree/lib/private/csv.h
|
174
|
+
- ext/rtree/lib/private/endianness.h
|
175
|
+
- ext/rtree/lib/private/json.h
|
176
|
+
- ext/rtree/lib/private/node.h
|
177
|
+
- ext/rtree/lib/private/page.h
|
178
|
+
- ext/rtree/lib/private/postscript.h
|
179
|
+
- ext/rtree/lib/private/rect.h
|
180
|
+
- ext/rtree/lib/private/rectf.h
|
181
|
+
- ext/rtree/lib/private/rtree.h
|
182
|
+
- ext/rtree/lib/private/search.h
|
183
|
+
- ext/rtree/lib/private/split.h
|
184
|
+
- ext/rtree/lib/private/spvol.h
|
185
|
+
- ext/rtree/lib/private/state.h
|
178
186
|
- ext/rtree/lib/rect.c
|
179
|
-
- ext/rtree/lib/rect.h
|
180
187
|
- ext/rtree/lib/rectf.c
|
181
188
|
- ext/rtree/lib/rtree-base.c
|
182
189
|
- ext/rtree/lib/rtree.h
|
183
|
-
- ext/rtree/lib/rtree/branch.h
|
184
190
|
- ext/rtree/lib/rtree/error.h
|
185
191
|
- ext/rtree/lib/rtree/extent.h
|
186
192
|
- ext/rtree/lib/rtree/node.h
|
187
193
|
- ext/rtree/lib/rtree/package.h
|
188
194
|
- ext/rtree/lib/rtree/postscript.h
|
189
|
-
- ext/rtree/lib/rtree/rectf.h
|
190
195
|
- ext/rtree/lib/rtree/search.h
|
191
196
|
- ext/rtree/lib/rtree/state.h
|
192
197
|
- ext/rtree/lib/rtree/types.h
|
193
198
|
- ext/rtree/lib/search.c
|
194
|
-
- ext/rtree/lib/search.h
|
195
199
|
- ext/rtree/lib/split.c
|
196
|
-
- ext/rtree/lib/split.h
|
197
200
|
- ext/rtree/lib/spvol.c
|
198
|
-
- ext/rtree/lib/spvol.h
|
199
201
|
- ext/rtree/lib/state.c
|
200
|
-
- ext/rtree/lib/state.h
|
201
202
|
- ext/rtree/rtree.c
|
202
203
|
- lib/rtree.rb
|
203
204
|
homepage: https://gitlab.com/jjg/librtree-ruby
|
data/ext/rtree/lib/page.h
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
rtree/branch.h
|
3
|
-
Copyright (c) J.J. Green 2019
|
4
|
-
*/
|
5
|
-
|
6
|
-
#ifndef RTREE_BRANCH_H
|
7
|
-
#define RTREE_BRANCH_H
|
8
|
-
|
9
|
-
#ifdef __cplusplus
|
10
|
-
extern "C" {
|
11
|
-
#endif
|
12
|
-
|
13
|
-
typedef struct branch_t branch_t;
|
14
|
-
|
15
|
-
#ifdef __cplusplus
|
16
|
-
}
|
17
|
-
#endif
|
18
|
-
|
19
|
-
#endif
|
data/ext/rtree/lib/split.h
DELETED