1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-7925 Inconsistent behavior of ST_Touches with a POINT as one of arguments.

Some cases of the feature's borders were treated incorrectly.
This commit is contained in:
Alexey Botchkov
2015-06-22 23:33:35 +05:00
parent 0357791e3c
commit fb3e31203f
6 changed files with 106 additions and 46 deletions

View File

@ -82,6 +82,12 @@ public:
shape_polygon= 2,
shape_hole= 3
};
enum count_result
{
result_false= 0,
result_true= 1,
result_unknown= 2
};
Gcalc_function() : n_shapes(0) {}
gcalc_shape_info add_new_shape(uint32 shape_id, shape_type shape_kind);
/*
@ -116,6 +122,8 @@ public:
int get_b_state(gcalc_shape_info shape) { return b_states[shape]; }
int count()
{ return count_internal(function_buffer.ptr(), 0, 0); }
int count_last()
{ return count_internal(function_buffer.ptr(), 1, 0); }
void clear_i_states();
void clear_b_states();
void reset();