OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
mysql
/
server
/
private
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
aligned.h
1.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
aria_backup.h
1.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
assume_aligned.h
2.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📁
atomic
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
authors.h
9.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
backup.h
1.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
bounded_queue.h
6.67 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
client_settings.h
1.89 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
compat56.h
2.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
config.h
14.2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
contributors.h
2.92 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
create_options.h
3.94 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
create_tmp_table.h
2.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
custom_conf.h
1.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
datadict.h
1.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ddl_log.h
12.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
debug.h
1.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
debug_sync.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
derived_handler.h
2.32 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
derror.h
980 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
des_key_file.h
1.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
discover.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
dur_prop.h
1.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
embedded_priv.h
1.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_data_objects.h
4.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_db_repository.h
3.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_parse_data.h
2.83 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_queue.h
3.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_scheduler.h
3.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
events.h
4.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
field.h
216.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
field_comp.h
1.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
filesort.h
7.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
filesort_utils.h
8 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ft_global.h
3.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
gcalc_slicescan.h
16.87 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
gcalc_tools.h
11.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
grant.h
2.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
group_by_handler.h
3.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
gstream.h
2.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ha_handler_stats.h
1.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ha_partition.h
62.8 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ha_sequence.h
5.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
handle_connections_win.h
884 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
handler.h
194.12 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
hash.h
4.34 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
hash_filo.h
5.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
heap.h
9.2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
hostname.h
5.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ilist.h
6.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
init.h
852 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
innodb_priv.h
1.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item.h
262.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_cmpfunc.h
129.83 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_create.h
11.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_func.h
132.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_geofunc.h
37.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_jsonfunc.h
24.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_row.h
5.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_strfunc.h
69.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_subselect.h
53.22 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_sum.h
70.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_timefunc.h
62.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_vers.h
4.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_windowfunc.h
33.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_xmlfunc.h
4.49 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
json_table.h
9.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
key.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
keycaches.h
1.95 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex.h
29.39 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex_charset.h
23.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex_string.h
3.97 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex_symbol.h
1.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lf.h
6.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lock.h
2.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log.h
44.93 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log_event.h
182.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log_event_old.h
19.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log_slow.h
2.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
maria.h
5.73 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mariadb.h
1.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mdl.h
37.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mem_root_array.h
6.94 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
message.h
1.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
multi_range_read.h
22.45 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_alarm.h
2.37 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_apc.h
4.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_atomic.h
7.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_atomic_wrapper.h
2.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_base.h
26.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_bit.h
5.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_bitmap.h
5.37 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_check_opt.h
2.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_compare.h
10.93 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_counter.h
1.68 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_cpu.h
4.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_crypt.h
904 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_decimal.h
14.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_default.h
1.84 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_handler_errors.h
4.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_json_writer.h
18.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_libwrap.h
1.16 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_md5.h
1.45 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_minidump.h
848 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_nosys.h
1.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_rdtsc.h
9.47 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_rnd.h
1014 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_service_manager.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_stack_alloc.h
3.76 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_stacktrace.h
3.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_time.h
10.22 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_tree.h
3.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_uctype.h
67.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_user.h
1.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisam.h
17.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisamchk.h
4.61 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisammrg.h
4.78 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisampack.h
14.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysqld.h
40.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysqld_default_groups.h
204 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysqld_suffix.h
1.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysys_err.h
2.95 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_histogram_json.h
4.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_range.h
62.54 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_subselect.h
14.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_trace.h
8.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_trace_context.h
3.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
parse_file.h
4.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
partition_element.h
5.3 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
partition_info.h
19.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
password.h
1.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_file_provider.h
3.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_idle_provider.h
1.35 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_memory_provider.h
1.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_metadata_provider.h
1.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_socket_provider.h
2.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_stage_provider.h
1.52 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_statement_provider.h
4.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_table_provider.h
2.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_thread_provider.h
5.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_transaction_provider.h
2.78 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
privilege.h
28.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
probes_mysql.h
973 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
probes_mysql_dtrace.h
32.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
probes_mysql_nodtrace.h
4.89 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
procedure.h
6.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
protocol.h
12.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📁
providers
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
proxy_protocol.h
548 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
queues.h
3.46 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
records.h
3.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
repl_failsafe.h
1.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
replication.h
15.75 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rijndael.h
1.67 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rowid_filter.h
15.13 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_constants.h
3.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_filter.h
4.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_gtid.h
28.48 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_injector.h
9.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_mi.h
15.79 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_parallel.h
17.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_record.h
1.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_record_old.h
1.37 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_reporting.h
3.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_rli.h
33.41 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_tblmap.h
3.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_utility.h
9.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
scheduler.h
3.12 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
scope.h
1.76 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
select_handler.h
2.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync.h
2.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync_master.h
25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync_master_ack_receiver.h
8.5 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync_slave.h
3.65 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_versions.h
2.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
session_tracker.h
13.87 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
set_var.h
15.97 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
slave.h
11.99 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
source_revision.h
67 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp.h
21.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_cache.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_head.h
63.44 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_pcontext.h
24.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_rcontext.h
14.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
span.h
3.84 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
spatial.h
20.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_acl.h
13.8 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_admin.h
2.81 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_alloc.h
1.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_alter.h
14.95 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_analyse.h
10.92 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_analyze_stmt.h
12.39 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_array.h
6.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_audit.h
13.62 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_base.h
25.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_basic_types.h
9.3 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_binlog.h
895 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_bitmap.h
7.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_bootstrap.h
1.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cache.h
21.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_callback.h
1.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_class.h
259.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cmd.h
9.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_connect.h
3.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_const.h
10.72 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_crypt.h
1.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cte.h
16.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cursor.h
2.26 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_db.h
2.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_debug.h
5.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_delete.h
1.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_derived.h
1.26 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_digest.h
3.73 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_digest_stream.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_do.h
954 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_error.h
38.83 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_explain.h
28.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_expression_cache.h
4.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_get_diagnostics.h
7.68 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_handler.h
2.84 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_help.h
995 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_hset.h
3.33 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_i_s.h
8.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_insert.h
2.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_join_cache.h
47.12 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_lex.h
168.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_lifo_buffer.h
9.26 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_limit.h
3.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_list.h
21.91 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_load.h
1.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_locale.h
2.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_manager.h
960 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_mode.h
6.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_parse.h
8.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_partition.h
12.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_partition_admin.h
5.73 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_plist.h
7.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_plugin.h
7.39 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_plugin_compat.h
2.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_prepare.h
11.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_priv.h
17.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_profile.h
7.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_reload.h
1.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_rename.h
982 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_repl.h
2.97 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_schema.h
3.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_select.h
86.96 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_sequence.h
5.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_servers.h
1.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_show.h
9.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_signal.h
3.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_sort.h
21.5 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_statistics.h
16.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_string.h
38.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_table.h
9.42 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_test.h
1.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_time.h
8.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_trigger.h
11.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_truncate.h
2.02 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_tvc.h
2.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type.h
287.72 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_fixedbin.h
62.76 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_fixedbin_storage.h
5.34 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_geom.h
18.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_int.h
9.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_json.h
6.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_real.h
1.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_string.h
1.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_udf.h
4.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_union.h
1.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_update.h
1.88 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_view.h
2.41 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_window.h
6.65 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ssl_compat.h
3.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
strfunc.h
2.22 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
structs.h
28.82 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sys_vars_shared.h
2.61 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
t_ctype.h
5.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
table.h
112.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
table_cache.h
4.13 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_alarm.h
2.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_lock.h
7.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_malloc.h
1.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_timer.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thread_cache.h
5.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
threadpool.h
4.67 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
threadpool_generic.h
3.88 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
threadpool_winsockets.h
2.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
transaction.h
1.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
tzfile.h
4.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
tztime.h
3.32 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
uniques.h
4.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
unireg.h
7.54 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
vers_string.h
2.47 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
violite.h
9.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
waiting_threads.h
4.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
welcome_copyright_notice.h
1.19 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
win_tzname_data.h
6.35 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
winservice.h
5.88 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wqueue.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep.h
3.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_allowlist_service.h
1.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_applier.h
1.89 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_binlog.h
3.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_client_service.h
2.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_client_state.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_condition_variable.h
1.42 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_high_priority_service.h
4.57 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_mutex.h
1.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_mysqld.h
20.62 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_mysqld_c.h
1.2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_on.h
1.68 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_priv.h
1.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_schema.h
5.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_server_service.h
3.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_server_state.h
2.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_sst.h
3.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_status.h
1.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_storage_service.h
1.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_thd.h
10.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_trans_observer.h
17.87 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_types.h
1.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_utils.h
9.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_var.h
4.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_xid.h
1.42 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
xa.h
1.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
Editing: spatial.h
Close
/* Copyright (c) 2002, 2013, Oracle and/or its affiliates. Copyright (c) 2009, 2013, Monty Program Ab. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ #ifndef _spatial_h #define _spatial_h #include "sql_string.h" /* String, LEX_STRING */ #include <my_compiler.h> #include <json_lib.h> #ifdef HAVE_SPATIAL class Gis_read_stream; #include "gcalc_tools.h" const uint SRID_SIZE= 4; const uint SIZEOF_STORED_DOUBLE= 8; const uint POINT_DATA_SIZE= (SIZEOF_STORED_DOUBLE * 2); const uint WKB_HEADER_SIZE= 1+4; const uint32 GET_SIZE_ERROR= ((uint32) -1); struct st_point_2d { double x; double y; }; struct st_linear_ring { uint32 n_points; st_point_2d points; }; /***************************** MBR *******************************/ /* It's ok that a lot of the functions are inline as these are only used once in MySQL */ struct MBR { double xmin, ymin, xmax, ymax; MBR() { xmin= ymin= DBL_MAX; xmax= ymax= -DBL_MAX; } MBR(const double xmin_arg, const double ymin_arg, const double xmax_arg, const double ymax_arg) :xmin(xmin_arg), ymin(ymin_arg), xmax(xmax_arg), ymax(ymax_arg) {} MBR(const st_point_2d &min, const st_point_2d &max) :xmin(min.x), ymin(min.y), xmax(max.x), ymax(max.y) {} MBR(const MBR &mbr1, const MBR &mbr2) :xmin(mbr1.xmin), ymin(mbr1.ymin), xmax(mbr1.xmax), ymax(mbr1.ymax) { add_mbr(&mbr2); } inline void add_xy(double x, double y) { /* Not using "else" for proper one point MBR calculation */ if (x < xmin) xmin= x; if (x > xmax) xmax= x; if (y < ymin) ymin= y; if (y > ymax) ymax= y; } void add_xy(const char *px, const char *py) { double x, y; float8get(x, px); float8get(y, py); add_xy(x,y); } void add_mbr(const MBR *mbr) { if (mbr->xmin < xmin) xmin= mbr->xmin; if (mbr->xmax > xmax) xmax= mbr->xmax; if (mbr->ymin < ymin) ymin= mbr->ymin; if (mbr->ymax > ymax) ymax= mbr->ymax; } void buffer(double d) { xmin-= d; ymin-= d; xmax+= d; ymax+= d; } int equals(const MBR *mbr) { /* The following should be safe, even if we compare doubles */ return ((mbr->xmin == xmin) && (mbr->ymin == ymin) && (mbr->xmax == xmax) && (mbr->ymax == ymax)); } int disjoint(const MBR *mbr) { /* The following should be safe, even if we compare doubles */ return ((mbr->xmin > xmax) || (mbr->ymin > ymax) || (mbr->xmax < xmin) || (mbr->ymax < ymin)); } int intersects(const MBR *mbr) { return !disjoint(mbr); } int touches(const MBR *mbr) { /* The following should be safe, even if we compare doubles */ return ((mbr->xmin == xmax || mbr->xmax == xmin) && ((mbr->ymin >= ymin && mbr->ymin <= ymax) || (mbr->ymax >= ymin && mbr->ymax <= ymax))) || ((mbr->ymin == ymax || mbr->ymax == ymin) && ((mbr->xmin >= xmin && mbr->xmin <= xmax) || (mbr->xmax >= xmin && mbr->xmax <= xmax))); } int within(const MBR *mbr); int contains(const MBR *mbr) { /* The following should be safe, even if we compare doubles */ return ((mbr->xmin >= xmin) && (mbr->ymin >= ymin) && (mbr->xmax <= xmax) && (mbr->ymax <= ymax)); } bool inner_point(double x, double y) const { /* The following should be safe, even if we compare doubles */ return (xmin<x) && (xmax>x) && (ymin<y) && (ymax>y); } /** The dimension maps to an integer as: - Polygon -> 2 - Horizontal or vertical line -> 1 - Point -> 0 - Invalid MBR -> -1 */ int dimension() const { int d= 0; if (xmin > xmax) return -1; else if (xmin < xmax) d++; if (ymin > ymax) return -1; else if (ymin < ymax) d++; return d; } int overlaps(const MBR *mbr) { /* overlaps() requires that some point inside *this is also inside *mbr, and that both geometries and their intersection are of the same dimension. */ int d = dimension(); if (d != mbr->dimension() || d <= 0 || contains(mbr) || within(mbr)) return 0; MBR intersection(MY_MAX(xmin, mbr->xmin), MY_MAX(ymin, mbr->ymin), MY_MIN(xmax, mbr->xmax), MY_MIN(ymax, mbr->ymax)); return (d == intersection.dimension()); } int valid() const { return xmin <= xmax && ymin <= ymax; } }; /***************************** Geometry *******************************/ struct Geometry_buffer; class Geometry { public: Geometry() = default; /* Remove gcc warning */ virtual ~Geometry() = default; /* Remove gcc warning */ static void *operator new(size_t size, void *buffer) { return buffer; } static void operator delete(void *ptr, void *buffer) {} static void operator delete(void *buffer) {} enum wkbType { wkb_point= 1, wkb_linestring= 2, wkb_polygon= 3, wkb_multipoint= 4, wkb_multilinestring= 5, wkb_multipolygon= 6, wkb_geometrycollection= 7, wkb_last=7 }; enum wkbByteOrder { wkb_xdr= 0, /* Big Endian */ wkb_ndr= 1 /* Little Endian */ }; enum geojson_errors { GEOJ_INCORRECT_GEOJSON= 1, GEOJ_TOO_FEW_POINTS= 2, GEOJ_POLYGON_NOT_CLOSED= 3, GEOJ_DIMENSION_NOT_SUPPORTED= 4, GEOJ_EMPTY_COORDINATES= 5, }; /** Callback which creates Geometry objects on top of a given placement. */ typedef Geometry *(*create_geom_t)(char *); class Class_info { public: LEX_STRING m_name; LEX_STRING m_geojson_name; int m_type_id; create_geom_t m_create_func; Class_info(const char *name, const char *gejson_name, int type_id, create_geom_t create_func); }; virtual const Class_info *get_class_info() const=0; virtual uint32 get_data_size() const=0; virtual bool init_from_wkt(Gis_read_stream *trs, String *wkb)=0; /* returns the length of the wkb that was read */ virtual uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res)=0; virtual uint init_from_opresult(String *bin, const char *opres, uint res_len) { return init_from_wkb(opres + 4, UINT_MAX32, wkb_ndr, bin) + 4; } virtual bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb) { return true; } virtual bool get_data_as_wkt(String *txt, const char **end) const=0; virtual bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const=0; virtual bool get_mbr(MBR *mbr, const char **end) const=0; virtual bool dimension(uint32 *dim, const char **end) const=0; virtual int get_x(double *x) const { return -1; } virtual int get_y(double *y) const { return -1; } virtual int geom_length(double *len, const char **end) const { return -1; } virtual int area(double *ar, const char **end) const { return -1;} virtual int is_closed(int *closed) const { return -1; } virtual int num_interior_ring(uint32 *n_int_rings) const { return -1; } virtual int num_points(uint32 *n_points) const { return -1; } virtual int num_geometries(uint32 *num) const { return -1; } virtual int start_point(String *point) const { return -1; } virtual int end_point(String *point) const { return -1; } virtual int exterior_ring(String *ring) const { return -1; } virtual int centroid(String *point) const { return -1; } virtual int point_n(uint32 num, String *result) const { return -1; } virtual int interior_ring_n(uint32 num, String *result) const { return -1; } virtual int geometry_n(uint32 num, String *result) const { return -1; } virtual int store_shapes(Gcalc_shape_transporter *trn) const=0; public: static Geometry *create_by_typeid(Geometry_buffer *buffer, int type_id); static Geometry *construct(Geometry_buffer *buffer, const char *data, uint32 data_len); static Geometry *create_from_wkt(Geometry_buffer *buffer, Gis_read_stream *trs, String *wkt, bool init_stream=1); static Geometry *create_from_wkb(Geometry_buffer *buffer, const char *wkb, uint32 len, String *res); static Geometry *create_from_json(Geometry_buffer *buffer, json_engine_t *je, bool er_on_3D, String *res); static Geometry *create_from_opresult(Geometry_buffer *g_buf, String *res, Gcalc_result_receiver &rr); static uint get_key_image_itMBR(LEX_CSTRING &src, uchar *buff, uint length); int as_wkt(String *wkt, const char **end); int as_json(String *wkt, uint max_dec_digits, const char **end); int bbox_as_json(String *wkt); inline void set_data_ptr(const char *data, uint32 data_len) { m_data= data; m_data_end= data + data_len; } inline void shift_wkb_header() { m_data+= WKB_HEADER_SIZE; } const char *get_data_ptr() const { return m_data; } bool envelope(String *result) const; static Class_info *ci_collection[wkb_last+1]; static bool create_point(String *result, double x, double y); protected: static Class_info *find_class(int type_id) { return ((type_id < wkb_point) || (type_id > wkb_last)) ? NULL : ci_collection[type_id]; } static Class_info *find_class(const char *name, size_t len); const char *append_points(String *txt, uint32 n_points, const char *data, uint32 offset) const; bool create_point(String *result, const char *data) const; const char *get_mbr_for_points(MBR *mbr, const char *data, uint offset) const; public: /** Check if there're enough data remaining as requested @arg cur_data pointer to the position in the binary form @arg data_amount number of points expected @return true if not enough data */ inline bool no_data(const char *cur_data, size_t data_amount) const { return (cur_data + data_amount > m_data_end); } /** Check if there're enough points remaining as requested Need to perform the calculation in logical units, since multiplication can overflow the size data type. @arg data pointer to the beginning of the points array @arg expected_points number of points expected @arg extra_point_space extra space for each point element in the array @return true if there are not enough points */ inline bool not_enough_points(const char *data, uint32 expected_points, uint32 extra_point_space = 0) const { return (m_data_end < data || (expected_points > ((m_data_end - data) / (POINT_DATA_SIZE + extra_point_space)))); } protected: const char *m_data; const char *m_data_end; }; /***************************** Point *******************************/ class Gis_point: public Geometry { public: Gis_point() = default; /* Remove gcc warning */ virtual ~Gis_point() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int get_xy(double *x, double *y) const { const char *data= m_data; if (no_data(data, SIZEOF_STORED_DOUBLE * 2)) return 1; float8get(*x, data); float8get(*y, data + SIZEOF_STORED_DOUBLE); return 0; } int get_xy_radian(double *x, double *y) const { if (!get_xy(x, y)) { *x= (*x)*M_PI/180; *y= (*y)*M_PI/180; return 0; } return 1; } int get_x(double *x) const { if (no_data(m_data, SIZEOF_STORED_DOUBLE)) return 1; float8get(*x, m_data); return 0; } int get_y(double *y) const { const char *data= m_data; if (no_data(data, SIZEOF_STORED_DOUBLE * 2)) return 1; float8get(*y, data + SIZEOF_STORED_DOUBLE); return 0; } int geom_length(double *len, const char **end) const; int area(double *ar, const char **end) const; bool dimension(uint32 *dim, const char **end) const { *dim= 0; *end= 0; /* No default end */ return 0; } int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; double calculate_haversine(const Geometry *g, const double sphere_radius, int *error); int spherical_distance_multipoints(Geometry *g, const double r, double *result, int *error); }; /***************************** LineString *******************************/ class Gis_line_string: public Geometry { public: Gis_line_string() = default; /* Remove gcc warning */ virtual ~Gis_line_string() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int geom_length(double *len, const char **end) const; int area(double *ar, const char **end) const; int is_closed(int *closed) const; int num_points(uint32 *n_points) const; int start_point(String *point) const; int end_point(String *point) const; int point_n(uint32 n, String *result) const; bool dimension(uint32 *dim, const char **end) const { *dim= 1; *end= 0; /* No default end */ return 0; } int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; }; /***************************** Polygon *******************************/ class Gis_polygon: public Geometry { public: Gis_polygon() = default; /* Remove gcc warning */ virtual ~Gis_polygon() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); uint init_from_opresult(String *bin, const char *opres, uint res_len); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int area(double *ar, const char **end) const; int exterior_ring(String *result) const; int num_interior_ring(uint32 *n_int_rings) const; int interior_ring_n(uint32 num, String *result) const; int centroid_xy(double *x, double *y) const; int centroid(String *result) const; bool dimension(uint32 *dim, const char **end) const { *dim= 2; *end= 0; /* No default end */ return 0; } int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; }; /***************************** MultiPoint *******************************/ class Gis_multi_point: public Geometry { // Maximum number of points in MultiPoint that can fit into String static const uint32 max_n_points= (uint32) (UINT_MAX32 - WKB_HEADER_SIZE - 4 /* n_points */) / (WKB_HEADER_SIZE + POINT_DATA_SIZE); public: Gis_multi_point() = default; /* Remove gcc warning */ virtual ~Gis_multi_point() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); uint init_from_opresult(String *bin, const char *opres, uint res_len); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int num_geometries(uint32 *num) const; int geometry_n(uint32 num, String *result) const; bool dimension(uint32 *dim, const char **end) const { *dim= 0; *end= 0; /* No default end */ return 0; } int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; int spherical_distance_multipoints(Geometry *g, const double r, double *res, int *error); }; /***************************** MultiLineString *******************************/ class Gis_multi_line_string: public Geometry { public: Gis_multi_line_string() = default; /* Remove gcc warning */ virtual ~Gis_multi_line_string() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); uint init_from_opresult(String *bin, const char *opres, uint res_len); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int num_geometries(uint32 *num) const; int geometry_n(uint32 num, String *result) const; int geom_length(double *len, const char **end) const; int is_closed(int *closed) const; bool dimension(uint32 *dim, const char **end) const { *dim= 1; *end= 0; /* No default end */ return 0; } int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; }; /***************************** MultiPolygon *******************************/ class Gis_multi_polygon: public Geometry { public: Gis_multi_polygon() = default; /* Remove gcc warning */ virtual ~Gis_multi_polygon() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int num_geometries(uint32 *num) const; int geometry_n(uint32 num, String *result) const; int area(double *ar, const char **end) const; int centroid(String *result) const; bool dimension(uint32 *dim, const char **end) const { *dim= 2; *end= 0; /* No default end */ return 0; } int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; uint init_from_opresult(String *bin, const char *opres, uint res_len); }; /*********************** GeometryCollection *******************************/ class Gis_geometry_collection: public Geometry { public: Gis_geometry_collection() = default; /* Remove gcc warning */ virtual ~Gis_geometry_collection() = default; /* Remove gcc warning */ uint32 get_data_size() const; bool init_from_wkt(Gis_read_stream *trs, String *wkb); uint init_from_wkb(const char *wkb, uint len, wkbByteOrder bo, String *res); uint init_from_opresult(String *bin, const char *opres, uint res_len); bool init_from_json(json_engine_t *je, bool er_on_3D, String *wkb); bool get_data_as_wkt(String *txt, const char **end) const; bool get_data_as_json(String *txt, uint max_dec_digits, const char **end) const; bool get_mbr(MBR *mbr, const char **end) const; int area(double *ar, const char **end) const; int geom_length(double *len, const char **end) const; int num_geometries(uint32 *num) const; int geometry_n(uint32 num, String *result) const; bool dimension(uint32 *dim, const char **end) const; int store_shapes(Gcalc_shape_transporter *trn) const; const Class_info *get_class_info() const; }; struct Geometry_buffer : public my_aligned_storage<sizeof(Gis_point), MY_ALIGNOF(Gis_point)> {}; #endif /*HAVE_SPATIAL*/ #endif