From 9f60474975e3cbd543e437be78b6e8f194f3fb38 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:21:35 +1000 Subject: [PATCH 01/17] Add replace_numberic_round to mysqltest This rounds the numbers in the output where there is a decimal to the number of decimal places specified. Numbers > 1e10 or < -1e10 are expressed as components. Trailing 0s aren't added to existing numbers e.g. --replace_numberic_round 5 10 -> 10 10. -> 10. t1.col -> t1.col t1elephant -> t1elephant 0x0FE11DE -> 0x0FE11DE 10.12345 -> 10.12345 10.123456 -> 10.12346 10.1234567 -> 10.12346 10.123451 -> 10.12345 10.00000 -> 10 10.00100 -> 10.001 10.000004 -> 10 10.000005 -> 10.00001 --- client/mysqltest.cc | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 130 insertions(+), 1 deletion(-) diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 628912e..c1467c7 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -76,6 +76,7 @@ using std::max; #define MAX_EMBEDDED_SERVER_ARGS 64 #define MAX_DELIMITER_LENGTH 16 #define DEFAULT_MAX_CONN 128 +#define REPLACE_ROUND_MAX 16 /* Flags controlling send and reap */ #define QUERY_SEND_FLAG 1 @@ -392,7 +393,7 @@ enum enum_commands { Q_DISABLE_RECONNECT, Q_ENABLE_RECONNECT, Q_IF, Q_DISABLE_PARSING, Q_ENABLE_PARSING, - Q_REPLACE_REGEX, Q_REMOVE_FILE, Q_FILE_EXIST, + Q_REPLACE_REGEX, Q_REPLACE_NUMBERIC_ROUND, Q_REMOVE_FILE, Q_FILE_EXIST, Q_WRITE_FILE, Q_COPY_FILE, Q_PERL, Q_DIE, Q_EXIT, Q_SKIP, Q_CHMOD_FILE, Q_APPEND_FILE, Q_CAT_FILE, Q_DIFF_FILES, Q_SEND_QUIT, Q_CHANGE_USER, Q_MKDIR, Q_RMDIR, @@ -478,6 +479,7 @@ const char *command_names[]= "disable_parsing", "enable_parsing", "replace_regex", + "replace_numberic_round", "remove_file", "file_exists", "write_file", @@ -657,6 +659,13 @@ void free_replace(); void do_get_replace_regex(struct st_command *command); void free_replace_regex(); +/* For replace numberic round */ +static int glob_replace_numberic_round= -1; +void do_get_replace_numberic_round(struct st_command *command); +void free_replace_numberic_round(); +void replace_numberic_round_append(int round, DYNAMIC_STRING* ds, + const char *from, size_t len); + /* Used by sleep */ void check_eol_junk_line(const char *eol); @@ -667,6 +676,7 @@ void free_all_replace(){ free_replace(); free_replace_regex(); free_replace_column(); + free_replace_numberic_round(); } @@ -2579,6 +2589,9 @@ void var_query_set(VAR *var, const char *query, const char** query_end) if (glob_replace) replace_strings_append(glob_replace, &result, val, len); + else if (glob_replace_numberic_round >= 0) + replace_numberic_round_append(glob_replace_numberic_round, &result, + val, len); else dynstr_append_mem(&result, val, len); } @@ -9451,6 +9464,9 @@ int main(int argc, char **argv) case Q_REPLACE_COLUMN: do_get_replace_column(command); break; + case Q_REPLACE_NUMBERIC_ROUND: + do_get_replace_numberic_round(command); + break; case Q_SAVE_MASTER_POS: do_save_master_pos(); break; case Q_SYNC_WITH_MASTER: do_sync_with_master(command); break; case Q_SYNC_SLAVE_WITH_MASTER: @@ -9801,6 +9817,117 @@ void free_replace_column() max_replace_column= 0; } +/* Functions to round numberic results */ + +void do_get_replace_numberic_round(struct st_command *command) +{ + DYNAMIC_STRING ds_round; + long int v= 0; + const struct command_arg numeric_arg = + { "precision", ARG_STRING, TRUE, &ds_round, + "Number of decimal precision"}; + DBUG_ENTER("get_replace_numberic_round"); + + check_command_args(command, command->first_argument, + &numeric_arg, + sizeof(numeric_arg)/sizeof(struct command_arg), + ' '); + + /* Parse what mode to set */ + if (ds_round.length == 0 || + str2int(ds_round.str, 10, 0, REPLACE_ROUND_MAX, &v) == NullS) + die("A number between 0 and %d is required for the precision in replace_numberic_round", REPLACE_ROUND_MAX); + glob_replace_numberic_round= (int) v; + DBUG_VOID_RETURN; +} + + +void free_replace_numberic_round() +{ + glob_replace_numberic_round= -1; +} + +void replace_numberic_round_append(int round, DYNAMIC_STRING* result, + const char *from, size_t len) +{ + size_t s, s1; + int r; + double val; + char *end; + const char *fmt; + char buf[40]; + while (len > 0) + { + s= strcspn(from, "0123456789"); + if (s > 0) + { + dynstr_append_mem(result, from, s); + from+= s; + len-= s; + } + s= strspn(from, "0123456789"); + r= round; + switch (*(from+s)) + { + /* double/float */ + case '.': + s1= strspn(from+s+1, "0123456789"); + /* restrict rounding to less than the + the existing precision to avoid 1.2 being replaced + to 1.2000000 */ + if (s1 < (size_t) r) + r= s1; + /* fallthough */ + case 'e': + case 'E': + /* don't escape t1.col1 or t1elephant.col1 */ + if (isdigit(*(from+s+1))) + { + val= strtod(from, &end); + if (end != NULL) + { + fmt= (val < 1e10 && val > -1e10) ? "%.*f" : "%.*e"; + s= snprintf(buf, sizeof(buf), fmt, r, val); + if (val < 1e10 && val > -1e10 && r>0) + { + /* 2.0000000 need to be represented as 2 for consistency + 2.0010000 also becomes 2.001 */ + while (buf[s-1] == '0') + s--; + /* don't leave 100. trailing */ + if (buf[s-1]=='.') + s--; + } + dynstr_append_mem(result, buf, s); + len-= (end - from); + from= end; + break; + } + } + /* This is because strtod didn't convert or there wasn't digits after + [.eE] so output without changing */ + dynstr_append_mem(result, from, s); + from+= s; + len-= s; + break; + + /* hex maybe */ + case 'x': + if (s == 1 && *from == '0') + { + /* hex - extend until end of hex string */ + s+= strspn(from+2, "0123456789ABCDEF"); + } + /* fallthough */ + /* int */ + default: + dynstr_append_mem(result, from, s); + from+= s; + len-= s; + break; + } + } +} /****************************************************************************/ /* @@ -11030,6 +11157,8 @@ void replace_dynstr_append_mem(DYNAMIC_STRING *ds, /* Normal replace */ replace_strings_append(glob_replace, ds, val, len); } + else if (glob_replace_numberic_round >= 0) + replace_numberic_round_append(glob_replace_numberic_round, ds, val, len); else dynstr_append_mem(ds, val, len); } From e493b8d29a2151031e75cec551e25bdc77d0152a Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:52:01 +1000 Subject: [PATCH 02/17] Whitespace correction for mysqltest.cc --- client/mysqltest.cc | 406 ++++++++++++++++++++++++++-------------------------- 1 file changed, 203 insertions(+), 203 deletions(-) diff --git a/client/mysqltest.cc b/client/mysqltest.cc index c1467c7..9168f08 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -486,7 +486,7 @@ const char *command_names[]= "copy_file", "perl", "die", - + /* Don't execute any more commands, compare result */ "exit", "skip", @@ -783,11 +783,11 @@ class LogFile { if ((bytes= fread(buf, 1, sizeof(buf), m_file)) <= 0) { - // ferror=0 will happen here if no queries executed yet - if (ferror(m_file)) - fprintf(stderr, - "Failed to read from '%s', errno: %d, feof:%d, ferror:%d ", - m_file_name, errno, feof(m_file), ferror(m_file)); + // ferror=0 will happen here if no queries executed yet + if (ferror(m_file)) + fprintf(stderr, + "Failed to read from '%s', errno: %d, feof:%d, ferror:%d ", + m_file_name, errno, feof(m_file), ferror(m_file)); DBUG_VOID_RETURN; } @@ -1025,27 +1025,27 @@ void do_eval(DYNAMIC_STRING *query_eval, const char *query, case '$': if (escaped) { - escaped= 0; - dynstr_append_mem(query_eval, p, 1); + escaped= 0; + dynstr_append_mem(query_eval, p, 1); } else { - if (!(v= var_get(p, &p, 0, 0))) - die("Bad variable in eval"); - dynstr_append_mem(query_eval, v->str_val, v->str_val_len); + if (!(v= var_get(p, &p, 0, 0))) + die("Bad variable in eval"); + dynstr_append_mem(query_eval, v->str_val, v->str_val_len); } break; case '\': next_c= *(p+1); if (escaped) { - escaped= 0; - dynstr_append_mem(query_eval, p, 1); + escaped= 0; + dynstr_append_mem(query_eval, p, 1); } else if (next_c == '\' || next_c == '$' || next_c == '"') { /* Set escaped only if next char is , " or $ */ - escaped= 1; + escaped= 1; if (pass_through_escape_chars) { @@ -1054,7 +1054,7 @@ void do_eval(DYNAMIC_STRING *query_eval, const char *query, } } else - dynstr_append_mem(query_eval, p, 1); + dynstr_append_mem(query_eval, p, 1); break; default: escaped= 0; @@ -1251,8 +1251,8 @@ void check_command_args(struct st_command *command, /* If start of arg is ' ` or " search to matching quote end instead */ if (*ptr && strchr ("'`"", *ptr)) { - delimiter= *ptr; - start= ++ptr; + delimiter= *ptr; + start= ++ptr; } /* Find end of arg, terminated by "delimiter" */ while (*ptr && *ptr != delimiter) @@ -1270,7 +1270,7 @@ void check_command_args(struct st_command *command, /* Find real end of arg, terminated by "delimiter_arg" */ /* This will do nothing if arg was not closed by quotes */ while (*ptr && *ptr != delimiter_arg) - ptr++; + ptr++; command->last_argument= (char*)ptr; @@ -1528,7 +1528,7 @@ void die(const char *fmt, ...) fprintf(stderr, "In included "); print_file_stack(); } - + if (start_lineno > 0) fprintf(stderr, "At line %u: ", start_lineno); if (fmt) @@ -1876,21 +1876,21 @@ void show_diff(DYNAMIC_STRING* ds, "2>&1", NULL) > 1) /* Most "diff" tools return >1 if error */ { - dynstr_set(&ds_tmp, ""); - - /* Fallback to simple diff with "diff" */ - if (run_tool(diff_name, - &ds_tmp, /* Get output from diff in ds_tmp */ - filename1, - filename2, - "2>&1", - NULL) > 1) /* Most "diff" tools return >1 if error */ - { - diff_name= 0; - } + dynstr_set(&ds_tmp, ""); + + /* Fallback to simple diff with "diff" */ + if (run_tool(diff_name, + &ds_tmp, /* Get output from diff in ds_tmp */ + filename1, + filename2, + "2>&1", + NULL) > 1) /* Most "diff" tools return >1 if error */ + { + diff_name= 0; + } } } - } + } if (! diff_name) { @@ -1898,7 +1898,7 @@ void show_diff(DYNAMIC_STRING* ds, Fallback to dump both files to result file and inform about installing "diff" */ - dynstr_append(&ds_tmp, " "); + dynstr_append(&ds_tmp, " "); dynstr_append(&ds_tmp, " " "The two files differ but it was not possible to execute 'diff' in " @@ -1932,7 +1932,7 @@ void show_diff(DYNAMIC_STRING* ds, /* Print diff directly to stdout */ fprintf(stderr, "%s ", ds_tmp.str); } - + dynstr_free(&ds_tmp); } @@ -2236,13 +2236,13 @@ void var_check_int(VAR *v) { char *endptr; char *str= v->str_val; - + /* Initially assume not a number */ v->int_val= 0; v->is_int= false; v->int_dirty= false; if (!str) return; - + v->int_val = (int) strtol(str, &endptr, 10); /* It is an int if strtol consumed something up to end/space/tab */ if (endptr > str && (!*endptr || *endptr == ' ' || *endptr == ' ')) @@ -2328,7 +2328,7 @@ VAR* var_get(const char *var_name, const char **var_name_end, my_bool raw, if (var_name == save_var_name) { if (ignore_not_existing) - DBUG_RETURN(0); + DBUG_RETURN(0); die("Empty variable"); } length= (uint) (var_name - save_var_name); @@ -2463,7 +2463,7 @@ void set_once_property(enum_prop prop, my_bool val) void set_property(st_command *command, enum_prop prop, my_bool val) { char* p= command->first_argument; - if (p && !strcmp (p, "ONCE")) + if (p && !strcmp (p, "ONCE")) { command->last_argument= p + 4; set_once_property(prop, val); @@ -2479,10 +2479,10 @@ void revert_properties() { if (! once_property) return; - for (int i= 0; i < (int) P_MAX; i++) + for (int i= 0; i < (int) P_MAX; i++) { property &pr= prop_list[i]; - if (pr.set) + if (pr.set) { *pr.var= pr.old; pr.set= 0; @@ -2552,7 +2552,7 @@ void var_query_set(VAR *var, const char *query, const char** query_end) eval_expr(var, "", 0); DBUG_VOID_RETURN; } - + if (!(res= mysql_store_result(mysql))) die("Query '%s' didn't return a result set", ds_query.str); dynstr_free(&ds_query); @@ -2574,26 +2574,26 @@ void var_query_set(VAR *var, const char *query, const char** query_end) if (row[i]) { /* Add column to tab separated string */ - char *val= row[i]; - size_t len= lengths[i]; - - if (glob_replace_regex) - { - /* Regex replace */ - if (!multi_reg_replace(glob_replace_regex, (char*)val)) - { - val= glob_replace_regex->buf; - len= strlen(val); - } - } - - if (glob_replace) - replace_strings_append(glob_replace, &result, val, len); - else if (glob_replace_numberic_round >= 0) - replace_numberic_round_append(glob_replace_numberic_round, &result, + char *val= row[i]; + size_t len= lengths[i]; + + if (glob_replace_regex) + { + /* Regex replace */ + if (!multi_reg_replace(glob_replace_regex, (char*)val)) + { + val= glob_replace_regex->buf; + len= strlen(val); + } + } + + if (glob_replace) + replace_strings_append(glob_replace, &result, val, len); + else if (glob_replace_numberic_round >= 0) + replace_numberic_round_append(glob_replace_numberic_round, &result, val, len); - else - dynstr_append_mem(&result, val, len); + else + dynstr_append_mem(&result, val, len); } dynstr_append_mem(&result, " ", 1); } @@ -2688,9 +2688,9 @@ uint get_errcode_from_name(char *, char *); var_set_convert_error(struct st_command *command,VAR *var) DESCRIPTION - let $var=convert_error(ER_UNKNOWN_ERROR); - let $var=convert_error(1234); - + let $var=convert_error(ER_UNKNOWN_ERROR); + let $var=convert_error(1234); + The variable var will be populated with error number if the argument is string. The variable var will be populated with error string if the argument is number. @@ -2700,12 +2700,12 @@ void var_set_convert_error(struct st_command *command,VAR *var) char *last; char *first=command->query; const char *err_name; - + DBUG_ENTER("var_set_convert_error"); DBUG_PRINT("info", ("query: %s", command->query)); - /* the command->query contains the statement convert_error(1234) */ + /* the command->query contains the statement convert_error(1234) */ first=strchr(command->query,'(') + 1; last=strchr(command->query,')'); @@ -2715,10 +2715,10 @@ void var_set_convert_error(struct st_command *command,VAR *var) eval_expr(var,"0",0); DBUG_VOID_RETURN; } - + /* if the string is an error string , it starts with 'E' as is the norm*/ - if ( *first == 'E') + if ( *first == 'E') { char str[100]; uint num; @@ -2908,7 +2908,7 @@ void eval_expr(VAR *v, const char *p, const char **p_end, /* Skip to treat as pure string if no evaluation */ if (! do_eval) goto NO_EVAL; - + if (*p == '$') { VAR *vp; @@ -3242,7 +3242,7 @@ void do_exec(struct st_command *command) /* exec command is interpreted externally and will not take newlines */ while(replace(&ds_cmd, " ", 1, " ", 1) == 0) ; - + DBUG_PRINT("info", ("Executing '%s' as '%s'", command->first_argument, ds_cmd.str)); @@ -3395,7 +3395,7 @@ void set_wild_chars (my_bool set) { static char old_many= 0, old_one, old_prefix; - if (set) + if (set) { if (wild_many == '*') return; // No need old_many= wild_many; @@ -3405,7 +3405,7 @@ void set_wild_chars (my_bool set) wild_one= '?'; wild_prefix= 0; } - else + else { if (! old_many) return; // Was not set wild_many= old_many; @@ -3478,7 +3478,7 @@ void do_remove_files_wildcard(struct st_command *command) static DYNAMIC_STRING ds_wild; static DYNAMIC_STRING ds_file_to_remove; char dirname[FN_REFLEN]; - + const struct command_arg rm_args[] = { { "directory", ARG_STRING, TRUE, &ds_directory, "Directory containing files to delete" }, @@ -3502,10 +3502,10 @@ void do_remove_files_wildcard(struct st_command *command) dir_separator[0]= FN_LIBCHAR; dir_separator[1]= 0; dynstr_append(&ds_file_to_remove, dir_separator); - + /* Set default wild chars for wild_compare, is changed in embedded mode */ set_wild_chars(1); - + size_t length; /* Storing the length of the path to the file, so it can be reused */ length= ds_file_to_remove.length; @@ -3660,7 +3660,7 @@ void do_chmod_file(struct st_command *command) static DYNAMIC_STRING ds_mode; static DYNAMIC_STRING ds_file; const struct command_arg chmod_file_args[] = { - { "mode", ARG_STRING, TRUE, &ds_mode, "Mode of file(octal) ex. 0660"}, + { "mode", ARG_STRING, TRUE, &ds_mode, "Mode of file(octal) ex. 0660"}, { "filename", ARG_STRING, TRUE, &ds_file, "Filename of file to modify" } }; DBUG_ENTER("do_chmod_file"); @@ -3844,7 +3844,7 @@ static void do_list_files(struct st_command *command) }; DBUG_ENTER("do_list_files"); command->used_replace= 1; - + check_command_args(command, command->first_argument, list_files_args, sizeof(list_files_args)/sizeof(struct command_arg), ' '); @@ -5209,7 +5209,7 @@ const char *get_errname_from_code (uint error_code) } /* Apparently, errors without known names may occur */ DBUG_RETURN(""); -} +} void do_get_errcodes(struct st_command *command) { @@ -5538,7 +5538,7 @@ void do_close_connection(struct st_command *command) mysql_close(con->util_mysql); con->util_mysql= 0; con->pending= FALSE; - + my_free(con->name); /* @@ -5605,7 +5605,7 @@ void safe_connect(MYSQL* mysql, const char *name, const char *host, DBUG_ENTER("safe_connect"); verbose_msg("Connecting to server %s:%d (socket %s) as '%s'" - ", connection '%s', attempt %d ...", + ", connection '%s', attempt %d ...", host, port, sock, user, name, failed_attempts); mysql_options(mysql, MYSQL_OPT_CONNECT_ATTR_RESET, 0); @@ -5713,7 +5713,7 @@ int connect_n_handle_errors(struct st_command *command, replace_dynstr_append(ds, command->query); dynstr_append_mem(ds, "; ", 2); } - + mysql_options(con, MYSQL_OPT_CONNECT_ATTR_RESET, 0); mysql_options4(con, MYSQL_OPT_CONNECT_ATTR_ADD, "program_name", "mysqltest"); mysql_options(con, MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS, @@ -5894,7 +5894,7 @@ void do_connect(struct st_command *command) else if (!strncmp(con_options, "CLEARTEXT", 9)) con_cleartext_enable= 1; else - die("Illegal option to connect: %.*s", + die("Illegal option to connect: %.*s", (int) (end - con_options), con_options); /* Process next option */ con_options= end; @@ -5902,7 +5902,7 @@ void do_connect(struct st_command *command) if (find_connection_by_name(ds_connection_name.str)) die("Connection %s already exists", ds_connection_name.str); - + if (next_con != connections_end) con_slot= next_con; else @@ -6001,7 +6001,7 @@ void do_connect(struct st_command *command) mysql_options(&con_slot->mysql, MYSQL_SERVER_PUBLIC_KEY, opt_server_public_key); #endif - + if (con_cleartext_enable) mysql_options(&con_slot->mysql, MYSQL_ENABLE_CLEARTEXT_PLUGIN, (char*) &con_cleartext_enable); @@ -6063,7 +6063,7 @@ int do_done(struct st_command *command) } else { - if (*cur_block->delim) + if (*cur_block->delim) { /* Restore "old" delimiter after false if block */ strcpy (delimiter, cur_block->delim); @@ -6093,7 +6093,7 @@ enum block_op find_operand(const char *start) { char first= *start; char next= *(start+1); - + if (first == '=' && next == '=') return EQ_OP; if (first == '!' && next == '=') @@ -6106,7 +6106,7 @@ enum block_op find_operand(const char *start) return LE_OP; if (first == '<') return LT_OP; - + return ILLEG_OP; } @@ -6179,7 +6179,7 @@ void do_block(enum block_cmd cmd, struct st_command* command) while (my_isspace(charset_info, *expr_start)) expr_start++; - + /* Check for ! */ if (*expr_start == '!') { @@ -6221,7 +6221,7 @@ void do_block(enum block_cmd cmd, struct st_command* command) /* We could silently allow this, but may be confusing */ if (not_expr) die("Negation and comparison should not be combined, please rewrite"); - + /* Skip the 1 or 2 chars of the operand, then white space */ if (operand == LT_OP || operand == GT_OP) { @@ -6264,7 +6264,7 @@ void do_block(enum block_cmd cmd, struct st_command* command) else v.int_val= !strcmp (v.str_val, v2.str_val); break; - + case NE_OP: if (v.is_int) v.int_val= ! (v2.is_int && v2.int_val == v.int_val); @@ -6314,11 +6314,11 @@ void do_block(enum block_cmd cmd, struct st_command* command) cur_block->ok= (*p && *p != '0') ? TRUE : FALSE; } - + if (not_expr) cur_block->ok = !cur_block->ok; - if (cur_block->ok) + if (cur_block->ok) { cur_block->delim[0]= ''; } else @@ -6326,7 +6326,7 @@ void do_block(enum block_cmd cmd, struct st_command* command) /* Remember "old" delimiter if entering a false if block */ strcpy (cur_block->delim, delimiter); } - + DBUG_PRINT("info", ("OK: %d", cur_block->ok)); var_free(&v); @@ -6435,7 +6435,7 @@ int read_line(char *buf, int size) char *p= buf, *buf_end= buf + size - 1; int skip_char= 0; my_bool have_slash= FALSE; - + enum {R_NORMAL, R_Q, R_SLASH_IN_Q, R_COMMENT, R_LINE_START} state= R_LINE_START; DBUG_ENTER("read_line"); @@ -6451,7 +6451,7 @@ int read_line(char *buf, int size) found_eof: if (cur_file->file != stdin) { - fclose(cur_file->file); + fclose(cur_file->file); cur_file->file= 0; } my_free(cur_file->file_name); @@ -6487,10 +6487,10 @@ int read_line(char *buf, int size) case R_NORMAL: if (end_of_query(c)) { - *p= 0; + *p= 0; DBUG_PRINT("exit", ("Found delimiter '%s' at line %d", delimiter, cur_file->lineno)); - DBUG_RETURN(0); + DBUG_RETURN(0); } else if ((c == '{' && (!my_strnncoll_simple(charset_info, (const uchar*) "while", 5, @@ -6500,18 +6500,18 @@ int read_line(char *buf, int size) { /* Only if and while commands can be terminated by { */ *p++= c; - *p= 0; + *p= 0; DBUG_PRINT("exit", ("Found '{' indicating start of block at line %d", cur_file->lineno)); - DBUG_RETURN(0); + DBUG_RETURN(0); } else if (c == '\'' || c == '"' || c == '`') { - if (! have_slash) + if (! have_slash) { - last_quote= c; - state= R_Q; - } + last_quote= c; + state= R_Q; + } } have_slash= (c == '\'); break; @@ -6520,10 +6520,10 @@ int read_line(char *buf, int size) if (c == ' ') { /* Comments are terminated by newline */ - *p= 0; + *p= 0; DBUG_PRINT("exit", ("Found newline in comment at line: %d", cur_file->lineno)); - DBUG_RETURN(0); + DBUG_RETURN(0); } break; @@ -6531,11 +6531,11 @@ int read_line(char *buf, int size) if (c == '#' || c == '-') { /* A # or - in the first position of the line - this is a comment */ - state = R_COMMENT; + state = R_COMMENT; } else if (my_isspace(charset_info, c)) { - if (c == ' ') + if (c == ' ') { if (last_char == ' ') { @@ -6547,44 +6547,44 @@ int read_line(char *buf, int size) } /* Query hasn't started yet */ - start_lineno= cur_file->lineno; + start_lineno= cur_file->lineno; DBUG_PRINT("info", ("Query hasn't started yet, start_lineno: %d", start_lineno)); } /* Skip all space at begining of line */ - skip_char= 1; + skip_char= 1; } else if (end_of_query(c)) { - *p= 0; + *p= 0; DBUG_PRINT("exit", ("Found delimiter '%s' at line: %d", delimiter, cur_file->lineno)); - DBUG_RETURN(0); + DBUG_RETURN(0); } else if (c == '}') { /* A "}" need to be by itself in the begining of a line to terminate */ *p++= c; - *p= 0; + *p= 0; DBUG_PRINT("exit", ("Found '}' in begining of a line at line: %d", cur_file->lineno)); - DBUG_RETURN(0); + DBUG_RETURN(0); } else if (c == '\'' || c == '"' || c == '`') { last_quote= c; - state= R_Q; + state= R_Q; } else - state= R_NORMAL; + state= R_NORMAL; break; case R_Q: if (c == last_quote) - state= R_NORMAL; + state= R_NORMAL; else if (c == '\') - state= R_SLASH_IN_Q; + state= R_SLASH_IN_Q; break; case R_SLASH_IN_Q: @@ -6624,27 +6624,27 @@ int read_line(char *buf, int size) /* completed before we pass buf_end */ if ((charlen > 1) && (p + charlen) <= buf_end) { - char* mb_start = p; + char* mb_start = p; - *p++ = c; + *p++ = c; - for (uint i= 1; i < charlen; i++) - { - c= my_getc(cur_file->file); - if (feof(cur_file->file)) - goto found_eof; - *p++ = c; - } - if (! my_ismbchar(charset_info, mb_start, p)) - { - /* It was not a multiline char, push back the characters */ - /* We leave first 'c', i.e. pretend it was a normal char */ - while (p-1 > mb_start) - my_ungetc(*--p); - } + for (uint i= 1; i < charlen; i++) + { + c= my_getc(cur_file->file); + if (feof(cur_file->file)) + goto found_eof; + *p++ = c; + } + if (! my_ismbchar(charset_info, mb_start, p)) + { + /* It was not a multiline char, push back the characters */ + /* We leave first 'c', i.e. pretend it was a normal char */ + while (p-1 > mb_start) + my_ungetc(*--p); + } } else - *p++= c; + *p++= c; } } die("The input buffer is too small for this query.x " @@ -6935,7 +6935,7 @@ static struct my_option my_long_options[] = #endif "built-in default (" STRINGIFY_ARG(MYSQL_PORT) ").", &opt_port, &opt_port, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, - {"ps-protocol", OPT_PS_PROTOCOL, + {"ps-protocol", OPT_PS_PROTOCOL, "Use prepared-statement protocol for communication.", &ps_protocol, &ps_protocol, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, @@ -6956,8 +6956,8 @@ static struct my_option my_long_options[] = {"server-file", 'F', "Read embedded server arguments from file.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {"shared-memory-base-name", OPT_SHARED_MEMORY_BASE_NAME, - "Base name of shared memory.", &shared_memory_base_name, - &shared_memory_base_name, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, + "Base name of shared memory.", &shared_memory_base_name, + &shared_memory_base_name, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {"silent", 's', "Suppress all normal output. Synonym for --quiet.", &silent, &silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, @@ -7009,7 +7009,7 @@ static struct my_option my_long_options[] = {"plugin_dir", OPT_PLUGIN_DIR, "Directory for client-side plugins.", &opt_plugin_dir, &opt_plugin_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, -#if !defined(HAVE_YASSL) +#if !defined(HAVE_YASSL) {"server-public-key-path", OPT_SERVER_PUBLIC_KEY, "File path to the server public RSA key in PEM format.", &opt_server_public_key, &opt_server_public_key, 0, @@ -7779,7 +7779,7 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, if (do_send_query(cn, query, query_len)) { handle_error(command, mysql_errno(mysql), mysql_error(mysql), - mysql_sqlstate(mysql), ds); + mysql_sqlstate(mysql), ds); goto end; } } @@ -7788,7 +7788,7 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, cn->pending= TRUE; DBUG_VOID_RETURN; } - + do { /* @@ -7800,7 +7800,7 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, /* we've failed to collect the result set */ cn->pending= TRUE; handle_error(command, mysql_errno(mysql), mysql_error(mysql), - mysql_sqlstate(mysql), ds); + mysql_sqlstate(mysql), ds); goto end; } @@ -7811,7 +7811,7 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, if (mysql_field_count(mysql) && ((res= mysql_store_result(mysql)) == 0)) { handle_error(command, mysql_errno(mysql), mysql_error(mysql), - mysql_sqlstate(mysql), ds); + mysql_sqlstate(mysql), ds); goto end; } @@ -7819,16 +7819,16 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, { if (res) { - MYSQL_FIELD *fields= mysql_fetch_fields(res); - uint num_fields= mysql_num_fields(res); + MYSQL_FIELD *fields= mysql_fetch_fields(res); + uint num_fields= mysql_num_fields(res); - if (display_metadata) + if (display_metadata) append_metadata(ds, fields, num_fields); - if (!display_result_vertically) - append_table_headings(ds, fields, num_fields); + if (!display_result_vertically) + append_table_headings(ds, fields, num_fields); - append_result(ds, res); + append_result(ds, res); } /* @@ -7836,7 +7836,7 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, query to find the warnings. */ if (!disable_info) - append_info(ds, mysql_affected_rows(mysql), mysql_info(mysql)); + append_info(ds, mysql_affected_rows(mysql), mysql_info(mysql)); if (display_session_track_info) append_session_track_info(ds, mysql); @@ -7848,11 +7848,11 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, */ if (!disable_warnings && !mysql_more_results(mysql)) { - if (append_warnings(ds_warnings, mysql) || ds_warnings->length) - { - dynstr_append_mem(ds, "Warnings: ", 10); - dynstr_append_mem(ds, ds_warnings->str, ds_warnings->length); - } + if (append_warnings(ds_warnings, mysql) || ds_warnings->length) + { + dynstr_append_mem(ds, "Warnings: ", 10); + dynstr_append_mem(ds, ds_warnings->str, ds_warnings->length); + } } } @@ -7867,7 +7867,7 @@ void run_query_normal(struct st_connection *cn, struct st_command *command, { /* We got an error from mysql_next_result, maybe expected */ handle_error(command, mysql_errno(mysql), mysql_error(mysql), - mysql_sqlstate(mysql), ds); + mysql_sqlstate(mysql), ds); goto end; } DBUG_ASSERT(err == -1); /* Successful and there are no more results */ @@ -8033,7 +8033,7 @@ void handle_error(struct st_command *command, else die("query '%s' failed with wrong sqlstate %s: '%s', instead of %s...", command->query, err_sqlstate, err_error, - command->expected_errors.err[0].code.sqlstate); + command->expected_errors.err[0].code.sqlstate); } revert_properties(); @@ -8365,10 +8365,10 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags) if (!(flags & QUERY_SEND_FLAG) && !cn->pending) die ("Cannot reap on a connection without pending send"); - + init_dynamic_string(&ds_warnings, NULL, 0, 256); ds_warn= &ds_warnings; - + /* Evaluate query if this is an eval command */ @@ -8621,7 +8621,7 @@ void run_explain(struct st_connection *cn, struct st_command *command, : "EXPLAIN ", 256, 256); dynstr_append_mem(&query_str, command->query, command->end - command->query); - + command->query= query_str.str; command->query_len= query_str.length; command->end= strend(command->query); @@ -8735,7 +8735,7 @@ int match_re(my_regex_t *re, char *str) die("Statement is unterminated comment"); str= comm_end + 2; } - + int err= my_regexec(re, str, (size_t)0, NULL, 0); if (err == 0) @@ -9077,7 +9077,7 @@ int main(int argc, char **argv) MYF(MY_WME | MY_ZEROFILL)); connections_end= connections + opt_max_connections +1; next_con= connections + 1; - + var_set_int("$PS_PROTOCOL", ps_protocol); var_set_int("$SP_PROTOCOL", sp_protocol); var_set_int("$VIEW_PROTOCOL", view_protocol); @@ -9096,11 +9096,11 @@ int main(int argc, char **argv) DBUG_PRINT("info",("result_file: '%s'", result_file_name ? result_file_name : "")); - verbose_msg("Results saved in '%s'.", + verbose_msg("Results saved in '%s'.", result_file_name ? result_file_name : ""); if (mysql_server_init(embedded_server_arg_count, - embedded_server_args, - (char**) embedded_server_groups)) + embedded_server_args, + (char**) embedded_server_groups)) die("Can't initialize MySQL server"); server_initialized= 1; if (cur_file == file_stack && cur_file->file == 0) @@ -9212,12 +9212,12 @@ int main(int argc, char **argv) /* (Re-)set abort_on_error for this command */ command->abort_on_error= (command->expected_errors.count == 0 && abort_on_error); - + /* delimiter needs to be executed so we can continue to parse */ my_bool ok_to_do= cur_block->ok || command->type == Q_DELIMITER; /* Some commands need to be "done" the first time if they may get - re-iterated over in a true context. This can only happen if there's + re-iterated over in a true context. This can only happen if there's a while loop at some level above the current block. */ if (!ok_to_do) @@ -9226,16 +9226,16 @@ int main(int argc, char **argv) command->type == Q_ERROR || command->type == Q_WRITE_FILE || command->type == Q_APPEND_FILE || - command->type == Q_PERL) + command->type == Q_PERL) { - for (struct st_block *stb= cur_block-1; stb >= block_stack; stb--) - { - if (stb->cmd == cmd_while) - { - ok_to_do= 1; - break; - } - } + for (struct st_block *stb= cur_block-1; stb >= block_stack; stb--) + { + if (stb->cmd == cmd_while) + { + ok_to_do= 1; + break; + } + } } } @@ -9252,7 +9252,7 @@ int main(int argc, char **argv) case Q_CONNECTION: select_connection(command); break; case Q_DISCONNECT: case Q_DIRTY_CLOSE: - do_close_connection(command); break; + do_close_connection(command); break; case Q_ENABLE_QUERY_LOG: set_property(command, P_QUERY, 0); break; @@ -9311,7 +9311,7 @@ int main(int argc, char **argv) case Q_SYSTEM: die("'system' command is deprecated, use exec or " " see the manual for portable commands to use"); - break; + break; case Q_REMOVE_FILE: do_remove_file(command); break; case Q_REMOVE_FILES_WILDCARD: do_remove_files_wildcard(command); break; case Q_MKDIR: do_mkdir(command); break; @@ -9337,19 +9337,19 @@ int main(int argc, char **argv) case Q_RESULT_FORMAT_VERSION: do_result_format_version(command); break; case Q_DELIMITER: do_delimiter(command); - break; + break; case Q_DISPLAY_VERTICAL_RESULTS: display_result_vertically= TRUE; break; case Q_DISPLAY_HORIZONTAL_RESULTS: - display_result_vertically= FALSE; + display_result_vertically= FALSE; break; case Q_SORTED_RESULT: /* Turn on sorting of result set, will be reset after next command */ - display_result_sorted= TRUE; + display_result_sorted= TRUE; break; case Q_LOWERCASE: /* @@ -9364,17 +9364,17 @@ int main(int argc, char **argv) case Q_EVAL: case Q_QUERY_VERTICAL: case Q_QUERY_HORIZONTAL: - if (command->query == command->query_buf) + if (command->query == command->query_buf) { /* Skip the first part of command, i.e query_xxx */ - command->query= command->first_argument; + command->query= command->first_argument; command->first_word_len= 0; } - /* fall through */ + /* fall through */ case Q_QUERY: case Q_REAP: { - my_bool old_display_result_vertically= display_result_vertically; + my_bool old_display_result_vertically= display_result_vertically; /* Default is full query, both reap and send */ int flags= QUERY_REAP_FLAG | QUERY_SEND_FLAG; @@ -9402,20 +9402,20 @@ int main(int argc, char **argv) run_explain(cur_con, command, flags, 0); if (json_explain_protocol_enabled) run_explain(cur_con, command, flags, 1); - /* Check for 'require' */ - if (*save_file) - { - strmake(command->require_file, save_file, sizeof(save_file) - 1); - *save_file= 0; - } - if (*output_file) - { - strmake(command->output_file, output_file, sizeof(output_file) - 1); - *output_file= 0; - } - run_query(cur_con, command, flags); - display_opt_trace(cur_con, command, flags); - command_executed++; + /* Check for 'require' */ + if (*save_file) + { + strmake(command->require_file, save_file, sizeof(save_file) - 1); + *save_file= 0; + } + if (*output_file) + { + strmake(command->output_file, output_file, sizeof(output_file) - 1); + *output_file= 0; + } + run_query(cur_con, command, flags); + display_opt_trace(cur_con, command, flags); + command_executed++; command->last_argument= command->end; /* Restore settings */ @@ -9592,7 +9592,7 @@ int main(int argc, char **argv) case Q_OUTPUT: { static DYNAMIC_STRING ds_to_file; - const struct command_arg output_file_args[] = + const struct command_arg output_file_args[] = {{ "to_file", ARG_STRING, TRUE, &ds_to_file, "Output filename" }}; check_command_args(command, command->first_argument, output_file_args, 1, ' '); @@ -9665,7 +9665,7 @@ int main(int argc, char **argv) die("Test ended with parsing disabled"); my_bool empty_result= FALSE; - + /* The whole test has been executed _sucessfully_. Time to compare result or save it to record file. @@ -9702,7 +9702,7 @@ int main(int argc, char **argv) { die("The test didn't produce any output"); } - else + else { empty_result= TRUE; /* Meaning empty was expected */ } @@ -10282,7 +10282,7 @@ void do_get_replace_regex(struct st_command *command) char *expr= command->first_argument; free_replace_regex(); /* Allow variable for the *entire* list of replacements */ - if (*expr == '$') + if (*expr == '$') { VAR *val= var_get(expr, NULL, 0, 1); expr= val ? val->str_val : NULL; @@ -11131,7 +11131,7 @@ void replace_dynstr_append_mem(DYNAMIC_STRING *ds, fix_win_paths(val, len); #endif - if (display_result_lower) + if (display_result_lower) { /* Convert to lower case, and do this first */ char *c= lower; @@ -11141,7 +11141,7 @@ void replace_dynstr_append_mem(DYNAMIC_STRING *ds, /* Copy from this buffer instead */ val= lower; } - + if (glob_replace_regex) { /* Regex replace */ From 6061e6bf21a3ce6b0c2b40e09fe4b5966f16544e Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:53:02 +1000 Subject: [PATCH 03/17] test: use replace_numberic_round for gis test --- mysql-test/r/gis.result | 4 ++-- mysql-test/t/gis.test | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index cfddbd4..8bbbba5 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -2280,10 +2280,10 @@ CREATE TABLE t1 (g GEOMETRY); INSERT INTO t1 (g) VALUES (ST_GeomFromText("MULTIPOLYGON(((0 7,-3 -14,9 -11,0 7)))")); SELECT ST_AsText(ST_Buffer(g, 2)), ST_AsText(ST_Buffer(g, 2)) FROM t1; ST_AsText(ST_Buffer(g, 2)) ST_AsText(ST_Buffer(g, 2)) -POLYGON((1.7888 7.8944,1.5815 8.2242,1.3142 8.5075,0.9970 8.7337,0.6420 8.8941,0.2627 8.9826,-0.1265 8.9959,-0.5110 8.9335,-0.8762 8.7978,-1.2081 8.5938,-1.4941 8.3294,-1.7235 8.0146,-1.8875 7.6612,-1.9798 7.2828,-4.9798 -13.7171,-4.9970 -14.1076,-4.9380 -14.4941,-4.8048 -14.8616,-4.6027 -15.1962,-4.3394 -15.4851,-4.0249 -15.7173,-3.6713 -15.8839,-3.2920 -15.9785,-2.9016 -15.9975,-2.5149 -15.9402,9.4850 -12.9402,9.8226 -12.8229,10.1340 -12.6474,10.4091 -12.4192,10.6392 -12.1457,10.8170 -11.8357,10.9367 -11.4989,10.9946 -11.1462,10.9888 -10.7888,10.9194 -10.4382,10.7888 -10.1055,1.7888 7.8944)) POLYGON((1.7888 7.8944,1.5815 8.2242,1.3142 8.5075,0.9970 8.7337,0.6420 8.8941,0.2627 8.9826,-0.1265 8.9959,-0.5110 8.9335,-0.8762 8.7978,-1.2081 8.5938,-1.4941 8.3294,-1.7235 8.0146,-1.8875 7.6612,-1.9798 7.2828,-4.9798 -13.7171,-4.9970 -14.1076,-4.9380 -14.4941,-4.8048 -14.8616,-4.6027 -15.1962,-4.3394 -15.4851,-4.0249 -15.7173,-3.6713 -15.8839,-3.2920 -15.9785,-2.9016 -15.9975,-2.5149 -15.9402,9.4850 -12.9402,9.8226 -12.8229,10.1340 -12.6474,10.4091 -12.4192,10.6392 -12.1457,10.8170 -11.8357,10.9367 -11.4989,10.9946 -11.1462,10.9888 -10.7888,10.9194 -10.4382,10.7888 -10.1055,1.7888 7.8944)) +POLYGON((1.7889 7.8944,1.5815 8.2242,1.3142 8.5076,0.9971 8.7337,0.6421 8.8941,0.2627 8.9827,-0.1266 8.996,-0.5111 8.9336,-0.8762 8.7978,-1.2081 8.5939,-1.4942 8.3295,-1.7235 8.0146,-1.8875 7.6613,-1.9799 7.2828,-4.9799 -13.7172,-4.9971 -14.1077,-4.938 -14.4941,-4.8049 -14.8616,-4.6028 -15.1963,-4.3395 -15.4852,-4.025 -15.7174,-3.6714 -15.884,-3.2921 -15.9786,-2.9016 -15.9976,-2.5149 -15.9403,9.4851 -12.9403,9.8227 -12.823,10.134 -12.6474,10.4091 -12.4193,10.6393 -12.1458,10.817 -11.8357,10.9368 -11.499,10.9946 -11.1463,10.9888 -10.7889,10.9195 -10.4383,10.7889 -10.1056,1.7889 7.8944)) POLYGON((1.7889 7.8944,1.5815 8.2242,1.3142 8.5076,0.9971 8.7337,0.6421 8.8941,0.2627 8.9827,-0.1266 8.996,-0.5111 8.9336,-0.8762 8.7978,-1.2081 8.5939,-1.4942 8.3295,-1.7235 8.0146,-1.8875 7.6613,-1.9799 7.2828,-4.9799 -13.7172,-4.9971 -14.1077,-4.938 -14.4941,-4.8049 -14.8616,-4.6028 -15.1963,-4.3395 -15.4852,-4.025 -15.7174,-3.6714 -15.884,-3.2921 -15.9786,-2.9016 -15.9976,-2.5149 -15.9403,9.4851 -12.9403,9.8227 -12.823,10.134 -12.6474,10.4091 -12.4193,10.6393 -12.1458,10.817 -11.8357,10.9368 -11.499,10.9946 -11.1463,10.9888 -10.7889,10.9195 -10.4383,10.7889 -10.1056,1.7889 7.8944)) SELECT ST_AsText(ST_Buffer(g, 2)), ST_AsText(ST_Difference(g, g)) FROM t1; ST_AsText(ST_Buffer(g, 2)) ST_AsText(ST_Difference(g, g)) -POLYGON((1.7888 7.8944,1.5815 8.2242,1.3142 8.5075,0.9970 8.7337,0.6420 8.8941,0.2627 8.9826,-0.1265 8.9959,-0.5110 8.9335,-0.8762 8.7978,-1.2081 8.5938,-1.4941 8.3294,-1.7235 8.0146,-1.8875 7.6612,-1.9798 7.2828,-4.9798 -13.7171,-4.9970 -14.1076,-4.9380 -14.4941,-4.8048 -14.8616,-4.6027 -15.1962,-4.3394 -15.4851,-4.0249 -15.7173,-3.6713 -15.8839,-3.2920 -15.9785,-2.9016 -15.9975,-2.5149 -15.9402,9.4850 -12.9402,9.8226 -12.8229,10.1340 -12.6474,10.4091 -12.4192,10.6392 -12.1457,10.8170 -11.8357,10.9367 -11.4989,10.9946 -11.1462,10.9888 -10.7888,10.9194 -10.4382,10.7888 -10.1055,1.7888 7.8944)) GEOMETRYCOLLECTION() +POLYGON((1.7889 7.8944,1.5815 8.2242,1.3142 8.5076,0.9971 8.7337,0.6421 8.8941,0.2627 8.9827,-0.1266 8.996,-0.5111 8.9336,-0.8762 8.7978,-1.2081 8.5939,-1.4942 8.3295,-1.7235 8.0146,-1.8875 7.6613,-1.9799 7.2828,-4.9799 -13.7172,-4.9971 -14.1077,-4.938 -14.4941,-4.8049 -14.8616,-4.6028 -15.1963,-4.3395 -15.4852,-4.025 -15.7174,-3.6714 -15.884,-3.2921 -15.9786,-2.9016 -15.9976,-2.5149 -15.9403,9.4851 -12.9403,9.8227 -12.823,10.134 -12.6474,10.4091 -12.4193,10.6393 -12.1458,10.817 -11.8357,10.9368 -11.499,10.9946 -11.1463,10.9888 -10.7889,10.9195 -10.4383,10.7889 -10.1056,1.7889 7.8944)) GEOMETRYCOLLECTION() DROP TABLE t1; CREATE TABLE t1(id INT PRIMARY KEY AUTO_INCREMENT, g GEOMETRY NOT NULL, SPATIAL INDEX(g)); diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index faf53d4..72c4141 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -2303,9 +2303,9 @@ CREATE TABLE t1 (g GEOMETRY); INSERT INTO t1 (g) VALUES (ST_GeomFromText("MULTIPOLYGON(((0 7,-3 -14,9 -11,0 7)))")); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_AsText(ST_Buffer(g, 2)), ST_AsText(ST_Buffer(g, 2)) FROM t1; ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_AsText(ST_Buffer(g, 2)), ST_AsText(ST_Difference(g, g)) FROM t1; DROP TABLE t1; From 80ffd3f31996b93987bbd5cd3609d78ab24865b3 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:53:41 +1000 Subject: [PATCH 04/17] test: use replace_numberic_round for gis-precise test --- mysql-test/r/gis-precise.result | 10 +++++----- mysql-test/t/gis-precise.test | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/mysql-test/r/gis-precise.result b/mysql-test/r/gis-precise.result index 71ea49d..1cb0d9e 100644 --- a/mysql-test/r/gis-precise.result +++ b/mysql-test/r/gis-precise.result @@ -121,10 +121,10 @@ ST_DISTANCE(ST_GeomFromText('linestring(0 0, 3 6, 6 3, 0 0)'), ST_GeomFromText(' 0.8944271909999159 select ST_astext(ST_Intersection(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'))); ST_astext(ST_Intersection(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'))) -POLYGON((21.951219512195124 27.4390243902439,26.470588235294116 23.823529411764707,29.28994082840237 26.36094674556213,23.855421686746986 29.819277108433734,21.951219512195124 27.4390243902439)) +POLYGON((21.9512195122 27.4390243902,26.4705882353 23.8235294118,29.2899408284 26.3609467456,23.8554216867 29.8192771084,21.9512195122 27.4390243902)) select ST_astext(ST_Intersection(ST_GeomFromText('LINESTRING(0 0, 50 45, 40 50, 0 0)'), ST_GeomFromText('LINESTRING(50 5, 55 10, 0 45, 50 5)'))); ST_astext(ST_Intersection(ST_GeomFromText('LINESTRING(0 0, 50 45, 40 50, 0 0)'), ST_GeomFromText('LINESTRING(50 5, 55 10, 0 45, 50 5)'))) -MULTIPOINT((21.951219512195124 27.4390243902439),(23.855421686746986 29.819277108433734),(26.470588235294116 23.823529411764707),(29.28994082840237 26.36094674556213)) +MULTIPOINT((21.9512195122 27.4390243902),(23.8554216867 29.8192771084),(26.4705882353 23.8235294118),(29.2899408284 26.3609467456)) select ST_astext(ST_Intersection(ST_GeomFromText('LINESTRING(0 0, 50 45, 40 50)'), ST_GeomFromText('LINESTRING(50 5, 55 10, 0 45)'))); ST_astext(ST_Intersection(ST_GeomFromText('LINESTRING(0 0, 50 45, 40 50)'), ST_GeomFromText('LINESTRING(50 5, 55 10, 0 45)'))) POINT(29.28994082840237 26.36094674556213) @@ -151,7 +151,7 @@ ST_astext(ST_UNION(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_Geom GEOMETRYCOLLECTION(POLYGON((0 0,50 45,40 50,0 0)),MULTILINESTRING((-10 -10,0 0),(46.666666666666664 46.666666666666664,200 200,199 201,45.333333333333336 47.333333333333336),(8 10,-11 -9))) select ST_astext(ST_buffer(ST_geometryfromtext('point(1 1)'), 1)); ST_astext(ST_buffer(ST_geometryfromtext('point(1 1)'), 1)) -POLYGON((2 1,1.98078 1.19509,1.92387 1.38268,1.83146 1.55557,1.70710 1.70710,1.55557 1.83146,1.38268 1.92387,1.19509 1.98078,1.00000 2,0.80490 1.98078,0.61731 1.92387,0.44442 1.83146,0.29289 1.70710,0.16853 1.55557,0.07612 1.38268,0.01921 1.19509,0 1.00000,0.01921 0.80490,0.07612 0.61731,0.16853 0.44442,0.29289 0.29289,0.44442 0.16853,0.61731 0.07612,0.80490 0.01921,1 0,1.19509 0.01921,1.38268 0.07612,1.55557 0.16853,1.70710 0.29289,1.83146 0.44442,1.92387 0.61731,1.98078 0.80490,2 1)) +POLYGON((2 1,1.98079 1.19509,1.92388 1.38268,1.83147 1.55557,1.70711 1.70711,1.55557 1.83147,1.38268 1.92388,1.19509 1.98079,1 2,0.80491 1.98079,0.61732 1.92388,0.44443 1.83147,0.29289 1.70711,0.16853 1.55557,0.07612 1.38268,0.01921 1.19509,0 1,0.01921 0.80491,0.07612 0.61732,0.16853 0.44443,0.29289 0.29289,0.44443 0.16853,0.61732 0.07612,0.80491 0.01921,1 0,1.19509 0.01921,1.38268 0.07612,1.55557 0.16853,1.70711 0.29289,1.83147 0.44443,1.92388 0.61732,1.98079 0.80491,2 1)) create table t1(geom geometrycollection); insert into t1 values (ST_GeomFromText('POLYGON((0 0, 10 10, 0 8, 0 0))')); ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field @@ -1098,7 +1098,7 @@ Warning 1287 'GEOMFROMTEXT' is deprecated and will be removed in a future releas Warning 1287 'GEOMFROMTEXT' is deprecated and will be removed in a future release. Please use ST_GEOMFROMTEXT instead select st_distance_sphere(geomfromtext('point(-120 45)'), geomfromtext('point(30.24 68.37)')); st_distance_sphere(geomfromtext('point(-120 45)'), geomfromtext('point(30.24 68.37)')) -7168298.19690 +7168298.1969 Warnings: Warning 1287 'GEOMFROMTEXT' is deprecated and will be removed in a future release. Please use ST_GEOMFROMTEXT instead Warning 1287 'GEOMFROMTEXT' is deprecated and will be removed in a future release. Please use ST_GEOMFROMTEXT instead @@ -1849,7 +1849,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((12 -12,-15 19),(2 -9,-4 -8,18 3,-9 -8),(13 11,-15 9,-16 6,-17 5)), LINESTRING(14 -16,-3 18,-13 -7,-10 1))'), 6561)) as result; result -POLYGON((-549 6535,-849 6526,-1156 6456,-1273 6444,-1303 6438,-1347 6425,-1518 6401,-1773 6314,-2102 6238,-2405 6103,-2534 6063,-2579 6039,-2705 5996,-2933 5866,-3276 5712,-3536 5526,-3667 5456,-3712 5419,-3793 5373,-3986 5206,-4324 4966,-4533 4744,-4661 4639,-4701 4590,-4743 4554,-4795 4487,-4804 4480,-4888 4370,-4897 4358,-5206 4030,-5359 3786,-5476 3644,-5508 3583,-5519 3569,-5557 3495,-5585 3458,-5662 3303,-5889 2940,-5984 2690,-6081 2509,-6126 2358,-6153 2304,-6156 2296,-6207 2103,-6346 1738,-6387 1495,-6453 1278,-6467 1133,-6486 1062,-6502 812,-6560 470,-6553 245,-6577 -1,-6565 -129,-6570 -211,-6531 -515,-6522 -815,-6477 -1013,-6450 -1281,-6418 -1386,-6406 -1478,-6353 -1636,-6353 -1637,-6351 -1642,-6291 -1821,-6234 -2068,-6160 -2235,-6101 -2427,-6085 -2483,-6084 -2485,-6075 -2512,-6033 -2591,-6000 -2689,-5918 -2832,-5913 -2845,-5871 -2916,-5854 -2950,-5826 -2994,-5792 -3053,-5708 -3242,-5619 -3366,-5485 -3621,-5474 -3635,-5468 -3645,-5423 -3700,-5367 -3798,-5262 -3920,-5246 -3945,-5185 -4012,-5169 -4038,-5058 -4155,-5057 -4156,-4962 -4290,-4935 -4321,-4860 -4392,-4675 -4620,-4606 -4677,-4531 -4764,-4410 -4858,-4377 -4893,-4316 -4938,-4284 -4972,-4124 -5086,-3999 -5203,-3890 -5272,-3685 -5441,-3607 -5484,-3523 -5549,-3395 -5614,-3340 -5654,-3285 -5680,-3235 -5715,-3050 -5798,-2909 -5886,-2761 -5942,-2555 -6054,-2469 -6081,-2383 -6124,-2256 -6160,-2175 -6198,-2130 -6209,-2060 -6240,-1858 -6286,-1707 -6343,-1521 -6375,-1326 -6435,-1237 -6444,-1153 -6468,-1035 -6477,-925 -6504,-894 -6505,-806 -6525,-594 -6531,-439 -6557,-218 -6550,-47 -6568,42 -6560,120 -6566,224 -6554,359 -6560,375 -6557,479 -6560,691 -6524,846 -6519,1091 -6463,1233 -6450,1319 -6424,1388 -6416,1463 -6392,1582 -6372,1630 -6364,1634 -6363,1746 -6344,1949 -6266,2099 -6231,2356 -6116,2466 -6084,2493 -6073,2488 -6060,2498 -6057,2530 -6047,2532 -6046,2604 -6023,2646 -5999,2948 -5884,3132 -5768,3273 -5705,3582 -5485,3593 -5478,3663 -5440,3689 -5419,3720 -5402,3738 -5386,4036 -5199,4194 -5049,4321 -4959,4571 -4693,4657 -4623,4700 -4570,4854 -4424,4885 -4396,4887 -4392,4970 -4314,5095 -4138,5203 -4023,5383 -3736,5472 -3628,5513 -3550,5636 -3385,5652 -3352,5713 -3265,5800 -3070,5886 -2933,5996 -2645,6077 -2493,6100 -2414,6180 -2248,6198 -2180,6238 -2090,6284 -1886,6343 -1731,6389 -1460,6449 -1262,6456 -1185,6497 -1029,6503 -922,6523 -836,6529 -631,6557 -463,6550 -223,6573 17,6566 91,6575 228,6556 371,6558 449,6524 645,6519 822,6474 1020,6446 1297,6425 1366,6411 1477,6353 1650,6342 1716,6272 1897,6231 2075,6162 2229,6071 2528,6039 2589,6011 2672,5903 2863,5882 2918,5865 2952,5770 3103,5705 3249,5625 3360,5464 3661,5422 3713,5390 3768,5254 3928,5199 4015,5032 4194,4959 4297,4932 4328,4860 4395,4647 4655,4597 4695,4571 4726,4434 4835,4344 4932,4116 5097,3996 5210,3879 5283,3652 5470,3598 5498,3584 5509,3461 5573,3329 5669,3072 5789,2906 5893,2737 5957,2517 6075,2358 6123,2193 6200,1918 6269,1704 6350,1481 6388,1286 6447,1159 6459,976 6505,696 6520,436 6564,165 6556,6 6571,-84 6562,-275 6573,-549 6535)) +POLYGON((-549 6536,-849 6527,-1156 6456,-1274 6445,-1304 6439,-1348 6425,-1518 6402,-1773 6315,-2103 6239,-2405 6103,-2534 6064,-2580 6040,-2705 5997,-2933 5866,-3276 5712,-3537 5527,-3668 5456,-3713 5420,-3793 5373,-3987 5206,-4324 4967,-4534 4744,-4661 4639,-4702 4590,-4743 4554,-4796 4488,-4804 4480,-4888 4370,-4898 4359,-5207 4031,-5359 3787,-5476 3644,-5508 3584,-5520 3569,-5558 3495,-5586 3459,-5662 3304,-5889 2941,-5985 2690,-6081 2509,-6127 2359,-6153 2305,-6156 2297,-6208 2103,-6347 1739,-6388 1495,-6453 1278,-6467 1133,-6486 1063,-6503 812,-6560 470,-6554 246,-6578 -2,-6565 -129,-6571 -212,-6532 -515,-6523 -815,-6477 -1013,-6451 -1282,-6419 -1386,-6407 -1478,-6354 -1636,-6354 -1637,-6352 -1643,-6292 -1822,-6235 -2069,-6160 -2235,-6102 -2428,-6085 -2483,-6084 -2485,-6076 -2512,-6034 -2591,-6001 -2689,-5919 -2833,-5914 -2846,-5871 -2916,-5854 -2950,-5827 -2994,-5793 -3053,-5708 -3242,-5620 -3366,-5485 -3621,-5474 -3635,-5468 -3646,-5423 -3701,-5367 -3799,-5262 -3920,-5247 -3946,-5186 -4012,-5169 -4039,-5058 -4156,-5058 -4156,-4963 -4290,-4936 -4321,-4860 -4392,-4675 -4620,-4607 -4677,-4531 -4764,-4410 -4859,-4378 -4894,-4317 -4939,-4285 -4973,-4124 -5086,-4000 -5204,-3890 -5272,-3686 -5442,-3608 -5484,-3524 -5550,-3396 -5614,-3341 -5655,-3285 -5680,-3235 -5716,-3050 -5799,-2910 -5886,-2762 -5943,-2555 -6055,-2470 -6081,-2383 -6125,-2257 -6160,-2175 -6198,-2131 -6209,-2061 -6240,-1858 -6286,-1708 -6344,-1521 -6375,-1326 -6435,-1237 -6445,-1153 -6468,-1035 -6477,-926 -6504,-895 -6505,-807 -6525,-595 -6531,-439 -6557,-219 -6551,-47 -6569,42 -6561,120 -6567,224 -6554,359 -6560,376 -6558,479 -6560,691 -6524,846 -6520,1092 -6463,1233 -6450,1320 -6425,1389 -6416,1463 -6392,1582 -6372,1630 -6365,1635 -6363,1747 -6344,1950 -6266,2100 -6232,2356 -6117,2466 -6084,2493 -6073,2488 -6061,2499 -6057,2530 -6048,2533 -6046,2604 -6023,2647 -6000,2948 -5884,3133 -5768,3273 -5705,3583 -5485,3593 -5478,3664 -5440,3689 -5420,3720 -5402,3739 -5387,4037 -5199,4195 -5050,4321 -4960,4572 -4694,4657 -4623,4701 -4570,4854 -4425,4885 -4397,4888 -4393,4971 -4315,5095 -4138,5204 -4024,5384 -3736,5472 -3628,5514 -3551,5637 -3385,5652 -3353,5714 -3265,5801 -3070,5886 -2934,5996 -2645,6077 -2493,6101 -2415,6181 -2249,6198 -2181,6238 -2091,6285 -1886,6344 -1732,6389 -1461,6449 -1262,6457 -1185,6497 -1029,6504 -923,6523 -837,6529 -632,6557 -463,6550 -224,6574 18,6567 92,6575 228,6556 371,6558 449,6525 646,6520 822,6474 1021,6447 1298,6426 1366,6411 1478,6353 1650,6342 1717,6273 1898,6232 2076,6163 2230,6072 2528,6039 2589,6011 2672,5903 2863,5882 2918,5865 2952,5770 3104,5705 3249,5626 3360,5464 3662,5422 3713,5391 3769,5254 3929,5200 4015,5033 4194,4960 4297,4933 4328,4861 4396,4647 4655,4598 4696,4572 4726,4435 4835,4344 4932,4117 5098,3997 5211,3880 5284,3652 5470,3599 5499,3585 5510,3461 5574,3330 5670,3072 5790,2907 5893,2737 5958,2517 6075,2359 6123,2193 6200,1918 6269,1705 6351,1482 6388,1286 6447,1160 6460,977 6505,696 6521,436 6564,165 6556,6 6572,-85 6563,-276 6573,-549 6536)) # # Bug#20517621 ASSERTION `GEOMETRY::IS_VALID_GEOTYPE(GT)' FAILED # diff --git a/mysql-test/t/gis-precise.test b/mysql-test/t/gis-precise.test index bf5f89e..8780e74 100644 --- a/mysql-test/t/gis-precise.test +++ b/mysql-test/t/gis-precise.test @@ -47,7 +47,7 @@ select 1, ST_Within(ST_GeomFromText('LINESTRING(15 15, 16 16)'), ST_GeomFromText select 1, ST_Intersects(ST_GeomFromText('LINESTRING(15 15, 50 50)'), ST_GeomFromText('LINESTRING(50 15, 15 50)')); select 1, ST_Intersects(ST_GeomFromText('LINESTRING(15 15, 50 50)'), ST_GeomFromText('LINESTRING(16 16, 51 51)')); - +--replace_numberic_round 12 select 1, ST_Intersects(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))')); select ST_astext(ST_Union(ST_geometryfromtext('point(1 1)'), ST_geometryfromtext('polygon((0 0, 2 0, 1 2, 0 0))'))); @@ -69,9 +69,9 @@ select ST_DISTANCE(ST_GeomFromText('linestring(0 0, 3 6, 6 3, 0 0)'), ST_GeomFro # Operations tests ---replace_result 23.85542168674699 23.855421686746986 +--replace_numberic_round 10 select ST_astext(ST_Intersection(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('POLYGON((50 5, 55 10, 0 45, 50 5))'))); ---replace_result 23.85542168674699 23.855421686746986 +--replace_numberic_round 10 select ST_astext(ST_Intersection(ST_GeomFromText('LINESTRING(0 0, 50 45, 40 50, 0 0)'), ST_GeomFromText('LINESTRING(50 5, 55 10, 0 45, 50 5)'))); select ST_astext(ST_Intersection(ST_GeomFromText('LINESTRING(0 0, 50 45, 40 50)'), ST_GeomFromText('LINESTRING(50 5, 55 10, 0 45)'))); select ST_astext(ST_Intersection(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('POINT(20 20)'))); @@ -85,14 +85,14 @@ select ST_astext(ST_symdifference(ST_GeomFromText('polygon((0 0, 1 0, 0 1, 0 0)) select ST_astext(ST_UNION(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)'))); # Buffer() tests ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 select ST_astext(ST_buffer(ST_geometryfromtext('point(1 1)'), 1)); create table t1(geom geometrycollection); --error ER_CANT_CREATE_GEOMETRY_OBJECT insert into t1 values (ST_GeomFromText('POLYGON((0 0, 10 10, 0 8, 0 0))')); --error ER_CANT_CREATE_GEOMETRY_OBJECT insert into t1 values (ST_GeomFromText('POLYGON((1 1, 10 10, 0 8, 1 1))')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 select ST_astext(geom), ST_area(geom),ST_area(ST_buffer(geom,2)) from t1; select ST_NUMPOINTS(ST_EXTERIORRING(ST_buffer(geom,2))) from t1; @@ -651,7 +651,7 @@ SELECT ST_DISTANCE(ST_GeomFromText('POLYGON((0 0, 1 1))'), ST_GeomFromText('POLY select st_astext(st_makeenvelope(geomfromtext('point(0 0)'), geomfromtext('point(2 2)'))); select st_astext(st_makeenvelope(geomfromtext('point(0 0)'), geomfromtext('point(-22 -11)'))); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 select st_distance_sphere(geomfromtext('point(-120 45)'), geomfromtext('point(30.24 68.37)')); --echo # @@ -679,7 +679,7 @@ SELECT MBRTOUCHES(ST_GEOMFROMTEXT('MULTIPOINT(5 0,10 0)'),ST_GEOMFROMTEXT('MULTI --error ER_BOOST_GEOMETRY_OVERLAY_INVALID_INPUT_EXCEPTION set @centroid_point = ST_CENTROID(ST_UNION(ST_UNION(ST_GEOMFROMTEXT('MULTILINESTRING((-556 966,-721 -210),(-202 390,-954 804,682 504,-394 -254,832 371,907 -369,827 126,-567 -337,-304 -555,-957 -483,-660 792),(-965 -940,814 -804,-477 -909,-128 57,-819 880,761 497,-559 40,-431 427,179 -291,-707 315,137 -781,-416 -371,-5 -156),(-600 -570,-481 -191,991 -361,768 888,-647 566,795 -861,-82 -575,-593 539))'), ST_GEOMFROMTEXT('MULTIPOLYGON(((805 69,249 708,147 455,546 -672,-218 843,458 24,-630 -420,-83 -69, 805 69)),((196 -219,-201 663,-867 521,-910 -315,-749 801,-402 820,-167 -817,-526 -163,744 -988,-588 -370,573 695,-597 513,-246 439, 196 -219)),((32 -903,189 -871,-778 -741,784 340,403 -555,607 -540,-513 -982,700 -124,344 732,714 151,-812 -252,-440 -895,-426 231,-819 -357, 32 -903)),((-395 830,454 -143,788 -279,618 -843,-490 -507,-224 17, -395 830)))')), ST_INTERSECTION(ST_UNION(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(-169 -570),MULTIPOINT(384 290,-601 123,408 86,-616 -300,160 -474,-979 -4,-63 -824,-689 -765,-219 802,-54 -93,191 -982,-723 -449),MULTILINESTRING((683 4,864 -634,548 -891,727 -691,-570 32,-334 -438,127 -317,241 -12,-807 947,-987 693,-345 -867,854 -106)),MULTIPOINT(384 290,-601 123,408 86,-616 -300,160 -474,-979 -4,-63 -824,-689 -765,-219 802,-54 -93,191 -982,-723 -449),MULTIPOLYGON(((266 51,851 523,-781 366,-607 -581, 266 51)),((416 -450,-973 880,103 226,-896 -857,-369 761, 416 -450)),((168 171,26 -99,-606 -490,-174 -138,-325 -218,-833 -652,-255 -445,-882 -762,-202 -560, 168 171)),((-423 -216,-531 -190,-147 821,362 441,645 -128,-997 708,134 -426,714 -9,147 842,-887 -870,688 -330,689 17,-314 -262,401 -112,-606 761, -423 -216)),((-582 -373,-360 -84,-727 -171,412 -660,750 -846,-464 718,163 -11,489 -659,586 -324,-741 -198,144 -165,644 -80,930 -487,-504 -205, -582 -373))),MULTIPOLYGON(((266 51,851 523,-781 366,-607 -581, 266 51)),((416 -450,-973 880,103 226,-896 -857,-369 761, 416 -450)),((168 171,26 -99,-606 -490,-174 -138,-325 -218,-833 -652,-255 -445,-882 -762,-202 -560, 168 171)),((-423 -216,-531 -190,-147 821,362 441,645 -128,-997 708,134 -426,714 -9,147 842,-887 -870,688 -330,689 17,-314 -262,401 -112,-606 761, -423 -216)),((-582 -373,-360 -84,-727 -171,412 -660,750 -846,-464 718,163 -11,489 -659,586 -324,-741 -198,144 -165,644 -80,930 -487,-504 -205, -582 -373))),GEOMETRYCOLLECTION(),MULTIPOINT(384 290,-601 123,408 86,-616 -300,160 -474,-979 -4,-63 -824,-689 -765,-219 802,-54 -93,191 -982,-723 -449),MULTILINESTRING((683 4,864 -634,548 -891,727 -691,-570 32,-334 -438,127 -317,241 -12,-807 947,-987 693,-345 -867,854 -106)))'), ST_GEOMFROMTEXT('MULTIPOINT(157 69,-725 -189,-176 -41,676 375,33 -672,-76 47)')), ST_UNION(ST_ENVELOPE(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(-896 100,-793 810,243 -525,650 -373,599 170,-554 -890),POINT(945 -828),POINT(945 -828),LINESTRING(-896 100,-793 810,243 -525,650 -373,599 170,-554 -890),POINT(945 -828),MULTIPOINT(-47 307,-768 -425,-3 167,-170 30,-784 721,951 146,407 790,37 850,-466 738),GEOMETRYCOLLECTION(),MULTIPOINT(-47 307,-768 -425,-3 167,-170 30,-784 721,951 146,407 790,37 850,-466 738),MULTIPOLYGON(((104 113,688 423,-859 602,272 978, 104 113)),((981 -394,189 -400,649 -325,-977 371,30 859,590 318,329 -894,-51 262,197 952,-846 -139,-920 399, 981 -394)),((-236 -759,834 757,857 747,437 -146,194 913,316 862,976 -491,-745 933,610 687,-149 -164,-803 -565,451 -275, -236 -759)),((572 96,-160 -607,529 930,-544 -132,458 294, 572 96))))')), ST_CENTROID(ST_GEOMFROMTEXT('POINT(-939 -921)')))))); ---replace_regex /-111.[0-9]+/-111/ /-57.[0-9]+/-57/ +--replace_numberic_round 0 SELECT ST_AsText(@centroid_point) as centroid; SELECT MBRWITHIN(@centroid_point, ST_INTERSECTION(ST_GEOMFROMTEXT('MULTILINESTRING((541 -927,-414 316,-429 -444,212 260,-125 104,445 563,-713 -975,-976 514),(-830 882,-377 914,-915 919,-535 -23,-508 979),(806 347,-87 220,226 -22,-12 468,707 598,83 951,-592 701,833 964,270 -932,743 -514,231 469,-575 -122,-99 -245,416 465,801 -587))'), ST_GEOMFROMTEXT('LINESTRING(-96 -182,-373 75,697 687,-881 -463,-557 -959,-493 810)'))) as result; @@ -908,7 +908,7 @@ SELECT ST_AsText(ST_Union(ST_GeomFromText('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION set @centroid_point = ST_CENTROID(ST_UNION(ST_UNION(ST_GEOMFROMTEXT('MULTILINESTRING((-556 966,-721 -210),(-202 390,-954 804,682 504,-394 -254,832 371,907 -369,827 126,-567 -337,-304 -555,-957 -483,-660 792),(-965 -940,814 -804,-477 -909,-128 57,-819 880,761 497,-559 40,-431 427,179 -291,-707 315,137 -781,-416 -371,-5 -156),(-600 -570,-481 -191,991 -361,768 888,-647 566,795 -861,-82 -575,-593 539))'), ST_GEOMFROMTEXT('MULTIPOLYGON(((805 69,249 708,147 455,546 -672,-218 843,458 24,-630 -420,-83 -69, 805 69)),((196 -219,-201 663,-867 521,-910 -315,-749 801,-402 820,-167 -817,-526 -163,744 -988,-588 -370,573 695,-597 513,-246 439, 196 -219)),((32 -903,189 -871,-778 -741,784 340,403 -555,607 -540,-513 -982,700 -124,344 732,714 151,-812 -252,-440 -895,-426 231,-819 -357, 32 -903)),((-395 830,454 -143,788 -279,618 -843,-490 -507,-224 17, -395 830)))')), ST_INTERSECTION(ST_UNION(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(-169 -570),MULTIPOINT(384 290,-601 123,408 86,-616 -300,160 -474,-979 -4,-63 -824,-689 -765,-219 802,-54 -93,191 -982,-723 -449),MULTILINESTRING((683 4,864 -634,548 -891,727 -691,-570 32,-334 -438,127 -317,241 -12,-807 947,-987 693,-345 -867,854 -106)),MULTIPOINT(384 290,-601 123,408 86,-616 -300,160 -474,-979 -4,-63 -824,-689 -765,-219 802,-54 -93,191 -982,-723 -449),MULTIPOLYGON(((266 51,851 523,-781 366,-607 -581, 266 51)),((416 -450,-973 880,103 226,-896 -857,-369 761, 416 -450)),((168 171,26 -99,-606 -490,-174 -138,-325 -218,-833 -652,-255 -445,-882 -762,-202 -560, 168 171)),((-423 -216,-531 -190,-147 821,362 441,645 -128,-997 708,134 -426,714 -9,147 842,-887 -870,688 -330,689 17,-314 -262,401 -112,-606 761, -423 -216)),((-582 -373,-360 -84,-727 -171,412 -660,750 -846,-464 718,163 -11,489 -659,586 -324,-741 -198,144 -165,644 -80,930 -487,-504 -205, -582 -373))),MULTIPOLYGON(((266 51,851 523,-781 366,-607 -581, 266 51)),((416 -450,-973 880,103 226,-896 -857,-369 761, 416 -450)),((168 171,26 -99,-606 -490,-174 -138,-325 -218,-833 -652,-255 -445,-882 -762,-202 -560, 168 171)),((-423 -216,-531 -190,-147 821,362 441,645 -128,-997 708,134 -426,714 -9,147 842,-887 -870,688 -330,689 17,-314 -262,401 -112,-606 761, -423 -216)),((-582 -373,-360 -84,-727 -171,412 -660,750 -846,-464 718,163 -11,489 -659,586 -324,-741 -198,144 -165,644 -80,930 -487,-504 -205, -582 -373))),GEOMETRYCOLLECTION(),MULTIPOINT(384 290,-601 123,408 86,-616 -300,160 -474,-979 -4,-63 -824,-689 -765,-219 802,-54 -93,191 -982,-723 -449),MULTILINESTRING((683 4,864 -634,548 -891,727 -691,-570 32,-334 -438,127 -317,241 -12,-807 947,-987 693,-345 -867,854 -106)))'), ST_GEOMFROMTEXT('MULTIPOINT(157 69,-725 -189,-176 -41,676 375,33 -672,-76 47)')), ST_UNION(ST_ENVELOPE(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(-896 100,-793 810,243 -525,650 -373,599 170,-554 -890),POINT(945 -828),POINT(945 -828),LINESTRING(-896 100,-793 810,243 -525,650 -373,599 170,-554 -890),POINT(945 -828),MULTIPOINT(-47 307,-768 -425,-3 167,-170 30,-784 721,951 146,407 790,37 850,-466 738),GEOMETRYCOLLECTION(),MULTIPOINT(-47 307,-768 -425,-3 167,-170 30,-784 721,951 146,407 790,37 850,-466 738),MULTIPOLYGON(((104 113,688 423,-859 602,272 978, 104 113)),((981 -394,189 -400,649 -325,-977 371,30 859,590 318,329 -894,-51 262,197 952,-846 -139,-920 399, 981 -394)),((-236 -759,834 757,857 747,437 -146,194 913,316 862,976 -491,-745 933,610 687,-149 -164,-803 -565,451 -275, -236 -759)),((572 96,-160 -607,529 930,-544 -132,458 294, 572 96))))')), ST_CENTROID(ST_GEOMFROMTEXT('POINT(-939 -921)')))))); ---replace_regex /-111.[0-9]+/-111/ /-57.[0-9]+/-57/ +--replace_numberic_round 0 SELECT ST_AsText(@centroid_point) as centroid; SELECT MBRWITHIN(@centroid_point, ST_INTERSECTION(ST_GEOMFROMTEXT('MULTILINESTRING((541 -927,-414 316,-429 -444,212 260,-125 104,445 563,-713 -975,-976 514),(-830 882,-377 914,-915 919,-535 -23,-508 979),(806 347,-87 220,226 -22,-12 468,707 598,83 951,-592 701,833 964,270 -932,743 -514,231 469,-575 -122,-99 -245,416 465,801 -587))'), ST_GEOMFROMTEXT('LINESTRING(-96 -182,-373 75,697 687,-881 -463,-557 -959,-493 810)'))) as result; @@ -1211,7 +1211,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 0,10 10,0 10,0 0))') --echo # --echo # Bug#20510010 ST_BUFFER() : MYSQLD GOT SIGNAL 11 --echo # ---replace_regex /([0-9]+).[0-9]+/1/ +--replace_numberic_round 0 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((12 -12,-15 19),(2 -9,-4 -8,18 3,-9 -8),(13 11,-15 9,-16 6,-17 5)), LINESTRING(14 -16,-3 18,-13 -7,-10 1))'), 6561)) as result; From 17deb327477a2a764789301fb8c6cf4ab8d3708c Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:54:08 +1000 Subject: [PATCH 05/17] test: use replace_numberic_round for innodb_gis.precise test --- mysql-test/suite/innodb_gis/r/precise.result | 2 +- mysql-test/suite/innodb_gis/t/precise.test | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql-test/suite/innodb_gis/r/precise.result b/mysql-test/suite/innodb_gis/r/precise.result index b563c29..cb3c065 100644 --- a/mysql-test/suite/innodb_gis/r/precise.result +++ b/mysql-test/suite/innodb_gis/r/precise.result @@ -151,7 +151,7 @@ ST_astext(ST_UNION(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_Geom GEOMETRYCOLLECTION(POLYGON((0 0,50 45,40 50,0 0)),MULTILINESTRING((-10 -10,0 0),(46.666666666666664 46.666666666666664,200 200,199 201,45.333333333333336 47.333333333333336),(8 10,-11 -9))) select ST_astext(ST_buffer(ST_geometryfromtext('point(1 1)'), 1)); ST_astext(ST_buffer(ST_geometryfromtext('point(1 1)'), 1)) -POLYGON((2 1,1.9807 1.1950,1.9238 1.3826,1.8314 1.5555,1.7071 1.7071,1.5555 1.8314,1.3826 1.9238,1.1950 1.9807,1.0000 2,0.8049 1.9807,0.6173 1.9238,0.4444 1.8314,0.2928 1.7071,0.1685 1.5555,0.0761 1.3826,0.0192 1.1950,0 1.0000,0.0192 0.8049,0.0761 0.6173,0.1685 0.4444,0.2928 0.2928,0.4444 0.1685,0.6173 0.0761,0.8049 0.0192,1 0,1.1950 0.0192,1.3826 0.0761,1.5555 0.1685,1.7071 0.2928,1.8314 0.4444,1.9238 0.6173,1.9807 0.8049,2 1)) +POLYGON((2 1,1.9808 1.1951,1.9239 1.3827,1.8315 1.5556,1.7071 1.7071,1.5556 1.8315,1.3827 1.9239,1.1951 1.9808,1 2,0.8049 1.9808,0.6173 1.9239,0.4444 1.8315,0.2929 1.7071,0.1685 1.5556,0.0761 1.3827,0.0192 1.1951,0 1,0.0192 0.8049,0.0761 0.6173,0.1685 0.4444,0.2929 0.2929,0.4444 0.1685,0.6173 0.0761,0.8049 0.0192,1 0,1.1951 0.0192,1.3827 0.0761,1.5556 0.1685,1.7071 0.2929,1.8315 0.4444,1.9239 0.6173,1.9808 0.8049,2 1)) create table t1(geom geometrycollection)engine=innodb; insert into t1 values (ST_geomfromtext('POLYGON((0 0, 10 10, 0 8, 0 0))')); ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field diff --git a/mysql-test/suite/innodb_gis/t/precise.test b/mysql-test/suite/innodb_gis/t/precise.test index ac8a277..2277716 100644 --- a/mysql-test/suite/innodb_gis/t/precise.test +++ b/mysql-test/suite/innodb_gis/t/precise.test @@ -80,14 +80,14 @@ select ST_astext(ST_symdifference(ST_geomfromtext('polygon((0 0, 1 0, 0 1, 0 0)) select ST_astext(ST_UNION(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)'))); # Buffer() tests ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 select ST_astext(ST_buffer(ST_geometryfromtext('point(1 1)'), 1)); create table t1(geom geometrycollection)engine=innodb; --error ER_CANT_CREATE_GEOMETRY_OBJECT insert into t1 values (ST_geomfromtext('POLYGON((0 0, 10 10, 0 8, 0 0))')); --error ER_CANT_CREATE_GEOMETRY_OBJECT insert into t1 values (ST_geomfromtext('POLYGON((1 1, 10 10, 0 8, 1 1))')); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 select ST_astext(geom), ST_area(geom),ST_area(ST_buffer(geom,2)) from t1; select ST_NUMPOINTS(ST_EXTERIORRING(ST_buffer(geom,2))) from t1; From c1956ded2ddd5bc45ff71a2ccca92a8644e17ba4 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:54:32 +1000 Subject: [PATCH 06/17] test: use replace_numberic_round for gis.spatial_utility_function_distance_sphere test --- ...spatial_utility_function_distance_sphere.result | 62 ++++---- .../spatial_utility_function_distance_sphere.test | 170 ++++++++++----------- 2 files changed, 116 insertions(+), 116 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_utility_function_distance_sphere.result b/mysql-test/suite/gis/r/spatial_utility_function_distance_sphere.result index f13fece..fa61b0e 100644 --- a/mysql-test/suite/gis/r/spatial_utility_function_distance_sphere.result +++ b/mysql-test/suite/gis/r/spatial_utility_function_distance_sphere.result @@ -116,10 +116,10 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.999 -89.999)'), ST_GEOMFROMTEXT(' 0 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 90)'), ST_GEOMFROMTEXT('POINT(-179.99 90)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 90)'), ST_GEOMFROMTEXT('POINT(-179.99 90)')) -0.000000000000612 +0.000000000000613 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 -90)'), ST_GEOMFROMTEXT('POINT(-179.9999 -90)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 -90)'), ST_GEOMFROMTEXT('POINT(-179.9999 -90)')) -0.000000000000680 +0.00000000000068 ##################################################################################### # ST_DISTANCE_SPHERE(point, multipoint) ##################################################################################### @@ -146,25 +146,25 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(18 0 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1)')) -111194.68229 +111194.6823 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1,1 0,1 1)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1,1 0,1 1)')) -111194.68229 +111194.6823 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(180 90)'), ST_GEOMFROMTEXT('MULTIPOINT(180 -90,-179 90,-179 -90)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(180 90)'), ST_GEOMFROMTEXT('MULTIPOINT(180 -90,-179 90,-179 -90)')) -0.000000000006808 +0.000000000006809 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(37 -42)'), ST_GEOMFROMTEXT('MULTIPOINT(57 32)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(37 -42)'), ST_GEOMFROMTEXT('MULTIPOINT(57 32)')) 8478959.24692 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-85 48)'), ST_GEOMFROMTEXT('MULTIPOINT(159 -49)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-85 48)'), ST_GEOMFROMTEXT('MULTIPOINT(159 -49)')) -15442376.75883 +15442376.75884 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(168 -21)'), ST_GEOMFROMTEXT('MULTIPOINT(-22 -32)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(168 -21)'), ST_GEOMFROMTEXT('MULTIPOINT(-22 -32)')) -14026307.89182 +14026307.89183 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-64 67)'), ST_GEOMFROMTEXT('MULTIPOINT(-103 45,155 57,-166 85)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-64 67)'), ST_GEOMFROMTEXT('MULTIPOINT(-103 45,155 57,-166 85)')) -2724877.06507 +2724877.06508 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-36 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-37 45,-49 23,97 -19)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-36 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-37 45,-49 23,97 -19)')) 7242075.61618 @@ -176,10 +176,10 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(164 -41)'), ST_GEOMFROMTEXT('MULTIPOIN 11240807.17994 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-106 -23)'), ST_GEOMFROMTEXT('MULTIPOINT(-152 72,89 -3,-23 -42,126 59)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-106 -23)'), ST_GEOMFROMTEXT('MULTIPOINT(-152 72,89 -3,-23 -42,126 59)')) -7764654.29440 +7764654.2944 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(168 -15)'), ST_GEOMFROMTEXT('MULTIPOINT(68 73,157 -55,-178 -29,46 78,-133 59,180 59)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(168 -15)'), ST_GEOMFROMTEXT('MULTIPOINT(68 73,157 -55,-178 -29,46 78,-133 59,180 59)')) -2118904.21785 +2118904.21786 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(106 76)'), ST_GEOMFROMTEXT('MULTIPOINT(53 20,148 -40,-61 -90,170 -37,-64 -82,-167 85)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(106 76)'), ST_GEOMFROMTEXT('MULTIPOINT(53 20,148 -40,-61 -90,170 -37,-64 -82,-167 85)')) 1623498.34154 @@ -188,7 +188,7 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-50 36)'), ST_GEOMFROMTEXT('MULTIPOINT 3325569.68628 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-139 54)'), ST_GEOMFROMTEXT('MULTIPOINT(151 -57,-74 61,10 28,170 -47,97 -45,-5 -82,121 -21,-96 -44,81 -68)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-139 54)'), ST_GEOMFROMTEXT('MULTIPOINT(151 -57,-74 61,10 28,170 -47,97 -45,-5 -82,121 -21,-96 -44,81 -68)')) -3792274.55935 +3792274.55936 ##################################################################################### # ST_DISTANCE_SPHERE(multipoint, point) ##################################################################################### @@ -221,7 +221,7 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-172 -70)'), ST_GEOMFROMTEXT('POI 17791149.16775 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-157 -67)'), ST_GEOMFROMTEXT('POINT(-92 -88)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-157 -67)'), ST_GEOMFROMTEXT('POINT(-92 -88)')) -2471277.69444 +2471277.69445 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(156 -64,-96 57,-15 -18)'), ST_GEOMFROMTEXT('POINT(-73 -1)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(156 -64,-96 57,-15 -18)'), ST_GEOMFROMTEXT('POINT(-73 -1)')) 6603053.68396 @@ -233,19 +233,19 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-85 87,-155 48,-163 -84)'), ST_GE 343552.51114 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(33 -49,174 -25,-4 -56)'), ST_GEOMFROMTEXT('POINT(48 46)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(33 -49,174 -25,-4 -56)'), ST_GEOMFROMTEXT('POINT(48 46)')) -10662878.71627 +10662878.71628 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-36 -87,-75 20,-157 78)'), ST_GEOMFROMTEXT('POINT(-165 18)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-36 -87,-75 20,-157 78)'), ST_GEOMFROMTEXT('POINT(-165 18)')) -6685828.52360 +6685828.52361 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(151 17,-150 -43,-165 76,87 53)'), ST_GEOMFROMTEXT('POINT(152 27)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(151 17,-150 -43,-165 76,87 53)'), ST_GEOMFROMTEXT('POINT(152 27)')) 1116698.09539 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-159 -88,-177 -82,17 76,79 1)'), ST_GEOMFROMTEXT('POINT(35 -74)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-159 -88,-177 -82,17 76,79 1)'), ST_GEOMFROMTEXT('POINT(35 -74)')) -1995604.71860 +1995604.71861 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-130 -20,-118 -63,-57 0)'), ST_GEOMFROMTEXT('POINT(-156 89)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-130 -20,-118 -63,-57 0)'), ST_GEOMFROMTEXT('POINT(-156 89)')) -10024915.22600 +10024915.226 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-84 25,-52 53,125 -50,-171 51,55 -13,-4 -69)'), ST_GEOMFROMTEXT('POINT(-127 52)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-84 25,-52 53,125 -50,-171 51,55 -13,-4 -69)'), ST_GEOMFROMTEXT('POINT(-127 52)')) 3000854.92226 @@ -298,22 +298,22 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-150 -79)'), ST_GEOMFROMTEXT('MUL 9274204.82069 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(164 -37)'), ST_GEOMFROMTEXT('MULTIPOINT(67 59)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(164 -37)'), ST_GEOMFROMTEXT('MULTIPOINT(67 59)')) -13840477.43110 +13840477.43111 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(135 62)'), ST_GEOMFROMTEXT('MULTIPOINT(-116 -22)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(135 62)'), ST_GEOMFROMTEXT('MULTIPOINT(-116 -22)')) -13142652.16580 +13142652.16581 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-123 85)'), ST_GEOMFROMTEXT('MULTIPOINT(-54 -40)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-123 85)'), ST_GEOMFROMTEXT('MULTIPOINT(-54 -40)')) 14239014.67884 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(152 43)'), ST_GEOMFROMTEXT('MULTIPOINT(106 76,53 20,148 -40)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(152 43)'), ST_GEOMFROMTEXT('MULTIPOINT(106 76,53 20,148 -40)')) -4260092.91224 +4260092.91225 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-177 -88,-165 9,153 40,2 17)'), ST_GEOMFROMTEXT('MULTIPOINT(-150 -4)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-177 -88,-165 9,153 40,2 17)'), ST_GEOMFROMTEXT('MULTIPOINT(-150 -4)')) -2203222.52072 +2203222.52073 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(154 84,-124 37,17 50)'), ST_GEOMFROMTEXT('MULTIPOINT(42 34)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(154 84,-124 37,17 50)'), ST_GEOMFROMTEXT('MULTIPOINT(42 34)')) -2703109.65923 +2703109.65924 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(88 -65,49 85,68 77)'), ST_GEOMFROMTEXT('MULTIPOINT(125 82,-83 -5,3 -40)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(88 -65,49 85,68 77)'), ST_GEOMFROMTEXT('MULTIPOINT(125 82,-83 -5,3 -40)')) 926947.16374 @@ -322,34 +322,34 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(174 59,91 24,26 28)'), ST_GEOMFRO 9348158.18192 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-140 -63,103 -42,160 -53)'), ST_GEOMFROMTEXT('MULTIPOINT(-78 -80,-133 -24,73 -15)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-140 -63,103 -42,160 -53)'), ST_GEOMFROMTEXT('MULTIPOINT(-78 -80,-133 -24,73 -15)')) -2653984.28105 +2653984.28106 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(137 -65,-63 13,38 9)'), ST_GEOMFROMTEXT('MULTIPOINT(-166 -35,107 -18,-83 -18,91 -24)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(137 -65,-63 13,38 9)'), ST_GEOMFROMTEXT('MULTIPOINT(-166 -35,107 -18,-83 -18,91 -24)')) -4086108.70332 +4086108.70333 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-128 90,90 -17,-176 -37,40 -78,156 -82,37 -42)'), ST_GEOMFROMTEXT('MULTIPOINT(57 32,-3 22,24 -88)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-128 90,90 -17,-176 -37,40 -78,156 -82,37 -42)'), ST_GEOMFROMTEXT('MULTIPOINT(57 32,-3 22,24 -88)')) -1051350.22798 +1051350.22799 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(87 -12,-25 31,-47 23,134 83,120 69,39 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-9 -4,-171 -82,140 -26)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(87 -12,-25 31,-47 23,134 83,120 69,39 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-9 -4,-171 -82,140 -26)')) -4245876.62670 +4245876.62671 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-119 50,28 22,-122 -74)'), ST_GEOMFROMTEXT('MULTIPOINT(134 14,-32 -84,96 74,44 59,-88 73,-136 12)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-119 50,28 22,-122 -74)'), ST_GEOMFROMTEXT('MULTIPOINT(134 14,-32 -84,96 74,44 59,-88 73,-136 12)')) -1897030.29193 +1897030.29194 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-144 73,81 61,-78 4,50 -28)'), ST_GEOMFROMTEXT('MULTIPOINT(-176 48,-154 -39,-140 -60,135 72,-97 28,-35 69)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-144 73,81 61,-78 4,50 -28)'), ST_GEOMFROMTEXT('MULTIPOINT(-176 48,-154 -39,-140 -60,135 72,-97 28,-35 69)')) -2505975.11097 +2505975.11098 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-14 49)'), ST_GEOMFROMTEXT('MULTIPOINT(-160 -51,-141 72,50 -30,96 -64,-41 -59,-128 -28,0 -77,179 -78,-84 -67)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-14 49)'), ST_GEOMFROMTEXT('MULTIPOINT(-160 -51,-141 72,50 -30,96 -64,-41 -59,-128 -28,0 -77,179 -78,-84 -67)')) -5941456.90498 +5941456.90499 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-165 61,-43 -47,-89 40,-137 -64,11 26,-8 -31,28 -77,37 -44,124 51)'), ST_GEOMFROMTEXT('MULTIPOINT(63 39,98 14,-123 79,-30 -27)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-165 61,-43 -47,-89 40,-137 -64,11 26,-8 -31,28 -77,37 -44,124 51)'), ST_GEOMFROMTEXT('MULTIPOINT(63 39,98 14,-123 79,-30 -27)')) -2181430.45407 +2181430.45408 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(11 -38,-17 54,-104 73)'), ST_GEOMFROMTEXT('MULTIPOINT(167 -50,103 -21,-122 24,-122 80,-41 37,-175 -25,-155 48,-23 -34,-105 48)')); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(11 -38,-17 54,-104 73)'), @@ -366,7 +366,7 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 0.24682 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 100); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 100) -2.46820 +2.46821 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 2000); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 2000) 49.36411 @@ -378,7 +378,7 @@ ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 157249.03572 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 6370987); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 6370987) -157249.06040 +157249.06041 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 1234567890); ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 1234567890) 30471674.28044 diff --git a/mysql-test/suite/gis/t/spatial_utility_function_distance_sphere.test b/mysql-test/suite/gis/t/spatial_utility_function_distance_sphere.test index 467abae..bbe7ab5 100644 --- a/mysql-test/suite/gis/t/spatial_utility_function_distance_sphere.test +++ b/mysql-test/suite/gis/t/spatial_utility_function_distance_sphere.test @@ -74,57 +74,57 @@ SELECT count(ST_ASTEXT(g) != 'NULL') FROM gis_geometrycollection; SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(0 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(180 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(0 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-179 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(0 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(180 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(180 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-179 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-179 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(1 1)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(0.0000 -0.000)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(1 1)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(1 -1)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-1 1)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-1 -1)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(90 45)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(90 -45)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-90 45)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(-90 -45)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(180 90)'), ST_GEOMFROMTEXT('POINT(180 90)')); @@ -135,10 +135,10 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.999 -90)'), ST_GEOMFROMTEX SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.999 -89.999)'), ST_GEOMFROMTEXT('POINT(-179.999 -89.999)')); ---replace_regex /([0-9]+.[0-9]{15})[0-9]*/1/ +--replace_numberic_round 15 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 90)'), ST_GEOMFROMTEXT('POINT(-179.99 90)')); ---replace_regex /([0-9]+.[0-9]{15})[0-9]*/1/ +--replace_numberic_round 15 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 -90)'), ST_GEOMFROMTEXT('POINT(-179.9999 -90)')); --echo ##################################################################################### @@ -147,13 +147,13 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-179.9 -90)'), ST_GEOMFROMTEXT( SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(180 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(-179 0)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 0,1 1,2 2)')); @@ -162,49 +162,49 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIP SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(180 90,0 0,-179 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1,1 0,1 1)')); ---replace_regex /([0-9]+.[0-9]{15})[0-9]*/1/ +--replace_numberic_round 15 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(180 90)'), ST_GEOMFROMTEXT('MULTIPOINT(180 -90,-179 90,-179 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(37 -42)'), ST_GEOMFROMTEXT('MULTIPOINT(57 32)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-85 48)'), ST_GEOMFROMTEXT('MULTIPOINT(159 -49)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(168 -21)'), ST_GEOMFROMTEXT('MULTIPOINT(-22 -32)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-64 67)'), ST_GEOMFROMTEXT('MULTIPOINT(-103 45,155 57,-166 85)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-36 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-37 45,-49 23,97 -19)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(138 86)'), ST_GEOMFROMTEXT('MULTIPOINT(15 -79,-110 -76,49 31)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(164 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-11 2,-81 3,161 62,-119 31)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-106 -23)'), ST_GEOMFROMTEXT('MULTIPOINT(-152 72,89 -3,-23 -42,126 59)')); ---replace_regex /(2118904.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(168 -15)'), ST_GEOMFROMTEXT('MULTIPOINT(68 73,157 -55,-178 -29,46 78,-133 59,180 59)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(106 76)'), ST_GEOMFROMTEXT('MULTIPOINT(53 20,148 -40,-61 -90,170 -37,-64 -82,-167 85)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-50 36)'), ST_GEOMFROMTEXT('MULTIPOINT(-32 -64,-116 -35,148 89,-75 16,-99 87,-51 -2,-113 24,93 46,168 53)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-139 54)'), ST_GEOMFROMTEXT('MULTIPOINT(151 -57,-74 61,10 28,170 -47,97 -45,-5 -82,121 -21,-96 -44,81 -68)')); --echo ##################################################################################### @@ -213,61 +213,61 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(-139 54)'), ST_GEOMFROMTEXT('MU SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('POINT(0 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('POINT(180 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('POINT(0 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('POINT(-179 0)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0,1 1,2 2)'), ST_GEOMFROMTEXT('POINT(0 0)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(180 90,0 0,180 -90)'), ST_GEOMFROMTEXT('POINT(-0 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-179 90,0 0,-179 -90)'), ST_GEOMFROMTEXT('POINT(-179 0)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-179 90,0 0,-179 -90)'), ST_GEOMFROMTEXT('POINT(-179 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-172 -70)'), ST_GEOMFROMTEXT('POINT(45 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-157 -67)'), ST_GEOMFROMTEXT('POINT(-92 -88)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(156 -64,-96 57,-15 -18)'), ST_GEOMFROMTEXT('POINT(-73 -1)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-110 43,-79 -82,-32 24)'), ST_GEOMFROMTEXT('POINT(61 27)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-85 87,-155 48,-163 -84)'), ST_GEOMFROMTEXT('POINT(-95 84)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(33 -49,174 -25,-4 -56)'), ST_GEOMFROMTEXT('POINT(48 46)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-36 -87,-75 20,-157 78)'), ST_GEOMFROMTEXT('POINT(-165 18)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(151 17,-150 -43,-165 76,87 53)'), ST_GEOMFROMTEXT('POINT(152 27)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-159 -88,-177 -82,17 76,79 1)'), ST_GEOMFROMTEXT('POINT(35 -74)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-130 -20,-118 -63,-57 0)'), ST_GEOMFROMTEXT('POINT(-156 89)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-84 25,-52 53,125 -50,-171 51,55 -13,-4 -69)'), ST_GEOMFROMTEXT('POINT(-127 52)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(56 -45,158 84,112 2,85 21,88 89,-151 33,-158 40)'), ST_GEOMFROMTEXT('POINT(-172 87)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-6 -56,-73 54,20 -74,-160 72,-4 42,-120 -62,-54 -8,-85 48,159 -49,100 -75)'), ST_GEOMFROMTEXT('POINT(167 -17)')); @@ -277,13 +277,13 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-6 -56,-73 54,20 -74,-160 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(180 0)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(0 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(-179 0)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(0 0,1 1,2 2)'), ST_GEOMFROMTEXT('MULTIPOINT(1 1,0 0,2 2)')); @@ -292,71 +292,71 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(180 90,0 0)'), ST_GEOMFROM SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(180 0,0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(180 0,0 90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-179 90,0 0)'), ST_GEOMFROMTEXT('MULTIPOINT(-179 0,0 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(111 11,11 1)'), ST_GEOMFROMTEXT('MULTIPOINT(1 11,11 11)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(10 10,20 20,30 30)'), ST_GEOMFROMTEXT('MULTIPOINT(15 15,20 20,25 25)')); SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-10 -10,-20 -20,-30 -30)'), ST_GEOMFROMTEXT('MULTIPOINT(180 0,-30 -30,180 -90)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-150 -79)'), ST_GEOMFROMTEXT('MULTIPOINT(145 -2)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(164 -37)'), ST_GEOMFROMTEXT('MULTIPOINT(67 59)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(135 62)'), ST_GEOMFROMTEXT('MULTIPOINT(-116 -22)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-123 85)'), ST_GEOMFROMTEXT('MULTIPOINT(-54 -40)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(152 43)'), ST_GEOMFROMTEXT('MULTIPOINT(106 76,53 20,148 -40)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-177 -88,-165 9,153 40,2 17)'), ST_GEOMFROMTEXT('MULTIPOINT(-150 -4)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(154 84,-124 37,17 50)'), ST_GEOMFROMTEXT('MULTIPOINT(42 34)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(88 -65,49 85,68 77)'), ST_GEOMFROMTEXT('MULTIPOINT(125 82,-83 -5,3 -40)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(174 59,91 24,26 28)'), ST_GEOMFROMTEXT('MULTIPOINT(-35 -33,-171 -37,-30 -43)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-140 -63,103 -42,160 -53)'), ST_GEOMFROMTEXT('MULTIPOINT(-78 -80,-133 -24,73 -15)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(137 -65,-63 13,38 9)'), ST_GEOMFROMTEXT('MULTIPOINT(-166 -35,107 -18,-83 -18,91 -24)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-128 90,90 -17,-176 -37,40 -78,156 -82,37 -42)'), ST_GEOMFROMTEXT('MULTIPOINT(57 32,-3 22,24 -88)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(87 -12,-25 31,-47 23,134 83,120 69,39 -41)'), ST_GEOMFROMTEXT('MULTIPOINT(-9 -4,-171 -82,140 -26)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-119 50,28 22,-122 -74)'), ST_GEOMFROMTEXT('MULTIPOINT(134 14,-32 -84,96 74,44 59,-88 73,-136 12)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-144 73,81 61,-78 4,50 -28)'), ST_GEOMFROMTEXT('MULTIPOINT(-176 48,-154 -39,-140 -60,135 72,-97 28,-35 69)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-14 49)'), ST_GEOMFROMTEXT('MULTIPOINT(-160 -51,-141 72,50 -30,96 -64,-41 -59,-128 -28,0 -77,179 -78,-84 -67)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(-165 61,-43 -47,-89 40,-137 -64,11 26,-8 -31,28 -77,37 -44,124 51)'), ST_GEOMFROMTEXT('MULTIPOINT(63 39,98 14,-123 79,-30 -27)')); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(11 -38,-17 54,-104 73)'), ST_GEOMFROMTEXT('MULTIPOINT(167 -50,103 -21,-122 24,-122 80,-41 37,-175 -25,-155 48,-23 -34,-105 48)')); @@ -364,28 +364,28 @@ SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('MULTIPOINT(11 -38,-17 54,-104 73)'), --echo # ST_DISTANCE_SPHERE with different earth radius value --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 1); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 10); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 100); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 2000); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 1234567); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 6370986); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 6370987); ---replace_regex /([0-9]+.[0-9]{5})[0-9]*/1/ +--replace_numberic_round 5 SELECT ST_DISTANCE_SPHERE(ST_GEOMFROMTEXT('POINT(1 1)'), ST_GEOMFROMTEXT('POINT(0 0)'), 1234567890); --echo ##################################################################################### From 1285113876c3209be5cb5965898d9fd7b272a09a Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:55:20 +1000 Subject: [PATCH 07/17] test: use replace_numberic_round for gis.spatial_analysis_functions_buffer --- .../gis/r/spatial_analysis_functions_buffer.result | 422 ++++++++++---------- .../gis/t/spatial_analysis_functions_buffer.test | 430 ++++++++++----------- 2 files changed, 425 insertions(+), 427 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result b/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result index 587d3c6..ea90615 100644 --- a/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result +++ b/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result @@ -52,22 +52,22 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_center), 0)) POINT(15 10) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_top), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_top), 1)) -POLYGON((16 25,15.9807 25.1950,15.9238 25.3826,15.8314 25.5555,15.7071 25.7071,15.5555 25.8314,15.3826 25.9238,15.1950 25.9807,15.0000 26,14.8049 25.9807,14.6173 25.9238,14.4444 25.8314,14.2928 25.7071,14.1685 25.5555,14.0761 25.3826,14.0192 25.1950,14 25,14.0192 24.8049,14.0761 24.6173,14.1685 24.4444,14.2928 24.2928,14.4444 24.1685,14.6173 24.0761,14.8049 24.0192,15 24,15.1950 24.0192,15.3826 24.0761,15.5555 24.1685,15.7071 24.2928,15.8314 24.4444,15.9238 24.6173,15.9807 24.8049,16 25)) +POLYGON((16 25,15.9808 25.1951,15.9239 25.3827,15.8315 25.5556,15.7071 25.7071,15.5556 25.8315,15.3827 25.9239,15.1951 25.9808,15 26,14.8049 25.9808,14.6173 25.9239,14.4444 25.8315,14.2929 25.7071,14.1685 25.5556,14.0761 25.3827,14.0192 25.1951,14 25,14.0192 24.8049,14.0761 24.6173,14.1685 24.4444,14.2929 24.2929,14.4444 24.1685,14.6173 24.0761,14.8049 24.0192,15 24,15.1951 24.0192,15.3827 24.0761,15.5556 24.1685,15.7071 24.2929,15.8315 24.4444,15.9239 24.6173,15.9808 24.8049,16 25)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0 0)'), 2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0 0)'), 2)) -POLYGON((2 0,1.9615 0.3901,1.8477 0.7653,1.6629 1.1111,1.4142 1.4142,1.1111 1.6629,0.7653 1.8477,0.3901 1.9615,4.96e-15 2,-0.3901 1.9615,-0.7653 1.8477,-1.1111 1.6629,-1.4142 1.4142,-1.6629 1.1111,-1.8477 0.7653,-1.9615 0.3901,-2 1.53e-15,-1.9615 -0.3901,-1.8477 -0.7653,-1.6629 -1.1111,-1.4142 -1.4142,-1.1111 -1.6629,-0.7653 -1.8477,-0.3901 -1.9615,1.22e-16 -2,0.3901 -1.9615,0.7653 -1.8477,1.1111 -1.6629,1.4142 -1.4142,1.6629 -1.1111,1.8477 -0.7653,1.9615 -0.3901,2 0)) +POLYGON((2 0,1.9616 0.3902,1.8478 0.7654,1.6629 1.1111,1.4142 1.4142,1.1111 1.6629,0.7654 1.8478,0.3902 1.9616,0 2,-0.3902 1.9616,-0.7654 1.8478,-1.1111 1.6629,-1.4142 1.4142,-1.6629 1.1111,-1.8478 0.7654,-1.9616 0.3902,-2 0,-1.9616 -0.3902,-1.8478 -0.7654,-1.6629 -1.1111,-1.4142 -1.4142,-1.1111 -1.6629,-0.7654 -1.8478,-0.3902 -1.9616,0 -2,0.3902 -1.9616,0.7654 -1.8478,1.1111 -1.6629,1.4142 -1.4142,1.6629 -1.1111,1.8478 -0.7654,1.9616 -0.3902,2 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3)) -POLYGON((5.34 -2.34,5.2823 -1.7547,5.1116 -1.1919,4.8344 -0.6732,4.4613 -0.2186,4.0067 0.1544,3.4880 0.4316,2.9252 0.6023,2.3400 0.6600,1.7547 0.6023,1.1919 0.4316,0.6732 0.1544,0.2186 -0.2186,-0.1544 -0.6732,-0.4316 -1.1919,-0.6023 -1.7547,-0.6600 -2.3399,-0.6023 -2.9252,-0.4316 -3.4880,-0.1544 -4.0067,0.2186 -4.4613,0.6732 -4.8344,1.1919 -5.1116,1.7547 -5.2823,2.34 -5.34,2.9252 -5.2823,3.4880 -5.1116,4.0067 -4.8344,4.4613 -4.4613,4.8344 -4.0067,5.1116 -3.4880,5.2823 -2.9252,5.34 -2.34)) +POLYGON((5.34 -2.34,5.2824 -1.7547,5.1116 -1.1919,4.8344 -0.6733,4.4613 -0.2187,4.0067 0.1544,3.4881 0.4316,2.9253 0.6024,2.34 0.66,1.7547 0.6024,1.1919 0.4316,0.6733 0.1544,0.2187 -0.2187,-0.1544 -0.6733,-0.4316 -1.1919,-0.6024 -1.7547,-0.66 -2.34,-0.6024 -2.9253,-0.4316 -3.4881,-0.1544 -4.0067,0.2187 -4.4613,0.6733 -4.8344,1.1919 -5.1116,1.7547 -5.2824,2.34 -5.34,2.9253 -5.2824,3.4881 -5.1116,4.0067 -4.8344,4.4613 -4.4613,4.8344 -4.0067,5.1116 -3.4881,5.2824 -2.9253,5.34 -2.34)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5)) -POLYGON((1005 -1000,1004.9039 -999.0245,1004.6193 -998.0865,1004.1573 -997.2221,1003.5355 -996.4644,1002.7778 -995.8426,1001.9134 -995.3806,1000.9754 -995.0960,1000 -995,999.0245 -995.0960,998.0865 -995.3806,997.2221 -995.8426,996.4644 -996.4644,995.8426 -997.2221,995.3806 -998.0865,995.0960 -999.0245,995 -1000,995.0960 -1000.9754,995.3806 -1001.9134,995.8426 -1002.7778,996.4644 -1003.5355,997.2221 -1004.1573,998.0865 -1004.6193,999.0245 -1004.9039,1000 -1005,1000.9754 -1004.9039,1001.9134 -1004.6193,1002.7778 -1004.1573,1003.5355 -1003.5355,1004.1573 -1002.7778,1004.6193 -1001.9134,1004.9039 -1000.9754,1005 -1000)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0.0000 0.0000)'), 10)); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0.0000 0.0000)'), 10)) -POLYGON((10 0.0000,9.8078 1.9509,9.2387 3.8268,8.3146 5.5557,7.0710 7.0710,5.5557 8.3146,3.8268 9.2387,1.9509 9.8078,2.48e-14 10.0000,-1.9509 9.8078,-3.8268 9.2387,-5.5557 8.3146,-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 0.0000,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -9.9999,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509,10 0.0000)) +POLYGON((1005 -1000,1004.9039 -999.0245,1004.6194 -998.0866,1004.1573 -997.2221,1003.5355 -996.4645,1002.7779 -995.8427,1001.9134 -995.3806,1000.9755 -995.0961,1000 -995,999.0245 -995.0961,998.0866 -995.3806,997.2221 -995.8427,996.4645 -996.4645,995.8427 -997.2221,995.3806 -998.0866,995.0961 -999.0245,995 -1000,995.0961 -1000.9755,995.3806 -1001.9134,995.8427 -1002.7779,996.4645 -1003.5355,997.2221 -1004.1573,998.0866 -1004.6194,999.0245 -1004.9039,1000 -1005,1000.9755 -1004.9039,1001.9134 -1004.6194,1002.7779 -1004.1573,1003.5355 -1003.5355,1004.1573 -1002.7779,1004.6194 -1001.9134,1004.9039 -1000.9755,1005 -1000)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0 0)'), 10)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0 0)'), 10)) +POLYGON((10 0,9.8079 1.9509,9.2388 3.8268,8.3147 5.5557,7.0711 7.0711,5.5557 8.3147,3.8268 9.2388,1.9509 9.8079,0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509,10 0)) SELECT ST_ASTEXT(ST_BUFFER(g, 100)) FROM gis_geometrycollection WHERE fid=105; ST_ASTEXT(ST_BUFFER(g, 100)) -POLYGON((115 10,113.0785 29.5090,107.3879 48.2683,98.1469 65.5570,85.7106 80.7106,70.5570 93.1469,53.2683 102.3879,34.5090 108.0785,15.0000 110,-4.5090 108.0785,-23.2683 102.3879,-40.5570 93.1469,-55.7106 80.7106,-68.1469 65.5570,-77.3879 48.2683,-83.0785 29.5090,-85 10.0000,-83.0785 -9.5090,-77.3879 -28.2683,-68.1469 -45.5570,-55.7106 -60.7106,-40.5570 -73.1469,-23.2683 -82.3879,-4.5090 -88.0785,15.0000 -90,34.5090 -88.0785,53.2683 -82.3879,70.5570 -73.1469,85.7106 -60.7106,98.1469 -45.5570,107.3879 -28.2683,113.0785 -9.5090,115 10)) +POLYGON((115 10,113.0785 29.509,107.388 48.2683,98.147 65.557,85.7107 80.7107,70.557 93.147,53.2683 102.388,34.509 108.0785,15 110,-4.509 108.0785,-23.2683 102.388,-40.557 93.147,-55.7107 80.7107,-68.147 65.557,-77.388 48.2683,-83.0785 29.509,-85 10,-83.0785 -9.509,-77.388 -28.2683,-68.147 -45.557,-55.7107 -60.7107,-40.557 -73.147,-23.2683 -82.388,-4.509 -88.0785,15 -90,34.509 -88.0785,53.2683 -82.388,70.557 -73.147,85.7107 -60.7107,98.147 -45.557,107.388 -28.2683,113.0785 -9.509,115 10)) ##################################################################################### # ST_BUFFER(multipoint, distance) ##################################################################################### @@ -76,19 +76,19 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_all_points), 0)) MULTIPOINT((5 0),(25 0),(15 10),(15 25)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_bottom_points), 2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_bottom_points), 2)) -MULTIPOLYGON(((7 0,6.9615 0.3901,6.8477 0.7653,6.6629 1.1111,6.4142 1.4142,6.1111 1.6629,5.7653 1.8477,5.3901 1.9615,5.0000 2,4.6098 1.9615,4.2346 1.8477,3.8888 1.6629,3.5857 1.4142,3.3370 1.1111,3.1522 0.7653,3.0384 0.3901,3 1.53e-15,3.0384 -0.3901,3.1522 -0.7653,3.3370 -1.1111,3.5857 -1.4142,3.8888 -1.6629,4.2346 -1.8477,4.6098 -1.9615,5 -2,5.3901 -1.9615,5.7653 -1.8477,6.1111 -1.6629,6.4142 -1.4142,6.6629 -1.1111,6.8477 -0.7653,6.9615 -0.3901,7 0)),((27 0,26.9615 0.3901,26.8477 0.7653,26.6629 1.1111,26.4142 1.4142,26.1111 1.6629,25.7653 1.8477,25.3901 1.9615,25.0000 2,24.6098 1.9615,24.2346 1.8477,23.8888 1.6629,23.5857 1.4142,23.3370 1.1111,23.1522 0.7653,23.0384 0.3901,23 1.53e-15,23.0384 -0.3901,23.1522 -0.7653,23.3370 -1.1111,23.5857 -1.4142,23.8888 -1.6629,24.2346 -1.8477,24.6098 -1.9615,25 -2,25.3901 -1.9615,25.7653 -1.8477,26.1111 -1.6629,26.4142 -1.4142,26.6629 -1.1111,26.8477 -0.7653,26.9615 -0.3901,27 0))) +MULTIPOLYGON(((7 0,6.9616 0.3902,6.8478 0.7654,6.6629 1.1111,6.4142 1.4142,6.1111 1.6629,5.7654 1.8478,5.3902 1.9616,5 2,4.6098 1.9616,4.2346 1.8478,3.8889 1.6629,3.5858 1.4142,3.3371 1.1111,3.1522 0.7654,3.0384 0.3902,3 0,3.0384 -0.3902,3.1522 -0.7654,3.3371 -1.1111,3.5858 -1.4142,3.8889 -1.6629,4.2346 -1.8478,4.6098 -1.9616,5 -2,5.3902 -1.9616,5.7654 -1.8478,6.1111 -1.6629,6.4142 -1.4142,6.6629 -1.1111,6.8478 -0.7654,6.9616 -0.3902,7 0)),((27 0,26.9616 0.3902,26.8478 0.7654,26.6629 1.1111,26.4142 1.4142,26.1111 1.6629,25.7654 1.8478,25.3902 1.9616,25 2,24.6098 1.9616,24.2346 1.8478,23.8889 1.6629,23.5858 1.4142,23.3371 1.1111,23.1522 0.7654,23.0384 0.3902,23 0,23.0384 -0.3902,23.1522 -0.7654,23.3371 -1.1111,23.5858 -1.4142,23.8889 -1.6629,24.2346 -1.8478,24.6098 -1.9616,25 -2,25.3902 -1.9616,25.7654 -1.8478,26.1111 -1.6629,26.4142 -1.4142,26.6629 -1.1111,26.8478 -0.7654,26.9616 -0.3902,27 0))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5)) -POLYGON((4.9039 -0.9754,5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754)) +POLYGON((4.9039 -0.9755,5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 5,5 5,5 0,0 0)'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 5,5 5,5 0,0 0)'), 5)) -POLYGON((2.5000 -4.3058,3.0865 -4.6193,4.0245 -4.9039,5 -5,5.9754 -4.9039,6.9134 -4.6193,7.7778 -4.1573,8.5355 -3.5355,9.1573 -2.7778,9.6193 -1.9134,9.9039 -0.9754,10 0,9.9039 0.9754,9.6193 1.9134,9.3058 2.5000,9.6193 3.0865,9.9039 4.0245,10 5,9.9039 5.9754,9.6193 6.9134,9.1573 7.7778,8.5355 8.5355,7.7778 9.1573,6.9134 9.6193,5.9754 9.9039,5.0000 10,4.0245 9.9039,3.0865 9.6193,2.5000 9.3058,1.9134 9.6193,0.9754 9.9039,1.24e-14 10,-0.9754 9.9039,-1.9134 9.6193,-2.7778 9.1573,-3.5355 8.5355,-4.1573 7.7778,-4.6193 6.9134,-4.9039 5.9754,-5 5.0000,-4.9039 4.0245,-4.6193 3.0865,-4.3058 2.5000,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.5000 -4.3058)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.000 0.000)'), 100)); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.000 0.000)'), 100)) -MULTIPOLYGON(((1100 -1000,1098.078 -980.490,1092.387 -961.731,1083.146 -944.442,1070.710 -929.289,1055.557 -916.853,1038.268 -907.612,1019.509 -901.921,1000.000 -900,980.490 -901.921,961.731 -907.612,944.442 -916.853,929.289 -929.289,916.853 -944.442,907.612 -961.731,901.921 -980.490,900 -999.999,901.921 -1019.509,907.612 -1038.268,916.853 -1055.557,929.289 -1070.710,944.442 -1083.146,961.731 -1092.387,980.490 -1098.078,1000 -1100,1019.509 -1098.078,1038.268 -1092.387,1055.557 -1083.146,1070.710 -1070.710,1083.146 -1055.557,1092.387 -1038.268,1098.078 -1019.509,1100 -1000)),((-70.161 -71.161,-69.710 -71.710,-54.557 -84.146,-37.268 -93.387,-18.509 -99.078,1.000 -101,20.509 -99.078,39.268 -93.387,56.557 -84.146,71.710 -71.710,84.146 -56.557,93.387 -39.268,99.078 -20.509,101 -1,99.078 18.509,93.387 37.268,84.146 54.557,71.710 69.710,71.161 70.161,70.710 70.710,55.557 83.146,38.268 92.387,19.509 98.078,0.000 100,-19.508 98.078,-38.268 92.387,-55.556 83.146,-70.710 70.710,-83.146 55.557,-92.387 38.268,-98.078 19.509,-99.999 7.65e-14,-98.078 -19.509,-92.387 -38.268,-83.146 -55.557,-70.710 -70.710,-70.161 -71.161))) +POLYGON((2.5 -4.3059,3.0866 -4.6194,4.0245 -4.9039,5 -5,5.9755 -4.9039,6.9134 -4.6194,7.7779 -4.1573,8.5355 -3.5355,9.1573 -2.7779,9.6194 -1.9134,9.9039 -0.9755,10 0,9.9039 0.9755,9.6194 1.9134,9.3059 2.5,9.6194 3.0866,9.9039 4.0245,10 5,9.9039 5.9755,9.6194 6.9134,9.1573 7.7779,8.5355 8.5355,7.7779 9.1573,6.9134 9.6194,5.9755 9.9039,5 10,4.0245 9.9039,3.0866 9.6194,2.5 9.3059,1.9134 9.6194,0.9755 9.9039,0 10,-0.9755 9.9039,-1.9134 9.6194,-2.7779 9.1573,-3.5355 8.5355,-4.1573 7.7779,-4.6194 6.9134,-4.9039 5.9755,-5 5,-4.9039 4.0245,-4.6194 3.0866,-4.3059 2.5,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.5 -4.3059)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0 0)'), 100)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0 0)'), 100)) +MULTIPOLYGON(((1100 -1000,1098.079 -980.491,1092.388 -961.732,1083.147 -944.443,1070.711 -929.289,1055.557 -916.853,1038.268 -907.612,1019.509 -901.921,1000 -900,980.491 -901.921,961.732 -907.612,944.443 -916.853,929.289 -929.289,916.853 -944.443,907.612 -961.732,901.921 -980.491,900 -1000,901.921 -1019.509,907.612 -1038.268,916.853 -1055.557,929.289 -1070.711,944.443 -1083.147,961.732 -1092.388,980.491 -1098.079,1000 -1100,1019.509 -1098.079,1038.268 -1092.388,1055.557 -1083.147,1070.711 -1070.711,1083.147 -1055.557,1092.388 -1038.268,1098.079 -1019.509,1100 -1000)),((-70.162 -71.161,-69.711 -71.711,-54.557 -84.147,-37.268 -93.388,-18.509 -99.079,1 -101,20.509 -99.079,39.268 -93.388,56.557 -84.147,71.711 -71.711,84.147 -56.557,93.388 -39.268,99.079 -20.509,101 -1,99.079 18.509,93.388 37.268,84.147 54.557,71.711 69.711,71.162 70.161,70.711 70.711,55.557 83.147,38.268 92.388,19.509 98.079,0 100,-19.509 98.079,-38.268 92.388,-55.557 83.147,-70.711 70.711,-83.147 55.557,-92.388 38.268,-98.078 19.509,-100 0,-98.078 -19.509,-92.388 -38.268,-83.147 -55.557,-70.711 -70.711,-70.162 -71.161))) SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=108; ST_ASTEXT(ST_BUFFER(g, 20)) -POLYGON((14.9999 -17.2234,17.3463 -18.4775,21.0981 -19.6157,25 -20,28.9018 -19.6157,32.6536 -18.4775,36.1114 -16.6293,39.1421 -14.1421,41.6293 -11.1114,43.4775 -7.6536,44.6157 -3.9018,45 0,44.6157 3.9018,43.4775 7.6536,41.6293 11.1114,39.1421 14.1421,36.1114 16.6293,32.6536 18.4775,28.9018 19.6157,25.0000 20,21.0981 19.6157,17.3463 18.4775,14.9999 17.2234,12.6536 18.4775,8.9018 19.6157,5.0000 20,1.0981 19.6157,-2.6536 18.4775,-6.1114 16.6293,-9.1421 14.1421,-11.6293 11.1114,-13.4775 7.6536,-14.6157 3.9018,-15 1.53e-14,-14.6157 -3.9018,-13.4775 -7.6536,-11.6293 -11.1114,-9.1421 -14.1421,-6.1114 -16.6293,-2.6536 -18.4775,1.0981 -19.6157,5.0000 -20,8.9018 -19.6157,12.6536 -18.4775,14.9999 -17.2234)) +POLYGON((15 -17.2234,17.3463 -18.4776,21.0982 -19.6157,25 -20,28.9018 -19.6157,32.6537 -18.4776,36.1114 -16.6294,39.1421 -14.1421,41.6294 -11.1114,43.4776 -7.6537,44.6157 -3.9018,45 0,44.6157 3.9018,43.4776 7.6537,41.6294 11.1114,39.1421 14.1421,36.1114 16.6294,32.6537 18.4776,28.9018 19.6157,25 20,21.0982 19.6157,17.3463 18.4776,15 17.2234,12.6537 18.4776,8.9018 19.6157,5 20,1.0982 19.6157,-2.6537 18.4776,-6.1114 16.6294,-9.1421 14.1421,-11.6294 11.1114,-13.4776 7.6537,-14.6157 3.9018,-15 0,-14.6157 -3.9018,-13.4776 -7.6537,-11.6294 -11.1114,-9.1421 -14.1421,-6.1114 -16.6294,-2.6537 -18.4776,1.0982 -19.6157,5 -20,8.9018 -19.6157,12.6537 -18.4776,15 -17.2234)) ##################################################################################### # ST_BUFFER(linestring, distance) ##################################################################################### @@ -97,19 +97,19 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_top_to_center), 0)) LINESTRING(15 25,15 10) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_line_horizontal), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_line_horizontal), 1)) -POLYGON((10 16,9.8049 15.9807,9.6173 15.9238,9.4444 15.8314,9.2928 15.7071,9.1685 15.5555,9.0761 15.3826,9.0192 15.1950,9 15,9.0192 14.8049,9.0761 14.6173,9.1685 14.4444,9.2928 14.2928,9.4444 14.1685,9.6173 14.0761,9.8049 14.0192,10 14,20 14,20 14,20.1950 14.0192,20.3826 14.0761,20.5555 14.1685,20.7071 14.2928,20.8314 14.4444,20.9238 14.6173,20.9807 14.8049,21 15,20.9807 15.1950,20.9238 15.3826,20.8314 15.5555,20.7071 15.7071,20.5555 15.8314,20.3826 15.9238,20.1950 15.9807,20 16,10 16)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5)); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5)) -POLYGON((5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754,5 0)) +POLYGON((10 16,9.8049 15.9808,9.6173 15.9239,9.4444 15.8315,9.2929 15.7071,9.1685 15.5556,9.0761 15.3827,9.0192 15.1951,9 15,9.0192 14.8049,9.0761 14.6173,9.1685 14.4444,9.2929 14.2929,9.4444 14.1685,9.6173 14.0761,9.8049 14.0192,10 14,20 14,20 14,20.1951 14.0192,20.3827 14.0761,20.5556 14.1685,20.7071 14.2929,20.8315 14.4444,20.9239 14.6173,20.9808 14.8049,21 15,20.9808 15.1951,20.9239 15.3827,20.8315 15.5556,20.7071 15.7071,20.5556 15.8315,20.3827 15.9239,20.1951 15.9808,20 16,10 16)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5)) +POLYGON((5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755,5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(10 10,10 15,15 15,15 10,10 10)'), 10)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(10 10,10 15,15 15,15 10,10 10)'), 10)) -POLYGON((10 0,15 0,16.9509 0.1921,18.8268 0.7612,20.5557 1.6853,22.0710 2.9289,23.3146 4.4442,24.2387 6.1731,24.8078 8.0490,25 10,25 15,24.8078 16.9509,24.2387 18.8268,23.3146 20.5557,22.0710 22.0710,20.5557 23.3146,18.8268 24.2387,16.9509 24.8078,15 25,10 25,8.0490 24.8078,6.1731 24.2387,4.4442 23.3146,2.9289 22.0710,1.6853 20.5557,0.7612 18.8268,0.1921 16.9509,0 15,0 10,0.1921 8.0490,0.7612 6.1731,1.6853 4.4442,2.9289 2.9289,4.4442 1.6853,6.1731 0.7612,8.0490 0.1921,10 0)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000)); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000)) -POLYGON((1707.1067 -292.8932,708.1067 706.1067,707.1069 707.1067,555.5703 831.4695,382.6835 923.8795,195.0904 980.7852,0.0001 999.9999,-195.0901 980.7852,-382.6832 923.8795,-555.5700 831.4696,-707.1066 707.1068,-831.4694 555.5702,-923.8794 382.6834,-980.7851 195.0903,-999.9998 0.0000,-980.7851 -195.0902,-923.8794 -382.6833,-831.4695 -555.5701,-707.1067 -707.1067,-706.1067 -708.1067,292.8931 -1707.1067,444.4297 -1831.4696,617.3165 -1923.8795,804.9096 -1980.7852,999.9999 -2000,1195.0903 -1980.7852,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1067 -1707.1067,1831.4695 -1555.5702,1923.8795 -1382.6834,1980.7852 -1195.0903,1999.9999 -1000.0000,1980.7852 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1067 -292.8932)) +POLYGON((10 0,15 0,16.9509 0.1921,18.8268 0.7612,20.5557 1.6853,22.0711 2.9289,23.3147 4.4443,24.2388 6.1732,24.8079 8.0491,25 10,25 15,24.8079 16.9509,24.2388 18.8268,23.3147 20.5557,22.0711 22.0711,20.5557 23.3147,18.8268 24.2388,16.9509 24.8079,15 25,10 25,8.0491 24.8079,6.1732 24.2388,4.4443 23.3147,2.9289 22.0711,1.6853 20.5557,0.7612 18.8268,0.1921 16.9509,0 15,0 10,0.1921 8.0491,0.7612 6.1732,1.6853 4.4443,2.9289 2.9289,4.4443 1.6853,6.1732 0.7612,8.0491 0.1921,10 0)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000)) +POLYGON((1707.1068 -292.8932,708.1068 706.1068,707.1069 707.1067,555.5704 831.4696,382.6836 923.8795,195.0905 980.7853,0.0002 1000,-195.0902 980.7853,-382.6833 923.8796,-555.5701 831.4696,-707.1066 707.1068,-831.4695 555.5703,-923.8794 382.6835,-980.7852 195.0904,-999.9999 0.0001,-980.7852 -195.0903,-923.8795 -382.6834,-831.4695 -555.5702,-707.1067 -707.1067,-706.1068 -708.1068,292.8932 -1707.1067,444.4298 -1831.4696,617.3166 -1923.8795,804.9097 -1980.7853,1000 -2000,1195.0903 -1980.7853,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1068 -1707.1068,1831.4696 -1555.5703,1923.8795 -1382.6835,1980.7853 -1195.0904,2000 -1000,1980.7853 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1068 -292.8932)) SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=110; ST_ASTEXT(ST_BUFFER(g, 20)) -POLYGON((10 35,6.0981 34.6157,2.3463 33.4775,-1.1114 31.6293,-4.1421 29.1421,-6.6293 26.1114,-8.4775 22.6536,-9.6157 18.9018,-10 15.0000,-9.6157 11.0981,-8.4775 7.3463,-6.6293 3.8885,-4.1421 0.8578,-1.1114 -1.6293,2.3463 -3.4775,6.0981 -4.6157,10 -5,20 -5,20 -5,23.9018 -4.6157,27.6536 -3.4775,31.1114 -1.6293,34.1421 0.8578,36.6293 3.8885,38.4775 7.3463,39.6157 11.0981,40 15,39.6157 18.9018,38.4775 22.6536,36.6293 26.1114,34.1421 29.1421,31.1114 31.6293,27.6536 33.4775,23.9018 34.6157,20 35,10 35)) +POLYGON((10 35,6.0982 34.6157,2.3463 33.4776,-1.1114 31.6294,-4.1421 29.1421,-6.6294 26.1114,-8.4776 22.6537,-9.6157 18.9018,-10 15,-9.6157 11.0982,-8.4776 7.3463,-6.6294 3.8886,-4.1421 0.8579,-1.1114 -1.6294,2.3463 -3.4776,6.0982 -4.6157,10 -5,20 -5,20 -5,23.9018 -4.6157,27.6537 -3.4776,31.1114 -1.6294,34.1421 0.8579,36.6294 3.8886,38.4776 7.3463,39.6157 11.0982,40 15,39.6157 18.9018,38.4776 22.6537,36.6294 26.1114,34.1421 29.1421,31.1114 31.6294,27.6537 33.4776,23.9018 34.6157,20 35,10 35)) ##################################################################################### # ST_BUFFER(multilinestring, distance) ##################################################################################### @@ -118,22 +118,22 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_lines_near_vertical), 0)) LINESTRING(0 5,15 25,0 25) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_lines_near_horizontal), 2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_lines_near_horizontal), 2)) -POLYGON((5.0977 9.6089,23.9710 -1.7149,24.3253 -1.8827,24.7056 -1.9782,25.0972 -1.9976,25.4850 -1.9402,25.8542 -1.8083,26.1906 -1.6069,26.4812 -1.3437,26.7149 -1.0289,26.8827 -0.6746,26.9782 -0.2943,26.9976 0.0972,26.9402 0.4850,26.8083 0.8542,26.6069 1.1906,26.3437 1.4812,26.0289 1.7149,7.1557 13.0389,16.7149 28.9710,16.8805 29.3192,16.9762 29.6928,16.9984 30.0777,16.9464 30.4598,16.8219 30.8248,16.6298 31.1591,16.3770 31.4504,16.0731 31.6877,15.7292 31.8622,15.3583 31.9676,14.9740 31.9998,14.5907 31.9576,14.2226 31.8427,13.8834 31.6593,13.5857 31.4142,-1.4142 16.4142,-1.6463 16.1355,-1.8243 15.8196,-1.9423 15.4766,-1.9965 15.1181,-1.9850 14.7556,-1.9082 14.4011,-1.7687 14.0664,-1.5710 13.7623,-1.3217 13.4990,-1.0289 13.2850,1.6677 11.6669,-1.7149 6.0289,-1.8827 5.6746,-1.9782 5.2943,-1.9976 4.9027,-1.9402 4.5149,-1.8083 4.1457,-1.6069 3.8093,-1.3437 3.5187,-1.0289 3.2850,-0.6746 3.1172,-0.2943 3.0217,0.0972 3.0023,0.4850 3.0597,0.8542 3.1916,1.1906 3.3930,1.4812 3.6562,1.7149 3.9710,5.0977 9.6089),(4.9264 17.0979,3.7257 15.0969,3.2255 15.3970,4.9264 17.0979)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10)); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10)) -POLYGON((9.8078 -1.9509,10 0,9.8078 1.9509,9.2387 3.8268,8.3146 5.5557,7.0710 7.0710,5.5557 8.3146,3.8268 9.2387,1.9509 9.8078,2.48e-14 10,-1.9509 9.8078,-3.8268 9.2387,-5.5557 8.3146,-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509)) +POLYGON((5.0978 9.609,23.971 -1.715,24.3254 -1.8828,24.7056 -1.9782,25.0972 -1.9976,25.4851 -1.9403,25.8543 -1.8084,26.1907 -1.607,26.4813 -1.3438,26.715 -1.029,26.8828 -0.6746,26.9782 -0.2944,26.9976 0.0972,26.9403 0.4851,26.8084 0.8543,26.607 1.1907,26.3438 1.4813,26.029 1.715,7.1557 13.0389,16.715 28.971,16.8806 29.3193,16.9763 29.6928,16.9985 30.0778,16.9464 30.4599,16.822 30.8249,16.6298 31.1592,16.3771 31.4504,16.0731 31.6877,15.7293 31.8623,15.3583 31.9676,14.9741 31.9998,14.5908 31.9577,14.2227 31.8428,13.8835 31.6593,13.5858 31.4142,-1.4142 16.4142,-1.6463 16.1356,-1.8243 15.8196,-1.9424 15.4767,-1.9965 15.1181,-1.985 14.7556,-1.9083 14.4012,-1.7687 14.0664,-1.5711 13.7624,-1.3218 13.499,-1.029 13.285,1.6678 11.6669,-1.715 6.029,-1.8828 5.6746,-1.9782 5.2944,-1.9976 4.9028,-1.9403 4.5149,-1.8084 4.1457,-1.607 3.8093,-1.3438 3.5187,-1.029 3.285,-0.6746 3.1172,-0.2944 3.0218,0.0972 3.0024,0.4851 3.0597,0.8543 3.1916,1.1907 3.393,1.4813 3.6562,1.715 3.971,5.0978 9.609),(4.9264 17.098,3.7258 15.0969,3.2255 15.3971,4.9264 17.098)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10)) +POLYGON((9.8079 -1.9509,10 0,9.8079 1.9509,9.2388 3.8268,8.3147 5.5557,7.0711 7.0711,5.5557 8.3147,3.8268 9.2388,1.9509 9.8079,0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50)) -POLYGON((0 -50,5 -50,14.7545 -49.0392,24.1341 -46.1939,32.7785 -41.5734,40.3553 -35.3553,46.5734 -27.7785,51.1939 -19.1341,54.0392 -9.7545,55 0,55 5,54.0392 14.7545,51.1939 24.1341,46.5734 32.7785,40.3553 40.3553,32.7785 46.5734,24.1341 51.1939,14.7545 54.0392,5 55,0 55,-9.7545 54.0392,-19.1341 51.1939,-27.7785 46.5734,-35.3553 40.3553,-41.5734 32.7785,-46.1939 24.1341,-49.0392 14.7545,-50 5,-50 0,-49.0392 -9.7545,-46.1939 -19.1341,-41.5734 -27.7785,-35.3553 -35.3553,-27.7785 -41.5734,-19.1341 -46.1939,-9.7545 -49.0392,0 -50)) +POLYGON((0 -50,5 -50,14.7545 -49.0393,24.1342 -46.194,32.7785 -41.5735,40.3553 -35.3553,46.5735 -27.7785,51.194 -19.1342,54.0393 -9.7545,55 0,55 5,54.0393 14.7545,51.194 24.1342,46.5735 32.7785,40.3553 40.3553,32.7785 46.5735,24.1342 51.194,14.7545 54.0393,5 55,0 55,-9.7545 54.0393,-19.1342 51.194,-27.7785 46.5735,-35.3553 40.3553,-41.5735 32.7785,-46.194 24.1342,-49.0393 14.7545,-50 5,-50 0,-49.0393 -9.7545,-46.194 -19.1342,-41.5735 -27.7785,-35.3553 -35.3553,-27.7785 -41.5735,-19.1342 -46.194,-9.7545 -49.0393,0 -50)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100)) -POLYGON((5.0000 109.5075,2.48e-13 110,-19.5090 108.0785,-38.2683 102.3879,-55.5570 93.1469,-70.7106 80.7106,-83.1469 65.5570,-92.3879 48.2683,-98.0785 29.5090,-100 10.0000,-99.5075 5.0000,-100 7.65e-14,-98.0785 -19.5090,-92.3879 -38.2683,-83.1469 -55.5570,-70.7106 -70.7106,-55.5570 -83.1469,-38.2683 -92.3879,-19.5090 -98.0785,0 -100,10 -100,29.5090 -98.0785,48.2683 -92.3879,65.5570 -83.1469,80.7106 -70.7106,93.1469 -55.5570,102.3879 -38.2683,108.0785 -19.5090,110 0,109.5075 5.0000,110 9.9999,108.0785 29.5090,102.3879 48.2683,93.1469 65.5570,80.7106 80.7106,65.5570 93.1469,48.2683 102.3879,29.5090 108.0785,10.0000 110,5.0000 109.5075)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.00 0.00),(2 2,4 -9.00))'), 1000)); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.00 0.00),(2 2,4 -9.00))'), 1000)) -POLYGON((292.89 -1707.10,444.42 -1831.46,617.31 -1923.87,804.90 -1980.78,999.99 -2000,1195.09 -1980.78,1382.68 -1923.87,1555.57 -1831.46,1707.10 -1707.10,1831.46 -1555.57,1923.87 -1382.68,1980.78 -1195.09,1999.99 -1000.00,1980.78 -804.90,1923.87 -617.31,1831.46 -444.42,1707.10 -292.89,735.31 678.89,720.69 697.32,571.23 824.17,399.90 919.42,213.27 979.42,18.52 1001.86,-176.85 985.87,-194.48 980.84,-195.09 980.78,-201.43 978.85,-365.36 932.07,-379.37 924.88,-382.68 923.87,-415.67 906.24,-539.75 842.53,-549.84 834.52,-555.57 831.46,-609.83 786.93,-693.32 720.69,-699.69 713.18,-707.10 707.10,-772.92 626.90,-820.17 571.23,-823.45 565.33,-831.46 555.57,-895.93 434.95,-915.42 399.90,-916.56 396.37,-923.87 382.68,-972.63 221.96,-975.42 213.27,-975.52 212.43,-980.78 195.09,-999.99 0.00,-980.78 -195.09,-930.55 -360.69,-926.07 -376.36,-925.39 -377.70,-923.87 -382.68,-897.33 -432.34,-836.53 -550.75,-714.69 -704.32,-682.90 -731.30,292.89 -1707.10)) +POLYGON((5 109.5075,0 110,-19.509 108.0785,-38.2683 102.388,-55.557 93.147,-70.7107 80.7107,-83.147 65.557,-92.388 48.2683,-98.0785 29.509,-100 10,-99.5075 5,-100 0,-98.0785 -19.509,-92.388 -38.2683,-83.147 -55.557,-70.7107 -70.7107,-55.557 -83.147,-38.2683 -92.388,-19.509 -98.0785,0 -100,10 -100,29.509 -98.0785,48.2683 -92.388,65.557 -83.147,80.7107 -70.7107,93.147 -55.557,102.388 -38.2683,108.0785 -19.509,110 0,109.5075 5,110 10,108.0785 29.509,102.388 48.2683,93.147 65.557,80.7107 80.7107,65.557 93.147,48.2683 102.388,29.509 108.0785,10 110,5 109.5075)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000)) +POLYGON((292.89 -1707.11,444.43 -1831.47,617.32 -1923.88,804.91 -1980.79,1000 -2000,1195.09 -1980.79,1382.68 -1923.88,1555.57 -1831.47,1707.11 -1707.11,1831.47 -1555.57,1923.88 -1382.68,1980.79 -1195.09,2000 -1000,1980.79 -804.91,1923.88 -617.32,1831.47 -444.43,1707.11 -292.89,735.31 678.9,720.7 697.32,571.24 824.17,399.9 919.43,213.27 979.43,18.53 1001.86,-176.85 985.88,-194.48 980.85,-195.09 980.79,-201.44 978.86,-365.36 932.08,-379.37 924.88,-382.68 923.88,-415.68 906.24,-539.75 842.54,-549.85 834.53,-555.57 831.47,-609.84 786.93,-693.32 720.7,-699.7 713.19,-707.11 707.11,-772.93 626.91,-820.17 571.24,-823.45 565.34,-831.47 555.57,-895.94 434.96,-915.43 399.9,-916.56 396.37,-923.88 382.68,-972.63 221.96,-975.43 213.27,-975.52 212.44,-980.79 195.09,-1000 0,-980.79 -195.09,-930.55 -360.69,-926.08 -376.36,-925.39 -377.7,-923.88 -382.68,-897.34 -432.34,-836.54 -550.75,-714.7 -704.33,-682.91 -731.3,292.89 -1707.11)) SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=114; ST_ASTEXT(ST_BUFFER(g, 20)) -POLYGON((-17.2187 14.9911,-18.0336 13.6479,-19.3742 9.9636,-19.9703 6.0885,-19.7989 2.1715,-18.8667 -1.6366,-17.2094 -5.1898,-14.8908 -8.3514,-11.9999 -11.0000,-8.6479 -13.0336,-4.9636 -14.3742,-1.0885 -14.9703,2.8284 -14.7989,6.6366 -13.8667,10.1898 -12.2094,13.3514 -9.8908,16 -7,31 13,32.9301 16.1393,34.2514 19.5796,34.9191 23.2038,34.9105 26.8891,34.2259 30.5102,32.8885 33.9442,30.9437 37.0746,28.4576 39.7949,25.5146 42.0130,22.2145 43.6534,18.6695 44.6604,15 45,0 45,-3.9018 44.6157,-7.6536 43.4775,-11.1114 41.6293,-14.1421 39.1421,-16.6293 36.1114,-18.4775 32.6536,-19.6157 28.9018,-20 25.0000,-19.6157 21.0981,-18.4775 17.3463,-17.2187 14.9911)) +POLYGON((-17.2187 14.9912,-18.0336 13.648,-19.3743 9.9636,-19.9704 6.0885,-19.799 2.1716,-18.8668 -1.6367,-17.2095 -5.1899,-14.8909 -8.3515,-12 -11,-8.648 -13.0336,-4.9636 -14.3743,-1.0885 -14.9704,2.8284 -14.799,6.6367 -13.8668,10.1899 -12.2095,13.3515 -9.8909,16 -7,31 13,32.9301 16.1394,34.2515 19.5796,34.9192 23.2039,34.9106 26.8891,34.2259 30.5103,32.8885 33.9443,30.9438 37.0746,28.4577 39.795,25.5146 42.013,22.2146 43.6534,18.6696 44.6605,15 45,0 45,-3.9018 44.6157,-7.6537 43.4776,-11.1114 41.6294,-14.1421 39.1421,-16.6294 36.1114,-18.4776 32.6537,-19.6157 28.9018,-20 25,-19.6157 21.0982,-18.4776 17.3463,-17.2187 14.9912)) ##################################################################################### # ST_BUFFER(polygon, distance) ##################################################################################### @@ -142,34 +142,34 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star), 0)) POLYGON((5 0,7 10,0 15,10 15,15 25,20 15,30 15,22 10,25 0,15 5,5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_elem_vertical), 0.5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_elem_vertical), 0.5)) -POLYGON((14.9999 4.4409,24.7763 -0.4472,24.8628 -0.4808,24.9540 -0.4978,25.0467 -0.4978,25.1378 -0.4806,25.2242 -0.4468,25.3029 -0.3977,25.3712 -0.3349,25.4267 -0.2606,25.4674 -0.1773,25.4922 -0.0879,25.4999 0.0044,25.4905 0.0967,25.4642 0.1856,15.4642 25.1856,15.4226 25.2671,15.3669 25.3396,15.2989 25.4007,15.2209 25.4485,15.1356 25.4812,15.0457 25.4979,14.9542 25.4979,14.8643 25.4812,14.7790 25.4485,14.7010 25.4007,14.6330 25.3396,14.5773 25.2671,14.5357 25.1856,4.5357 0.1856,4.5094 0.0967,4.5000 0.0044,4.5077 -0.0879,4.5325 -0.1773,4.5732 -0.2606,4.6287 -0.3349,4.6970 -0.3977,4.7757 -0.4468,4.8621 -0.4806,4.9532 -0.4978,5.0459 -0.4978,5.1371 -0.4808,5.2236 -0.4472,14.9999 4.4409)) +POLYGON((15 4.441,24.7764 -0.4472,24.8628 -0.4808,24.954 -0.4979,25.0468 -0.4978,25.1379 -0.4806,25.2243 -0.4469,25.303 -0.3978,25.3712 -0.335,25.4267 -0.2606,25.4675 -0.1773,25.4922 -0.0879,25.5 0.0045,25.4905 0.0968,25.4642 0.1857,15.4642 25.1857,15.4227 25.2671,15.367 25.3396,15.299 25.4008,15.221 25.4485,15.1356 25.4813,15.0457 25.4979,14.9543 25.4979,14.8644 25.4813,14.779 25.4485,14.701 25.4008,14.633 25.3396,14.5773 25.2671,14.5358 25.1857,4.5358 0.1857,4.5095 0.0968,4.5 0.0045,4.5078 -0.0879,4.5325 -0.1773,4.5733 -0.2606,4.6288 -0.335,4.697 -0.3978,4.7757 -0.4469,4.8621 -0.4806,4.9532 -0.4978,5.046 -0.4979,5.1372 -0.4808,5.2236 -0.4472,15 4.441)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((3 3,5 5,7 3,3 3))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((3 3,5 5,7 3,3 3))'), 1)) -POLYGON((2.2928 3.7071,2.1685 3.5555,2.0761 3.3826,2.0192 3.1950,2 3.0000,2.0192 2.8049,2.0761 2.6173,2.1685 2.4444,2.2928 2.2928,2.4444 2.1685,2.6173 2.0761,2.8049 2.0192,3 2,7 2,7.1950 2.0192,7.3826 2.0761,7.5555 2.1685,7.7071 2.2928,7.8314 2.4444,7.9238 2.6173,7.9807 2.8049,8 2.9999,7.9807 3.1950,7.9238 3.3826,7.8314 3.5555,7.7071 3.7071,5.7071 5.7071,5.5555 5.8314,5.3826 5.9238,5.1950 5.9807,5 6,4.8049 5.9807,4.6173 5.9238,4.4444 5.8314,4.2928 5.7071,2.2928 3.7071)) +POLYGON((2.2929 3.7071,2.1685 3.5556,2.0761 3.3827,2.0192 3.1951,2 3,2.0192 2.8049,2.0761 2.6173,2.1685 2.4444,2.2929 2.2929,2.4444 2.1685,2.6173 2.0761,2.8049 2.0192,3 2,7 2,7.1951 2.0192,7.3827 2.0761,7.5556 2.1685,7.7071 2.2929,7.8315 2.4444,7.9239 2.6173,7.9808 2.8049,8 3,7.9808 3.1951,7.9239 3.3827,7.8315 3.5556,7.7071 3.7071,5.7071 5.7071,5.5556 5.8315,5.3827 5.9239,5.1951 5.9808,5 6,4.8049 5.9808,4.6173 5.9239,4.4444 5.8315,4.2929 5.7071,2.2929 3.7071)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5)) -POLYGON((-5 0,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,0 -5,10 -5,10.9754 -4.9039,11.9134 -4.6193,12.7778 -4.1573,13.5355 -3.5355,14.1573 -2.7778,14.6193 -1.9134,14.9039 -0.9754,15 0,15 10,14.9039 10.9754,14.6193 11.9134,14.1573 12.7778,13.5355 13.5355,12.7778 14.1573,11.9134 14.6193,10.9754 14.9039,10 15,0 15,-0.9754 14.9039,-1.9134 14.6193,-2.7778 14.1573,-3.5355 13.5355,-4.1573 12.7778,-4.6193 11.9134,-4.9039 10.9754,-5 10,-5 0)) +POLYGON((-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,10 -5,10.9755 -4.9039,11.9134 -4.6194,12.7779 -4.1573,13.5355 -3.5355,14.1573 -2.7779,14.6194 -1.9134,14.9039 -0.9755,15 0,15 10,14.9039 10.9755,14.6194 11.9134,14.1573 12.7779,13.5355 13.5355,12.7779 14.1573,11.9134 14.6194,10.9755 14.9039,10 15,0 15,-0.9755 14.9039,-1.9134 14.6194,-2.7779 14.1573,-3.5355 13.5355,-4.1573 12.7779,-4.6194 11.9134,-4.9039 10.9755,-5 10,-5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10)) -POLYGON((0 10,0.1921 8.0490,0.7612 6.1731,1.6853 4.4442,2.9289 2.9289,4.4442 1.6853,6.1731 0.7612,8.0490 0.1921,10 0,20 0,21.9509 0.1921,23.8268 0.7612,25.5557 1.6853,27.0710 2.9289,28.3146 4.4442,29.2387 6.1731,29.8078 8.0490,30 10,30 20,29.8078 21.9509,29.2387 23.8268,28.3146 25.5557,27.0710 27.0710,25.5557 28.3146,23.8268 29.2387,21.9509 29.8078,20 30,10 30,8.0490 29.8078,6.1731 29.2387,4.4442 28.3146,2.9289 27.0710,1.6853 25.5557,0.7612 23.8268,0.1921 21.9509,0 20,0 10)) +POLYGON((0 10,0.1921 8.0491,0.7612 6.1732,1.6853 4.4443,2.9289 2.9289,4.4443 1.6853,6.1732 0.7612,8.0491 0.1921,10 0,20 0,21.9509 0.1921,23.8268 0.7612,25.5557 1.6853,27.0711 2.9289,28.3147 4.4443,29.2388 6.1732,29.8079 8.0491,30 10,30 20,29.8079 21.9509,29.2388 23.8268,28.3147 25.5557,27.0711 27.0711,25.5557 28.3147,23.8268 29.2388,21.9509 29.8079,20 30,10 30,8.0491 29.8079,6.1732 29.2388,4.4443 28.3147,2.9289 27.0711,1.6853 25.5557,0.7612 23.8268,0.1921 21.9509,0 20,0 10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10)) -POLYGON((17.0710 -7.0710,18.3146 -5.5557,19.2387 -3.8268,19.8078 -1.9509,20 0,19.8078 1.9509,19.2387 3.8268,18.3146 5.5557,17.0710 7.0710,7.0710 17.0710,5.5557 18.3146,3.8268 19.2387,1.9509 19.8078,2.83e-15 20,-1.9509 19.8078,-3.8268 19.2387,-5.5557 18.3146,-7.0710 17.0710,-17.0710 7.0710,-18.3146 5.5557,-19.2387 3.8268,-19.8078 1.9509,-20 7.65e-15,-19.8078 -1.9509,-19.2387 -3.8268,-18.3146 -5.5557,-17.0710 -7.0710,-7.0710 -17.0710,-5.5557 -18.3146,-3.8268 -19.2387,-1.9509 -19.8078,6.12e-16 -20,1.9509 -19.8078,3.8268 -19.2387,5.5557 -18.3146,7.0710 -17.0710,17.0710 -7.0710)) +POLYGON((17.0711 -7.0711,18.3147 -5.5557,19.2388 -3.8268,19.8079 -1.9509,20 0,19.8079 1.9509,19.2388 3.8268,18.3147 5.5557,17.0711 7.0711,7.0711 17.0711,5.5557 18.3147,3.8268 19.2388,1.9509 19.8079,0 20,-1.9509 19.8079,-3.8268 19.2388,-5.5557 18.3147,-7.0711 17.0711,-17.0711 7.0711,-18.3147 5.5557,-19.2388 3.8268,-19.8079 1.9509,-20 0,-19.8079 -1.9509,-19.2388 -3.8268,-18.3147 -5.5557,-17.0711 -7.0711,-7.0711 -17.0711,-5.5557 -18.3147,-3.8268 -19.2388,-1.9509 -19.8079,0 -20,1.9509 -19.8079,3.8268 -19.2388,5.5557 -18.3147,7.0711 -17.0711,17.0711 -7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100)) -POLYGON((-100 0,-98.0785 -19.5090,-92.3879 -38.2683,-83.1469 -55.5570,-70.7106 -70.7106,-55.5570 -83.1469,-38.2683 -92.3879,-19.5090 -98.0785,0 -100,10 -100,29.5090 -98.0785,48.2683 -92.3879,65.5570 -83.1469,80.7106 -70.7106,93.1469 -55.5570,102.3879 -38.2683,108.0785 -19.5090,110 0,110 10,108.0785 29.5090,102.3879 48.2683,93.1469 65.5570,80.7106 80.7106,65.5570 93.1469,48.2683 102.3879,29.5090 108.0785,10 110,0 110,-19.5090 108.0785,-38.2683 102.3879,-55.5570 93.1469,-70.7106 80.7106,-83.1469 65.5570,-92.3879 48.2683,-98.0785 29.5090,-100 10,-100 0)) +POLYGON((-100 0,-98.0785 -19.509,-92.388 -38.2683,-83.147 -55.557,-70.7107 -70.7107,-55.557 -83.147,-38.2683 -92.388,-19.509 -98.0785,0 -100,10 -100,29.509 -98.0785,48.2683 -92.388,65.557 -83.147,80.7107 -70.7107,93.147 -55.557,102.388 -38.2683,108.0785 -19.509,110 0,110 10,108.0785 29.509,102.388 48.2683,93.147 65.557,80.7107 80.7107,65.557 93.147,48.2683 102.388,29.509 108.0785,10 110,0 110,-19.509 108.0785,-38.2683 102.388,-55.557 93.147,-70.7107 80.7107,-83.147 65.557,-92.388 48.2683,-98.0785 29.509,-100 10,-100 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0))'), 5)) -POLYGON((-5 0,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,0 -5,10 -5,10.9754 -4.9039,11.9134 -4.6193,12.7778 -4.1573,13.5355 -3.5355,14.1573 -2.7778,14.6193 -1.9134,14.9039 -0.9754,15 0,15 10,14.9039 10.9754,14.6193 11.9134,14.1573 12.7778,13.5355 13.5355,12.7778 14.1573,11.9134 14.6193,10.9754 14.9039,10 15,0 15,-0.9754 14.9039,-1.9134 14.6193,-2.7778 14.1573,-3.5355 13.5355,-4.1573 12.7778,-4.6193 11.9134,-4.9039 10.9754,-5 10,-5 0)) +POLYGON((-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,10 -5,10.9755 -4.9039,11.9134 -4.6194,12.7779 -4.1573,13.5355 -3.5355,14.1573 -2.7779,14.6194 -1.9134,14.9039 -0.9755,15 0,15 10,14.9039 10.9755,14.6194 11.9134,14.1573 12.7779,13.5355 13.5355,12.7779 14.1573,11.9134 14.6194,10.9755 14.9039,10 15,0 15,-0.9755 14.9039,-1.9134 14.6194,-2.7779 14.1573,-3.5355 13.5355,-4.1573 12.7779,-4.6194 11.9134,-4.9039 10.9755,-5 10,-5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((4 4,4 6,6 6,6 4,4 4),(0 0,0 10,10 10,10 0,0 0))'), 10)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((4 4,4 6,6 6,6 4,4 4),(0 0,0 10,10 10,10 0,0 0))'), 10)) -POLYGON((-6 4,-5.8078 2.0490,-5.2387 0.1731,-4.3146 -1.5557,-3.0710 -3.0710,-1.5557 -4.3146,0.1731 -5.2387,2.0490 -5.8078,4 -6,6 -6,7.9509 -5.8078,9.8268 -5.2387,11.5557 -4.3146,13.0710 -3.0710,14.3146 -1.5557,15.2387 0.1731,15.8078 2.0490,16 4,16 6,15.8078 7.9509,15.2387 9.8268,14.3146 11.5557,13.0710 13.0710,11.5557 14.3146,9.8268 15.2387,7.9509 15.8078,6 16,4 16,2.0490 15.8078,0.1731 15.2387,-1.5557 14.3146,-3.0710 13.0710,-4.3146 11.5557,-5.2387 9.8268,-5.8078 7.9509,-6 6,-6 4)) +POLYGON((-6 4,-5.8079 2.0491,-5.2388 0.1732,-4.3147 -1.5557,-3.0711 -3.0711,-1.5557 -4.3147,0.1732 -5.2388,2.0491 -5.8079,4 -6,6 -6,7.9509 -5.8079,9.8268 -5.2388,11.5557 -4.3147,13.0711 -3.0711,14.3147 -1.5557,15.2388 0.1732,15.8079 2.0491,16 4,16 6,15.8079 7.9509,15.2388 9.8268,14.3147 11.5557,13.0711 13.0711,11.5557 14.3147,9.8268 15.2388,7.9509 15.8079,6 16,4 16,2.0491 15.8079,0.1732 15.2388,-1.5557 14.3147,-3.0711 13.0711,-4.3147 11.5557,-5.2388 9.8268,-5.8079 7.9509,-6 6,-6 4)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((4 4,4 6,6 6,6 4,4 4),(8 8,8 10,10 10,10 8,8 8))'), 2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((4 4,4 6,6 6,6 4,4 4),(8 8,8 10,10 10,10 8,8 8))'), 2)) -POLYGON((2 4,2.0384 3.6098,2.1522 3.2346,2.3370 2.8888,2.5857 2.5857,2.8888 2.3370,3.2346 2.1522,3.6098 2.0384,4 2,6 2,6.3901 2.0384,6.7653 2.1522,7.1111 2.3370,7.4142 2.5857,7.6629 2.8888,7.8477 3.2346,7.9615 3.6098,8 4,8 6,7.9615 6.3901,7.8477 6.7653,7.6629 7.1111,7.4142 7.4142,7.1111 7.6629,6.7653 7.8477,6.3901 7.9615,6 8,4 8,3.6098 7.9615,3.2346 7.8477,2.8888 7.6629,2.5857 7.4142,2.3370 7.1111,2.1522 6.7653,2.0384 6.3901,2 6,2 4)) +POLYGON((2 4,2.0384 3.6098,2.1522 3.2346,2.3371 2.8889,2.5858 2.5858,2.8889 2.3371,3.2346 2.1522,3.6098 2.0384,4 2,6 2,6.3902 2.0384,6.7654 2.1522,7.1111 2.3371,7.4142 2.5858,7.6629 2.8889,7.8478 3.2346,7.9616 3.6098,8 4,8 6,7.9616 6.3902,7.8478 6.7654,7.6629 7.1111,7.4142 7.4142,7.1111 7.6629,6.7654 7.8478,6.3902 7.9616,6 8,4 8,3.6098 7.9616,3.2346 7.8478,2.8889 7.6629,2.5858 7.4142,2.3371 7.1111,2.1522 6.7654,2.0384 6.3902,2 6,2 4)) SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=100; ST_ASTEXT(ST_BUFFER(g, 20)) -POLYGON((15.0000 -17.3606,16.0557 -17.8885,19.6687 -19.2763,23.4815 -19.9422,27.3511 -19.8613,31.1326 -19.0365,34.6845 -17.4988,37.8736 -15.3058,40.5807 -12.5395,42.7042 -9.3036,44.1647 -5.7193,44.9075 -1.9209,44.9048 1.7904,46.0036 3.0048,47.9325 6.1443,49.2528 9.5844,49.9195 13.2084,49.9101 16.8931,49.2249 20.5136,47.8871 23.9469,45.9422 27.0766,43.4561 29.7963,40.5133 32.0138,37.2136 33.6537,33.6690 34.6605,32.3688 34.7808,30.9437 37.0746,28.4576 39.7949,25.5146 42.0130,22.2145 43.6534,18.6695 44.6604,14.9999 45,11.3304 44.6604,7.7854 43.6534,4.4853 42.0130,1.5423 39.7949,-0.9437 37.0746,-2.3762 34.7688,-3.8547 34.6250,-7.5648 33.5141,-10.9913 31.7089,-14.0057 29.2772,-16.4948 26.3101,-18.3654 22.9189,-19.5473 19.2307,-19.9963 15.3839,-19.6954 11.5227,-18.6559 7.7919,-16.9169 4.3314,-14.8482 1.6639,-14.9986 0.2281,-14.6959 -3.4738,-13.7139 -7.0560,-12.0864 -10.3948,-9.8695 -13.3751,-7.1398 -15.8941,-3.9914 -17.8648,-0.5328 -19.2194,3.1165 -19.9111,6.8309 -19.9160,10.4821 -19.2339,13.9442 -17.8885,15.0000 -17.3606)) +POLYGON((15 -17.3607,16.0557 -17.8885,19.6688 -19.2764,23.4815 -19.9423,27.3511 -19.8613,31.1326 -19.0366,34.6845 -17.4989,37.8737 -15.3058,40.5807 -12.5396,42.7043 -9.3037,44.1648 -5.7194,44.9075 -1.9209,44.9049 1.7904,46.0036 3.0049,47.9326 6.1444,49.2528 9.5845,49.9196 13.2084,49.9102 16.8932,49.225 20.5137,47.8872 23.947,45.9422 27.0766,43.4562 29.7963,40.5133 32.0138,37.2136 33.6538,33.6691 34.6606,32.3688 34.7809,30.9438 37.0746,28.4577 39.795,25.5146 42.013,22.2146 43.6534,18.6696 44.6605,15 45,11.3304 44.6605,7.7854 43.6534,4.4854 42.013,1.5423 39.795,-0.9438 37.0746,-2.3763 34.7688,-3.8547 34.625,-7.5649 33.5141,-10.9914 31.709,-14.0057 29.2773,-16.4949 26.3102,-18.3655 22.919,-19.5474 19.2308,-19.9963 15.384,-19.6954 11.5228,-18.6559 7.792,-16.9169 4.3314,-14.8483 1.6639,-14.9987 0.2282,-14.696 -3.4738,-13.714 -7.056,-12.0864 -10.3949,-9.8696 -13.3752,-7.1399 -15.8941,-3.9914 -17.8649,-0.5329 -19.2195,3.1165 -19.9111,6.8309 -19.916,10.4821 -19.234,13.9443 -17.8885,15 -17.3607)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), -2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), -2)) POLYGON((8 2,8 8,2 8,2 2,8 2)) @@ -181,7 +181,7 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), -10)) GEOMETRYCOLLECTION() SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -2)) -MULTIPOLYGON(((4 2,3.6098 2.0384,3.2346 2.1522,2.8888 2.3370,2.5857 2.5857,2.3370 2.8888,2.1522 3.2346,2.0384 3.6098,2 4,2 2,4 2)),((6 8,6.3901 7.9615,6.7653 7.8477,7.1111 7.6629,7.4142 7.4142,7.6629 7.1111,7.8477 6.7653,7.9615 6.3901,8 6,8 8,6 8)),((2 8,2 6,2.0384 6.3901,2.1522 6.7653,2.3370 7.1111,2.5857 7.4142,2.8888 7.6629,3.2346 7.8477,3.6098 7.9615,4 8,2 8)),((8 2,8 4,7.9615 3.6098,7.8477 3.2346,7.6629 2.8888,7.4142 2.5857,7.1111 2.3370,6.7653 2.1522,6.3901 2.0384,6 2,8 2))) +MULTIPOLYGON(((4 2,3.6098 2.0384,3.2346 2.1522,2.8889 2.3371,2.5858 2.5858,2.3371 2.8889,2.1522 3.2346,2.0384 3.6098,2 4,2 2,4 2)),((6 8,6.3902 7.9616,6.7654 7.8478,7.1111 7.6629,7.4142 7.4142,7.6629 7.1111,7.8478 6.7654,7.9616 6.3902,8 6,8 8,6 8)),((2 8,2 6,2.0384 6.3902,2.1522 6.7654,2.3371 7.1111,2.5858 7.4142,2.8889 7.6629,3.2346 7.8478,3.6098 7.9616,4 8,2 8)),((8 2,8 4,7.9616 3.6098,7.8478 3.2346,7.6629 2.8889,7.4142 2.5858,7.1111 2.3371,6.7654 2.1522,6.3902 2.0384,6 2,8 2))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -3)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -3)) GEOMETRYCOLLECTION() @@ -190,7 +190,7 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6, GEOMETRYCOLLECTION() SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -1)) -MULTIPOLYGON(((4 1,9 1,9 6,8.9807 5.8049,8.9238 5.6173,8.8314 5.4444,8.7071 5.2928,8.5555 5.1685,8.3826 5.0761,8.1950 5.0192,8 5,6 5,5.8049 5.0192,5.6173 5.0761,5.4444 5.1685,5.2928 5.2928,5.1685 5.4444,5.0761 5.6173,5.0192 5.8049,5 6,5 8,5.0192 8.1950,5.0761 8.3826,5.1685 8.5555,5.2928 8.7071,5.4444 8.8314,5.6173 8.9238,5.8049 8.9807,6 9,1 9,1 4,1.0192 4.1950,1.0761 4.3826,1.1685 4.5555,1.2928 4.7071,1.4444 4.8314,1.6173 4.9238,1.8049 4.9807,2 5,4 5,4.1950 4.9807,4.3826 4.9238,4.5555 4.8314,4.7071 4.7071,4.8314 4.5555,4.9238 4.3826,4.9807 4.1950,5 4,5 2,4.9807 1.8049,4.9238 1.6173,4.8314 1.4444,4.7071 1.2928,4.5555 1.1685,4.3826 1.0761,4.1950 1.0192,4 1)),((1 1,2 1,1.8049 1.0192,1.6173 1.0761,1.4444 1.1685,1.2928 1.2928,1.1685 1.4444,1.0761 1.6173,1.0192 1.8049,1 2,1 1)),((9 9,8 9,8.1950 8.9807,8.3826 8.9238,8.5555 8.8314,8.7071 8.7071,8.8314 8.5555,8.9238 8.3826,8.9807 8.1950,9 8,9 9))) +MULTIPOLYGON(((4 1,9 1,9 6,8.9808 5.8049,8.9239 5.6173,8.8315 5.4444,8.7071 5.2929,8.5556 5.1685,8.3827 5.0761,8.1951 5.0192,8 5,6 5,5.8049 5.0192,5.6173 5.0761,5.4444 5.1685,5.2929 5.2929,5.1685 5.4444,5.0761 5.6173,5.0192 5.8049,5 6,5 8,5.0192 8.1951,5.0761 8.3827,5.1685 8.5556,5.2929 8.7071,5.4444 8.8315,5.6173 8.9239,5.8049 8.9808,6 9,1 9,1 4,1.0192 4.1951,1.0761 4.3827,1.1685 4.5556,1.2929 4.7071,1.4444 4.8315,1.6173 4.9239,1.8049 4.9808,2 5,4 5,4.1951 4.9808,4.3827 4.9239,4.5556 4.8315,4.7071 4.7071,4.8315 4.5556,4.9239 4.3827,4.9808 4.1951,5 4,5 2,4.9808 1.8049,4.9239 1.6173,4.8315 1.4444,4.7071 1.2929,4.5556 1.1685,4.3827 1.0761,4.1951 1.0192,4 1)),((1 1,2 1,1.8049 1.0192,1.6173 1.0761,1.4444 1.1685,1.2929 1.2929,1.1685 1.4444,1.0761 1.6173,1.0192 1.8049,1 2,1 1)),((9 9,8 9,8.1951 8.9808,8.3827 8.9239,8.5556 8.8315,8.7071 8.7071,8.8315 8.5556,8.9239 8.3827,8.9808 8.1951,9 8,9 9))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -2)) MULTIPOLYGON(((2 8,2 6,4 6,4 8,2 8)),((8 2,8 4,6 4,6 2,8 2))) @@ -208,42 +208,42 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 0)) MULTIPOLYGON(((5 0,15 25,25 0,15 5,5 0)),((25 0,0 15,30 15,22 10,25 0))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((3 3,5 5,7 3,3 3)))'), 0.5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((3 3,5 5,7 3,3 3)))'), 0.5)) -POLYGON((2.6464 3.3535,2.5842 3.2777,2.5380 3.1913,2.5096 3.0975,2.5 3.0000,2.5096 2.9024,2.5380 2.8086,2.5842 2.7222,2.6464 2.6464,2.7222 2.5842,2.8086 2.5380,2.9024 2.5096,3 2.5,7 2.5,7.0975 2.5096,7.1913 2.5380,7.2777 2.5842,7.3535 2.6464,7.4157 2.7222,7.4619 2.8086,7.4903 2.9024,7.5 3,7.4903 3.0975,7.4619 3.1913,7.4157 3.2777,7.3535 3.3535,5.3535 5.3535,5.2777 5.4157,5.1913 5.4619,5.0975 5.4903,5 5.5,4.9024 5.4903,4.8086 5.4619,4.7222 5.4157,4.6464 5.3535,2.6464 3.3535)) +POLYGON((2.6464 3.3536,2.5843 3.2778,2.5381 3.1913,2.5096 3.0975,2.5 3,2.5096 2.9025,2.5381 2.8087,2.5843 2.7222,2.6464 2.6464,2.7222 2.5843,2.8087 2.5381,2.9025 2.5096,3 2.5,7 2.5,7.0975 2.5096,7.1913 2.5381,7.2778 2.5843,7.3536 2.6464,7.4157 2.7222,7.4619 2.8087,7.4904 2.9025,7.5 3,7.4904 3.0975,7.4619 3.1913,7.4157 3.2778,7.3536 3.3536,5.3536 5.3536,5.2778 5.4157,5.1913 5.4619,5.0975 5.4904,5 5.5,4.9025 5.4904,4.8087 5.4619,4.7222 5.4157,4.6464 5.3536,2.6464 3.3536)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1)) -POLYGON((5.0000 6.4142,0.7071 10.7071,0.5555 10.8314,0.3826 10.9238,0.1950 10.9807,-1.04e-15 11,-0.1950 10.9807,-0.3826 10.9238,-0.5555 10.8314,-0.7071 10.7071,-0.8314 10.5555,-0.9238 10.3826,-0.9807 10.1950,-1 10,-1 0,-0.9807 -0.1950,-0.9238 -0.3826,-0.8314 -0.5555,-0.7071 -0.7071,-0.5555 -0.8314,-0.3826 -0.9238,-0.1950 -0.9807,0 -1,10 -1,10.1950 -0.9807,10.3826 -0.9238,10.5555 -0.8314,10.7071 -0.7071,10.8314 -0.5555,10.9238 -0.3826,10.9807 -0.1950,11 -2.77e-16,11 10,10.9807 10.1950,10.9238 10.3826,10.8314 10.5555,10.7071 10.7071,10.5555 10.8314,10.3826 10.9238,10.1950 10.9807,10 11,9.8049 10.9807,9.6173 10.9238,9.4444 10.8314,9.2928 10.7071,5.0000 6.4142)) +POLYGON((5 6.4142,0.7071 10.7071,0.5556 10.8315,0.3827 10.9239,0.1951 10.9808,-0 11,-0.1951 10.9808,-0.3827 10.9239,-0.5556 10.8315,-0.7071 10.7071,-0.8315 10.5556,-0.9239 10.3827,-0.9808 10.1951,-1 10,-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0 -1,10 -1,10.1951 -0.9808,10.3827 -0.9239,10.5556 -0.8315,10.7071 -0.7071,10.8315 -0.5556,10.9239 -0.3827,10.9808 -0.1951,11 -0,11 10,10.9808 10.1951,10.9239 10.3827,10.8315 10.5556,10.7071 10.7071,10.5556 10.8315,10.3827 10.9239,10.1951 10.9808,10 11,9.8049 10.9808,9.6173 10.9239,9.4444 10.8315,9.2929 10.7071,5 6.4142)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20)) -POLYGON((-3.5191 29.6533,-3.9018 29.6157,-7.6536 28.4775,-11.1114 26.6293,-14.1421 24.1421,-16.6293 21.1114,-18.4775 17.6536,-19.6157 13.9018,-20 10,-20 0,-19.6157 -3.9018,-18.4775 -7.6536,-16.6293 -11.1114,-14.1421 -14.1421,-11.1114 -16.6293,-7.6536 -18.4775,-3.9018 -19.6157,1.22e-15 -20,3.9018 -19.6157,7.6536 -18.4775,11.1114 -16.6293,14.1421 -14.1421,24.1421 -4.1421,29.1421 0.8578,31.6293 3.8885,33.4775 7.3463,34.6157 11.0981,35 15,34.6157 18.9018,33.4775 22.6536,31.6293 26.1114,29.1421 29.1421,26.1114 31.6293,22.6536 33.4775,18.9018 34.6157,15 35,10 35,6.0981 34.6157,2.3463 33.4775,-1.1114 31.6293,-3.5191 29.6533)) +POLYGON((-3.5192 29.6534,-3.9018 29.6157,-7.6537 28.4776,-11.1114 26.6294,-14.1421 24.1421,-16.6294 21.1114,-18.4776 17.6537,-19.6157 13.9018,-20 10,-20 0,-19.6157 -3.9018,-18.4776 -7.6537,-16.6294 -11.1114,-14.1421 -14.1421,-11.1114 -16.6294,-7.6537 -18.4776,-3.9018 -19.6157,0 -20,3.9018 -19.6157,7.6537 -18.4776,11.1114 -16.6294,14.1421 -14.1421,24.1421 -4.1421,29.1421 0.8579,31.6294 3.8886,33.4776 7.3463,34.6157 11.0982,35 15,34.6157 18.9018,33.4776 22.6537,31.6294 26.1114,29.1421 29.1421,26.1114 31.6294,22.6537 33.4776,18.9018 34.6157,15 35,10 35,6.0982 34.6157,2.3463 33.4776,-1.1114 31.6294,-3.5192 29.6534)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4)) -POLYGON((-4 0,-3.9231 -0.7803,-3.6955 -1.5307,-3.3258 -2.2222,-2.8284 -2.8284,-2.2222 -3.3258,-1.5307 -3.6955,-0.7803 -3.9231,0 -4,10 -4,10.7803 -3.9231,11.5307 -3.6955,12.2222 -3.3258,12.8284 -2.8284,13.3258 -2.2222,13.6955 -1.5307,13.9231 -0.7803,14 0,14 10,13.9231 10.7803,13.6955 11.5307,13.3258 12.2222,12.8284 12.8284,12.2222 13.3258,11.5307 13.6955,10.7803 13.9231,10 14,0 14,-0.7803 13.9231,-1.5307 13.6955,-2.2222 13.3258,-2.8284 12.8284,-3.3258 12.2222,-3.6955 11.5307,-3.9231 10.7803,-4 10,-4 0)) +POLYGON((-4 0,-3.9231 -0.7804,-3.6955 -1.5307,-3.3259 -2.2223,-2.8284 -2.8284,-2.2223 -3.3259,-1.5307 -3.6955,-0.7804 -3.9231,0 -4,10 -4,10.7804 -3.9231,11.5307 -3.6955,12.2223 -3.3259,12.8284 -2.8284,13.3259 -2.2223,13.6955 -1.5307,13.9231 -0.7804,14 0,14 10,13.9231 10.7804,13.6955 11.5307,13.3259 12.2223,12.8284 12.8284,12.2223 13.3259,11.5307 13.6955,10.7804 13.9231,10 14,0 14,-0.7804 13.9231,-1.5307 13.6955,-2.2223 13.3259,-2.8284 12.8284,-3.3259 12.2223,-3.6955 11.5307,-3.9231 10.7804,-4 10,-4 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4)) -POLYGON((-4 0,-3.9231 -0.7803,-3.6955 -1.5307,-3.3258 -2.2222,-2.8284 -2.8284,-2.2222 -3.3258,-1.5307 -3.6955,-0.7803 -3.9231,0 -4,10 -4,10.7803 -3.9231,11.5307 -3.6955,12.2222 -3.3258,12.8284 -2.8284,13.3258 -2.2222,13.6955 -1.5307,13.9231 -0.7803,14 0,14 10,13.9231 10.7803,13.6955 11.5307,13.3258 12.2222,12.8284 12.8284,12.2222 13.3258,11.5307 13.6955,10.7803 13.9231,10 14,0 14,-0.7803 13.9231,-1.5307 13.6955,-2.2222 13.3258,-2.8284 12.8284,-3.3258 12.2222,-3.6955 11.5307,-3.9231 10.7803,-4 10,-4 0)) +POLYGON((-4 0,-3.9231 -0.7804,-3.6955 -1.5307,-3.3259 -2.2223,-2.8284 -2.8284,-2.2223 -3.3259,-1.5307 -3.6955,-0.7804 -3.9231,0 -4,10 -4,10.7804 -3.9231,11.5307 -3.6955,12.2223 -3.3259,12.8284 -2.8284,13.3259 -2.2223,13.6955 -1.5307,13.9231 -0.7804,14 0,14 10,13.9231 10.7804,13.6955 11.5307,13.3259 12.2223,12.8284 12.8284,12.2223 13.3259,11.5307 13.6955,10.7804 13.9231,10 14,0 14,-0.7804 13.9231,-1.5307 13.6955,-2.2223 13.3259,-2.8284 12.8284,-3.3259 12.2223,-3.6955 11.5307,-3.9231 10.7804,-4 10,-4 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)))'), 5)) -POLYGON((-5 0,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,0 -5,10 -5,10.9754 -4.9039,11.9134 -4.6193,12.7778 -4.1573,13.5355 -3.5355,14.1573 -2.7778,14.6193 -1.9134,14.9039 -0.9754,15 0,15 10,14.9039 10.9754,14.6193 11.9134,14.1573 12.7778,13.5355 13.5355,12.7778 14.1573,11.9134 14.6193,10.9754 14.9039,10 15,0 15,-0.9754 14.9039,-1.9134 14.6193,-2.7778 14.1573,-3.5355 13.5355,-4.1573 12.7778,-4.6193 11.9134,-4.9039 10.9754,-5 10,-5 0)) +POLYGON((-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,10 -5,10.9755 -4.9039,11.9134 -4.6194,12.7779 -4.1573,13.5355 -3.5355,14.1573 -2.7779,14.6194 -1.9134,14.9039 -0.9755,15 0,15 10,14.9039 10.9755,14.6194 11.9134,14.1573 12.7779,13.5355 13.5355,12.7779 14.1573,11.9134 14.6194,10.9755 14.9039,10 15,0 15,-0.9755 14.9039,-1.9134 14.6194,-2.7779 14.1573,-3.5355 13.5355,-4.1573 12.7779,-4.6194 11.9134,-4.9039 10.9755,-5 10,-5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((4 4,4 6,6 6,6 4,4 4),(0 0,0 10,10 10,10 0,0 0)))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((4 4,4 6,6 6,6 4,4 4),(0 0,0 10,10 10,10 0,0 0)))'), 5)) GEOMETRYCOLLECTION() SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((4 4,4 6,6 6,6 4,4 4),(8 8,8 10,10 10,10 8,8 8)))'), 2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((4 4,4 6,6 6,6 4,4 4),(8 8,8 10,10 10,10 8,8 8)))'), 2)) -POLYGON((2 4,2.0384 3.6098,2.1522 3.2346,2.3370 2.8888,2.5857 2.5857,2.8888 2.3370,3.2346 2.1522,3.6098 2.0384,4 2,6 2,6.3901 2.0384,6.7653 2.1522,7.1111 2.3370,7.4142 2.5857,7.6629 2.8888,7.8477 3.2346,7.9615 3.6098,8 4,8 6,7.9615 6.3901,7.8477 6.7653,7.6629 7.1111,7.4142 7.4142,7.1111 7.6629,6.7653 7.8477,6.3901 7.9615,6 8,4 8,3.6098 7.9615,3.2346 7.8477,2.8888 7.6629,2.5857 7.4142,2.3370 7.1111,2.1522 6.7653,2.0384 6.3901,2 6,2 4)) +POLYGON((2 4,2.0384 3.6098,2.1522 3.2346,2.3371 2.8889,2.5858 2.5858,2.8889 2.3371,3.2346 2.1522,3.6098 2.0384,4 2,6 2,6.3902 2.0384,6.7654 2.1522,7.1111 2.3371,7.4142 2.5858,7.6629 2.8889,7.8478 3.2346,7.9616 3.6098,8 4,8 6,7.9616 6.3902,7.8478 6.7654,7.6629 7.1111,7.4142 7.4142,7.1111 7.6629,6.7654 7.8478,6.3902 7.9616,6 8,4 8,3.6098 7.9616,3.2346 7.8478,2.8889 7.6629,2.5858 7.4142,2.3371 7.1111,2.1522 6.7654,2.0384 6.3902,2 6,2 4)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((10 10,10 0,5 10,10 10)),((0 10,0 20,5 10,0 10)))'), 20)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((10 10,10 0,5 10,10 10)),((0 10,0 20,5 10,0 10)))'), 20)) -POLYGON((-8.2926 -8.1360,-7.8885 -8.9442,-5.8618 -12.1820,-3.2564 -14.9754,-0.1676 -17.2226,3.2921 -18.8415,6.9966 -19.7732,10.8106 -19.9835,14.5950 -19.4649,18.2118 -18.2363,21.5291 -16.3425,24.4258 -13.8525,26.7963 -10.8573,28.5542 -7.4659,29.6352 -3.8023,30 0,30 10,29.6157 13.9018,28.4775 17.6536,26.6293 21.1114,24.1421 24.1421,21.1114 26.6293,18.2926 28.1360,17.8885 28.9442,15.8618 32.1820,13.2564 34.9754,10.1676 37.2226,6.7078 38.8415,3.0033 39.7732,-0.8106 39.9835,-4.5950 39.4649,-8.2118 38.2363,-11.5291 36.3425,-14.4258 33.8525,-16.7963 30.8573,-18.5542 27.4659,-19.6352 23.8023,-20 20,-20 10,-19.6157 6.0981,-18.4775 2.3463,-16.6293 -1.1114,-14.1421 -4.1421,-11.1114 -6.6293,-8.2926 -8.1360)) +POLYGON((-8.2927 -8.136,-7.8885 -8.9443,-5.8618 -12.1821,-3.2565 -14.9755,-0.1676 -17.2226,3.2922 -18.8416,6.9966 -19.7732,10.8106 -19.9836,14.5951 -19.465,18.2119 -18.2364,21.5292 -16.3425,24.4259 -13.8526,26.7964 -10.8573,28.5542 -7.466,29.6352 -3.8023,30 0,30 10,29.6157 13.9018,28.4776 17.6537,26.6294 21.1114,24.1421 24.1421,21.1114 26.6294,18.2927 28.136,17.8885 28.9443,15.8618 32.1821,13.2565 34.9755,10.1676 37.2226,6.7078 38.8416,3.0034 39.7732,-0.8106 39.9836,-4.5951 39.465,-8.2119 38.2364,-11.5292 36.3425,-14.4259 33.8526,-16.7964 30.8573,-18.5542 27.466,-19.6352 23.8023,-20 20,-20 10,-19.6157 6.0982,-18.4776 2.3463,-16.6294 -1.1114,-14.1421 -4.1421,-11.1114 -6.6294,-8.2927 -8.136)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)),((0 0,0 10,10 10,10 0,0 0)))'), 100)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)),((0 0,0 10,10 10,10 0,0 0)))'), 100)) -POLYGON((10 110,0 110,-19.5090 108.0785,-38.2683 102.3879,-55.5570 93.1469,-70.7106 80.7106,-83.1469 65.5570,-92.3879 48.2683,-98.0785 29.5090,-100 10,-100 0,-98.0785 -19.5090,-92.3879 -38.2683,-83.1469 -55.5570,-70.7106 -70.7106,-55.5570 -83.1469,-38.2683 -92.3879,-19.5090 -98.0785,0 -100,10 -100,29.5090 -98.0785,48.2683 -92.3879,65.5570 -83.1469,80.7106 -70.7106,93.1469 -55.5570,102.3879 -38.2683,108.0785 -19.5090,110 0,110 10,108.0785 29.5090,102.3879 48.2683,93.1469 65.5570,80.7106 80.7106,65.5570 93.1469,48.2683 102.3879,29.5090 108.0785,10 110)) +POLYGON((10 110,0 110,-19.509 108.0785,-38.2683 102.388,-55.557 93.147,-70.7107 80.7107,-83.147 65.557,-92.388 48.2683,-98.0785 29.509,-100 10,-100 0,-98.0785 -19.509,-92.388 -38.2683,-83.147 -55.557,-70.7107 -70.7107,-55.557 -83.147,-38.2683 -92.388,-19.509 -98.0785,0 -100,10 -100,29.509 -98.0785,48.2683 -92.388,65.557 -83.147,80.7107 -70.7107,93.147 -55.557,102.388 -38.2683,108.0785 -19.509,110 0,110 10,108.0785 29.509,102.388 48.2683,93.147 65.557,80.7107 80.7107,65.557 93.147,48.2683 102.388,29.509 108.0785,10 110)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)),' '((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6, 4 4)))'), 1000)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)),' '((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6, 4 4)))'), 1000)) -POLYGON((10 1010,0 1010,-195.0903 990.7852,-382.6834 933.8795,-555.5702 841.4696,-707.1067 717.1067,-831.4696 565.5702,-923.8795 392.6834,-980.7852 205.0903,-1000 10,-1000 0,-980.7852 -195.0903,-923.8795 -382.6834,-831.4696 -555.5702,-707.1067 -707.1067,-555.5702 -831.4696,-382.6834 -923.8795,-195.0903 -980.7852,0 -1000,10 -1000,205.0903 -980.7852,392.6834 -923.8795,565.5702 -831.4696,717.1067 -707.1067,841.4696 -555.5702,933.8795 -382.6834,990.7852 -195.0903,1010 0,1010 10,990.7852 205.0903,933.8795 392.6834,841.4696 565.5702,717.1067 717.1067,565.5702 841.4696,392.6834 933.8795,205.0903 990.7852,10 1010)) +POLYGON((10 1010,0 1010,-195.0903 990.7853,-382.6834 933.8795,-555.5702 841.4696,-707.1068 717.1068,-831.4696 565.5702,-923.8795 392.6834,-980.7853 205.0903,-1000 10,-1000 0,-980.7853 -195.0903,-923.8795 -382.6834,-831.4696 -555.5702,-707.1068 -707.1068,-555.5702 -831.4696,-382.6834 -923.8795,-195.0903 -980.7853,0 -1000,10 -1000,205.0903 -980.7853,392.6834 -923.8795,565.5702 -831.4696,717.1068 -707.1068,841.4696 -555.5702,933.8795 -382.6834,990.7853 -195.0903,1010 0,1010 10,990.7853 205.0903,933.8795 392.6834,841.4696 565.5702,717.1068 717.1068,565.5702 841.4696,392.6834 933.8795,205.0903 990.7853,10 1010)) SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=103; ST_ASTEXT(ST_BUFFER(g, 20)) -POLYGON((15.0000 -17.3606,16.0557 -17.8885,17.0569 -18.2777,18.0369 -18.7487,18.7915 -18.9520,19.5136 -19.2327,20.5603 -19.4286,21.6010 -19.7090,22.3896 -19.7709,23.1602 -19.9152,24.2158 -19.9143,25.2808 -19.9980,26.0768 -19.9129,26.8702 -19.9123,27.8984 -19.7183,28.9511 -19.6058,29.7270 -19.3732,30.5158 -19.2243,31.4818 -18.8471,32.4868 -18.5458,33.2151 -18.1702,33.9716 -17.8748,34.8434 -17.3306,35.7674 -16.8541,36.4219 -16.3452,37.1187 -15.9102,37.8682 -15.2206,38.6813 -14.5883,39.2374 -13.9607,39.8488 -13.3981,40.4524 -12.5894,41.1292 -11.8256,41.5654 -11.0983,42.0680 -10.4250,42.5077 -9.5272,43.0278 -8.6601,43.3262 -7.8561,43.6998 -7.0932,43.9637 -6.1385,44.3122 -5.1996,44.4594 -4.3452,44.6882 -3.5174,44.7705 -2.5396,44.9389 -1.5621,44.9264 -0.6856,44.9991 0.1795,44.9003 1.1463,44.8914 1.7755,46.0036 3.0048,47.9325 6.1443,49.2528 9.5844,49.9195 13.2084,49.9101 16.8931,49.2249 20.5136,47.8871 23.9469,45.9422 27.0766,43.4561 29.7963,40.5133 32.0138,37.2136 33.6537,33.6690 34.6605,32.3681 34.7809,31.9064 35.6851,29.6780 38.5851,26.9587 41.0308,23.8395 42.9405,20.4248 44.2502,16.8286 44.9162,13.1713 44.9162,9.5751 44.2502,6.1604 42.9405,3.0412 41.0308,0.3219 38.5851,-1.9064 35.6851,-2.3689 34.7792,-3.6946 34.6557,-7.2620 33.6349,-10.5795 31.9727,-13.5328 29.7262,-16.0203 26.9728,-17.9563 23.8073,-19.2742 20.3386,-19.9287 16.6862,-19.8972 12.9757,-19.1809 9.3349,-17.8042 5.8891,-15.8147 2.7569,-14.8421 1.7163,-14.9991 0.1795,-14.6882 -3.5174,-13.6998 -7.0932,-12.0680 -10.4250,-9.8488 -13.3981,-7.1187 -15.9102,-3.9716 -17.8748,-0.5158 -19.2243,3.1297 -19.9123,6.8397 -19.9152,10.4863 -19.2327,13.9442 -17.8885,15.0000 -17.3606)) +POLYGON((15 -17.3607,16.0557 -17.8885,17.057 -18.2778,18.037 -18.7488,18.7915 -18.9521,19.5136 -19.2328,20.5603 -19.4287,21.601 -19.7091,22.3896 -19.771,23.1603 -19.9152,24.2159 -19.9144,25.2809 -19.998,26.0768 -19.913,26.8702 -19.9124,27.8984 -19.7183,28.9511 -19.6058,29.727 -19.3732,30.5158 -19.2243,31.4818 -18.8471,32.4868 -18.5458,33.2152 -18.1702,33.9717 -17.8748,34.8435 -17.3306,35.7675 -16.8541,36.4219 -16.3452,37.1188 -15.9102,37.8682 -15.2206,38.6814 -14.5883,39.2375 -13.9607,39.8489 -13.3982,40.4525 -12.5895,41.1293 -11.8256,41.5655 -11.0984,42.068 -10.4251,42.5078 -9.5272,43.0278 -8.6602,43.3262 -7.8562,43.6999 -7.0933,43.9638 -6.1386,44.3123 -5.1997,44.4595 -4.3452,44.6883 -3.5174,44.7705 -2.5397,44.9389 -1.5621,44.9264 -0.6856,44.9992 0.1795,44.9004 1.1464,44.8914 1.7756,46.0036 3.0049,47.9326 6.1444,49.2528 9.5845,49.9196 13.2084,49.9102 16.8932,49.225 20.5137,47.8872 23.947,45.9422 27.0766,43.4562 29.7963,40.5133 32.0138,37.2136 33.6538,33.6691 34.6606,32.3681 34.7809,31.9064 35.6851,29.678 38.5851,26.9587 41.0309,23.8396 42.9405,20.4248 44.2502,16.8287 44.9162,13.1713 44.9162,9.5752 44.2502,6.1604 42.9405,3.0413 41.0309,0.322 38.5851,-1.9064 35.6851,-2.3689 34.7793,-3.6946 34.6558,-7.2621 33.635,-10.5795 31.9727,-13.5328 29.7262,-16.0203 26.9729,-17.9564 23.8073,-19.2743 20.3387,-19.9288 16.6862,-19.8973 12.9757,-19.1809 9.3349,-17.8043 5.8891,-15.8148 2.7569,-14.8421 1.7164,-14.9992 0.1795,-14.6883 -3.5174,-13.6999 -7.0933,-12.068 -10.4251,-9.8489 -13.3982,-7.1188 -15.9102,-3.9717 -17.8748,-0.5158 -19.2243,3.1298 -19.9124,6.8397 -19.9152,10.4864 -19.2328,13.9443 -17.8885,15 -17.3607)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))'), -2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))'), -2)) POLYGON((8 2,8 8,2 8,2 2,8 2)) @@ -252,7 +252,7 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))') GEOMETRYCOLLECTION() SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), -2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), -2)) -MULTIPOLYGON(((4 2,3.6098 2.0384,3.2346 2.1522,2.8888 2.3370,2.5857 2.5857,2.3370 2.8888,2.1522 3.2346,2.0384 3.6098,2 4,2 2,4 2)),((6 8,6.3901 7.9615,6.7653 7.8477,7.1111 7.6629,7.4142 7.4142,7.6629 7.1111,7.8477 6.7653,7.9615 6.3901,8 6,8 8,6 8)),((2 8,2 6,2.0384 6.3901,2.1522 6.7653,2.3370 7.1111,2.5857 7.4142,2.8888 7.6629,3.2346 7.8477,3.6098 7.9615,4 8,2 8)),((8 2,8 4,7.9615 3.6098,7.8477 3.2346,7.6629 2.8888,7.4142 2.5857,7.1111 2.3370,6.7653 2.1522,6.3901 2.0384,6 2,8 2))) +MULTIPOLYGON(((4 2,3.6098 2.0384,3.2346 2.1522,2.8889 2.3371,2.5858 2.5858,2.3371 2.8889,2.1522 3.2346,2.0384 3.6098,2 4,2 2,4 2)),((6 8,6.3902 7.9616,6.7654 7.8478,7.1111 7.6629,7.4142 7.4142,7.6629 7.1111,7.8478 6.7654,7.9616 6.3902,8 6,8 8,6 8)),((2 8,2 6,2.0384 6.3902,2.1522 6.7654,2.3371 7.1111,2.5858 7.4142,2.8889 7.6629,3.2346 7.8478,3.6098 7.9616,4 8,2 8)),((8 2,8 4,7.9616 3.6098,7.8478 3.2346,7.6629 2.8889,7.4142 2.5858,7.1111 2.3371,6.7654 2.1522,6.3902 2.0384,6 2,8 2))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), -3)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), -3)) GEOMETRYCOLLECTION() @@ -291,7 +291,7 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_collection_elems), 0)) GEOMETRYCOLLECTION(MULTIPOLYGON(((5 0,15 25,25 0,15 5,5 0)),((25 0,0 15,30 15,22 10,25 0))),POLYGON((5 0,7 10,0 15,10 15,15 25,20 15,30 15,22 10,25 0,15 5,5 0)),LINESTRING(15 25,15 10),MULTIPOINT((5 0),(25 0)),POINT(15 25)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_collection_multilinestr), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_collection_multilinestr), 1)) -POLYGON((7.7661 16,15.8574 29.4855,15.9402 29.6596,15.9881 29.8464,15.9992 30.0388,15.9732 30.2299,15.9109 30.4124,15.8149 30.5795,15.6885 30.7252,15.5365 30.8438,15.3646 30.9311,15.1791 30.9838,14.9870 30.9999,14.7953 30.9788,14.6113 30.9213,14.4417 30.8296,14.2928 30.7071,-0.7071 15.7071,-0.7554 15.6490,-0.8010 15.5986,-0.8108 15.5826,-0.8231 15.5677,-0.8238 15.5665,-0.8247 15.5655,-0.8382 15.5410,-0.8615 15.4996,-0.8978 15.4403,-0.9037 15.4247,-0.9121 15.4098,-0.9147 15.4023,-0.9182 15.3959,-0.9363 15.3396,-0.9385 15.3331,-0.9637 15.2669,-0.9662 15.2525,-0.9711 15.2383,-0.9733 15.2241,-0.9773 15.2115,-0.9843 15.1518,-0.9964 15.0843,-0.9963 15.0717,-0.9982 15.0590,-0.9975 15.0382,-0.9998 15.0191,-0.9954 14.9626,-0.9948 14.8987,-0.9928 14.8885,-0.9925 14.8778,-0.9867 14.8510,-0.9847 14.8261,-0.9704 14.7748,-0.9590 14.7167,-0.9559 14.7089,-0.9541 14.7005,-0.9410 14.6692,-0.9327 14.6395,-0.9104 14.5952,-0.8902 14.5444,-0.8868 14.5391,-0.8843 14.5332,-0.8621 14.4990,-0.8458 14.4665,-0.8176 14.4302,-0.7907 14.3878,-0.7878 14.3847,-0.7855 14.3811,-0.7528 14.3466,-0.7271 14.3135,-0.6953 14.2857,-0.6640 14.2523,-0.6623 14.2510,-0.6608 14.2495,-0.6168 14.2173,-0.5812 14.1862,2.8675 11.7228,-0.8574 5.5144,-0.9413 5.3373,-0.9891 5.1471,-0.9988 4.9513,-0.9701 4.7574,-0.9041 4.5728,-0.8034 4.4046,-0.6718 4.2593,-0.5144 4.1425,-0.3373 4.0586,-0.1471 4.0108,0.0486 4.0011,0.2425 4.0298,0.4271 4.0958,0.5953 4.1965,0.7406 4.3281,0.8574 4.4855,4.5001 10.5566,5.8926 9.5620,4.0194 0.1961,4.0193 0.1955,4.0192 0.1950,4.0191 0.1943,4.0189 0.1935,4.0091 0.0981,4.0000 0.0114,4.0001 0.0101,4.0000 0.0089,4.0004 0.0043,4 7.65e-16,4.0054 -0.0553,4.0080 -0.0867,4.0152 -0.1736,4.0154 -0.1747,4.0155 -0.1758,4.0182 -0.1856,4.0192 -0.1950,4.0381 -0.2575,4.0411 -0.2682,4.0643 -0.3528,4.0647 -0.3537,4.0650 -0.3546,4.0718 -0.3686,4.0761 -0.3826,4.1073 -0.4410,4.1074 -0.4412,4.1456 -0.5197,4.1462 -0.5204,4.1465 -0.5212,4.1592 -0.5381,4.1685 -0.5555,4.2090 -0.6050,4.2565 -0.6687,4.2570 -0.6692,4.2575 -0.6699,4.2771 -0.6879,4.2928 -0.7071,4.3397 -0.7455,4.3930 -0.7947,4.3935 -0.7950,4.3940 -0.7955,4.4214 -0.8126,4.4444 -0.8314,4.4944 -0.8582,4.5504 -0.8932,4.5509 -0.8934,4.5514 -0.8937,4.5867 -0.9075,4.6173 -0.9238,4.6675 -0.9391,4.7233 -0.9609,4.7237 -0.9610,4.7242 -0.9612,4.7670 -0.9693,4.8049 -0.9807,4.8527 -0.9854,4.9058 -0.9955,4.9061 -0.9955,4.9064 -0.9956,4.9559 -0.9956,5 -1,5.0432 -0.9957,5.0915 -0.9958,5.0917 -0.9957,5.0919 -0.9957,5.1463 -0.9855,5.1950 -0.9807,5.2321 -0.9695,5.2741 -0.9616,5.2742 -0.9616,5.2743 -0.9616,5.3315 -0.9393,5.3826 -0.9238,5.4126 -0.9078,5.4472 -0.8944,15.0000 3.8819,24.5527 -0.8944,24.5873 -0.9078,24.6173 -0.9238,24.6344 -0.9290,24.6518 -0.9374,24.6576 -0.9389,24.6626 -0.9413,24.6934 -0.9491,24.7256 -0.9616,24.7297 -0.9623,24.7334 -0.9638,24.7700 -0.9702,24.8049 -0.9807,24.8172 -0.9819,24.8300 -0.9854,24.8419 -0.9863,24.8528 -0.9891,24.8795 -0.9904,24.9080 -0.9957,24.9162 -0.9957,24.9240 -0.9971,24.9625 -0.9963,25 -1,25.0067 -0.9993,25.0140 -0.9999,25.0319 -0.9979,25.0486 -0.9988,25.0701 -0.9956,25.0935 -0.9956,25.1057 -0.9933,25.1175 -0.9930,25.1555 -0.9847,25.1676 -0.9834,25.1950 -0.9807,25.1962 -0.9804,25.1975 -0.9802,25.2205 -0.9733,25.2425 -0.9701,25.2582 -0.9645,25.2757 -0.9612,25.2912 -0.9551,25.3066 -0.9518,25.3384 -0.9380,25.3743 -0.9272,25.3784 -0.9251,25.3826 -0.9238,25.4041 -0.9123,25.4271 -0.9041,25.4370 -0.8982,25.4485 -0.8937,25.4661 -0.8827,25.4842 -0.8749,25.5093 -0.8576,25.5383 -0.8427,25.5467 -0.8361,25.5555 -0.8314,25.5744 -0.8159,25.5953 -0.8034,25.6001 -0.7991,25.6059 -0.7955,25.6242 -0.7786,25.6436 -0.7652,25.6619 -0.7465,25.6840 -0.7294,25.6951 -0.7169,25.7071 -0.7071,25.7225 -0.6882,25.7406 -0.6718,25.7414 -0.6708,25.7424 -0.6699,25.7598 -0.6465,25.7790 -0.6269,25.7910 -0.6087,25.8064 -0.5912,25.8181 -0.5718,25.8314 -0.5555,25.8407 -0.5381,25.8534 -0.5212,25.8551 -0.5175,25.8574 -0.5144,25.8695 -0.4890,25.8852 -0.4651,25.8918 -0.4489,25.9013 -0.4330,25.9114 -0.4060,25.9238 -0.3826,25.9281 -0.3686,25.9349 -0.3546,25.9375 -0.3454,25.9413 -0.3373,25.9479 -0.3112,25.9582 -0.2859,25.9607 -0.2730,25.9656 -0.2599,25.9715 -0.2255,25.9807 -0.1950,25.9817 -0.1856,25.9844 -0.1758,25.9856 -0.1608,25.9891 -0.1471,25.9903 -0.1216,25.9953 -0.0960,25.9953 -0.0872,25.9969 -0.0781,25.9963 -0.0369,26 0,25.9995 0.0043,25.9999 0.0089,25.9978 0.0294,25.9988 0.0486,25.9952 0.0727,25.9952 0.0974,25.9943 0.1018,25.9943 0.1064,25.9855 0.1498,25.9810 0.1935,25.9808 0.1942,25.9807 0.1950,25.9745 0.2157,25.9736 0.2185,25.9701 0.2425,25.9626 0.2636,25.9578 0.2873,23.1770 9.5564,30.5299 14.1520,30.6765 14.2636,30.8001 14.4002,30.8966 14.5572,30.9626 14.7292,30.9959 14.9104,30.9955 15.0946,30.9612 15.2756,30.8943 15.4473,30.7971 15.6038,30.6728 15.7398,30.5256 15.8506,30.3606 15.9326,30.1834 15.9830,30 16,20.6180 16,15.8944 25.4472,15.8682 25.4893,15.8453 25.5342,15.8372 25.5447,15.8314 25.5555,15.8135 25.5774,15.7971 25.6037,15.7641 25.6398,15.7339 25.6792,15.7188 25.6927,15.7071 25.7071,15.6895 25.7215,15.6728 25.7397,15.6343 25.7687,15.5979 25.8015,15.5747 25.8157,15.5555 25.8314,15.5404 25.8395,15.5257 25.8506,15.4831 25.8718,15.4419 25.8970,15.4099 25.9093,15.3826 25.9238,15.3717 25.9271,15.3607 25.9326,15.3156 25.9454,15.2712 25.9625,15.2303 25.9700,15.1950 25.9807,15.1893 25.9813,15.1834 25.9830,15.1375 25.9872,15.0914 25.9958,15.0452 25.9958,15 26,14.9547 25.9958,14.9085 25.9958,14.8624 25.9872,14.8165 25.9830,14.8106 25.9813,14.8049 25.9807,14.7695 25.9700,14.7287 25.9625,14.6843 25.9454,14.6392 25.9326,14.6282 25.9271,14.6173 25.9238,14.5900 25.9093,14.5580 25.8970,14.5168 25.8718,14.4742 25.8506,14.4595 25.8395,14.4444 25.8314,14.4252 25.8157,14.4020 25.8015,14.3656 25.7687,14.3271 25.7397,14.3104 25.7215,14.2928 25.7071,14.2811 25.6927,14.2660 25.6792,14.2358 25.6398,14.2028 25.6037,14.1864 25.5774,14.1685 25.5555,14.1627 25.5447,14.1546 25.5342,14.1317 25.4893,14.1055 25.4472,9.3819 16,7.7661 16),(2.4142 16,9.9631 23.5489,5.4338 16,2.4142 16)) +POLYGON((7.7662 16,15.8575 29.4855,15.9403 29.6596,15.9881 29.8464,15.9992 30.0389,15.9732 30.2299,15.911 30.4124,15.8149 30.5796,15.6885 30.7252,15.5366 30.8439,15.3646 30.9311,15.1792 30.9838,14.987 30.9999,14.7954 30.9788,14.6113 30.9214,14.4417 30.8297,14.2929 30.7071,-0.7071 15.7071,-0.7555 15.6491,-0.801 15.5986,-0.8108 15.5826,-0.8232 15.5678,-0.8239 15.5665,-0.8247 15.5655,-0.8382 15.5411,-0.8615 15.4997,-0.8978 15.4404,-0.9038 15.4248,-0.9122 15.4098,-0.9147 15.4024,-0.9183 15.3959,-0.9363 15.3397,-0.9385 15.3332,-0.9637 15.2669,-0.9663 15.2525,-0.9712 15.2383,-0.9733 15.2242,-0.9774 15.2115,-0.9843 15.1519,-0.9964 15.0843,-0.9963 15.0718,-0.9983 15.0591,-0.9976 15.0382,-0.9998 15.0192,-0.9954 14.9626,-0.9949 14.8988,-0.9928 14.8885,-0.9925 14.8778,-0.9867 14.8511,-0.9848 14.8261,-0.9705 14.7748,-0.959 14.7167,-0.9559 14.709,-0.9541 14.7006,-0.941 14.6692,-0.9328 14.6396,-0.9105 14.5952,-0.8902 14.5445,-0.8868 14.5392,-0.8844 14.5332,-0.8622 14.4991,-0.8458 14.4666,-0.8177 14.4302,-0.7907 14.3878,-0.7879 14.3848,-0.7855 14.3812,-0.7529 14.3467,-0.7272 14.3135,-0.6953 14.2858,-0.664 14.2523,-0.6624 14.2511,-0.6609 14.2495,-0.6168 14.2173,-0.5812 14.1863,2.8675 11.7229,-0.8575 5.5145,-0.9414 5.3373,-0.9891 5.1472,-0.9988 4.9514,-0.9701 4.7575,-0.9042 4.5729,-0.8035 4.4047,-0.6719 4.2594,-0.5145 4.1425,-0.3373 4.0586,-0.1472 4.0109,0.0486 4.0012,0.2425 4.0299,0.4271 4.0958,0.5953 4.1965,0.7406 4.3281,0.8575 4.4855,4.5002 10.5567,5.8926 9.5621,4.0194 0.1961,4.0194 0.1956,4.0192 0.1951,4.0191 0.1943,4.0189 0.1935,4.0092 0.0982,4.0001 0.0114,4.0002 0.0102,4 0.009,4.0004 0.0044,4 0,4.0055 -0.0554,4.0081 -0.0868,4.0152 -0.1737,4.0155 -0.1748,4.0156 -0.1759,4.0183 -0.1856,4.0192 -0.1951,4.0382 -0.2576,4.0411 -0.2682,4.0643 -0.3528,4.0647 -0.3537,4.065 -0.3547,4.0719 -0.3687,4.0761 -0.3827,4.1073 -0.441,4.1074 -0.4413,4.1457 -0.5197,4.1462 -0.5205,4.1466 -0.5213,4.1592 -0.5382,4.1685 -0.5556,4.2091 -0.605,4.2565 -0.6688,4.2571 -0.6693,4.2576 -0.6699,4.2772 -0.688,4.2929 -0.7071,4.3398 -0.7456,4.393 -0.7947,4.3936 -0.7951,4.3941 -0.7955,4.4214 -0.8126,4.4444 -0.8315,4.4945 -0.8582,4.5504 -0.8932,4.5509 -0.8934,4.5514 -0.8937,4.5867 -0.9075,4.6173 -0.9239,4.6676 -0.9391,4.7234 -0.961,4.7238 -0.9611,4.7242 -0.9612,4.7671 -0.9693,4.8049 -0.9808,4.8527 -0.9855,4.9058 -0.9956,4.9062 -0.9956,4.9065 -0.9956,4.9559 -0.9957,5 -1,5.0433 -0.9957,5.0915 -0.9958,5.0918 -0.9958,5.092 -0.9958,5.1464 -0.9856,5.1951 -0.9808,5.2322 -0.9695,5.2741 -0.9617,5.2742 -0.9617,5.2743 -0.9616,5.3316 -0.9394,5.3827 -0.9239,5.4126 -0.9079,5.4472 -0.8944,15 3.882,24.5528 -0.8944,24.5874 -0.9079,24.6173 -0.9239,24.6345 -0.9291,24.6518 -0.9374,24.6576 -0.939,24.6627 -0.9414,24.6935 -0.9491,24.7257 -0.9616,24.7297 -0.9624,24.7334 -0.9638,24.7701 -0.9702,24.8049 -0.9808,24.8172 -0.982,24.8301 -0.9855,24.842 -0.9864,24.8528 -0.9891,24.8796 -0.9904,24.908 -0.9958,24.9163 -0.9958,24.9241 -0.9971,24.9625 -0.9963,25 -1,25.0068 -0.9993,25.014 -0.9999,25.0319 -0.998,25.0486 -0.9988,25.0701 -0.9956,25.0935 -0.9956,25.1057 -0.9933,25.1176 -0.9931,25.1555 -0.9848,25.1676 -0.9835,25.1951 -0.9808,25.1963 -0.9804,25.1976 -0.9803,25.2206 -0.9734,25.2425 -0.9701,25.2583 -0.9645,25.2758 -0.9612,25.2912 -0.9552,25.3066 -0.9518,25.3385 -0.938,25.3743 -0.9273,25.3785 -0.9252,25.3827 -0.9239,25.4042 -0.9124,25.4271 -0.9042,25.4371 -0.8982,25.4486 -0.8937,25.4662 -0.8827,25.4842 -0.8749,25.5093 -0.8577,25.5384 -0.8427,25.5468 -0.8362,25.5556 -0.8315,25.5744 -0.816,25.5953 -0.8035,25.6001 -0.7991,25.6059 -0.7955,25.6243 -0.7786,25.6437 -0.7653,25.662 -0.7466,25.6841 -0.7294,25.6951 -0.7169,25.7071 -0.7071,25.7226 -0.6883,25.7406 -0.6719,25.7414 -0.6708,25.7424 -0.6699,25.7599 -0.6466,25.779 -0.627,25.791 -0.6087,25.8065 -0.5913,25.8181 -0.5718,25.8315 -0.5556,25.8408 -0.5382,25.8534 -0.5213,25.8552 -0.5176,25.8575 -0.5145,25.8695 -0.4891,25.8852 -0.4652,25.8918 -0.449,25.9014 -0.433,25.9114 -0.406,25.9239 -0.3827,25.9281 -0.3687,25.935 -0.3547,25.9375 -0.3454,25.9414 -0.3373,25.9479 -0.3113,25.9582 -0.286,25.9608 -0.273,25.9656 -0.26,25.9715 -0.2256,25.9808 -0.1951,25.9817 -0.1856,25.9844 -0.1759,25.9857 -0.1609,25.9891 -0.1472,25.9904 -0.1216,25.9954 -0.096,25.9954 -0.0872,25.9969 -0.0781,25.9964 -0.0369,26 0,25.9996 0.0043,26 0.009,25.9979 0.0295,25.9988 0.0486,25.9953 0.0727,25.9952 0.0975,25.9944 0.1018,25.9943 0.1064,25.9856 0.1499,25.9811 0.1935,25.9809 0.1943,25.9808 0.1951,25.9745 0.2157,25.9737 0.2186,25.9701 0.2425,25.9626 0.2636,25.9578 0.2873,23.1771 9.5564,30.53 14.152,30.6766 14.2636,30.8002 14.4002,30.8966 14.5572,30.9626 14.7292,30.996 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,30.3607 15.9327,30.1835 15.983,30 16,20.618 16,15.8944 25.4472,15.8682 25.4894,15.8453 25.5343,15.8372 25.5448,15.8315 25.5556,15.8135 25.5774,15.7972 25.6037,15.7642 25.6398,15.7339 25.6793,15.7189 25.6928,15.7071 25.7071,15.6895 25.7215,15.6729 25.7397,15.6344 25.7688,15.5979 25.8015,15.5747 25.8158,15.5556 25.8315,15.5405 25.8395,15.5257 25.8507,15.4832 25.8718,15.442 25.897,15.4099 25.9093,15.3827 25.9239,15.3717 25.9272,15.3607 25.9327,15.3157 25.9455,15.2712 25.9625,15.2304 25.9701,15.1951 25.9808,15.1894 25.9814,15.1835 25.983,15.1375 25.9873,15.0914 25.9958,15.0453 25.9958,15 26,14.9547 25.9958,14.9086 25.9958,14.8625 25.9873,14.8165 25.983,14.8106 25.9814,14.8049 25.9808,14.7696 25.9701,14.7288 25.9625,14.6843 25.9455,14.6393 25.9327,14.6283 25.9272,14.6173 25.9239,14.5901 25.9093,14.558 25.897,14.5168 25.8718,14.4743 25.8507,14.4595 25.8395,14.4444 25.8315,14.4253 25.8158,14.4021 25.8015,14.3656 25.7688,14.3271 25.7397,14.3105 25.7215,14.2929 25.7071,14.2811 25.6928,14.2661 25.6793,14.2358 25.6398,14.2028 25.6037,14.1865 25.5774,14.1685 25.5556,14.1628 25.5448,14.1547 25.5343,14.1317 25.4893,14.1056 25.4472,9.382 16,7.7662 16),(2.4142 16,9.9632 23.549,5.4338 16,2.4142 16)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION()'), 0)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION()'), 0)) GEOMETRYCOLLECTION() @@ -301,23 +301,23 @@ GEOMETRYCOLLECTION(GEOMETRYCOLLECTION()) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION()))'), 100)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION()))'), 100)) GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION())) -SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)) BETWEEN 568.21 AND 568.22; -ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)) BETWEEN 568.21 AND 568.22 -1 +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)) +POLYGON((0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509,10 0,11.9509 0.1921,13.8268 0.7612,15.5557 1.6853,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,1.6853 15.5557,0.7612 13.8268,0.1921 11.9509,0 10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10)))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10)))'), 5)) -MULTIPOLYGON(((5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754,5 0)),((15 10,14.9039 10.9754,14.6193 11.9134,14.1573 12.7778,13.5355 13.5355,12.7778 14.1573,11.9134 14.6193,10.9754 14.9039,10.0000 15,9.0245 14.9039,8.0865 14.6193,7.2221 14.1573,6.4644 13.5355,5.8426 12.7778,5.3806 11.9134,5.0960 10.9754,5 10.0000,5.0960 9.0245,5.3806 8.0865,5.8426 7.2221,6.4644 6.4644,7.2221 5.8426,8.0865 5.3806,9.0245 5.0960,10 5,10.9754 5.0960,11.9134 5.3806,12.7778 5.8426,13.5355 6.4644,14.1573 7.2221,14.6193 8.0865,14.9039 9.0245,15 10))) +MULTIPOLYGON(((5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755,5 0)),((15 10,14.9039 10.9755,14.6194 11.9134,14.1573 12.7779,13.5355 13.5355,12.7779 14.1573,11.9134 14.6194,10.9755 14.9039,10 15,9.0245 14.9039,8.0866 14.6194,7.2221 14.1573,6.4645 13.5355,5.8427 12.7779,5.3806 11.9134,5.0961 10.9755,5 10,5.0961 9.0245,5.3806 8.0866,5.8427 7.2221,6.4645 6.4645,7.2221 5.8427,8.0866 5.3806,9.0245 5.0961,10 5,10.9755 5.0961,11.9134 5.3806,12.7779 5.8427,13.5355 6.4645,14.1573 7.2221,14.6194 8.0866,14.9039 9.0245,15 10))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' 'MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10)))'), 50)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' 'MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10)))'), 50)) -POLYGON((5 -49.5075,10 -50,19.7545 -49.0392,29.1341 -46.1939,37.7785 -41.5734,45.3553 -35.3553,51.5734 -27.7785,56.1939 -19.1341,59.0392 -9.7545,59.2311 -7.8063,61.1939 -4.1341,64.0392 5.2454,65 15,64.0392 24.7545,61.1939 34.1341,56.5734 42.7785,50.3553 50.3553,42.7785 56.5734,34.1341 61.1939,24.7545 64.0392,15 65,10 65,0.2454 64.0392,-9.1341 61.1939,-17.6412 56.6468,-19.1341 56.1939,-27.7785 51.5734,-35.3553 45.3553,-41.5734 37.7785,-46.1939 29.1341,-49.0392 19.7545,-50 10,-50 0,-49.0392 -9.7545,-46.1939 -19.1341,-41.5734 -27.7785,-35.3553 -35.3553,-27.7785 -41.5734,-19.1341 -46.1939,-9.7545 -49.0392,3.06e-15 -50,5 -49.5075)) +POLYGON((5 -49.5075,10 -50,19.7545 -49.0393,29.1342 -46.194,37.7785 -41.5735,45.3553 -35.3553,51.5735 -27.7785,56.194 -19.1342,59.0393 -9.7545,59.2311 -7.8064,61.194 -4.1342,64.0393 5.2455,65 15,64.0393 24.7545,61.194 34.1342,56.5735 42.7785,50.3553 50.3553,42.7785 56.5735,34.1342 61.194,24.7545 64.0393,15 65,10 65,0.2455 64.0393,-9.1342 61.194,-17.6412 56.6469,-19.1342 56.194,-27.7785 51.5735,-35.3553 45.3553,-41.5735 37.7785,-46.194 29.1342,-49.0393 19.7545,-50 10,-50 0,-49.0393 -9.7545,-46.194 -19.1342,-41.5735 -27.7785,-35.3553 -35.3553,-27.7785 -41.5735,-19.1342 -46.194,-9.7545 -49.0393,0 -50,5 -49.5075)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,0 10,10 10))'), 20)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,0 10,10 10))'), 20)) -POLYGON((18.1905 -8.1905,21.1114 -6.6293,24.1421 -4.1421,26.6293 -1.1114,28.4775 2.3463,29.6157 6.0981,30 10,29.6157 13.9018,28.4775 17.6536,26.6293 21.1114,24.1421 24.1421,21.1114 26.6293,17.6536 28.4775,13.9018 29.6157,10 30,0 30,-3.9018 29.6157,-7.6536 28.4775,-11.1114 26.6293,-14.1421 24.1421,-16.6293 21.1114,-18.4775 17.6536,-19.6157 13.9018,-20 10,-20 0,-19.6157 -3.9018,-18.4775 -7.6536,-16.6293 -11.1114,-14.1421 -14.1421,-11.1114 -16.6293,-7.6536 -18.4775,-3.9018 -19.6157,1.22e-15 -20,3.9018 -19.6157,7.6536 -18.4775,11.1114 -16.6293,14.1421 -14.1421,16.6293 -11.1114,18.1905 -8.1905)) +POLYGON((18.1906 -8.1906,21.1114 -6.6294,24.1421 -4.1421,26.6294 -1.1114,28.4776 2.3463,29.6157 6.0982,30 10,29.6157 13.9018,28.4776 17.6537,26.6294 21.1114,24.1421 24.1421,21.1114 26.6294,17.6537 28.4776,13.9018 29.6157,10 30,0 30,-3.9018 29.6157,-7.6537 28.4776,-11.1114 26.6294,-14.1421 24.1421,-16.6294 21.1114,-18.4776 17.6537,-19.6157 13.9018,-20 10,-20 0,-19.6157 -3.9018,-18.4776 -7.6537,-16.6294 -11.1114,-14.1421 -14.1421,-11.1114 -16.6294,-7.6537 -18.4776,-3.9018 -19.6157,0 -20,3.9018 -19.6157,7.6537 -18.4776,11.1114 -16.6294,14.1421 -14.1421,16.6294 -11.1114,18.1906 -8.1906)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,0 10,10 10),GEOMETRYCOLLECTION())'), 10)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,0 10,10 10),GEOMETRYCOLLECTION())'), 10)) -POLYGON((10 0,11.9509 0.1921,13.8268 0.7612,15.5557 1.6853,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 10,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10 20,0 20,-1.9509 19.8078,-3.8268 19.2387,-5.5557 18.3146,-7.0710 17.0710,-8.3146 15.5557,-9.2387 13.8268,-9.8078 11.9509,-10 10,-10 0,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509,10 0)) +POLYGON((10 0,11.9509 0.1921,13.8268 0.7612,15.5557 1.6853,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,0 20,-1.9509 19.8079,-3.8268 19.2388,-5.5557 18.3147,-7.0711 17.0711,-8.3147 15.5557,-9.2388 13.8268,-9.8079 11.9509,-10 10,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509,10 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10),' 'LINESTRING(1 1,2 2,3 3),' @@ -329,15 +329,15 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),' GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT((0 0),(10 10)),LINESTRING(1 1,2 2,3 3),MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0, 0 0)))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0, 0 0)))'), 5)) -POLYGON((-5 0,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,0 -5,10 -5,10.9754 -4.9039,11.9134 -4.6193,12.7778 -4.1573,13.5355 -3.5355,14.1573 -2.7778,14.6193 -1.9134,14.9039 -0.9754,15 0,15 10,14.9039 10.9754,14.6193 11.9134,14.1573 12.7778,13.5355 13.5355,12.7778 14.1573,11.9134 14.6193,10.9754 14.9039,10 15,0 15,-0.9754 14.9039,-1.9134 14.6193,-2.7778 14.1573,-3.5355 13.5355,-4.1573 12.7778,-4.6193 11.9134,-4.9039 10.9754,-5 10,-5 0)) +POLYGON((-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,10 -5,10.9755 -4.9039,11.9134 -4.6194,12.7779 -4.1573,13.5355 -3.5355,14.1573 -2.7779,14.6194 -1.9134,14.9039 -0.9755,15 0,15 10,14.9039 10.9755,14.6194 11.9134,14.1573 12.7779,13.5355 13.5355,12.7779 14.1573,11.9134 14.6194,10.9755 14.9039,10 15,0 15,-0.9755 14.9039,-1.9134 14.6194,-2.7779 14.1573,-3.5355 13.5355,-4.1573 12.7779,-4.6194 11.9134,-4.9039 10.9755,-5 10,-5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0, 0 0)))))'), 5)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0, 0 0)))))'), 5)) -POLYGON((-5 0,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,0 -5,10 -5,10.9754 -4.9039,11.9134 -4.6193,12.7778 -4.1573,13.5355 -3.5355,14.1573 -2.7778,14.6193 -1.9134,14.9039 -0.9754,15 0,15 10,14.9039 10.9754,14.6193 11.9134,14.1573 12.7778,13.5355 13.5355,12.7778 14.1573,11.9134 14.6193,10.9754 14.9039,10 15,0 15,-0.9754 14.9039,-1.9134 14.6193,-2.7778 14.1573,-3.5355 13.5355,-4.1573 12.7778,-4.6193 11.9134,-4.9039 10.9754,-5 10,-5 0)) +POLYGON((-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,10 -5,10.9755 -4.9039,11.9134 -4.6194,12.7779 -4.1573,13.5355 -3.5355,14.1573 -2.7779,14.6194 -1.9134,14.9039 -0.9755,15 0,15 10,14.9039 10.9755,14.6194 11.9134,14.1573 12.7779,13.5355 13.5355,12.7779 14.1573,11.9134 14.6194,10.9755 14.9039,10 15,0 15,-0.9755 14.9039,-1.9134 14.6194,-2.7779 14.1573,-3.5355 13.5355,-4.1573 12.7779,-4.6194 11.9134,-4.9039 10.9755,-5 10,-5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4, 4 4)),' 'MULTIPOLYGON(((0 0,0 10,10 10,10 0, 0 0)),((10 10,10 15,15 15,15 10,10 10))))'), 10)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4, 4 4)),' 'MULTIPOLYGON(((0 0,0 10,10 10,10 0, 0 0)),((10 10,10 15,15 15,15 10,10 10))) -POLYGON((1.3882 20.0000,0 20,-1.9509 19.8078,-3.8268 19.2387,-5.5557 18.3146,-7.0710 17.0710,-8.3146 15.5557,-9.2387 13.8268,-9.8078 11.9509,-10 10,-10 0,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,0 -10,10 -10,11.9509 -9.8078,13.8268 -9.2387,15.5557 -8.3146,17.0710 -7.0710,18.3146 -5.5557,19.2387 -3.8268,19.8078 -1.9509,20 0,20.0000 1.3882,20.5557 1.6853,22.0710 2.9289,23.3146 4.4442,24.2387 6.1731,24.8078 8.0490,25 10,25 15,24.8078 16.9509,24.2387 18.8268,23.3146 20.5557,22.0710 22.0710,20.5557 23.3146,18.8268 24.2387,16.9509 24.8078,15 25,10 25,8.0490 24.8078,6.1731 24.2387,4.4442 23.3146,2.9289 22.0710,1.6853 20.5557,1.3882 20.0000)) +POLYGON((1.3883 20,0 20,-1.9509 19.8079,-3.8268 19.2388,-5.5557 18.3147,-7.0711 17.0711,-8.3147 15.5557,-9.2388 13.8268,-9.8079 11.9509,-10 10,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,10 -10,11.9509 -9.8079,13.8268 -9.2388,15.5557 -8.3147,17.0711 -7.0711,18.3147 -5.5557,19.2388 -3.8268,19.8079 -1.9509,20 0,20 1.3883,20.5557 1.6853,22.0711 2.9289,23.3147 4.4443,24.2388 6.1732,24.8079 8.0491,25 10,25 15,24.8079 16.9509,24.2388 18.8268,23.3147 20.5557,22.0711 22.0711,20.5557 23.3147,18.8268 24.2388,16.9509 24.8079,15 25,10 25,8.0491 24.8079,6.1732 24.2388,4.4443 23.3147,2.9289 22.0711,1.6853 20.5557,1.3883 20)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10)),' 'GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' @@ -354,7 +354,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTIO ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10)),' -POLYGON((-372.6834 938.8795,-381.1905 934.3324,-382.6834 933.8795,-555.5702 841.4696,-707.1067 717.1067,-831.4696 565.5702,-923.8795 392.6834,-980.7852 205.0903,-1000 10,-1000 0,-980.7852 -195.0903,-923.8795 -382.6834,-831.4696 -555.5702,-707.1067 -707.1067,-555.5702 -831.4696,-382.6834 -923.8795,-195.0903 -980.7852,0 -1000,10 -1000,205.0903 -980.7852,392.6834 -923.8795,565.5702 -831.4696,717.1067 -707.1067,841.4696 -555.5702,933.8795 -382.6834,934.3324 -381.1905,938.8795 -372.6834,995.7852 -185.0903,1015 10,1015 15,995.7852 210.0903,938.8795 397.6834,846.4696 570.5702,722.1067 722.1067,570.5702 846.4696,397.6834 938.8795,210.0903 995.7852,15 1015,10 1015,-185.0903 995.7852,-372.6834 938.8795)) +POLYGON((-372.6834 938.8795,-381.1905 934.3324,-382.6834 933.8795,-555.5702 841.4696,-707.1068 717.1068,-831.4696 565.5702,-923.8795 392.6834,-980.7853 205.0903,-1000 10,-1000 0,-980.7853 -195.0903,-923.8795 -382.6834,-831.4696 -555.5702,-707.1068 -707.1068,-555.5702 -831.4696,-382.6834 -923.8795,-195.0903 -980.7853,0 -1000,10 -1000,205.0903 -980.7853,392.6834 -923.8795,565.5702 -831.4696,717.1068 -707.1068,841.4696 -555.5702,933.8795 -382.6834,934.3324 -381.1905,938.8795 -372.6834,995.7853 -185.0903,1015 10,1015 15,995.7853 210.0903,938.8795 397.6834,846.4696 570.5702,722.1068 722.1068,570.5702 846.4696,397.6834 938.8795,210.0903 995.7853,15 1015,10 1015,-185.0903 995.7853,-372.6834 938.8795)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10)),' 'GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' @@ -363,10 +363,10 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTIO ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10)),' -POLYGON((6.12e-14 -1000,4.9999 -999.5075,10.0000 -1000,205.0903 -980.7852,392.6834 -923.8795,565.5702 -831.4696,717.1067 -707.1067,841.4696 -555.5702,933.8795 -382.6834,937.8394 -369.6292,938.8795 -367.6834,995.7852 -180.0903,1015 15,995.7852 210.0903,938.8795 397.6834,846.4696 570.5702,722.1067 722.1067,570.5702 846.4696,397.6834 938.8795,210.0903 995.7852,15 1015,10 1015,-185.0903 995.7852,-372.6834 938.8795,-381.1905 934.3324,-382.6834 933.8795,-555.5702 841.4696,-707.1067 717.1067,-831.4696 565.5702,-923.8795 392.6834,-980.7852 205.0903,-1000 10,-1000 0,-980.7852 -195.0903,-923.8795 -382.6834,-831.4696 -555.5702,-707.1067 -707.1067,-555.5702 -831.4696,-382.6834 -923.8795,-195.0903 -980.7852,6.12e-14 -1000)) +POLYGON((0 -1000,5 -999.5075,10 -1000,205.0903 -980.7853,392.6834 -923.8795,565.5702 -831.4696,717.1068 -707.1068,841.4696 -555.5702,933.8795 -382.6834,937.8395 -369.6293,938.8795 -367.6834,995.7853 -180.0903,1015 15,995.7853 210.0903,938.8795 397.6834,846.4696 570.5702,722.1068 722.1068,570.5702 846.4696,397.6834 938.8795,210.0903 995.7853,15 1015,10 1015,-185.0903 995.7853,-372.6834 938.8795,-381.1905 934.3324,-382.6834 933.8795,-555.5702 841.4696,-707.1068 717.1068,-831.4696 565.5702,-923.8795 392.6834,-980.7853 205.0903,-1000 10,-1000 0,-980.7853 -195.0903,-923.8795 -382.6834,-831.4696 -555.5702,-707.1068 -707.1068,-555.5702 -831.4696,-382.6834 -923.8795,-195.0903 -980.7853,0 -1000)) SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=115; ST_ASTEXT(ST_BUFFER(g, 20)) -POLYGON((44.9914 0.0870,44.9991 0.1795,44.9053 1.0974,44.9048 1.7904,46.0036 3.0048,47.9325 6.1443,49.2528 9.5844,49.9195 13.2084,49.9101 16.8931,49.2249 20.5136,47.8871 23.9469,45.9422 27.0766,43.4561 29.7963,40.5133 32.0138,37.2136 33.6537,33.6690 34.6605,32.3688 34.7808,32.3650 34.7868,31.9064 35.6851,31.7448 35.8954,31.6293 36.1114,31.2704 36.5487,30.9437 37.0746,30.2838 37.7966,29.6780 38.5851,29.3772 38.8556,29.1421 39.1421,28.7907 39.4305,28.4576 39.7949,27.6874 40.3754,26.9587 41.0308,26.4940 41.3153,26.1114 41.6293,25.8095 41.7907,25.5146 42.0130,24.6633 42.4361,23.8395 42.9405,23.1983 43.1864,22.6536 43.4775,22.4346 43.5440,22.2145 43.6534,21.3133 43.9094,20.4248 44.2502,19.6078 44.4015,18.9018 44.6157,18.7875 44.6269,18.6695 44.6604,17.7504 44.7455,16.8286 44.9162,15.9054 44.9162,14.9999 45,14.0945 44.9162,13.1713 44.9162,12.2495 44.7455,11.3304 44.6604,11.2124 44.6269,11.0981 44.6157,10.3921 44.4015,9.5751 44.2502,8.6866 43.9094,7.7854 43.6534,7.5653 43.5440,7.3463 43.4775,6.8016 43.1864,6.1604 42.9405,5.3366 42.4361,4.4853 42.0130,4.1903 41.7907,3.8885 41.6293,3.5059 41.3153,3.0412 41.0308,2.3125 40.3754,1.5423 39.7949,1.2092 39.4305,0.8578 39.1421,0.6227 38.8556,0.3219 38.5851,-0.2838 37.7966,-0.9437 37.0746,-1.2704 36.5487,-1.6293 36.1114,-1.7448 35.8954,-1.9064 35.6851,-2.3650 34.7868,-2.3698 34.7792,-3.6946 34.6557,-3.7750 34.6327,-3.8547 34.6250,-4.9876 34.2857,-7.2620 33.6349,-7.4118 33.5599,-7.5648 33.5141,-8.7631 32.8828,-10.5795 31.9727,-10.7796 31.8205,-10.9913 31.7089,-12.0666 30.8414,-13.5328 29.7262,-13.7577 29.4772,-14.0057 29.2772,-14.8801 28.2348,-16.0203 26.9728,-16.2393 26.6147,-16.4948 26.3101,-17.1313 25.1563,-17.9563 23.8073,-18.1355 23.3358,-18.3654 22.9189,-18.7509 21.7161,-19.2742 20.3386,-19.3782 19.7586,-19.5473 19.2307,-19.6866 18.0375,-19.9287 16.6862,-19.9230 16.0116,-19.9963 15.3839,-19.9081 14.2524,-19.8972 12.9757,-19.7504 12.2296,-19.6954 11.5227,-19.4094 10.4964,-19.1809 9.3349,-18.8667 8.5485,-18.6559 7.7919,-18.2097 6.9041,-17.8042 5.8891,-17.3035 5.1007,-16.9169 4.3314,-16.3529 3.6042,-15.8147 2.7569,-15.1168 2.0102,-14.8482 1.6639,-14.9986 0.2281,-14.9967 0.2038,-14.9991 0.1795,-14.9914 0.0870,-15 1.53e-14,-14.8911 -1.1053,-14.8382 -1.7339,-14.6959 -3.4738,-14.6901 -3.4952,-14.6882 -3.5174,-14.6343 -3.7124,-14.6157 -3.9018,-14.2363 -5.1522,-14.1738 -5.3784,-13.7139 -7.0560,-13.7051 -7.0740,-13.6998 -7.0932,-13.5625 -7.3737,-13.4775 -7.6536,-12.8540 -8.8203,-12.8446 -8.8393,-12.0864 -10.3948,-12.0758 -10.4091,-12.0680 -10.4250,-11.8151 -10.7638,-11.6293 -11.1114,-10.8184 -12.0995,-9.8695 -13.3751,-9.8581 -13.3857,-9.8488 -13.3981,-9.4560 -13.7595,-9.1421 -14.1421,-8.2052 -14.9110,-7.1398 -15.8941,-7.1285 -15.9011,-7.1187 -15.9102,-6.5711 -16.2520,-6.1114 -16.6293,-5.1107 -17.1642,-3.9914 -17.8648,-3.9810 -17.8689,-3.9716 -17.8748,-3.2653 -18.1506,-2.6536 -18.4775,-1.6485 -18.7824,-0.5328 -19.2194,-0.5241 -19.2211,-0.5158 -19.2243,0.3413 -19.3861,1.0981 -19.6157,2.0552 -19.7099,3.1165 -19.9111,3.1231 -19.9111,3.1297 -19.9123,4.1178 -19.9131,5.0000 -20,5.8656 -19.9147,6.8309 -19.9160,6.8352 -19.9152,6.8397 -19.9152,7.9272 -19.7116,8.9018 -19.6157,9.6441 -19.3905,10.4821 -19.2339,10.4842 -19.2331,10.4863 -19.2327,11.6310 -18.7878,12.6536 -18.4775,13.2527 -18.1573,13.9442 -17.8885,15.0000 -17.3606,16.0557 -17.8885,16.7472 -18.1573,17.3463 -18.4775,17.6890 -18.5815,18.0369 -18.7487,18.7915 -18.9520,19.5136 -19.2327,19.5949 -19.2479,19.6687 -19.2763,20.4012 -19.4042,21.0981 -19.6157,21.3446 -19.6399,21.6010 -19.7090,22.3896 -19.7709,23.1602 -19.9152,23.3258 -19.9150,23.4815 -19.9422,24.2505 -19.9261,25 -20,25.1357 -19.9866,25.2808 -19.9980,26.0768 -19.9129,26.8702 -19.9123,27.1144 -19.8662,27.3511 -19.8613,28.1109 -19.6956,28.3512 -19.6699,28.9018 -19.6157,28.9252 -19.6085,28.9511 -19.6058,29.7270 -19.3732,30.5158 -19.2243,30.8247 -19.1037,31.1326 -19.0365,31.7692 -18.7609,32.4868 -18.5458,32.5698 -18.5030,32.6536 -18.4775,33.2653 -18.1506,33.9716 -17.8748,34.3236 -17.6550,34.6845 -17.4988,35.1862 -17.1538,35.7674 -16.8541,35.9357 -16.7232,36.1114 -16.6293,36.5711 -16.2520,37.1187 -15.9102,37.4856 -15.5726,37.8736 -15.3058,38.2397 -14.9317,38.6813 -14.5883,38.9024 -14.3388,39.1421 -14.1421,39.4560 -13.7595,39.8488 -13.3981,40.1972 -12.9314,40.5807 -12.5395,40.8206 -12.1739,41.1292 -11.8256,41.3629 -11.4360,41.6293 -11.1114,41.8151 -10.7638,42.0680 -10.4250,42.3612 -9.8263,42.7042 -9.3036,42.8365 -8.9789,43.0278 -8.6601,43.2282 -8.1202,43.4775 -7.6536,43.5624 -7.3737,43.6998 -7.0932,43.9000 -6.3690,44.1647 -5.7193,44.2153 -5.4607,44.3122 -5.1996,44.4308 -4.5110,44.6157 -3.9018,44.6343 -3.7124,44.6882 -3.5174,44.7583 -2.6836,44.9075 -1.9209,44.9074 -1.7449,44.9389 -1.5621,44.9271 -0.7392,45 0,44.9914 0.0870)) +POLYGON((44.9914 0.0871,44.9992 0.1795,44.9054 1.0975,44.9049 1.7904,46.0036 3.0049,47.9326 6.1444,49.2528 9.5845,49.9196 13.2084,49.9102 16.8932,49.225 20.5137,47.8872 23.947,45.9422 27.0766,43.4562 29.7963,40.5133 32.0138,37.2136 33.6538,33.6691 34.6606,32.3688 34.7809,32.3651 34.7869,31.9064 35.6851,31.7448 35.8955,31.6294 36.1114,31.2705 36.5488,30.9438 37.0746,30.2839 37.7967,29.678 38.5851,29.3773 38.8556,29.1421 39.1421,28.7907 39.4306,28.4577 39.795,27.6875 40.3754,26.9587 41.0309,26.4941 41.3153,26.1114 41.6294,25.8096 41.7907,25.5146 42.013,24.6633 42.4362,23.8396 42.9405,23.1984 43.1864,22.6537 43.4776,22.4346 43.544,22.2146 43.6534,21.3134 43.9094,20.4248 44.2502,19.6079 44.4015,18.9018 44.6157,18.7875 44.627,18.6696 44.6605,17.7505 44.7455,16.8287 44.9162,15.9054 44.9162,15 45,14.0946 44.9162,13.1713 44.9162,12.2495 44.7455,11.3304 44.6605,11.2125 44.627,11.0982 44.6157,10.3921 44.4015,9.5752 44.2502,8.6866 43.9094,7.7854 43.6534,7.5654 43.544,7.3463 43.4776,6.8016 43.1864,6.1604 42.9405,5.3366 42.4362,4.4854 42.013,4.1904 41.7907,3.8886 41.6294,3.5059 41.3153,3.0413 41.0309,2.3125 40.3754,1.5423 39.795,1.2093 39.4305,0.8579 39.1421,0.6227 38.8556,0.322 38.5851,-0.2839 37.7967,-0.9438 37.0746,-1.2704 36.5488,-1.6294 36.1114,-1.7448 35.8955,-1.9064 35.6851,-2.3651 34.7868,-2.3698 34.7792,-3.6946 34.6558,-3.7751 34.6328,-3.8547 34.625,-4.9877 34.2858,-7.2621 33.635,-7.4118 33.56,-7.5649 33.5141,-8.7631 32.8829,-10.5795 31.9727,-10.7796 31.8205,-10.9914 31.709,-12.0667 30.8415,-13.5328 29.7262,-13.7578 29.4773,-14.0057 29.2773,-14.8802 28.2349,-16.0203 26.9729,-16.2394 26.6147,-16.4949 26.3102,-17.1313 25.1563,-17.9564 23.8073,-18.1355 23.3358,-18.3655 22.919,-18.7509 21.7161,-19.2743 20.3387,-19.3782 19.7586,-19.5474 19.2308,-19.6866 18.0376,-19.9288 16.6862,-19.9231 16.0117,-19.9963 15.384,-19.9081 14.2525,-19.8973 12.9757,-19.7505 12.2296,-19.6954 11.5228,-19.4095 10.4965,-19.1809 9.3349,-18.8667 8.5486,-18.6559 7.792,-18.2098 6.9041,-17.8043 5.8891,-17.3035 5.1008,-16.9169 4.3314,-16.353 3.6043,-15.8148 2.7569,-15.1168 2.0102,-14.8483 1.6639,-14.9987 0.2282,-14.9967 0.2038,-14.9992 0.1795,-14.9914 0.0871,-15 0,-14.8911 -1.1053,-14.8383 -1.734,-14.696 -3.4738,-14.6901 -3.4953,-14.6883 -3.5174,-14.6344 -3.7124,-14.6157 -3.9018,-14.2364 -5.1523,-14.1739 -5.3784,-13.714 -7.056,-13.7052 -7.074,-13.6999 -7.0933,-13.5625 -7.3737,-13.4776 -7.6537,-12.854 -8.8203,-12.8447 -8.8394,-12.0864 -10.3949,-12.0758 -10.4091,-12.068 -10.4251,-11.8152 -10.7639,-11.6294 -11.1114,-10.8184 -12.0996,-9.8696 -13.3752,-9.8582 -13.3857,-9.8489 -13.3982,-9.4561 -13.7596,-9.1421 -14.1421,-8.2052 -14.911,-7.1399 -15.8941,-7.1286 -15.9012,-7.1188 -15.9102,-6.5712 -16.2521,-6.1114 -16.6294,-5.1108 -17.1642,-3.9914 -17.8649,-3.9811 -17.8689,-3.9717 -17.8748,-3.2653 -18.1507,-2.6537 -18.4776,-1.6485 -18.7825,-0.5329 -19.2195,-0.5241 -19.2211,-0.5158 -19.2243,0.3414 -19.3861,1.0982 -19.6157,2.0552 -19.71,3.1165 -19.9111,3.1232 -19.9111,3.1298 -19.9124,4.1179 -19.9131,5 -20,5.8657 -19.9147,6.8309 -19.916,6.8353 -19.9152,6.8397 -19.9152,7.9272 -19.7117,8.9018 -19.6157,9.6441 -19.3905,10.4821 -19.234,10.4842 -19.2332,10.4864 -19.2328,11.631 -18.7878,12.6537 -18.4776,13.2528 -18.1574,13.9443 -17.8885,15 -17.3607,16.0557 -17.8885,16.7472 -18.1574,17.3463 -18.4776,17.689 -18.5815,18.037 -18.7488,18.7915 -18.9521,19.5136 -19.2328,19.5949 -19.248,19.6688 -19.2764,20.4012 -19.4043,21.0982 -19.6157,21.3446 -19.64,21.601 -19.7091,22.3896 -19.771,23.1603 -19.9152,23.3258 -19.9151,23.4815 -19.9423,24.2506 -19.9262,25 -20,25.1357 -19.9866,25.2809 -19.998,26.0768 -19.913,26.8702 -19.9124,27.1144 -19.8663,27.3511 -19.8613,28.1109 -19.6956,28.3513 -19.6699,28.9018 -19.6157,28.9253 -19.6086,28.9511 -19.6058,29.727 -19.3732,30.5158 -19.2243,30.8248 -19.1037,31.1326 -19.0366,31.7693 -18.7609,32.4868 -18.5458,32.5698 -18.503,32.6537 -18.4776,33.2653 -18.1506,33.9717 -17.8748,34.3237 -17.6551,34.6845 -17.4989,35.1863 -17.1538,35.7675 -16.8541,35.9357 -16.7233,36.1114 -16.6294,36.5712 -16.2521,37.1188 -15.9102,37.4856 -15.5727,37.8737 -15.3058,38.2398 -14.9317,38.6814 -14.5883,38.9025 -14.3388,39.1421 -14.1421,39.4561 -13.7596,39.8489 -13.3982,40.1972 -12.9315,40.5807 -12.5396,40.8206 -12.174,41.1293 -11.8256,41.3629 -11.4361,41.6294 -11.1114,41.8151 -10.7639,42.068 -10.4251,42.3612 -9.8264,42.7043 -9.3037,42.8366 -8.979,43.0278 -8.6602,43.2282 -8.1202,43.4776 -7.6537,43.5625 -7.3738,43.6999 -7.0933,43.9001 -6.3691,44.1648 -5.7194,44.2153 -5.4608,44.3123 -5.1997,44.4309 -4.5111,44.6157 -3.9018,44.6343 -3.7125,44.6883 -3.5174,44.7584 -2.6836,44.9075 -1.9209,44.9074 -1.7449,44.9389 -1.5621,44.9272 -0.7392,45 0,44.9914 0.0871)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)))'), -2)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)))'), -2)) POLYGON((8 2,8 8,2 8,2 2,8 2)) @@ -396,43 +396,43 @@ GEOMETRYCOLLECTION() ##################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_circle', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_circle', 1))) -POLYGON((2 0,-1.0000 1.7320,-0.9999 -1.7320,2 0)) +POLYGON((2 0,-1 1.7321,-1 -1.7321,2 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_circle', 2))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_circle', 2))) -POLYGON((2 0,-1.0000 1.7320,-0.9999 -1.7320,2 0)) +POLYGON((2 0,-1 1.7321,-1 -1.7321,2 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3, ST_BUFFER_STRATEGY('point_circle', 3))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3, ST_BUFFER_STRATEGY('point_circle', 3))) -POLYGON((5.34 -2.34,0.8399 0.2580,0.8400 -4.9380,5.34 -2.34)) +POLYGON((5.34 -2.34,0.84 0.2581,0.84 -4.9381,5.34 -2.34)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5, ST_BUFFER_STRATEGY('point_circle', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5, ST_BUFFER_STRATEGY('point_circle', 5))) -POLYGON((1005 -1000,1001.5450 -995.2447,995.9549 -997.0610,995.9549 -1002.9389,1001.5450 -1004.7552,1005 -1000)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0.0000)'), 10, ST_BUFFER_STRATEGY('point_circle', 10))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0.0000)'), 10, ST_BUFFER_STRATEGY('point_circle', 10))) -POLYGON((10 0.0000,8.0901 5.8778,3.0901 9.5105,-3.0901 9.5105,-8.0901 5.8778,-10 0.0000,-8.0901 -5.8778,-3.0901 -9.5105,3.0901 -9.5105,8.0901 -5.8778,10 0.0000)) +POLYGON((1005 -1000,1001.5451 -995.2447,995.9549 -997.0611,995.9549 -1002.9389,1001.5451 -1004.7553,1005 -1000)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 10, ST_BUFFER_STRATEGY('point_circle', 10))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 10, ST_BUFFER_STRATEGY('point_circle', 10))) +POLYGON((10 0,8.0902 5.8779,3.0902 9.5106,-3.0902 9.5106,-8.0902 5.8779,-10 0,-8.0902 -5.8779,-3.0902 -9.5106,3.0902 -9.5106,8.0902 -5.8779,10 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5, ST_BUFFER_STRATEGY('point_circle', 20))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5, ST_BUFFER_STRATEGY('point_circle', 20))) -POLYGON((4.7552 -1.5450,5 0,4.7552 1.5450,4.0450 2.9389,2.9389 4.0450,1.5450 4.7552,-9.18e-16 5,-1.5450 4.7552,-2.9389 4.0450,-4.0450 2.9389,-4.7552 1.5450,-5 -6.12e-16,-4.7552 -1.5450,-4.0450 -2.9389,-2.9389 -4.0450,-1.5450 -4.7552,3.06e-16 -5,1.5450 -4.7552,2.9389 -4.0450,4.0450 -2.9389,4.7552 -1.5450)) +POLYGON((4.7553 -1.5451,5 0,4.7553 1.5451,4.0451 2.9389,2.9389 4.0451,1.5451 4.7553,-0 5,-1.5451 4.7553,-2.9389 4.0451,-4.0451 2.9389,-4.7553 1.5451,-5 -0,-4.7553 -1.5451,-4.0451 -2.9389,-2.9389 -4.0451,-1.5451 -4.7553,0 -5,1.5451 -4.7553,2.9389 -4.0451,4.0451 -2.9389,4.7553 -1.5451)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 10,20 20,30 30)'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 10,20 20,30 30)'), 5, ST_BUFFER_STRATEGY('point_circle', 4))) -MULTIPOLYGON(((15 10,9.9999 15,5 10,10 5,15 10)),((25 20,20 25,15 20,20 15,25 20)),((35 30,30 35,25 30,30 25,35 30))) +MULTIPOLYGON(((15 10,10 15,5 10,10 5,15 10)),((25 20,20 25,15 20,20 15,25 20)),((35 30,30 35,25 30,30 25,35 30))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 15,15 15,15 10)'), 5, ST_BUFFER_STRATEGY('point_circle', 25))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 15,15 15,15 10)'), 5, ST_BUFFER_STRATEGY('point_circle', 25))) -POLYGON((10.0394 10.0271,10.0394 9.3733,10.3511 8.1593,10.9549 7.0610,11.8128 6.1474,12.8711 5.4758,14.0630 5.0885,15.3139 5.0098,16.5450 5.2447,17.6791 5.7783,18.6448 6.5772,19.3815 7.5912,19.8429 8.7565,20 10,19.8429 11.2434,19.3815 12.4087,19.3152 12.4999,19.3815 12.5912,19.8429 13.7565,20 15,19.8429 16.2434,19.3815 17.4087,18.6448 18.4227,17.6791 19.2216,16.5450 19.7552,15.3139 19.9901,14.0630 19.9114,12.8711 19.5241,12.5156 19.2985,11.5450 19.7552,10.3139 19.9901,9.0630 19.9114,7.8711 19.5241,6.8128 18.8525,5.9549 17.9389,5.3511 16.8406,5.0394 15.6266,5.0394 14.3733,5.3511 13.1593,5.9549 12.0610,6.8128 11.1474,7.8711 10.4758,9.0630 10.0885,10.0394 10.0271)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100, ST_BUFFER_STRATEGY('point_circle', 50))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100, ST_BUFFER_STRATEGY('point_circle', 50))) -MULTIPOLYGON(((1100 -1000,1099.2114 -987.4666,1096.8583 -975.1310,1092.9776 -963.1875,1087.6306 -951.8246,1080.9016 -941.2214,1072.8968 -931.5452,1063.7423 -922.9486,1053.5826 -915.5672,1042.5779 -909.5172,1030.9016 -904.8943,1018.7381 -901.7712,1006.2790 -900.1973,993.7209 -900.1973,981.2618 -901.7712,969.0983 -904.8943,957.4220 -909.5172,946.4173 -915.5672,936.2576 -922.9486,927.1031 -931.5452,919.0983 -941.2214,912.3693 -951.8246,907.0223 -963.1875,903.1416 -975.1310,900.7885 -987.4666,900 -999.9999,900.7885 -1012.5333,903.1416 -1024.8689,907.0223 -1036.8124,912.3693 -1048.1753,919.0983 -1058.7785,927.1031 -1068.4547,936.2576 -1077.0513,946.4173 -1084.4327,957.4220 -1090.4827,969.0983 -1095.1056,981.2618 -1098.2287,993.7209 -1099.8026,1006.2790 -1099.8026,1018.7381 -1098.2287,1030.9016 -1095.1056,1042.5779 -1090.4827,1053.5826 -1084.4327,1063.7423 -1077.0513,1072.8968 -1068.4547,1080.9016 -1058.7785,1087.6306 -1048.1753,1092.9776 -1036.8124,1096.8583 -1024.8689,1099.2114 -1012.5333,1100 -1000)),((73.1232 68.1811,72.8969 68.4547,63.7424 77.0513,53.5827 84.4327,42.5780 90.4827,30.9017 95.1056,18.7382 98.2287,6.2791 99.8026,-6.2789 99.8026,-18.7380 98.2287,-30.9015 95.1056,-42.5778 90.4827,-53.5825 84.4327,-63.7422 77.0513,-72.8967 68.4547,-80.9015 58.7785,-87.6305 48.1753,-92.9775 36.8124,-96.8582 24.8689,-99.2113 12.5333,-99.9999 1.20e-13,-99.2113 -12.5333,-96.8582 -24.8689,-92.9775 -36.8124,-87.6305 -48.1753,-80.9015 -58.7785,-72.8967 -68.4547,-72.1228 -69.1815,-71.8968 -69.4547,-62.7423 -78.0513,-52.5826 -85.4327,-41.5779 -91.4827,-29.9016 -96.1056,-17.7381 -99.2287,-5.2790 -100.8026,7.2790 -100.8026,19.7381 -99.2287,31.9016 -96.1056,43.5779 -91.4827,54.5826 -85.4327,64.7423 -78.0513,73.8968 -69.4547,81.9016 -59.7785,88.6306 -49.1753,93.9776 -37.8124,97.8583 -25.8689,100.2114 -13.5333,101 -1,100.2114 11.5333,97.8583 23.8689,93.9776 35.8124,88.6306 47.1753,81.9016 57.7785,73.8968 67.4547,73.1232 68.1811))) +POLYGON((10.0394 10.0271,10.0394 9.3733,10.3511 8.1594,10.9549 7.0611,11.8129 6.1474,12.8711 5.4759,14.0631 5.0886,15.314 5.0099,16.5451 5.2447,17.6791 5.7784,18.6448 6.5773,19.3815 7.5912,19.8429 8.7566,20 10,19.8429 11.2434,19.3815 12.4088,19.3152 12.5,19.3815 12.5912,19.8429 13.7566,20 15,19.8429 16.2434,19.3815 17.4088,18.6448 18.4227,17.6791 19.2216,16.5451 19.7553,15.314 19.9901,14.0631 19.9114,12.8711 19.5241,12.5157 19.2986,11.5451 19.7553,10.314 19.9901,9.0631 19.9114,7.8711 19.5241,6.8129 18.8526,5.9549 17.9389,5.3511 16.8406,5.0394 15.6267,5.0394 14.3733,5.3511 13.1594,5.9549 12.0611,6.8129 11.1474,7.8711 10.4759,9.0631 10.0886,10.0394 10.0271)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0)'), 100, ST_BUFFER_STRATEGY('point_circle', 50))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0)'), 100, ST_BUFFER_STRATEGY('point_circle', 50))) +MULTIPOLYGON(((1100 -1000,1099.2115 -987.4667,1096.8583 -975.131,1092.9776 -963.1875,1087.6307 -951.8246,1080.9017 -941.2215,1072.8969 -931.5453,1063.7424 -922.9487,1053.5827 -915.5672,1042.5779 -909.5173,1030.9017 -904.8943,1018.7381 -901.7713,1006.2791 -900.1973,993.7209 -900.1973,981.2619 -901.7713,969.0983 -904.8943,957.4221 -909.5173,946.4173 -915.5672,936.2576 -922.9487,927.1031 -931.5453,919.0983 -941.2215,912.3693 -951.8246,907.0224 -963.1875,903.1417 -975.131,900.7885 -987.4667,900 -1000,900.7885 -1012.5333,903.1417 -1024.869,907.0224 -1036.8125,912.3693 -1048.1754,919.0983 -1058.7785,927.1031 -1068.4547,936.2576 -1077.0513,946.4173 -1084.4328,957.4221 -1090.4827,969.0983 -1095.1057,981.2619 -1098.2287,993.7209 -1099.8027,1006.2791 -1099.8027,1018.7381 -1098.2287,1030.9017 -1095.1057,1042.5779 -1090.4827,1053.5827 -1084.4328,1063.7424 -1077.0513,1072.8969 -1068.4547,1080.9017 -1058.7785,1087.6307 -1048.1754,1092.9776 -1036.8125,1096.8583 -1024.869,1099.2115 -1012.5333,1100 -1000)),((73.1233 68.1811,72.897 68.4547,63.7425 77.0513,53.5828 84.4328,42.578 90.4827,30.9018 95.1057,18.7382 98.2287,6.2792 99.8027,-6.279 99.8027,-18.738 98.2287,-30.9016 95.1057,-42.5778 90.4827,-53.5826 84.4328,-63.7423 77.0513,-72.8968 68.4547,-80.9016 58.7785,-87.6306 48.1754,-92.9775 36.8125,-96.8582 24.869,-99.2114 12.5333,-99.9999 0,-99.2114 -12.5333,-96.8582 -24.869,-92.9775 -36.8125,-87.6306 -48.1754,-80.9016 -58.7785,-72.8968 -68.4547,-72.1228 -69.1816,-71.8969 -69.4547,-62.7424 -78.0513,-52.5827 -85.4328,-41.5779 -91.4827,-29.9017 -96.1057,-17.7381 -99.2287,-5.2791 -100.8027,7.2791 -100.8027,19.7381 -99.2287,31.9017 -96.1057,43.5779 -91.4827,54.5827 -85.4328,64.7424 -78.0513,73.8969 -69.4547,81.9017 -59.7785,88.6307 -49.1754,93.9776 -37.8125,97.8583 -25.869,100.2115 -13.5333,101 -1,100.2115 11.5333,97.8583 23.869,93.9776 35.8125,88.6307 47.1754,81.9017 57.7785,73.8969 67.4547,73.1233 68.1811))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))) -POLYGON((10 5,4.9999 10,0 4.9999,5 0,10 5)) +POLYGON((10 5,5 10,0 5,5 0,10 5)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOINT(5 5,10 10))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOINT(5 5,10 10))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))) -POLYGON((4.9999 10,0 4.9999,5 0,10 5,15 10,9.9999 15,4.9999 10)) +POLYGON((5 10,0 5,5 0,10 5,15 10,10 15,5 10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))) -POLYGON((10 5,4.9999 10,0 4.9999,5 0,10 5)) +POLYGON((10 5,5 10,0 5,5 0,10 5)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(10 10,15 15))'), 5, ST_BUFFER_STRATEGY('point_circle', 20))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(10 10,15 15))'), 5, ST_BUFFER_STRATEGY('point_circle', 20))) -POLYGON((4.9999 10,3.4549 9.7552,2.0610 9.0450,0.9549 7.9389,0.2447 6.5450,0 4.9999,0.2447 3.4549,0.9549 2.0610,2.0610 0.9549,3.4549 0.2447,5 0,6.5450 0.2447,7.9389 0.9549,9.0450 2.0610,9.7552 3.4549,10 5,11.5450 5.2447,12.9389 5.9549,14.0450 7.0610,14.7552 8.4549,15 10,16.5450 10.2447,17.9389 10.9549,19.0450 12.0610,19.7552 13.4549,20 15,19.7552 16.5450,19.0450 17.9389,17.9389 19.0450,16.5450 19.7552,14.9999 20,13.4549 19.7552,12.0610 19.0450,10.9549 17.9389,10.2447 16.5450,9.9999 15,8.4549 14.7552,7.0610 14.0450,5.9549 12.9389,5.2447 11.5450,4.9999 10)) +POLYGON((5 10,3.4549 9.7553,2.0611 9.0451,0.9549 7.9389,0.2447 6.5451,0 5,0.2447 3.4549,0.9549 2.0611,2.0611 0.9549,3.4549 0.2447,5 0,6.5451 0.2447,7.9389 0.9549,9.0451 2.0611,9.7553 3.4549,10 5,11.5451 5.2447,12.9389 5.9549,14.0451 7.0611,14.7553 8.4549,15 10,16.5451 10.2447,17.9389 10.9549,19.0451 12.0611,19.7553 13.4549,20 15,19.7553 16.5451,19.0451 17.9389,17.9389 19.0451,16.5451 19.7553,15 20,13.4549 19.7553,12.0611 19.0451,10.9549 17.9389,10.2447 16.5451,10 15,8.4549 14.7553,7.0611 14.0451,5.9549 12.9389,5.2447 11.5451,5 10)) ##################################################################################### # ST_BUFFER() with 'point_square' strategy ##################################################################################### @@ -441,13 +441,13 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_ POLYGON((-2 -2,2 -2,2 2,-2 2,-2 -2)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3, ST_BUFFER_STRATEGY('point_square'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3, ST_BUFFER_STRATEGY('point_square'))) -POLYGON((-0.6600 -5.34,5.34 -5.34,5.34 0.6600,-0.6600 0.6600,-0.6600 -5.34)) +POLYGON((-0.66 -5.34,5.34 -5.34,5.34 0.66,-0.66 0.66,-0.66 -5.34)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5, ST_BUFFER_STRATEGY('point_square'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5, ST_BUFFER_STRATEGY('point_square'))) POLYGON((995 -1005,1005 -1005,1005 -995,995 -995,995 -1005)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0.0000)'), 10, ST_BUFFER_STRATEGY('point_square'))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0.0000)'), 10, ST_BUFFER_STRATEGY('point_square'))) -POLYGON((-10 -9.9999,10 -9.9999,10 10.0000,-10 10.0000,-10 -9.9999)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 10, ST_BUFFER_STRATEGY('point_square'))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 10, ST_BUFFER_STRATEGY('point_square'))) +POLYGON((-10 -10,10 -10,10 10,-10 10,-10 -10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5, ST_BUFFER_STRATEGY('point_square'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5, ST_BUFFER_STRATEGY('point_square'))) POLYGON((-5 5,-5 -5,5 -5,5 5,-5 5)) @@ -457,8 +457,8 @@ MULTIPOLYGON(((5 5,15 5,15 15,5 15,5 5)),((15 15,25 15,25 25,15 25,15 15)),((25 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 15,15 15,15 10)'), 5, ST_BUFFER_STRATEGY('point_square'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 15,15 15,15 10)'), 5, ST_BUFFER_STRATEGY('point_square'))) POLYGON((10 20,5 20,5 10,10 10,10 5,20 5,20 10,20 15,20 20,15 20,10 20)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100, ST_BUFFER_STRATEGY('point_square'))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100, ST_BUFFER_STRATEGY('point_square'))) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0)'), 100, ST_BUFFER_STRATEGY('point_square'))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0)'), 100, ST_BUFFER_STRATEGY('point_square'))) MULTIPOLYGON(((900 -1100,1100 -1100,1100 -900,900 -900,900 -1100)),((-99 -100,-99 -101,101 -101,101 99,100.0001 99,100.0001 100,-99.9999 100,-99.9999 -100,-99 -100))) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_square'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_square'))) @@ -477,39 +477,39 @@ POLYGON((5 10,0 10,0 0,10 0,10 5,15 5,15 10,20 10,20 20,10 20,10 15,5 15,5 10)) ##################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('end_round', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('end_round', 1))) -POLYGON((6 1,5.9039 1.9754,5.6193 2.9134,5.1573 3.7778,4.5355 4.5355,3.7778 5.1573,2.9134 5.6193,1.9754 5.9039,1.0000 6,0.0245 5.9039,-0.9134 5.6193,-1.7778 5.1573,-2.5355 4.5355,-3.1573 3.7778,-3.6193 2.9134,-3.9039 1.9754,-4 1.0000,-3.9039 0.0245,-3.6193 -0.9134,-3.1573 -1.7778,-2.5355 -2.5355,-1.7778 -3.1573,-0.9134 -3.6193,0.0245 -3.9039,1.0000 -4,1.9754 -3.9039,2.9134 -3.6193,3.7778 -3.1573,4.5355 -2.5355,5.1573 -1.7778,5.6193 -0.9134,5.9039 0.0245,6 1)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('end_round', 3))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('end_round', 3))) -POLYGON((5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754,5 0)) +POLYGON((6 1,5.9039 1.9755,5.6194 2.9134,5.1573 3.7779,4.5355 4.5355,3.7779 5.1573,2.9134 5.6194,1.9755 5.9039,1 6,0.0245 5.9039,-0.9134 5.6194,-1.7779 5.1573,-2.5355 4.5355,-3.1573 3.7779,-3.6194 2.9134,-3.9039 1.9755,-4 1,-3.9039 0.0245,-3.6194 -0.9134,-3.1573 -1.7779,-2.5355 -2.5355,-1.7779 -3.1573,-0.9134 -3.6194,0.0245 -3.9039,1 -4,1.9755 -3.9039,2.9134 -3.6194,3.7779 -3.1573,4.5355 -2.5355,5.1573 -1.7779,5.6194 -0.9134,5.9039 0.0245,6 1)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('end_round', 3))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('end_round', 3))) +POLYGON((5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755,5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('end_round', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('end_round', 4))) -POLYGON((0 -10,5 -10,6.9509 -9.8078,8.8268 -9.2387,10.5557 -8.3146,12.0710 -7.0710,13.3146 -5.5557,14.2387 -3.8268,14.8078 -1.9509,15 0,15 5,14.8078 6.9509,14.2387 8.8268,13.3146 10.5557,12.0710 12.0710,10.5557 13.3146,8.8268 14.2387,6.9509 14.8078,5 15,0 15,-1.9509 14.8078,-3.8268 14.2387,-5.5557 13.3146,-7.0710 12.0710,-8.3146 10.5557,-9.2387 8.8268,-9.8078 6.9509,-10 5,-10 0,0 -10)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('end_round', 10))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('end_round', 10))) -POLYGON((1707.1067 -292.8932,708.1067 706.1067,707.1069 707.1067,156.4346 987.6883,-453.9903 891.0065,-891.0064 453.9905,-987.6882 -156.4344,-707.1067 -707.1067,-706.1067 -708.1067,292.8931 -1707.1067,444.4297 -1831.4696,617.3165 -1923.8795,804.9096 -1980.7852,999.9999 -2000,1195.0903 -1980.7852,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1067 -1707.1067,1831.4695 -1555.5702,1923.8795 -1382.6834,1980.7852 -1195.0903,1999.9999 -1000.0000,1980.7852 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1067 -292.8932)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_round', 1))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_round', 1))) -POLYGON((9.8078 -1.9509,10 0,9.8078 1.9509,9.2387 3.8268,8.3146 5.5557,7.0710 7.0710,5.5557 8.3146,3.8268 9.2387,1.9509 9.8078,2.48e-14 10,-1.9509 9.8078,-3.8268 9.2387,-5.5557 8.3146,-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509)) +POLYGON((0 -10,5 -10,6.9509 -9.8079,8.8268 -9.2388,10.5557 -8.3147,12.0711 -7.0711,13.3147 -5.5557,14.2388 -3.8268,14.8079 -1.9509,15 0,15 5,14.8079 6.9509,14.2388 8.8268,13.3147 10.5557,12.0711 12.0711,10.5557 13.3147,8.8268 14.2388,6.9509 14.8079,5 15,0 15,-1.9509 14.8079,-3.8268 14.2388,-5.5557 13.3147,-7.0711 12.0711,-8.3147 10.5557,-9.2388 8.8268,-9.8079 6.9509,-10 5,-10 0,0 -10)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('end_round', 10))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('end_round', 10))) +POLYGON((1707.1068 -292.8932,708.1068 706.1068,707.1069 707.1067,156.4346 987.6883,-453.9904 891.0065,-891.0064 453.9905,-987.6882 -156.4344,-707.1067 -707.1067,-706.1068 -708.1068,292.8932 -1707.1067,444.4298 -1831.4696,617.3166 -1923.8795,804.9097 -1980.7853,1000 -2000,1195.0903 -1980.7853,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1068 -1707.1068,1831.4696 -1555.5703,1923.8795 -1382.6835,1980.7853 -1195.0904,2000 -1000,1980.7853 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1068 -292.8932)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_round', 1))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_round', 1))) +POLYGON((9.8079 -1.9509,10 0,9.8079 1.9509,9.2388 3.8268,8.3147 5.5557,7.0711 7.0711,5.5557 8.3147,3.8268 9.2388,1.9509 9.8079,0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('end_round', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('end_round', 5))) -POLYGON((-18.5932 -36.4912,0 -50,5 -50,14.7545 -49.0392,24.1341 -46.1939,32.7785 -41.5734,40.3553 -35.3553,46.5734 -27.7785,51.1939 -19.1341,54.0392 -9.7545,55 0,55 5,54.0392 14.7545,51.1939 24.1341,46.5734 32.7785,40.3553 40.3553,32.7785 46.5734,24.1341 51.1939,14.7545 54.0392,5 55,0 55,-9.7545 54.0392,-19.1341 51.1939,-27.7785 46.5734,-35.3553 40.3553,-41.5734 32.7785,-46.1939 24.1341,-49.0392 14.7545,-50 5,-50 0,-46.2662 -11.4912,-47.5528 -15.4508,-44.1845 -17.8980,-40.4508 -29.3892,-18.5932 -36.4912)) +POLYGON((-18.5932 -36.4912,0 -50,5 -50,14.7545 -49.0393,24.1342 -46.194,32.7785 -41.5735,40.3553 -35.3553,46.5735 -27.7785,51.194 -19.1342,54.0393 -9.7545,55 0,55 5,54.0393 14.7545,51.194 24.1342,46.5735 32.7785,40.3553 40.3553,32.7785 46.5735,24.1342 51.194,14.7545 54.0393,5 55,0 55,-9.7545 54.0393,-19.1342 51.194,-27.7785 46.5735,-35.3553 40.3553,-41.5735 32.7785,-46.194 24.1342,-49.0393 14.7545,-50 5,-50 0,-46.2663 -11.4912,-47.5528 -15.4508,-44.1846 -17.898,-40.4508 -29.3893,-18.5932 -36.4912)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('end_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('end_round', 10))) -POLYGON((107.0830 5.0000,108.7688 15.6434,105.1056 22.8328,105.1056 30.9016,102.3882 34.6418,99.1006 55.3990,55.3990 99.1006,25.2450 103.8765,15.6434 108.7688,5.0000 107.0830,-5.6434 108.7688,-15.2450 103.8765,-45.3990 99.1006,-89.1006 55.3990,-92.3882 34.6418,-95.1056 30.9016,-95.1056 22.8328,-98.7688 15.6434,-97.0830 4.9999,-98.7688 -5.6434,-95.1056 -12.8328,-95.1056 -30.9016,-90.3628 -37.4295,-89.1006 -45.3990,-72.5425 -61.9571,-58.7785 -80.9016,-51.1045 -83.3951,-45.3990 -89.1006,-22.2706 -92.7638,-8.9071 -97.1058,-5.6434 -98.7688,-4.3968 -98.5713,0 -100,10 -100,14.3968 -98.5713,15.6434 -98.7688,18.9071 -97.1058,32.2706 -92.7638,55.3990 -89.1006,61.1045 -83.3951,68.7785 -80.9016,82.5425 -61.9571,99.1006 -45.3990,100.3628 -37.4295,105.1056 -30.9016,105.1056 -12.8328,108.7688 -5.6434,107.0830 5.0000)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.00 0.00),(2 2,4 -9.00))'), 1000, ST_BUFFER_STRATEGY('end_round', 50))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.00 0.00),(2 2,4 -9.00))'), 1000, ST_BUFFER_STRATEGY('end_round', 50))) -POLYGON((292.89 -1707.10,444.42 -1831.46,617.31 -1923.87,804.90 -1980.78,999.99 -2000,1195.09 -1980.78,1382.68 -1923.87,1555.57 -1831.46,1707.10 -1707.10,1831.46 -1555.57,1923.87 -1382.68,1980.78 -1195.09,1999.99 -1000.00,1980.78 -804.90,1923.87 -617.31,1831.46 -444.42,1707.10 -292.89,736.32 677.88,692.84 725.00,596.78 805.88,491.33 874.09,378.17 928.54,259.08 968.38,135.93 992.99,10.67 1001.96,-114.72 995.16,-238.27 972.70,-358.04 934.93,-446.37 894.30,-453.99 891.00,-455.57 890.07,-472.13 882.45,-542.06 838.91,-562.08 827.08,-566.15 823.92,-578.74 816.08,-630.76 773.80,-661.31 750.11,-667.36 744.06,-676.19 736.87,-711.73 699.68,-750.11 661.31,-757.47 651.82,-762.95 646.08,-784.28 617.26,-827.08 562.08,-834.94 548.77,-837.64 545.13,-847.68 527.24,-891.00 453.99,-898.48 436.70,-899.09 435.61,-901.22 430.37,-940.88 338.73,-975.91 218.14,-995.56 94.10,-999.50 -31.41,-987.68 -156.43,-960.29 -278.99,-950.76 -305.45,-949.70 -309.75,-942.48 -328.45,-917.75 -397.14,-910.41 -411.54,-904.48 -426.91,-869.19 -492.44,-860.74 -509.04,-858.42 -512.45,-844.94 -537.48,-772.01 -639.71,-686.84 -732.00,-657.50 -756.70,292.89 -1707.10)) +POLYGON((107.0831 5,108.7688 15.6434,105.1057 22.8328,105.1057 30.9017,102.3883 34.6419,99.1007 55.399,55.399 99.1007,25.245 103.8766,15.6434 108.7688,5 107.0831,-5.6434 108.7688,-15.245 103.8766,-45.399 99.1007,-89.1007 55.399,-92.3883 34.6419,-95.1057 30.9017,-95.1057 22.8328,-98.7688 15.6434,-97.0831 5,-98.7688 -5.6434,-95.1057 -12.8328,-95.1057 -30.9017,-90.3629 -37.4295,-89.1007 -45.399,-72.5426 -61.9571,-58.7785 -80.9017,-51.1046 -83.3951,-45.399 -89.1007,-22.2706 -92.7638,-8.9071 -97.1059,-5.6434 -98.7688,-4.3968 -98.5714,0 -100,10 -100,14.3968 -98.5714,15.6434 -98.7688,18.9071 -97.1059,32.2706 -92.7638,55.399 -89.1007,61.1046 -83.3951,68.7785 -80.9017,82.5426 -61.9571,99.1007 -45.399,100.3629 -37.4295,105.1057 -30.9017,105.1057 -12.8328,108.7688 -5.6434,107.0831 5)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('end_round', 50))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('end_round', 50))) +POLYGON((292.89 -1707.11,444.43 -1831.47,617.32 -1923.88,804.91 -1980.79,1000 -2000,1195.09 -1980.79,1382.68 -1923.88,1555.57 -1831.47,1707.11 -1707.11,1831.47 -1555.57,1923.88 -1382.68,1980.79 -1195.09,2000 -1000,1980.79 -804.91,1923.88 -617.32,1831.47 -444.43,1707.11 -292.89,736.33 677.89,692.84 725,596.78 805.89,491.34 874.1,378.18 928.55,259.08 968.39,135.93 992.99,10.67 1001.96,-114.72 995.16,-238.28 972.7,-358.05 934.93,-446.38 894.3,-453.99 891.01,-455.57 890.07,-472.13 882.45,-542.07 838.92,-562.08 827.08,-566.15 823.93,-578.75 816.08,-630.76 773.81,-661.31 750.11,-667.36 744.06,-676.2 736.88,-711.74 699.68,-750.11 661.31,-757.47 651.82,-762.96 646.08,-784.28 617.26,-827.08 562.08,-834.95 548.78,-837.65 545.13,-847.69 527.24,-891.01 453.99,-898.49 436.7,-899.1 435.61,-901.23 430.37,-940.88 338.74,-975.92 218.14,-995.56 94.11,-999.51 -31.41,-987.69 -156.43,-960.29 -278.99,-950.77 -305.45,-949.7 -309.76,-942.48 -328.46,-917.75 -397.15,-910.42 -411.55,-904.49 -426.92,-869.2 -492.45,-860.74 -509.04,-858.42 -512.45,-844.94 -537.48,-772.01 -639.72,-686.84 -732.01,-657.5 -756.71,292.89 -1707.11)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('end_round', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('end_round', 4))) -POLYGON((-7.0710 7.0710,-7.0710 -7.0710,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,17.0710 17.0710,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,-7.0711 -7.0711,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,17.0711 17.0711,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('end_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('end_round', 10))) -POLYGON((8.7738 8.7738,8.0901 10.8778,3.0901 14.5105,-3.0901 14.5105,-8.0901 10.8778,-10 5,-10 0,-9.5105 -1.5063,-9.5105 -3.0901,-8.5796 -4.3715,-8.0901 -5.8778,-6.8088 -6.8088,-5.8778 -8.0901,-4.3715 -8.5796,-3.0901 -9.5105,-1.5063 -9.5105,0 -10,5 -10,10.8778 -8.0901,14.5105 -3.0901,14.5105 3.0901,10.8778 8.0901,8.7738 8.7738)) +POLYGON((8.7738 8.7738,8.0902 10.8779,3.0902 14.5106,-3.0902 14.5106,-8.0902 10.8779,-10 5,-10 0,-9.5106 -1.5063,-9.5106 -3.0902,-8.5796 -4.3715,-8.0902 -5.8779,-6.8088 -6.8088,-5.8779 -8.0902,-4.3715 -8.5796,-3.0902 -9.5106,-1.5063 -9.5106,0 -10,5 -10,10.8779 -8.0902,14.5106 -3.0902,14.5106 3.0902,10.8779 8.0902,8.7738 8.7738)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('end_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('end_round', 10))) -POLYGON((-7.0710 7.0710,-9.8768 1.5643,-8.9100 -4.5399,-4.5399 -8.9100,1.5643 -9.8768,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,19.8768 8.4356,18.9100 14.5399,14.5399 18.9100,8.4356 19.8768,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,-9.8769 1.5643,-8.9101 -4.5399,-4.5399 -8.9101,1.5643 -9.8769,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,19.8769 8.4357,18.9101 14.5399,14.5399 18.9101,8.4357 19.8769,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -517,43 +517,43 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRI -POLYGON((4.1421 -10,10 -10,11.2533 -9.9211,12.4868 -9.6858,13.6812 -9.2977,14.8175 -8.7630,15.8778 -8.0901,16.8454 -7.2896,17.7051 -6.3742,18.4432 -5.3582,19.0482 -4.2577,19.5105 -3.0901,19.8228 -1.8738,19.9802 -0.6279,19.9802 0.6279,19.8228 1.8738,19.5105 3.0901,19.0482 4.2577,18.6471 4.9874,19.1775 6.0285,19.6029 7.2100,19.8768 8.4356,19.9950 9.6858,19.9556 10.9410,19.7591 12.1814,19.4088 13.3873,18.9100 14.5399,18.2708 15.6208,17.5011 16.6131,16.6131 17.5011,15.6208 18.2708,14.5399 18.9100,13.3873 19.4088,12.1814 19.7591,10.9410 19.9556,9.6858 19.9950,8.4356 19.8768,7.2100 19.6029,6.0285 19.1775,4.9095 18.6074,3.8709 17.9015,2.9289 17.0710,-4.1421 10,-10 10,-11.2533 9.9211,-12.4868 9.6858,-13.6812 9.2977,-14.8175 8.7630,-15.8778 8.0901,-16.8454 7.2896,-17.7051 6.3742,-18.4432 5.3582,-19.0482 4.2577,-19.5105 3.0901,-19.8228 1.8738,-19.9802 0.6279,-19.9802 -0.6279,-19.8228 -1.8738,-19.5105 -3.0901,-19.0482 -4.2577,-18.6471 -4.9874,-19.1775 -6.0285,-19.6029 -7.2100,-19.8768 -8.4356,-19.9950 -9.6858,-19.9556 -10.9410,-19.7591 -12.1814,-19.4088 -13.3873,-18.9100 -14.5399,-18.2708 -15.6208,-17.5011 -16.6131,-16.6131 -17.5011,-15.6208 -18.2708,-14.5399 -18.9100,-13.3873 -19.4088,-12.1814 -19.7591,-10.9410 -19.9556,-9.6858 -19.9950,-8.4356 -19.8768,-7.2100 -19.6029,-6.0285 -19.1775,-4.9095 -18.6074,-3.8709 -17.9015,-2.9289 -17.0710,4.1421 -10)) +POLYGON((4.1421 -10,10 -10,11.2533 -9.9211,12.4869 -9.6858,13.6812 -9.2978,14.8175 -8.7631,15.8779 -8.0902,16.8455 -7.2897,17.7051 -6.3742,18.4433 -5.3583,19.0483 -4.2578,19.5106 -3.0902,19.8229 -1.8738,19.9803 -0.6279,19.9803 0.6279,19.8229 1.8738,19.5106 3.0902,19.0483 4.2578,18.6471 4.9875,19.1775 6.0285,19.6029 7.2101,19.8769 8.4357,19.9951 9.6859,19.9556 10.9411,19.7592 12.1814,19.4088 13.3874,18.9101 14.5399,18.2708 15.6208,17.5011 16.6131,16.6131 17.5011,15.6208 18.2708,14.5399 18.9101,13.3874 19.4088,12.1814 19.7592,10.9411 19.9556,9.6859 19.9951,8.4357 19.8769,7.2101 19.6029,6.0285 19.1775,4.9096 18.6074,3.8709 17.9016,2.9289 17.0711,-4.1421 10,-10 10,-11.2533 9.9211,-12.4869 9.6858,-13.6812 9.2978,-14.8175 8.7631,-15.8779 8.0902,-16.8455 7.2897,-17.7051 6.3742,-18.4433 5.3583,-19.0483 4.2578,-19.5106 3.0902,-19.8229 1.8738,-19.9803 0.6279,-19.9803 -0.6279,-19.8229 -1.8738,-19.5106 -3.0902,-19.0483 -4.2578,-18.6471 -4.9875,-19.1775 -6.0285,-19.6029 -7.2101,-19.8769 -8.4357,-19.9951 -9.6859,-19.9556 -10.9411,-19.7592 -12.1814,-19.4088 -13.3874,-18.9101 -14.5399,-18.2708 -15.6208,-17.5011 -16.6131,-16.6131 -17.5011,-15.6208 -18.2708,-14.5399 -18.9101,-13.3874 -19.4088,-12.1814 -19.7592,-10.9411 -19.9556,-9.6859 -19.9951,-8.4357 -19.8769,-7.2101 -19.6029,-6.0285 -19.1775,-4.9096 -18.6074,-3.8709 -17.9016,-2.9289 -17.0711,4.1421 -10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 1, ST_BUFFER_STRATEGY('end_round', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 1, ST_BUFFER_STRATEGY('end_round', 5))) -POLYGON((-0.3718 -0.7298,0 -1,5 -1,5.1950 -0.9807,5.3826 -0.9238,5.5555 -0.8314,5.7071 -0.7071,5.8314 -0.5555,5.9238 -0.3826,5.9807 -0.1950,6 0,6 5,5.9807 5.1950,5.9238 5.3826,5.8314 5.5555,5.7071 5.7071,5.5555 5.8314,5.3826 5.9238,5.1950 5.9807,5 6,0 6,-0.1950 5.9807,-0.3826 5.9238,-0.5555 5.8314,-0.7071 5.7071,-0.8314 5.5555,-0.9238 5.3826,-0.9807 5.1950,-1 5,-1 0,-0.9253 -0.2298,-0.9510 -0.3090,-0.8836 -0.3579,-0.8090 -0.5877,-0.3718 -0.7298),(1 1,1 4,4 4,4 1,1 1)) +POLYGON((-0.3719 -0.7298,0 -1,5 -1,5.1951 -0.9808,5.3827 -0.9239,5.5556 -0.8315,5.7071 -0.7071,5.8315 -0.5556,5.9239 -0.3827,5.9808 -0.1951,6 0,6 5,5.9808 5.1951,5.9239 5.3827,5.8315 5.5556,5.7071 5.7071,5.5556 5.8315,5.3827 5.9239,5.1951 5.9808,5 6,0 6,-0.1951 5.9808,-0.3827 5.9239,-0.5556 5.8315,-0.7071 5.7071,-0.8315 5.5556,-0.9239 5.3827,-0.9808 5.1951,-1 5,-1 0,-0.9253 -0.2298,-0.9511 -0.309,-0.8837 -0.358,-0.809 -0.5878,-0.3719 -0.7298),(1 1,1 4,4 4,4 1,1 1)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 2, ST_BUFFER_STRATEGY('end_round', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 2, ST_BUFFER_STRATEGY('end_round', 5))) -POLYGON((-0.7437 -1.4596,0 -2,5 -2,5.3901 -1.9615,5.7653 -1.8477,6.1111 -1.6629,6.4142 -1.4142,6.6629 -1.1111,6.8477 -0.7653,6.9615 -0.3901,7 0,7 5,6.9615 5.3901,6.8477 5.7653,6.6629 6.1111,6.4142 6.4142,6.1111 6.6629,5.7653 6.8477,5.3901 6.9615,5 7,0 7,-0.3901 6.9615,-0.7653 6.8477,-1.1111 6.6629,-1.4142 6.4142,-1.6629 6.1111,-1.8477 5.7653,-1.9615 5.3901,-2 5,-2 0,-1.8506 -0.4596,-1.9021 -0.6180,-1.7673 -0.7159,-1.6180 -1.1755,-0.7437 -1.4596),(2 2,2 3,3 3,3 2,2 2)) +POLYGON((-0.7437 -1.4596,0 -2,5 -2,5.3902 -1.9616,5.7654 -1.8478,6.1111 -1.6629,6.4142 -1.4142,6.6629 -1.1111,6.8478 -0.7654,6.9616 -0.3902,7 0,7 5,6.9616 5.3902,6.8478 5.7654,6.6629 6.1111,6.4142 6.4142,6.1111 6.6629,5.7654 6.8478,5.3902 6.9616,5 7,0 7,-0.3902 6.9616,-0.7654 6.8478,-1.1111 6.6629,-1.4142 6.4142,-1.6629 6.1111,-1.8478 5.7654,-1.9616 5.3902,-2 5,-2 0,-1.8507 -0.4596,-1.9021 -0.618,-1.7674 -0.7159,-1.618 -1.1756,-0.7437 -1.4596),(2 2,2 3,3 3,3 2,2 2)) ##################################################################################### # ST_BUFFER() with 'end_flat' strategy ##################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((6 1,5.9039 1.9754,5.6193 2.9134,5.1573 3.7778,4.5355 4.5355,3.7778 5.1573,2.9134 5.6193,1.9754 5.9039,1.0000 6,0.0245 5.9039,-0.9134 5.6193,-1.7778 5.1573,-2.5355 4.5355,-3.1573 3.7778,-3.6193 2.9134,-3.9039 1.9754,-4 1.0000,-3.9039 0.0245,-3.6193 -0.9134,-3.1573 -1.7778,-2.5355 -2.5355,-1.7778 -3.1573,-0.9134 -3.6193,0.0245 -3.9039,1.0000 -4,1.9754 -3.9039,2.9134 -3.6193,3.7778 -3.1573,4.5355 -2.5355,5.1573 -1.7778,5.6193 -0.9134,5.9039 0.0245,6 1)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('end_flat'))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754,5 0)) +POLYGON((6 1,5.9039 1.9755,5.6194 2.9134,5.1573 3.7779,4.5355 4.5355,3.7779 5.1573,2.9134 5.6194,1.9755 5.9039,1 6,0.0245 5.9039,-0.9134 5.6194,-1.7779 5.1573,-2.5355 4.5355,-3.1573 3.7779,-3.6194 2.9134,-3.9039 1.9755,-4 1,-3.9039 0.0245,-3.6194 -0.9134,-3.1573 -1.7779,-2.5355 -2.5355,-1.7779 -3.1573,-0.9134 -3.6194,0.0245 -3.9039,1 -4,1.9755 -3.9039,2.9134 -3.6194,3.7779 -3.1573,4.5355 -2.5355,5.1573 -1.7779,5.6194 -0.9134,5.9039 0.0245,6 1)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('end_flat'))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('end_flat'))) +POLYGON((5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755,5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((-5 0,0 0,0 -5,0 -10,5 -10,6.9509 -9.8078,8.8268 -9.2387,10.5557 -8.3146,12.0710 -7.0710,13.3146 -5.5557,14.2387 -3.8268,14.8078 -1.9509,15 0,15 5,14.8078 6.9509,14.2387 8.8268,13.3146 10.5557,12.0710 12.0710,10.5557 13.3146,8.8268 14.2387,6.9509 14.8078,5 15,0 15,-1.9509 14.8078,-3.8268 14.2387,-5.5557 13.3146,-7.0710 12.0710,-8.3146 10.5557,-9.2387 8.8268,-9.8078 6.9509,-10 5,-10 0,-5 0)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('end_flat'))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((1707.1067 -292.8932,708.1069 706.1067,707.1069 707.1067,-707.1067 -707.1067,-706.1067 -708.1067,292.8931 -1707.1067,444.4297 -1831.4696,617.3165 -1923.8795,804.9096 -1980.7852,999.9999 -2000,1195.0903 -1980.7852,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1067 -1707.1067,1831.4695 -1555.5702,1923.8795 -1382.6834,1980.7852 -1195.0903,1999.9999 -1000.0000,1980.7852 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1067 -292.8932)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_flat'))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((9.8078 -1.9509,10 0,9.8078 1.9509,9.2387 3.8268,8.3146 5.5557,7.0710 7.0710,5.5557 8.3146,3.8268 9.2387,1.9509 9.8078,2.48e-14 10,-1.9509 9.8078,-3.8268 9.2387,-5.5557 8.3146,-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509)) +POLYGON((-5 0,0 0,0 -5,0 -10,5 -10,6.9509 -9.8079,8.8268 -9.2388,10.5557 -8.3147,12.0711 -7.0711,13.3147 -5.5557,14.2388 -3.8268,14.8079 -1.9509,15 0,15 5,14.8079 6.9509,14.2388 8.8268,13.3147 10.5557,12.0711 12.0711,10.5557 13.3147,8.8268 14.2388,6.9509 14.8079,5 15,0 15,-1.9509 14.8079,-3.8268 14.2388,-5.5557 13.3147,-7.0711 12.0711,-8.3147 10.5557,-9.2388 8.8268,-9.8079 6.9509,-10 5,-10 0,-5 0)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('end_flat'))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('end_flat'))) +POLYGON((1707.1068 -292.8932,708.1069 706.1067,707.1069 707.1067,-707.1067 -707.1067,-706.1068 -708.1068,292.8932 -1707.1067,444.4298 -1831.4696,617.3166 -1923.8795,804.9097 -1980.7853,1000 -2000,1195.0903 -1980.7853,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1068 -1707.1068,1831.4696 -1555.5703,1923.8795 -1382.6835,1980.7853 -1195.0904,2000 -1000,1980.7853 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1068 -292.8932)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_flat'))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_flat'))) +POLYGON((9.8079 -1.9509,10 0,9.8079 1.9509,9.2388 3.8268,8.3147 5.5557,7.0711 7.0711,5.5557 8.3147,3.8268 9.2388,1.9509 9.8079,0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((-45 0,0 0,0 -45,0 -50,5 -50,14.7545 -49.0392,24.1341 -46.1939,32.7785 -41.5734,40.3553 -35.3553,46.5734 -27.7785,51.1939 -19.1341,54.0392 -9.7545,55 0,55 5,54.0392 14.7545,51.1939 24.1341,46.5734 32.7785,40.3553 40.3553,32.7785 46.5734,24.1341 51.1939,14.7545 54.0392,5 55,0 55,-9.7545 54.0392,-19.1341 51.1939,-27.7785 46.5734,-35.3553 40.3553,-41.5734 32.7785,-46.1939 24.1341,-49.0392 14.7545,-50 5,-50 0,-45 0)) +POLYGON((-45 0,0 0,0 -45,0 -50,5 -50,14.7545 -49.0393,24.1342 -46.194,32.7785 -41.5735,40.3553 -35.3553,46.5735 -27.7785,51.194 -19.1342,54.0393 -9.7545,55 0,55 5,54.0393 14.7545,51.194 24.1342,46.5735 32.7785,40.3553 40.3553,32.7785 46.5735,24.1342 51.194,14.7545 54.0393,5 55,0 55,-9.7545 54.0393,-19.1342 51.194,-27.7785 46.5735,-35.3553 40.3553,-41.5735 32.7785,-46.194 24.1342,-49.0393 14.7545,-50 5,-50 0,-45 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((0.0000 -9.9999,0 -100,10 -100,9.9999 -9.9999,70.7106 -70.7106,80.7106 -60.7106,14.9999 4.9999,80.7106 70.7106,70.7106 80.7106,9.9999 19.9999,10 100,0 100,0.0000 19.9999,-60.7106 80.7106,-70.7106 70.7106,-4.9999 5.0000,-70.7106 -60.7106,-60.7106 -70.7106,0.0000 -9.9999)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('end_flat'))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((1707.1067 -292.8932,707.1069 707.1067,2.0001 2.0000,-981.8756 -176.8539,-979.8756 -187.8559,-11.8904 -11.8906,-707.1067 -707.1067,-706.1067 -708.1067,292.8931 -1707.1067,444.4297 -1831.4696,617.3165 -1923.8795,804.9096 -1980.7852,999.9999 -2000,1195.0903 -1980.7852,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1067 -1707.1067,1831.4695 -1555.5702,1923.8795 -1382.6834,1980.7852 -1195.0903,1999.9999 -1000.0000,1980.7852 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1067 -292.8932)) +POLYGON((0 -10,0 -100,10 -100,10 -10,70.7107 -70.7107,80.7107 -60.7107,15 5,80.7107 70.7107,70.7107 80.7107,10 20,10 100,0 100,0 20,-60.7107 80.7107,-70.7107 70.7107,-5 5,-70.7107 -60.7107,-60.7107 -70.7107,0 -10)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('end_flat'))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('end_flat'))) +POLYGON((1707.1068 -292.8932,707.1069 707.1067,2.0002 2,-981.8756 -176.854,-979.8756 -187.856,-11.8904 -11.8906,-707.1067 -707.1067,-706.1068 -708.1068,292.8932 -1707.1067,444.4298 -1831.4696,617.3166 -1923.8795,804.9097 -1980.7853,1000 -2000,1195.0903 -1980.7853,1382.6834 -1923.8795,1555.5702 -1831.4696,1707.1068 -1707.1068,1831.4696 -1555.5703,1923.8795 -1382.6835,1980.7853 -1195.0904,2000 -1000,1980.7853 -804.9097,1923.8795 -617.3166,1831.4696 -444.4298,1707.1068 -292.8932)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((-7.0710 7.0710,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('end_flat'))) POLYGON((5 5,5 10,0 10,0 5,-10 5,-10 0,0 0,0 -10,5 -10,5 0,10 0,10 5,5 5)) @@ -561,7 +561,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((-7.0710 7.0710,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -569,84 +569,84 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRI -POLYGON((4.1421 -10,10 -10,10.0000 -4.1421,17.0710 2.9289,2.9289 17.0710,-4.1421 10,-10 10,-10.0000 4.1421,-17.0710 -2.9289,-10 -9.9999,-10 -10,-9.9999 -10,-2.9289 -17.0710,4.1421 -10)) +POLYGON((4.1421 -10,10 -10,10 -4.1421,17.0711 2.9289,2.9289 17.0711,-4.1421 10,-10 10,-10 4.1421,-17.0711 -2.9289,-10 -10,-10 -10,-10 -10,-2.9289 -17.0711,4.1421 -10)) ##################################################################################### # ST_BUFFER() with 'join_round' strategy ##################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('join_round', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('join_round', 1))) -POLYGON((6 1,5.9039 1.9754,5.6193 2.9134,5.1573 3.7778,4.5355 4.5355,3.7778 5.1573,2.9134 5.6193,1.9754 5.9039,1.0000 6,0.0245 5.9039,-0.9134 5.6193,-1.7778 5.1573,-2.5355 4.5355,-3.1573 3.7778,-3.6193 2.9134,-3.9039 1.9754,-4 1.0000,-3.9039 0.0245,-3.6193 -0.9134,-3.1573 -1.7778,-2.5355 -2.5355,-1.7778 -3.1573,-0.9134 -3.6193,0.0245 -3.9039,1.0000 -4,1.9754 -3.9039,2.9134 -3.6193,3.7778 -3.1573,4.5355 -2.5355,5.1573 -1.7778,5.6193 -0.9134,5.9039 0.0245,6 1)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('join_round', 3))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('join_round', 3))) -POLYGON((5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754,5 0)) +POLYGON((6 1,5.9039 1.9755,5.6194 2.9134,5.1573 3.7779,4.5355 4.5355,3.7779 5.1573,2.9134 5.6194,1.9755 5.9039,1 6,0.0245 5.9039,-0.9134 5.6194,-1.7779 5.1573,-2.5355 4.5355,-3.1573 3.7779,-3.6194 2.9134,-3.9039 1.9755,-4 1,-3.9039 0.0245,-3.6194 -0.9134,-3.1573 -1.7779,-2.5355 -2.5355,-1.7779 -3.1573,-0.9134 -3.6194,0.0245 -3.9039,1 -4,1.9755 -3.9039,2.9134 -3.6194,3.7779 -3.1573,4.5355 -2.5355,5.1573 -1.7779,5.6194 -0.9134,5.9039 0.0245,6 1)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('join_round', 3))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('join_round', 3))) +POLYGON((5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755,5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(10 10,10 15,15 15,15 10,10 10)'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(10 10,10 15,15 15,15 10,10 10)'), 10, ST_BUFFER_STRATEGY('join_round', 4))) -POLYGON((10 0,15 0,25 10,25 15,15 25,10 25,0 15,0 10,0.1921 8.0490,0.7612 6.1731,1.6853 4.4442,2.9289 2.9289,4.4442 1.6853,6.1731 0.7612,8.0490 0.1921,10 0)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('join_round', 10))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((1707.1067 -292.8932,708.1067 706.1067,707.1069 707.1067,555.5703 831.4695,382.6835 923.8795,195.0904 980.7852,0.0001 999.9999,-195.0901 980.7852,-382.6832 923.8795,-555.5700 831.4696,-707.1066 707.1068,-831.4694 555.5702,-923.8794 382.6834,-980.7851 195.0903,-999.9998 0.0000,-980.7851 -195.0902,-923.8794 -382.6833,-831.4695 -555.5701,-707.1067 -707.1067,-706.1067 -708.1067,292.8931 -1707.1067,843.5655 -1987.6883,1453.9904 -1891.0065,1891.0065 -1453.9905,1987.6883 -843.5655,1707.1067 -292.8932)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_round', 1))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_round', 1))) -POLYGON((9.8078 -1.9509,10 0,9.8078 1.9509,9.2387 3.8268,8.3146 5.5557,7.0710 7.0710,5.5557 8.3146,3.8268 9.2387,1.9509 9.8078,2.48e-14 10,-1.9509 9.8078,-3.8268 9.2387,-5.5557 8.3146,-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509)) +POLYGON((10 0,15 0,25 10,25 15,15 25,10 25,0 15,0 10,0.1921 8.0491,0.7612 6.1732,1.6853 4.4443,2.9289 2.9289,4.4443 1.6853,6.1732 0.7612,8.0491 0.1921,10 0)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('join_round', 10))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('join_round', 10))) +POLYGON((1707.1068 -292.8932,708.1068 706.1068,707.1069 707.1067,555.5704 831.4696,382.6836 923.8795,195.0905 980.7853,0.0002 1000,-195.0902 980.7853,-382.6833 923.8796,-555.5701 831.4696,-707.1066 707.1068,-831.4695 555.5703,-923.8794 382.6835,-980.7852 195.0904,-999.9999 0.0001,-980.7852 -195.0903,-923.8795 -382.6834,-831.4695 -555.5702,-707.1067 -707.1067,-706.1068 -708.1068,292.8932 -1707.1067,843.5655 -1987.6883,1453.9905 -1891.0065,1891.0065 -1453.9905,1987.6883 -843.5656,1707.1068 -292.8932)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_round', 1))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_round', 1))) +POLYGON((9.8079 -1.9509,10 0,9.8079 1.9509,9.2388 3.8268,8.3147 5.5557,7.0711 7.0711,5.5557 8.3147,3.8268 9.2388,1.9509 9.8079,0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('join_round', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('join_round', 5))) -POLYGON((0 -50,5 -50,6.5597 -49.3539,9.7545 -49.0392,19.1341 -46.1939,27.7785 -41.5734,30.2600 -39.5369,40.3553 -35.3553,55 0,55 5,40.3553 40.3553,5 55,0 55,-35.3553 40.3553,-39.5369 30.2600,-41.5734 27.7785,-46.1939 19.1341,-49.0392 9.7545,-49.3539 6.5597,-50 5,-50 0,-49.0392 -9.7545,-46.1939 -19.1341,-41.5734 -27.7785,-35.3553 -35.3553,-27.7785 -41.5734,-19.1341 -46.1939,-9.7545 -49.0392,0 -50)) +POLYGON((0 -50,5 -50,6.5598 -49.3539,9.7545 -49.0393,19.1342 -46.194,27.7785 -41.5735,30.26 -39.537,40.3553 -35.3553,55 0,55 5,40.3553 40.3553,5 55,0 55,-35.3553 40.3553,-39.537 30.26,-41.5735 27.7785,-46.194 19.1342,-49.0393 9.7545,-49.3539 6.5598,-50 5,-50 0,-49.0393 -9.7545,-46.194 -19.1342,-41.5735 -27.7785,-35.3553 -35.3553,-27.7785 -41.5735,-19.1342 -46.194,-9.7545 -49.0393,0 -50)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((5.0000 109.5075,2.48e-13 110,-19.5090 108.0785,-38.2683 102.3879,-55.5570 93.1469,-70.7106 80.7106,-83.1469 65.5570,-92.3879 48.2683,-98.0785 29.5090,-100 10.0000,-99.5075 5.0000,-100 7.65e-14,-98.0785 -19.5090,-92.3879 -38.2683,-83.1469 -55.5570,-70.7106 -70.7106,-55.5570 -83.1469,-38.2683 -92.3879,-19.5090 -98.0785,0 -100,10 -100,29.5090 -98.0785,48.2683 -92.3879,65.5570 -83.1469,80.7106 -70.7106,93.1469 -55.5570,102.3879 -38.2683,108.0785 -19.5090,110 0,109.5075 5.0000,110 9.9999,108.0785 29.5090,102.3879 48.2683,93.1469 65.5570,80.7106 80.7106,65.5570 93.1469,48.2683 102.3879,29.5090 108.0785,10.0000 110,5.0000 109.5075)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.00 0.00),(2 2,4 -9.00))'), 1000, ST_BUFFER_STRATEGY('join_round', 50))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.00 0.00),(2 2,4 -9.00))'), 1000, ST_BUFFER_STRATEGY('join_round', 50))) -POLYGON((292.89 -1707.10,387.09 -1790.15,490.95 -1860.74,602.85 -1917.75,721.00 -1960.29,843.56 -1987.68,968.58 -1999.50,1094.10 -1995.56,1218.14 -1975.91,1338.73 -1940.88,1453.99 -1891.00,1562.08 -1827.08,1661.31 -1750.11,1750.11 -1661.31,1827.08 -1562.08,1891.00 -1453.99,1940.88 -1338.73,1975.91 -1218.14,1995.56 -1094.10,1999.50 -968.58,1987.68 -843.56,1960.29 -721.00,1917.75 -602.85,1860.74 -490.95,1790.15 -387.09,1707.10 -292.89,735.31 678.89,720.69 697.32,571.23 824.17,399.90 919.42,213.27 979.42,18.52 1001.86,-176.85 985.87,-194.48 980.84,-195.09 980.78,-201.43 978.85,-365.36 932.07,-379.37 924.88,-382.68 923.87,-415.67 906.24,-539.75 842.53,-549.84 834.52,-555.57 831.46,-609.83 786.93,-693.32 720.69,-699.69 713.18,-707.10 707.10,-772.92 626.90,-820.17 571.23,-823.45 565.33,-831.46 555.57,-895.93 434.95,-915.42 399.90,-916.56 396.37,-923.87 382.68,-972.63 221.96,-975.42 213.27,-975.52 212.43,-980.78 195.09,-999.99 0.00,-980.78 -195.09,-930.55 -360.69,-926.07 -376.36,-925.39 -377.70,-923.87 -382.68,-897.33 -432.34,-836.53 -550.75,-714.69 -704.32,-682.90 -731.30,292.89 -1707.10)) +POLYGON((5 109.5075,0 110,-19.509 108.0785,-38.2683 102.388,-55.557 93.147,-70.7107 80.7107,-83.147 65.557,-92.388 48.2683,-98.0785 29.509,-100 10,-99.5075 5,-100 0,-98.0785 -19.509,-92.388 -38.2683,-83.147 -55.557,-70.7107 -70.7107,-55.557 -83.147,-38.2683 -92.388,-19.509 -98.0785,0 -100,10 -100,29.509 -98.0785,48.2683 -92.388,65.557 -83.147,80.7107 -70.7107,93.147 -55.557,102.388 -38.2683,108.0785 -19.509,110 0,109.5075 5,110 10,108.0785 29.509,102.388 48.2683,93.147 65.557,80.7107 80.7107,65.557 93.147,48.2683 102.388,29.509 108.0785,10 110,5 109.5075)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('join_round', 50))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('join_round', 50))) +POLYGON((292.89 -1707.11,387.09 -1790.16,490.96 -1860.74,602.85 -1917.75,721.01 -1960.29,843.57 -1987.69,968.59 -1999.51,1094.11 -1995.56,1218.14 -1975.92,1338.74 -1940.88,1453.99 -1891.01,1562.08 -1827.08,1661.31 -1750.11,1750.11 -1661.31,1827.08 -1562.08,1891.01 -1453.99,1940.88 -1338.74,1975.92 -1218.14,1995.56 -1094.11,1999.51 -968.59,1987.69 -843.57,1960.29 -721.01,1917.75 -602.85,1860.74 -490.96,1790.16 -387.09,1707.11 -292.89,735.31 678.9,720.7 697.32,571.24 824.17,399.9 919.43,213.27 979.43,18.53 1001.86,-176.85 985.88,-194.48 980.85,-195.09 980.79,-201.44 978.86,-365.36 932.08,-379.37 924.88,-382.68 923.88,-415.68 906.24,-539.75 842.54,-549.85 834.53,-555.57 831.47,-609.84 786.93,-693.32 720.7,-699.7 713.19,-707.11 707.11,-772.93 626.91,-820.17 571.24,-823.45 565.34,-831.47 555.57,-895.94 434.96,-915.43 399.9,-916.56 396.37,-923.88 382.68,-972.63 221.96,-975.43 213.27,-975.52 212.44,-980.79 195.09,-1000 0,-980.79 -195.09,-930.55 -360.69,-926.08 -376.36,-925.39 -377.7,-923.88 -382.68,-897.34 -432.34,-836.54 -550.75,-714.7 -704.33,-682.91 -731.3,292.89 -1707.11)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_round', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_round', 1))) -POLYGON((-1 0,0.7071 -0.7071,5.7071 4.2928,5 6,0 6,-1 5,-1 0)) +POLYGON((-1 0,0.7071 -0.7071,5.7071 4.2929,5 6,0 6,-1 5,-1 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5, ST_BUFFER_STRATEGY('join_round', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5, ST_BUFFER_STRATEGY('join_round', 5))) POLYGON((-5 0,-3.5355 -3.5355,0 -5,10 -5,13.5355 -3.5355,15 0,15 10,13.5355 13.5355,10 15,0 15,-3.5355 13.5355,-5 10,-5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10, ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((0 10,1.3397 4.9999,5.0000 1.3397,10 0,20 0,25 1.3397,28.6602 5.0000,30 10,30 20,28.6602 25,25 28.6602,20 30,10 30,4.9999 28.6602,1.3397 25,0 20,0 10)) +POLYGON((0 10,1.3397 5,5 1.3397,10 0,20 0,25 1.3397,28.6603 5,30 10,30 20,28.6603 25,25 28.6603,20 30,10 30,5 28.6603,1.3397 25,0 20,0 10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10, ST_BUFFER_STRATEGY('join_round', 50))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10, ST_BUFFER_STRATEGY('join_round', 50))) -POLYGON((17.0710 -7.0710,17.8718 -6.1671,18.5578 -5.1733,19.1189 -4.1041,19.5472 -2.9750,19.8361 -1.8025,19.9817 -0.6037,19.9817 0.6037,19.8361 1.8025,19.5472 2.9750,19.1189 4.1041,18.5578 5.1733,17.8718 6.1671,17.0710 7.0710,7.0710 17.0710,6.1671 17.8718,5.1733 18.5578,4.1041 19.1189,2.9750 19.5472,1.8025 19.8361,0.6037 19.9817,-0.6037 19.9817,-1.8025 19.8361,-2.9750 19.5472,-4.1041 19.1189,-5.1733 18.5578,-6.1671 17.8718,-7.0710 17.0710,-17.0710 7.0710,-17.8718 6.1671,-18.5578 5.1733,-19.1189 4.1041,-19.5472 2.9750,-19.8361 1.8025,-19.9817 0.6037,-19.9817 -0.6037,-19.8361 -1.8025,-19.5472 -2.9750,-19.1189 -4.1041,-18.5578 -5.1733,-17.8718 -6.1671,-17.0710 -7.0710,-7.0710 -17.0710,-6.1671 -17.8718,-5.1733 -18.5578,-4.1041 -19.1189,-2.9750 -19.5472,-1.8025 -19.8361,-0.6037 -19.9817,0.6037 -19.9817,1.8025 -19.8361,2.9750 -19.5472,4.1041 -19.1189,5.1733 -18.5578,6.1671 -17.8718,7.0710 -17.0710,17.0710 -7.0710)) +POLYGON((17.0711 -7.0711,17.8718 -6.1672,18.5578 -5.1734,19.119 -4.1041,19.5472 -2.975,19.8362 -1.8026,19.9818 -0.6038,19.9818 0.6038,19.8362 1.8026,19.5472 2.975,19.119 4.1041,18.5578 5.1734,17.8718 6.1672,17.0711 7.0711,7.0711 17.0711,6.1672 17.8718,5.1734 18.5578,4.1041 19.119,2.975 19.5472,1.8026 19.8362,0.6038 19.9818,-0.6038 19.9818,-1.8026 19.8362,-2.975 19.5472,-4.1041 19.119,-5.1734 18.5578,-6.1672 17.8718,-7.0711 17.0711,-17.0711 7.0711,-17.8718 6.1672,-18.5578 5.1734,-19.119 4.1041,-19.5472 2.975,-19.8362 1.8026,-19.9818 0.6038,-19.9818 -0.6038,-19.8362 -1.8026,-19.5472 -2.975,-19.119 -4.1041,-18.5578 -5.1734,-17.8718 -6.1672,-17.0711 -7.0711,-7.0711 -17.0711,-6.1672 -17.8718,-5.1734 -18.5578,-4.1041 -19.119,-2.975 -19.5472,-1.8026 -19.8362,-0.6038 -19.9818,0.6038 -19.9818,1.8026 -19.8362,2.975 -19.5472,4.1041 -19.119,5.1734 -18.5578,6.1672 -17.8718,7.0711 -17.0711,17.0711 -7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))'), 1, ST_BUFFER_STRATEGY('join_round',60))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))'), 1, ST_BUFFER_STRATEGY('join_round',60))) -POLYGON((-1 0,-0.9945 -0.1045,-0.9781 -0.2079,-0.9510 -0.3090,-0.9135 -0.4067,-0.8660 -0.4999,-0.8090 -0.5877,-0.7431 -0.6691,-0.6691 -0.7431,-0.5877 -0.8090,-0.4999 -0.8660,-0.4067 -0.9135,-0.3090 -0.9510,-0.2079 -0.9781,-0.1045 -0.9945,0 -1,8 -1,8.1045 -0.9945,8.2079 -0.9781,8.3090 -0.9510,8.4067 -0.9135,8.5 -0.8660,8.5877 -0.8090,8.6691 -0.7431,8.7431 -0.6691,8.8090 -0.5877,8.8660 -0.4999,8.9135 -0.4067,8.9510 -0.3090,8.9781 -0.2079,8.9945 -0.1045,9 0,9 8,8.9945 8.1045,8.9781 8.2079,8.9510 8.3090,8.9135 8.4067,8.8660 8.5,8.8090 8.5877,8.7431 8.6691,8.6691 8.7431,8.5877 8.8090,8.5 8.8660,8.4067 8.9135,8.3090 8.9510,8.2079 8.9781,8.1045 8.9945,8 9,0 9,-0.1045 8.9945,-0.2079 8.9781,-0.3090 8.9510,-0.4067 8.9135,-0.4999 8.8660,-0.5877 8.8090,-0.6691 8.7431,-0.7431 8.6691,-0.8090 8.5877,-0.8660 8.5,-0.9135 8.4067,-0.9510 8.3090,-0.9781 8.2079,-0.9945 8.1045,-1 8,-1 0),(3 3,3 5,5 5,5 3,3 3)) +POLYGON((-1 0,-0.9945 -0.1045,-0.9781 -0.2079,-0.9511 -0.309,-0.9135 -0.4067,-0.866 -0.5,-0.809 -0.5878,-0.7431 -0.6691,-0.6691 -0.7431,-0.5878 -0.809,-0.5 -0.866,-0.4067 -0.9135,-0.309 -0.9511,-0.2079 -0.9781,-0.1045 -0.9945,0 -1,8 -1,8.1045 -0.9945,8.2079 -0.9781,8.309 -0.9511,8.4067 -0.9135,8.5 -0.866,8.5878 -0.809,8.6691 -0.7431,8.7431 -0.6691,8.809 -0.5878,8.866 -0.5,8.9135 -0.4067,8.9511 -0.309,8.9781 -0.2079,8.9945 -0.1045,9 0,9 8,8.9945 8.1045,8.9781 8.2079,8.9511 8.309,8.9135 8.4067,8.866 8.5,8.809 8.5878,8.7431 8.6691,8.6691 8.7431,8.5878 8.809,8.5 8.866,8.4067 8.9135,8.309 8.9511,8.2079 8.9781,8.1045 8.9945,8 9,0 9,-0.1045 8.9945,-0.2079 8.9781,-0.309 8.9511,-0.4067 8.9135,-0.5 8.866,-0.5878 8.809,-0.6691 8.7431,-0.7431 8.6691,-0.809 8.5878,-0.866 8.5,-0.9135 8.4067,-0.9511 8.309,-0.9781 8.2079,-0.9945 8.1045,-1 8,-1 0),(3 3,3 5,5 5,5 3,3 3)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100, ST_BUFFER_STRATEGY('join_round', 60))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100, ST_BUFFER_STRATEGY('join_round', 60))) -POLYGON((-100 0,-99.4521 -10.4528,-97.8147 -20.7911,-95.1056 -30.9016,-91.3545 -40.6736,-86.6025 -49.9999,-80.9016 -58.7785,-74.3144 -66.9130,-66.9130 -74.3144,-58.7785 -80.9016,-49.9999 -86.6025,-40.6736 -91.3545,-30.9016 -95.1056,-20.7911 -97.8147,-10.4528 -99.4521,0 -100,10 -100,20.4528 -99.4521,30.7911 -97.8147,40.9016 -95.1056,50.6736 -91.3545,59.9999 -86.6025,68.7785 -80.9016,76.9130 -74.3144,84.3144 -66.9130,90.9016 -58.7785,96.6025 -49.9999,101.3545 -40.6736,105.1056 -30.9016,107.8147 -20.7911,109.4521 -10.4528,110 0,110 10,109.4521 20.4528,107.8147 30.7911,105.1056 40.9016,101.3545 50.6736,96.6025 60.0000,90.9016 68.7785,84.3144 76.9130,76.9130 84.3144,68.7785 90.9016,59.9999 96.6025,50.6736 101.3545,40.9016 105.1056,30.7911 107.8147,20.4528 109.4521,10 110,0 110,-10.4528 109.4521,-20.7911 107.8147,-30.9016 105.1056,-40.6736 101.3545,-49.9999 96.6025,-58.7785 90.9016,-66.9130 84.3144,-74.3144 76.9130,-80.9016 68.7785,-86.6025 60.0000,-91.3545 50.6736,-95.1056 40.9016,-97.8147 30.7911,-99.4521 20.4528,-100 10,-100 0)) +POLYGON((-100 0,-99.4522 -10.4528,-97.8148 -20.7912,-95.1057 -30.9017,-91.3545 -40.6737,-86.6025 -50,-80.9017 -58.7785,-74.3145 -66.9131,-66.9131 -74.3145,-58.7785 -80.9017,-50 -86.6025,-40.6737 -91.3545,-30.9017 -95.1057,-20.7912 -97.8148,-10.4528 -99.4522,0 -100,10 -100,20.4528 -99.4522,30.7912 -97.8148,40.9017 -95.1057,50.6737 -91.3545,60 -86.6025,68.7785 -80.9017,76.9131 -74.3145,84.3145 -66.9131,90.9017 -58.7785,96.6025 -50,101.3545 -40.6737,105.1057 -30.9017,107.8148 -20.7912,109.4522 -10.4528,110 0,110 10,109.4522 20.4528,107.8148 30.7912,105.1057 40.9017,101.3545 50.6737,96.6025 60,90.9017 68.7785,84.3145 76.9131,76.9131 84.3145,68.7785 90.9017,60 96.6025,50.6737 101.3545,40.9017 105.1057,30.7912 107.8148,20.4528 109.4522,10 110,0 110,-10.4528 109.4522,-20.7912 107.8148,-30.9017 105.1057,-40.6737 101.3545,-50 96.6025,-58.7785 90.9017,-66.9131 84.3145,-74.3145 76.9131,-80.9017 68.7785,-86.6025 60,-91.3545 50.6737,-95.1057 40.9017,-97.8148 30.7912,-99.4522 20.4528,-100 10,-100 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 5,5 5,0 0)))'), 0.5, ST_BUFFER_STRATEGY('join_round', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 5,5 5,0 0)))'), 0.5, ST_BUFFER_STRATEGY('join_round', 1))) -POLYGON((-0.5 0,0.3535 -0.3535,5.3535 4.6464,5 5.5,0 5.5,-0.5 5,-0.5 0)) +POLYGON((-0.5 0,0.3536 -0.3536,5.3536 4.6464,5 5.5,0 5.5,-0.5 5,-0.5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1, ST_BUFFER_STRATEGY('join_round', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1, ST_BUFFER_STRATEGY('join_round', 5))) -POLYGON((5.0000 6.4142,0.7071 10.7071,-0.3826 10.9238,-1 10,-1 0,-0.8971 -0.2483,-0.9238 -0.3826,-0.8099 -0.4588,-0.7071 -0.7071,0 -1,10 -1,10.7071 -0.7071,10.8099 -0.4588,10.9238 -0.3826,10.8971 -0.2483,11 0,11 10,10.3826 10.9238,9.2928 10.7071,5.0000 6.4142)) +POLYGON((5 6.4142,0.7071 10.7071,-0.3827 10.9239,-1 10,-1 0,-0.8971 -0.2483,-0.9239 -0.3827,-0.81 -0.4588,-0.7071 -0.7071,0 -1,10 -1,10.7071 -0.7071,10.81 -0.4588,10.9239 -0.3827,10.8971 -0.2483,11 0,11 10,10.3827 10.9239,9.2929 10.7071,5 6.4142)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20, ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20, ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((-3.1698 29.1506,-10.0000 27.3205,-17.3205 20,-20 10,-20 0,-16.6293 -11.1114,-7.6536 -18.4775,3.9018 -19.6157,14.1421 -14.1421,24.1421 -4.1421,29.1421 0.8578,34.6157 11.0981,33.4775 22.6536,26.1114 31.6293,15 35,10 35,-3.55e-15 32.3205,-3.1698 29.1506)) +POLYGON((-3.1699 29.1506,-10 27.3205,-17.3205 20,-20 10,-20 0,-16.6294 -11.1114,-7.6537 -18.4776,3.9018 -19.6157,14.1421 -14.1421,24.1421 -4.1421,29.1421 0.8579,34.6157 11.0982,33.4776 22.6537,26.1114 31.6294,15 35,10 35,-0 32.3205,-3.1699 29.1506)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4, ST_BUFFER_STRATEGY('join_round', 50))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4, ST_BUFFER_STRATEGY('join_round', 50))) -POLYGON((-4 0,-3.9708 -0.4821,-3.8837 -0.9572,-3.7400 -1.4184,-3.5418 -1.8588,-3.2919 -2.2722,-2.9940 -2.6524,-2.6524 -2.9940,-2.2722 -3.2919,-1.8588 -3.5418,-1.4184 -3.7400,-0.9572 -3.8837,-0.4821 -3.9708,0 -4,10 -4,10.4821 -3.9708,10.9572 -3.8837,11.4184 -3.7400,11.8588 -3.5418,12.2722 -3.2919,12.6524 -2.9940,12.9940 -2.6524,13.2919 -2.2722,13.5418 -1.8588,13.7400 -1.4184,13.8837 -0.9572,13.9708 -0.4821,14 0,14 10,13.9708 10.4821,13.8837 10.9572,13.7400 11.4184,13.5418 11.8588,13.2919 12.2722,12.9940 12.6524,12.6524 12.9940,12.2722 13.2919,11.8588 13.5418,11.4184 13.7400,10.9572 13.8837,10.4821 13.9708,10 14,0 14,-0.4821 13.9708,-0.9572 13.8837,-1.4184 13.7400,-1.8588 13.5418,-2.2722 13.2919,-2.6524 12.9940,-2.9940 12.6524,-3.2919 12.2722,-3.5418 11.8588,-3.7400 11.4184,-3.8837 10.9572,-3.9708 10.4821,-4 10,-4 0)) +POLYGON((-4 0,-3.9708 -0.4821,-3.8838 -0.9573,-3.7401 -1.4184,-3.5418 -1.8589,-3.2919 -2.2723,-2.994 -2.6525,-2.6525 -2.994,-2.2723 -3.2919,-1.8589 -3.5418,-1.4184 -3.7401,-0.9573 -3.8838,-0.4821 -3.9708,0 -4,10 -4,10.4821 -3.9708,10.9573 -3.8838,11.4184 -3.7401,11.8589 -3.5418,12.2723 -3.2919,12.6525 -2.994,12.994 -2.6525,13.2919 -2.2723,13.5418 -1.8589,13.7401 -1.4184,13.8838 -0.9573,13.9708 -0.4821,14 0,14 10,13.9708 10.4821,13.8838 10.9573,13.7401 11.4184,13.5418 11.8589,13.2919 12.2723,12.994 12.6525,12.6525 12.994,12.2723 13.2919,11.8589 13.5418,11.4184 13.7401,10.9573 13.8838,10.4821 13.9708,10 14,0 14,-0.4821 13.9708,-0.9573 13.8838,-1.4184 13.7401,-1.8589 13.5418,-2.2723 13.2919,-2.6525 12.994,-2.994 12.6525,-3.2919 12.2723,-3.5418 11.8589,-3.7401 11.4184,-3.8838 10.9573,-3.9708 10.4821,-4 10,-4 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4, ST_BUFFER_STRATEGY('join_round', 60))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4, ST_BUFFER_STRATEGY('join_round', 60))) -POLYGON((-4 0,-3.9780 -0.4181,-3.9125 -0.8316,-3.8042 -1.2360,-3.6541 -1.6269,-3.4641 -1.9999,-3.2360 -2.3511,-2.9725 -2.6765,-2.6765 -2.9725,-2.3511 -3.2360,-1.9999 -3.4641,-1.6269 -3.6541,-1.2360 -3.8042,-0.8316 -3.9125,-0.4181 -3.9780,0 -4,10 -4,10.4181 -3.9780,10.8316 -3.9125,11.2360 -3.8042,11.6269 -3.6541,12 -3.4641,12.3511 -3.2360,12.6765 -2.9725,12.9725 -2.6765,13.2360 -2.3511,13.4641 -1.9999,13.6541 -1.6269,13.8042 -1.2360,13.9125 -0.8316,13.9780 -0.4181,14 0,14 10,13.9780 10.4181,13.9125 10.8316,13.8042 11.2360,13.6541 11.6269,13.4641 12,13.2360 12.3511,12.9725 12.6765,12.6765 12.9725,12.3511 13.2360,12 13.4641,11.6269 13.6541,11.2360 13.8042,10.8316 13.9125,10.4181 13.9780,10 14,0 14,-0.4181 13.9780,-0.8316 13.9125,-1.2360 13.8042,-1.6269 13.6541,-1.9999 13.4641,-2.3511 13.2360,-2.6765 12.9725,-2.9725 12.6765,-3.2360 12.3511,-3.4641 12.0000,-3.6541 11.6269,-3.8042 11.2360,-3.9125 10.8316,-3.9780 10.4181,-4 10,-4 0)) +POLYGON((-4 0,-3.9781 -0.4181,-3.9126 -0.8316,-3.8042 -1.2361,-3.6542 -1.6269,-3.4641 -2,-3.2361 -2.3511,-2.9726 -2.6765,-2.6765 -2.9726,-2.3511 -3.2361,-2 -3.4641,-1.6269 -3.6542,-1.2361 -3.8042,-0.8316 -3.9126,-0.4181 -3.9781,0 -4,10 -4,10.4181 -3.9781,10.8316 -3.9126,11.2361 -3.8042,11.6269 -3.6542,12 -3.4641,12.3511 -3.2361,12.6765 -2.9726,12.9726 -2.6765,13.2361 -2.3511,13.4641 -2,13.6542 -1.6269,13.8042 -1.2361,13.9126 -0.8316,13.9781 -0.4181,14 0,14 10,13.9781 10.4181,13.9126 10.8316,13.8042 11.2361,13.6542 11.6269,13.4641 12,13.2361 12.3511,12.9726 12.6765,12.6765 12.9726,12.3511 13.2361,12 13.4641,11.6269 13.6542,11.2361 13.8042,10.8316 13.9126,10.4181 13.9781,10 14,0 14,-0.4181 13.9781,-0.8316 13.9126,-1.2361 13.8042,-1.6269 13.6542,-2 13.4641,-2.3511 13.2361,-2.6765 12.9726,-2.9726 12.6765,-3.2361 12.3511,-3.4641 12,-3.6542 11.6269,-3.8042 11.2361,-3.9126 10.8316,-3.9781 10.4181,-4 10,-4 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('join_round', 4))) -POLYGON((-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((9.0952 9.0952,8.3146 10.5557,7.0710 12.0710,5.5557 13.3146,3.8268 14.2387,1.9509 14.8078,1.17e-14 15,-1.9509 14.8078,-3.8268 14.2387,-5.5557 13.3146,-7.0710 12.0710,-8.3146 10.5557,-9.2387 8.8268,-9.8078 6.9509,-10 5,-10 0,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,0 -10,5 -10,6.9509 -9.8078,8.8268 -9.2387,10.5557 -8.3146,12.0710 -7.0710,13.3146 -5.5557,14.2387 -3.8268,14.8078 -1.9509,15 0,14.8078 1.9509,14.2387 3.8268,13.3146 5.5557,12.0710 7.0710,10.5557 8.3146,9.0952 9.0952)) +POLYGON((9.0953 9.0953,8.3147 10.5557,7.0711 12.0711,5.5557 13.3147,3.8268 14.2388,1.9509 14.8079,0 15,-1.9509 14.8079,-3.8268 14.2388,-5.5557 13.3147,-7.0711 12.0711,-8.3147 10.5557,-9.2388 8.8268,-9.8079 6.9509,-10 5,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,5 -10,6.9509 -9.8079,8.8268 -9.2388,10.5557 -8.3147,12.0711 -7.0711,13.3147 -5.5557,14.2388 -3.8268,14.8079 -1.9509,15 0,14.8079 1.9509,14.2388 3.8268,13.3147 5.5557,12.0711 7.0711,10.5557 8.3147,9.0953 9.0953)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)))'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)))'), 10, ST_BUFFER_STRATEGY('join_round', 4))) POLYGON((-10 0,0 -10,5 -10,15 0,15 5,5 15,0 15,-10 5,-10 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_round', 4))) -POLYGON((-2.9289 9.0710,-5.0710 9.0710,-7.0710 7.0710,-9.2387 -3.8268,0 -10,4 -10,13.2387 -3.8268,12.3983 0.3983,15 3,15 5,5 15,3 15,-2.9289 9.0710)) +POLYGON((-2.9289 9.0711,-5.0711 9.0711,-7.0711 7.0711,-9.2388 -3.8268,0 -10,4 -10,13.2388 -3.8268,12.3984 0.3984,15 3,15 5,5 15,3 15,-2.9289 9.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -654,12 +654,12 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRI -POLYGON((4.1421 -10,10 -10,11.9509 -9.8078,13.8268 -9.2387,15.5557 -8.3146,17.0710 -7.0710,18.3146 -5.5557,19.2387 -3.8268,19.8078 -1.9509,20 0,19.8078 1.9509,19.2387 3.8268,18.6117 5.0000,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710,-4.1421 10,-10 10,-11.9509 9.8078,-13.8268 9.2387,-15.5557 8.3146,-17.0710 7.0710,-18.3146 5.5557,-19.2387 3.8268,-19.8078 1.9509,-20 7.65e-15,-19.8078 -1.9509,-19.2387 -3.8268,-18.6117 -5.0000,-19.2387 -6.1731,-19.8078 -8.0490,-20 -9.9999,-19.8078 -11.9509,-19.2387 -13.8268,-18.3146 -15.5557,-17.0710 -17.0710,-15.5557 -18.3146,-13.8268 -19.2387,-11.9509 -19.8078,-10 -20,-8.0490 -19.8078,-6.1731 -19.2387,-4.4442 -18.3146,-2.9289 -17.0710,4.1421 -10)) +POLYGON((4.1421 -10,10 -10,11.9509 -9.8079,13.8268 -9.2388,15.5557 -8.3147,17.0711 -7.0711,18.3147 -5.5557,19.2388 -3.8268,19.8079 -1.9509,20 0,19.8079 1.9509,19.2388 3.8268,18.6117 5,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,-4.1421 10,-10 10,-11.9509 9.8079,-13.8268 9.2388,-15.5557 8.3147,-17.0711 7.0711,-18.3147 5.5557,-19.2388 3.8268,-19.8079 1.9509,-20 0,-19.8079 -1.9509,-19.2388 -3.8268,-18.6117 -5,-19.2388 -6.1732,-19.8079 -8.0491,-20 -10,-19.8079 -11.9509,-19.2388 -13.8268,-18.3147 -15.5557,-17.0711 -17.0711,-15.5557 -18.3147,-13.8268 -19.2388,-11.9509 -19.8079,-10 -20,-8.0491 -19.8079,-6.1732 -19.2388,-4.4443 -18.3147,-2.9289 -17.0711,4.1421 -10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_round', 10)) -POLYGON((3 15,0 15,-5.0000 13.6602,-8.6602 10,-10 5,-10 0,-9.3923 -2.2677,-9.2387 -3.8268,-8.8465 -4.3048,-8.6602 -5.0000,-6.5174 -7.1428,-5.5557 -8.3146,-5.2540 -8.4061,-4.9999 -8.6602,0 -10,4 -10,5 -10,10 -8.6602,13.6602 -4.9999,15 0,15 3,15 5,13.6602 10,10 13.6602,5 15,3 15)) +POLYGON((3 15,0 15,-5 13.6603,-8.6603 10,-10 5,-10 0,-9.3923 -2.2678,-9.2388 -3.8268,-8.8465 -4.3048,-8.6603 -5,-6.5174 -7.1428,-5.5557 -8.3147,-5.2541 -8.4062,-5 -8.6603,0 -10,4 -10,5 -10,10 -8.6603,13.6603 -5,15 0,15 3,15 5,13.6603 10,10 13.6603,5 15,3 15)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -667,37 +667,37 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTR -POLYGON((2.9289 17.0710,0.8578 15,0 15,-1.2053 14.9270,-2.3931 14.7094,-3.5460 14.3501,-4.6472 13.8545,-5.6806 13.2298,-6.6312 12.4851,-7.4851 11.6312,-8.2298 10.6806,-8.8545 9.6472,-9.3501 8.5460,-9.7094 7.3931,-9.9270 6.2053,-10 5,-10 0,-9.9740 -0.4290,-9.9658 -0.8257,-9.9388 -1.0111,-9.9270 -1.2053,-9.8463 -1.6458,-9.8202 -1.8252,-9.8078 -1.9509,-9.7964 -1.9885,-9.7871 -2.0521,-9.7415 -2.2178,-9.7094 -2.3931,-9.5707 -2.8383,-9.4581 -3.2469,-9.3983 -3.3914,-9.3501 -3.5460,-9.2698 -3.7245,-9.2387 -3.8268,-9.1463 -3.9997,-8.9839 -4.3919,-8.9143 -4.5144,-8.8545 -4.6472,-8.5933 -5.0792,-8.3716 -5.4694,-8.3332 -5.5210,-8.3146 -5.5557,-8.2792 -5.5988,-8.2298 -5.6806,-7.9057 -6.0943,-7.6308 -6.4629,-7.5549 -6.5421,-7.4851 -6.6312,-7.1891 -6.9271,-7.0710 -7.0710,-6.9597 -7.1624,-6.7728 -7.3572,-6.6997 -7.4165,-6.6312 -7.4851,-6.1808 -7.8379,-5.8107 -8.1384,-5.7442 -8.1800,-5.6806 -8.2298,-5.5988 -8.2792,-5.5557 -8.3146,-5.4224 -8.3859,-5.1669 -8.5404,-4.7594 -8.7947,-4.7025 -8.8211,-4.6472 -8.8545,-4.0675 -9.1154,-3.9925 -9.1502,-3.8268 -9.2387,-3.7533 -9.2610,-3.6350 -9.3159,-3.5902 -9.3302,-3.5460 -9.3501,-2.8907 -9.5543,-2.4548 -9.6940,-2.4239 -9.6998,-2.3931 -9.7094,-2.0957 -9.7639,-1.9509 -9.8078,-1.7457 -9.8280,-1.6223 -9.8506,-1.2369 -9.9232,-1.2212 -9.9241,-1.2053 -9.9270,0 -10,1 -10,5 -10,6.2053 -9.9270,7.3931 -9.7094,8.5460 -9.3501,9.6472 -8.8545,10.6806 -8.2298,11.6312 -7.4851,12.4851 -6.6312,13.2298 -5.6806,13.8545 -4.6472,14.3501 -3.5460,14.7094 -2.3931,14.9270 -1.2053,15 0,15 0.8578,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710)) +POLYGON((2.9289 17.0711,0.8579 15,0 15,-1.2054 14.9271,-2.3932 14.7094,-3.546 14.3502,-4.6472 13.8546,-5.6806 13.2298,-6.6312 12.4851,-7.4851 11.6312,-8.2298 10.6806,-8.8546 9.6472,-9.3502 8.546,-9.7094 7.3932,-9.9271 6.2054,-10 5,-10 0,-9.974 -0.4291,-9.9658 -0.8258,-9.9388 -1.0112,-9.9271 -1.2054,-9.8464 -1.6458,-9.8202 -1.8252,-9.8079 -1.9509,-9.7964 -1.9885,-9.7872 -2.0522,-9.7415 -2.2179,-9.7094 -2.3932,-9.5707 -2.8383,-9.4582 -3.247,-9.3983 -3.3914,-9.3502 -3.546,-9.2698 -3.7246,-9.2388 -3.8268,-9.1464 -3.9997,-8.9839 -4.392,-8.9143 -4.5144,-8.8546 -4.6472,-8.5934 -5.0793,-8.3717 -5.4695,-8.3332 -5.521,-8.3147 -5.5557,-8.2793 -5.5989,-8.2298 -5.6806,-7.9058 -6.0943,-7.6308 -6.463,-7.5549 -6.5421,-7.4851 -6.6312,-7.1891 -6.9272,-7.0711 -7.0711,-6.9597 -7.1625,-6.7728 -7.3572,-6.6998 -7.4165,-6.6312 -7.4851,-6.1809 -7.8379,-5.8108 -8.1385,-5.7442 -8.18,-5.6806 -8.2298,-5.5989 -8.2793,-5.5557 -8.3147,-5.4225 -8.3859,-5.1669 -8.5404,-4.7595 -8.7947,-4.7025 -8.8211,-4.6472 -8.8546,-4.0675 -9.1155,-3.9926 -9.1502,-3.8268 -9.2388,-3.7534 -9.2611,-3.6351 -9.3159,-3.5902 -9.3303,-3.546 -9.3502,-2.8908 -9.5544,-2.4549 -9.694,-2.424 -9.6998,-2.3932 -9.7094,-2.0957 -9.7639,-1.9509 -9.8079,-1.7457 -9.8281,-1.6224 -9.8507,-1.2369 -9.9232,-1.2212 -9.9242,-1.2054 -9.9271,0 -10,1 -10,5 -10,6.2054 -9.9271,7.3932 -9.7094,8.546 -9.3502,9.6472 -8.8546,10.6806 -8.2298,11.6312 -7.4851,12.4851 -6.6312,13.2298 -5.6806,13.8546 -4.6472,14.3502 -3.546,14.7094 -2.3932,14.9271 -1.2054,15 0,15 0.8579,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711)) ##################################################################################### # ST_BUFFER() with 'join_mitter' strategy ##################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('join_miter', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('join_miter', 1))) -POLYGON((6 1,5.9039 1.9754,5.6193 2.9134,5.1573 3.7778,4.5355 4.5355,3.7778 5.1573,2.9134 5.6193,1.9754 5.9039,1.0000 6,0.0245 5.9039,-0.9134 5.6193,-1.7778 5.1573,-2.5355 4.5355,-3.1573 3.7778,-3.6193 2.9134,-3.9039 1.9754,-4 1.0000,-3.9039 0.0245,-3.6193 -0.9134,-3.1573 -1.7778,-2.5355 -2.5355,-1.7778 -3.1573,-0.9134 -3.6193,0.0245 -3.9039,1.0000 -4,1.9754 -3.9039,2.9134 -3.6193,3.7778 -3.1573,4.5355 -2.5355,5.1573 -1.7778,5.6193 -0.9134,5.9039 0.0245,6 1)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('join_miter', 3))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('join_miter', 3))) -POLYGON((5 0,4.9039 0.9754,4.6193 1.9134,4.1573 2.7778,3.5355 3.5355,2.7778 4.1573,1.9134 4.6193,0.9754 4.9039,1.24e-14 5,-0.9754 4.9039,-1.9134 4.6193,-2.7778 4.1573,-3.5355 3.5355,-4.1573 2.7778,-4.6193 1.9134,-4.9039 0.9754,-5 3.82e-15,-4.9039 -0.9754,-4.6193 -1.9134,-4.1573 -2.7778,-3.5355 -3.5355,-2.7778 -4.1573,-1.9134 -4.6193,-0.9754 -4.9039,3.06e-16 -5,0.9754 -4.9039,1.9134 -4.6193,2.7778 -4.1573,3.5355 -3.5355,4.1573 -2.7778,4.6193 -1.9134,4.9039 -0.9754,5 0)) +POLYGON((6 1,5.9039 1.9755,5.6194 2.9134,5.1573 3.7779,4.5355 4.5355,3.7779 5.1573,2.9134 5.6194,1.9755 5.9039,1 6,0.0245 5.9039,-0.9134 5.6194,-1.7779 5.1573,-2.5355 4.5355,-3.1573 3.7779,-3.6194 2.9134,-3.9039 1.9755,-4 1,-3.9039 0.0245,-3.6194 -0.9134,-3.1573 -1.7779,-2.5355 -2.5355,-1.7779 -3.1573,-0.9134 -3.6194,0.0245 -3.9039,1 -4,1.9755 -3.9039,2.9134 -3.6194,3.7779 -3.1573,4.5355 -2.5355,5.1573 -1.7779,5.6194 -0.9134,5.9039 0.0245,6 1)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('join_miter', 3))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0 0,0 0)'), 5, ST_BUFFER_STRATEGY('join_miter', 3))) +POLYGON((5 0,4.9039 0.9755,4.6194 1.9134,4.1573 2.7779,3.5355 3.5355,2.7779 4.1573,1.9134 4.6194,0.9755 4.9039,0 5,-0.9755 4.9039,-1.9134 4.6194,-2.7779 4.1573,-3.5355 3.5355,-4.1573 2.7779,-4.6194 1.9134,-4.9039 0.9755,-5 0,-4.9039 -0.9755,-4.6194 -1.9134,-4.1573 -2.7779,-3.5355 -3.5355,-2.7779 -4.1573,-1.9134 -4.6194,-0.9755 -4.9039,0 -5,0.9755 -4.9039,1.9134 -4.6194,2.7779 -4.1573,3.5355 -3.5355,4.1573 -2.7779,4.6194 -1.9134,4.9039 -0.9755,5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('join_miter', 4))) -POLYGON((6.66e-16 -10,5 -10,15 -10,15 0,15 5,15 15,5 15,0 15,-10 15,-10 5,-10 0,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.66e-16 -10)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('join_miter', 10))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((1707.1067 -292.8932,708.1067 706.1067,707.1069 707.1067,555.5703 831.4695,382.6835 923.8795,195.0904 980.7852,0.0001 999.9999,-195.0901 980.7852,-382.6832 923.8795,-555.5700 831.4696,-707.1066 707.1068,-831.4694 555.5702,-923.8794 382.6834,-980.7851 195.0903,-999.9998 0.0000,-980.7851 -195.0902,-923.8794 -382.6833,-831.4695 -555.5701,-707.1067 -707.1067,-706.1067 -708.1067,292.8931 -1707.1067,8071.0676 -8071.0679,1707.1067 -292.8932)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_miter', 1))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_miter', 1))) -POLYGON((9.8078 -1.9509,10 0,9.8078 1.9509,9.2387 3.8268,8.3146 5.5557,7.0710 7.0710,5.5557 8.3146,3.8268 9.2387,1.9509 9.8078,2.48e-14 10,-1.9509 9.8078,-3.8268 9.2387,-5.5557 8.3146,-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,8.3146 -5.5557,9.2387 -3.8268,9.8078 -1.9509)) +POLYGON((0 -10,5 -10,15 -10,15 0,15 5,15 15,5 15,0 15,-10 15,-10 5,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('join_miter', 10))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0)'), 1000, ST_BUFFER_STRATEGY('join_miter', 10))) +POLYGON((1707.1068 -292.8932,708.1068 706.1068,707.1069 707.1067,555.5704 831.4696,382.6836 923.8795,195.0905 980.7853,0.0002 1000,-195.0902 980.7853,-382.6833 923.8796,-555.5701 831.4696,-707.1066 707.1068,-831.4695 555.5703,-923.8794 382.6835,-980.7852 195.0904,-999.9999 0.0001,-980.7852 -195.0903,-923.8795 -382.6834,-831.4695 -555.5702,-707.1067 -707.1067,-706.1068 -708.1068,292.8932 -1707.1067,8071.0676 -8071.068,1707.1068 -292.8932)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_miter', 1))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0 0),(0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_miter', 1))) +POLYGON((9.8079 -1.9509,10 0,9.8079 1.9509,9.2388 3.8268,8.3147 5.5557,7.0711 7.0711,5.5557 8.3147,3.8268 9.2388,1.9509 9.8079,0 10,-1.9509 9.8079,-3.8268 9.2388,-5.5557 8.3147,-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,8.3147 -5.5557,9.2388 -3.8268,9.8079 -1.9509)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('join_miter', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('join_miter', 5))) -POLYGON((0 -50,5 -50,55 -50,55 0,55 5,55 55,5 55,0 55,-50 55,-50 5,-50 0,-49.0392 -9.7545,-46.1939 -19.1341,-41.5734 -27.7785,-35.3553 -35.3553,-27.7785 -41.5734,-19.1341 -46.1939,-9.7545 -49.0392,0 -50)) +POLYGON((0 -50,5 -50,55 -50,55 0,55 5,55 55,5 55,0 55,-50 55,-50 5,-50 0,-49.0393 -9.7545,-46.194 -19.1342,-41.5735 -27.7785,-35.3553 -35.3553,-27.7785 -41.5735,-19.1342 -46.194,-9.7545 -49.0393,0 -50)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((5.0000 109.5075,2.48e-13 110,-19.5090 108.0785,-38.2683 102.3879,-55.5570 93.1469,-70.7106 80.7106,-83.1469 65.5570,-92.3879 48.2683,-98.0785 29.5090,-100 10.0000,-99.5075 5.0000,-100 7.65e-14,-98.0785 -19.5090,-92.3879 -38.2683,-83.1469 -55.5570,-70.7106 -70.7106,-55.5570 -83.1469,-38.2683 -92.3879,-19.5090 -98.0785,0 -100,10 -100,29.5090 -98.0785,48.2683 -92.3879,65.5570 -83.1469,80.7106 -70.7106,93.1469 -55.5570,102.3879 -38.2683,108.0785 -19.5090,110 0,109.5075 5.0000,110 9.9999,108.0785 29.5090,102.3879 48.2683,93.1469 65.5570,80.7106 80.7106,65.5570 93.1469,48.2683 102.3879,29.5090 108.0785,10.0000 110,5.0000 109.5075)) -SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0 0.0),(2 2,4 -9.0))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))); -ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0 0.0),(2 2,4 -9.0))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))) -POLYGON((292.8 -1707.1,36355.3 -36355.3,1707.1 -292.8,735.2 678.9,720.6 697.3,571.2 824.1,399.9 919.4,213.2 979.4,18.5 1001.8,-176.8 985.8,-194.4 980.8,-195.0 980.7,-201.3 978.8,-365.3 932.0,-379.3 924.8,-382.6 923.8,-415.6 906.2,-539.7 842.5,-549.8 834.5,-555.5 831.4,-609.8 786.9,-693.3 720.6,-699.6 713.2,-707.1 707.1,-773.0 626.8,-820.1 571.2,-823.4 565.3,-831.4 555.5,-896.0 434.7,-915.4 399.9,-916.5 396.3,-923.8 382.6,-972.7 221.6,-975.4 213.2,-975.5 212.4,-980.7 195.0,-999.9 0.0,-980.7 -195.0,-930.5 -360.5,-926.0 -376.3,-925.3 -377.7,-923.8 -382.6,-897.4 -432.2,-836.5 -550.7,-714.6 -704.3,-682.9 -731.2,292.8 -1707.1)) +POLYGON((5 109.5075,0 110,-19.509 108.0785,-38.2683 102.388,-55.557 93.147,-70.7107 80.7107,-83.147 65.557,-92.388 48.2683,-98.0785 29.509,-100 10,-99.5075 5,-100 0,-98.0785 -19.509,-92.388 -38.2683,-83.147 -55.557,-70.7107 -70.7107,-55.557 -83.147,-38.2683 -92.388,-19.509 -98.0785,0 -100,10 -100,29.509 -98.0785,48.2683 -92.388,65.557 -83.147,80.7107 -70.7107,93.147 -55.557,102.388 -38.2683,108.0785 -19.509,110 0,109.5075 5,110 10,108.0785 29.509,102.388 48.2683,93.147 65.557,80.7107 80.7107,65.557 93.147,48.2683 102.388,29.509 108.0785,10 110,5 109.5075)) +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))); +ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))) +POLYGON((292.89 -1707.11,36355.34 -36355.34,1707.11 -292.89,735.28 678.95,720.7 697.32,571.24 824.17,399.9 919.43,213.27 979.43,18.53 1001.86,-176.85 985.88,-194.49 980.84,-195.09 980.79,-201.35 978.89,-365.36 932.08,-379.38 924.88,-382.68 923.88,-415.6 906.28,-539.75 842.54,-549.86 834.52,-555.57 831.47,-609.87 786.9,-693.32 720.7,-699.67 713.21,-707.11 707.11,-773 626.81,-820.17 571.24,-823.46 565.33,-831.47 555.57,-896.03 434.8,-915.43 399.9,-916.55 396.39,-923.88 382.68,-972.73 221.65,-975.43 213.27,-975.52 212.47,-980.79 195.09,-1000 0,-980.79 -195.09,-930.59 -360.57,-926.08 -376.36,-925.38 -377.71,-923.88 -382.68,-897.4 -432.21,-836.54 -550.75,-714.7 -704.33,-682.99 -731.24,292.89 -1707.11)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_miter', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_miter', 1))) -POLYGON((-1 0,-0.3826 -0.9238,0.7071 -0.7071,5.7071 4.2928,5.9238 5.3826,5 6,0 6,-0.7071 5.7071,-1 5,-1 0)) +POLYGON((-1 0,-0.3827 -0.9239,0.7071 -0.7071,5.7071 4.2929,5.9239 5.3827,5 6,0 6,-0.7071 5.7071,-1 5,-1 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5, ST_BUFFER_STRATEGY('join_miter', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5, ST_BUFFER_STRATEGY('join_miter', 5))) POLYGON((-5 0,-5 -5,0 -5,10 -5,15 -5,15 0,15 10,15 15,10 15,0 15,-5 15,-5 10,-5 0)) @@ -706,7 +706,7 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), POLYGON((0 10,0 0,10 0,20 0,30 0,30 10,30 20,30 30,20 30,10 30,0 30,0 20,0 10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10, ST_BUFFER_STRATEGY('join_miter', 50))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10, ST_BUFFER_STRATEGY('join_miter', 50))) -POLYGON((17.0710 -7.0710,24.1421 0,17.0710 7.0710,7.0710 17.0710,0 24.1421,-7.0710 17.0710,-17.0710 7.0710,-24.1421 0,-17.0710 -7.0710,-7.0710 -17.0710,0 -24.1421,7.0710 -17.0710,17.0710 -7.0710)) +POLYGON((17.0711 -7.0711,24.1421 0,17.0711 7.0711,7.0711 17.0711,0 24.1421,-7.0711 17.0711,-17.0711 7.0711,-24.1421 0,-17.0711 -7.0711,-7.0711 -17.0711,0 -24.1421,7.0711 -17.0711,17.0711 -7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))'), 1, ST_BUFFER_STRATEGY('join_miter',60))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))'), 1, ST_BUFFER_STRATEGY('join_miter',60))) POLYGON((-1 0,-1 -1,0 -1,8 -1,9 -1,9 0,9 8,9 9,8 9,0 9,-1 9,-1 8,-1 0),(3 3,3 5,5 5,5 3,3 3)) @@ -715,13 +715,13 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6, POLYGON((-100 0,-100 -100,0 -100,10 -100,110 -100,110 0,110 10,110 110,10 110,0 110,-100 110,-100 10,-100 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 5,5 5,0 0)))'), 0.5, ST_BUFFER_STRATEGY('join_miter', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 5,5 5,0 0)))'), 0.5, ST_BUFFER_STRATEGY('join_miter', 1))) -POLYGON((-0.5 0,-0.1913 -0.4619,0.3535 -0.3535,5.3535 4.6464,5.4619 5.1913,5 5.5,0 5.5,-0.3535 5.3535,-0.5 5,-0.5 0)) +POLYGON((-0.5 0,-0.1913 -0.4619,0.3536 -0.3536,5.3536 4.6464,5.4619 5.1913,5 5.5,0 5.5,-0.3536 5.3536,-0.5 5,-0.5 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1, ST_BUFFER_STRATEGY('join_miter', 5))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1, ST_BUFFER_STRATEGY('join_miter', 5))) -POLYGON((5.0000 6.4142,0.7071 10.7071,-1 12.4142,-1 10,-1.0000 0.4142,-2.4142 -1,-1 -1,0 -1,10 -1,11 -1,12.4142 -1,11.0000 0.4142,11 10,11 12.4142,9.2928 10.7071,5.0000 6.4142)) +POLYGON((5 6.4142,0.7071 10.7071,-1 12.4142,-1 10,-1 0.4142,-2.4142 -1,-1 -1,0 -1,10 -1,11 -1,12.4142 -1,11 0.4142,11 10,11 12.4142,9.2929 10.7071,5 6.4142)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20, ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20, ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((14.1421 -14.1421,24.1421 -4.1421,29.1421 0.8578,58.2842 30,63.2842 35,15 35,10 35,-10 35,-10 30,-20 30,-20 10,-20 0,-20 -48.2842,-10 -38.2842,14.1421 -14.1421)) +POLYGON((14.1421 -14.1421,24.1421 -4.1421,29.1421 0.8579,58.2843 30,63.2843 35,15 35,10 35,-10 35,-10 30,-20 30,-20 10,-20 0,-20 -48.2843,-10 -38.2843,14.1421 -14.1421)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4, ST_BUFFER_STRATEGY('join_miter', 50))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4, ST_BUFFER_STRATEGY('join_miter', 50))) POLYGON((-4 0,-4 -4,0 -4,10 -4,14 -4,14 0,14 10,14 14,10 14,0 14,-4 14,-4 10,-4 0)) @@ -730,21 +730,21 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 POLYGON((-4 0,-4 -4,0 -4,10 -4,14 -4,14 0,14 10,14 14,10 14,0 14,-4 14,-4 10,-4 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))) -POLYGON((-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((9.0953 9.0952,8.3146 10.5557,7.0710 12.0710,5.5557 13.3146,3.8268 14.2387,1.9509 14.8078,1.17e-14 15,-1.9509 14.8078,-3.8268 14.2387,-5.5557 13.3146,-7.0710 12.0710,-8.3146 10.5557,-9.2387 8.8268,-9.8078 6.9509,-10 5,-10 0,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,0 -10,5 -10,6.9509 -9.8078,8.8268 -9.2387,10.5557 -8.3146,12.0710 -7.0710,13.3146 -5.5557,14.2387 -3.8268,14.8078 -1.9509,15 0,14.8078 1.9509,14.2387 3.8268,13.3146 5.5557,12.0710 7.0710,10.5557 8.3146,9.0953 9.0952)) +POLYGON((9.0953 9.0953,8.3147 10.5557,7.0711 12.0711,5.5557 13.3147,3.8268 14.2388,1.9509 14.8079,0 15,-1.9509 14.8079,-3.8268 14.2388,-5.5557 13.3147,-7.0711 12.0711,-8.3147 10.5557,-9.2388 8.8268,-9.8079 6.9509,-10 5,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,5 -10,6.9509 -9.8079,8.8268 -9.2388,10.5557 -8.3147,12.0711 -7.0711,13.3147 -5.5557,14.2388 -3.8268,14.8079 -1.9509,15 0,14.8079 1.9509,14.2388 3.8268,13.3147 5.5557,12.0711 7.0711,10.5557 8.3147,9.0953 9.0953)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))) POLYGON((-10 0,-10 -10,0 -10,5 -10,15 -10,15 0,15 5,15 15,5 15,0 15,-10 15,-10 5,-10 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))) -POLYGON((0.8578 14.9999,-7 15,-6.9999 7.1421,-7.0710 7.0710,-24.1421 -9.9999,0 -10,4 -10,28.1421 -9.9999,15 3.1421,15 5,15 15,5 15,3.1421 15,1.9999 16.1421,0.8578 14.9999)) +POLYGON((0.8579 15,-7 15,-7 7.1421,-7.0711 7.0711,-24.1421 -10,0 -10,4 -10,28.1421 -10,15 3.1421,15 5,15 15,5 15,3.1421 15,2 16.1421,0.8579 15)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((-7.0710 7.0710,-8.3146 5.5557,-9.2387 3.8268,-9.8078 1.9509,-10 7.65e-15,-9.8078 -1.9509,-9.2387 -3.8268,-8.3146 -5.5557,-7.0710 -7.0710,-5.5557 -8.3146,-3.8268 -9.2387,-1.9509 -9.8078,6.12e-16 -10,1.9509 -9.8078,3.8268 -9.2387,5.5557 -8.3146,7.0710 -7.0710,17.0710 2.9289,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710,-7.0710 7.0710)) +POLYGON((-7.0711 7.0711,-8.3147 5.5557,-9.2388 3.8268,-9.8079 1.9509,-10 0,-9.8079 -1.9509,-9.2388 -3.8268,-8.3147 -5.5557,-7.0711 -7.0711,-5.5557 -8.3147,-3.8268 -9.2388,-1.9509 -9.8079,0 -10,1.9509 -9.8079,3.8268 -9.2388,5.5557 -8.3147,7.0711 -7.0711,17.0711 2.9289,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,-7.0711 7.0711)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -752,12 +752,12 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRI -POLYGON((4.1421 -10,10 -10,11.9509 -9.8078,13.8268 -9.2387,15.5557 -8.3146,17.0710 -7.0710,18.3146 -5.5557,19.2387 -3.8268,19.8078 -1.9509,20 0,19.8078 1.9509,19.2387 3.8268,18.6117 5.0000,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,11.9509 19.8078,10.0000 20,8.0490 19.8078,6.1731 19.2387,4.4442 18.3146,2.9289 17.0710,-4.1421 10,-10 10,-11.9509 9.8078,-13.8268 9.2387,-15.5557 8.3146,-17.0710 7.0710,-18.3146 5.5557,-19.2387 3.8268,-19.8078 1.9509,-20 7.65e-15,-19.8078 -1.9509,-19.2387 -3.8268,-18.6117 -5.0000,-19.2387 -6.1731,-19.8078 -8.0490,-20 -9.9999,-19.8078 -11.9509,-19.2387 -13.8268,-18.3146 -15.5557,-17.0710 -17.0710,-15.5557 -18.3146,-13.8268 -19.2387,-11.9509 -19.8078,-10 -20,-8.0490 -19.8078,-6.1731 -19.2387,-4.4442 -18.3146,-2.9289 -17.0710,4.1421 -10)) +POLYGON((4.1421 -10,10 -10,11.9509 -9.8079,13.8268 -9.2388,15.5557 -8.3147,17.0711 -7.0711,18.3147 -5.5557,19.2388 -3.8268,19.8079 -1.9509,20 0,19.8079 1.9509,19.2388 3.8268,18.6117 5,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,11.9509 19.8079,10 20,8.0491 19.8079,6.1732 19.2388,4.4443 18.3147,2.9289 17.0711,-4.1421 10,-10 10,-11.9509 9.8079,-13.8268 9.2388,-15.5557 8.3147,-17.0711 7.0711,-18.3147 5.5557,-19.2388 3.8268,-19.8079 1.9509,-20 0,-19.8079 -1.9509,-19.2388 -3.8268,-18.6117 -5,-19.2388 -6.1732,-19.8079 -8.0491,-20 -10,-19.8079 -11.9509,-19.2388 -13.8268,-18.3147 -15.5557,-17.0711 -17.0711,-15.5557 -18.3147,-13.8268 -19.2388,-11.9509 -19.8079,-10 -20,-8.0491 -19.8079,-6.1732 -19.2388,-4.4443 -18.3147,-2.9289 -17.0711,4.1421 -10)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 10)) -POLYGON((-10 4.1421,-24.1421 -9.9999,-10 -10,0 -10,4 -10,5 -10,15 -10,28.1421 -9.9999,15 3.1421,15 5,15 15,5 15,3.1421 15,1.9999 16.1421,0.8578 15.0000,-7 15,-10 15,-10 5,-10 4.1421)) +POLYGON((-10 4.1421,-24.1421 -10,-10 -10,0 -10,4 -10,5 -10,15 -10,28.1421 -10,15 3.1421,15 5,15 15,5 15,3.1421 15,2 16.1421,0.8579 15,0 15,-7 15,-10 15,-10 5,-10 4.1421)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -765,7 +765,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTR -POLYGON((2.9289 17.0710,0.8578 15,0 15,-10 15,-10 5,-10 4.1421,-24.1421 -10,-10 -10,0 -10,1 -10,5 -10,11 -10,15 -10,15 0,15 0.8578,17.0710 2.9289,18.3146 4.4442,19.2387 6.1731,19.8078 8.0490,20 9.9999,19.8078 11.9509,19.2387 13.8268,18.3146 15.5557,17.0710 17.0710,15.5557 18.3146,13.8268 19.2387,13.0000 19.4896,13 27.1421,2.9289 17.0710)) +POLYGON((2.9289 17.0711,0.8579 15,0 15,-10 15,-10 5,-10 4.1421,-24.1421 -10,-10 -10,0 -10,1 -10,5 -10,11 -10,15 -10,15 0,15 0.8579,17.0711 2.9289,18.3147 4.4443,19.2388 6.1732,19.8079 8.0491,20 10,19.8079 11.9509,19.2388 13.8268,18.3147 15.5557,17.0711 17.0711,15.5557 18.3147,13.8268 19.2388,13 19.4896,13 27.1421,2.9289 17.0711)) ##################################################################################### # ST_BUFFER() with more than one strategy values ##################################################################################### @@ -773,42 +773,42 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((1.4644 8.5355,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((1.4644 8.5355,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_round', 10), ST_BUFFER_STRATEGY('join_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_round', 10), ST_BUFFER_STRATEGY('join_round', 10))) -POLYGON((1.4644 8.5355,0.0615 5.7821,0.5449 2.7300,2.7300 0.5449,5.7821 0.0615,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,14.9384 9.2178,14.4550 12.2699,12.2699 14.4550,9.2178 14.9384,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,0.0616 5.7822,0.545 2.73,2.73 0.545,5.7822 0.0616,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,14.9384 9.2178,14.455 12.27,12.27 14.455,9.2178 14.9384,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_round', 10), ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_round', 10), ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((1.4644 8.5355,0.0615 5.7821,0.5449 2.7300,2.7300 0.5449,5.7821 0.0615,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,14.9384 9.2178,14.4550 12.2699,12.2699 14.4550,9.2178 14.9384,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,0.0616 5.7822,0.545 2.73,2.73 0.545,5.7822 0.0616,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,14.9384 9.2178,14.455 12.27,12.27 14.455,9.2178 14.9384,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_round', 10), ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_round', 10), ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((1.4644 8.5355,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_round', 10), ST_BUFFER_STRATEGY('end_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_round', 10), ST_BUFFER_STRATEGY('end_round', 10))) -POLYGON((1.4644 8.5355,0.0615 5.7821,0.5449 2.7300,2.7300 0.5449,5.7821 0.0615,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,14.9384 9.2178,14.4550 12.2699,12.2699 14.4550,9.2178 14.9384,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,0.0616 5.7822,0.545 2.73,2.73 0.545,5.7822 0.0616,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,14.9384 9.2178,14.455 12.27,12.27 14.455,9.2178 14.9384,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_miter', 10), ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_miter', 10), ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((1.4644 8.5355,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,6.4645 13.5355,1.4645 8.5355)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_miter', 10), ST_BUFFER_STRATEGY('end_round', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_miter', 10), ST_BUFFER_STRATEGY('end_round', 10))) -POLYGON((1.4644 8.5355,0.0615 5.7821,0.5449 2.7300,2.7300 0.5449,5.7821 0.0615,8.5355 1.4644,13.5355 6.4644,13.5355 6.4644,14.9384 9.2178,14.4550 12.2699,12.2699 14.4550,9.2178 14.9384,6.4644 13.5355,1.4644 8.5355)) +POLYGON((1.4645 8.5355,0.0616 5.7822,0.545 2.73,2.73 0.545,5.7822 0.0616,8.5355 1.4645,13.5355 6.4645,13.5355 6.4645,14.9384 9.2178,14.455 12.27,12.27 14.455,9.2178 14.9384,6.4645 13.5355,1.4645 8.5355)) ##################################################################################### # Additional test cases ##################################################################################### @@ -817,12 +817,12 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('End_Round', 18), ST_BUFFER_STRATEGY('JOIN_MITER', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('End_Round', 18), ST_BUFFER_STRATEGY('JOIN_MITER', 10))) -POLYGON((3.1542 5.4937,3.2166 5.3783,3.4765 5.1479,3.7995 5.0203,4.1466 5.0108,4.4761 5.1206,4.7482 5.3365,4.9300 5.6324,4.9996 5.9726,4.9486 6.3162,3.9486 9.3162,2.8627 12.5740,2.0298 9.2425,0.0298 1.2425,0.0054 0.8961,0.1009 0.5621,0.3048 0.2810,0.5926 0.0867,0.9296 0.0024,1.2750 0.0385,1.5872 0.1906,1.8286 0.4402,1.9701 0.7574,3.1542 5.4937)) +POLYGON((3.1542 5.4937,3.2167 5.3784,3.4765 5.148,3.7995 5.0203,4.1467 5.0108,4.4762 5.1206,4.7482 5.3365,4.93 5.6324,4.9996 5.9727,4.9487 6.3162,3.9487 9.3162,2.8627 12.5741,2.0299 9.2425,0.0299 1.2425,0.0054 0.8961,0.1009 0.5622,0.3049 0.2811,0.5927 0.0867,0.9296 0.0025,1.275 0.0386,1.5873 0.1906,1.8287 0.4403,1.9701 0.7575,3.1542 5.4937)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('END_flat'), ST_BUFFER_STRATEGY('Join_Round', 30))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('END_flat'), ST_BUFFER_STRATEGY('Join_Round', 30))) -POLYGON((3.2153 5.7384,4.9486 6.3162,3.9486 9.3162,3.8679 9.4967,3.7531 9.6577,3.6090 9.7931,3.4410 9.8974,3.2558 9.9667,3.0606 9.9981,2.8630 9.9905,2.6707 9.9442,2.4914 9.8610,2.3319 9.7440,2.1985 9.5980,2.0965 9.4286,2.0298 9.2425,0.0298 1.2425,1.9701 0.7574,3.2153 5.7384)) +POLYGON((3.2154 5.7385,4.9487 6.3162,3.9487 9.3162,3.8679 9.4967,3.7532 9.6578,3.609 9.7931,3.4411 9.8975,3.2558 9.9667,3.0606 9.9982,2.863 9.9906,2.6708 9.9443,2.4914 9.861,2.3319 9.7441,2.1986 9.5981,2.0965 9.4287,2.0299 9.2425,0.0299 1.2425,1.9701 0.7575,3.2154 5.7385)) # The ST_BUFFER_STRATEGY() can be used in arbitrary contexts SET @buf_strat = ST_BUFFER_STRATEGY('point_circle', 10); CREATE TABLE t0(geom GEOMETRY); @@ -831,8 +831,8 @@ INSERT INTO t0 VALUES (ST_GEOMFROMTEXT('point(1 1)')); SELECT ST_ASTEXT(ST_BUFFER(geom, 1, @buf_strat)) FROM t0; ST_ASTEXT(ST_BUFFER(geom, 1, @buf_strat)) -POLYGON((1 0,0.8090 0.5877,0.3090 0.9510,-0.3090 0.9510,-0.8090 0.5877,-1 -1.22e-16,-0.8090 -0.5877,-0.3090 -0.9510,0.3090 -0.9510,0.8090 -0.5877,1 0)) -POLYGON((2 1,1.8090 1.5877,1.3090 1.9510,0.6909 1.9510,0.1909 1.5877,0 0.9999,0.1909 0.4122,0.6909 0.0489,1.3090 0.0489,1.8090 0.4122,2 1)) +POLYGON((1 0,0.809 0.5878,0.309 0.9511,-0.309 0.9511,-0.809 0.5878,-1 -0,-0.809 -0.5878,-0.309 -0.9511,0.309 -0.9511,0.809 -0.5878,1 0)) +POLYGON((2 1,1.809 1.5878,1.309 1.9511,0.691 1.9511,0.191 1.5878,0 1,0.191 0.4122,0.691 0.0489,1.309 0.0489,1.809 0.4122,2 1)) DROP TABLE t0; CREATE TABLE t1(geom GEOMETRY, strategy binary(12)); INSERT INTO t1 VALUES @@ -840,7 +840,7 @@ INSERT INTO t1 VALUES (ST_GEOMFROMTEXT('POINT(1 1)'), ST_BUFFER_STRATEGY('point_square')); SELECT ST_ASTEXT(ST_BUFFER(geom, 1, strategy)) FROM t1; ST_ASTEXT(ST_BUFFER(geom, 1, strategy)) -POLYGON((1 0,0.8090 0.5877,0.3090 0.9510,-0.3090 0.9510,-0.8090 0.5877,-1 -1.22e-16,-0.8090 -0.5877,-0.3090 -0.9510,0.3090 -0.9510,0.8090 -0.5877,1 0)) +POLYGON((1 0,0.809 0.5878,0.309 0.9511,-0.309 0.9511,-0.809 0.5878,-1 -0,-0.809 -0.5878,-0.309 -0.9511,0.309 -0.9511,0.809 -0.5878,1 0)) POLYGON((0 0,2 0,2 2,0 2,0 0)) DROP TABLE t1; SELECT HEX(ST_BUFFER_STRATEGY('join_miter', 10)); @@ -866,7 +866,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_miter', 10))) -POLYGON((3.2153 5.7384,4.9486 6.3162,3.9486 9.3162,2.8627 12.5740,2.0298 9.2425,0.0298 1.2425,1.9701 0.7574,3.2153 5.7384)) +POLYGON((3.2154 5.7385,4.9487 6.3162,3.9487 9.3162,2.8627 12.5741,2.0299 9.2425,0.0299 1.2425,1.9701 0.7575,3.2154 5.7385)) SET names default; ##################################################################################### # Invalid function calls diff --git a/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test b/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test index 8766a21..b793d8d 100644 --- a/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test +++ b/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test @@ -77,131 +77,131 @@ SELECT count(ST_ASTEXT(g) != 'NULL') FROM gis_geometrycollection; --echo # ST_BUFFER(point, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_center), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_top), 1)); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0 0)'), 2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5)); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(-0.0000 0.000001)'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 100)) FROM gis_geometrycollection WHERE fid=105; --echo ##################################################################################### --echo # ST_BUFFER(multipoint, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_all_points), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_bottom_points), 2)); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5)); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(2.4999)/2.5000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 5,5 5,5 0,0 0)'), 5)); ---replace_regex /([0-9]+.[0-9]{3})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 3 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=108; --echo ##################################################################################### --echo # ST_BUFFER(linestring, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_top_to_center), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_line_horizontal), 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(10 10,10 15,15 15,15 10,10 10)'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=110; --echo ##################################################################################### --echo # ST_BUFFER(multilinestring, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_lines_near_vertical), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_lines_near_horizontal), 2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100)); ---replace_regex /([0-9]+.[0-9]{2})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 2 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=114; --echo ##################################################################################### --echo # ST_BUFFER(polygon, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_elem_vertical), 0.5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((3 3,5 5,7 3,3 3))'), 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10)); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((4 4,4 6,6 6,6 4,4 4),(0 0,0 10,10 10,10 0,0 0))'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((4 4,4 6,6 6,6 4,4 4),(8 8,8 10,10 10,10 8,8 8))'), 2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=100; # ST_Buffer() with negative distance value @@ -211,161 +211,159 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))') SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), -10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -3)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), -5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -3)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2),(6 6,6 8,8 8,8 6,6 6))'), -5)); --echo ##################################################################################### --echo # ST_BUFFER(multipolygon, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((3 3,5 5,7 3,3 3)))'), 0.5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((4 4,4 6,6 6,6 4,4 4),(0 0,0 10,10 10,10 0,0 0)))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((4 4,4 6,6 6,6 4,4 4),(8 8,8 10,10 10,10 8,8 8)))'), 2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((10 10,10 0,5 10,10 10)),((0 10,0 20,5 10,0 10)))'), 20)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)),((0 0,0 10,10 10,10 0,0 0)))'), 100)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(0 0,0 10,10 10,10 0,0 0)),' '((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6, 4 4)))'), 1000)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=103; # ST_Buffer() with negative distance value ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))'), -5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), -3)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((14 14,14 16,16 16,16 14,14 14)))'), -1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((14 14,14 16,16 16,16 14,14 14)))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((14 14,14 16,16 16,16 14,14 14)))'), -4)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((14 14,14 16,16 16,16 14,14 14)))'), -5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((14 14,14 16,16 16,16 14,14 14)))'), -10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10)))'), -1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10)))'), -3)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10)))'), -5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10)))'), -10)); --echo ##################################################################################### --echo # ST_BUFFER(geometrycollection, distance) --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_collection_elems), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_collection_multilinestr), 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION()'), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION())'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION()))'), 100)); -# area check used because of the differences on various platforms -#--replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ -#SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)); -SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)) BETWEEN 568.21 AND 568.22; +--replace_numberic_round 4 +SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10))'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),MULTIPOINT(0 0,10 10)))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]+).(0+)([^0-9])/13/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' 'MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10)))'), 50)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,0 10,10 10))'), 20)); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,0 10,10 10),GEOMETRYCOLLECTION())'), 10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10),' 'LINESTRING(1 1,2 2,3 3),' 'MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10)))'), 0)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0, 0 0)))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0, 0 0)))))'), 5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4, 4 4)),' 'MULTIPOLYGON(((0 0,0 10,10 10,10 0, 0 0)),((10 10,10 15,15 15,15 10,10 10))))'), 10)); @@ -380,7 +378,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTIO 'GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' 'MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10))))'), 10)) as result; ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10)),' 'GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' @@ -389,39 +387,39 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTIO 'MULTIPOLYGON(((0 0,0 10,10 10,10 0, 0 0)),' '((10 10,10 15,15 15,15 10,10 10)))))'),1000)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(10 10),' 'MULTIPOINT(0 0,10 10)),' 'GEOMETRYCOLLECTION(LINESTRING(1 1,2 2,3 3),' 'MULTILINESTRING((0 0,0 10,10 10,10 0),(10 10,10 15,15 15,10 10))),' 'GEOMETRYCOLLECTION(GEOMETRYCOLLECTION()))'), 1000)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(g, 20)) FROM gis_geometrycollection WHERE fid=115; # ST_Buffer() with negative distance value ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)))'), -5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10))))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10))))'), -10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)), POLYGON((10 10,10 20,20 20,20 10,10 10)))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)), POLYGON((10 10,10 20,20 20,20 10,10 10)))'), -5)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)), MULTIPOLYGON(((10 10,10 20,20 20,20 10,10 10))))'), -2)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0 0)), MULTIPOLYGON(((10 10,10 20,20 20,20 10,10 10))))'), -10)); ############################################################################################ @@ -432,174 +430,174 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 10 --echo # ST_BUFFER() with 'point_circle' strategy --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_circle', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_circle', 2))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3, ST_BUFFER_STRATEGY('point_circle', 3))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5, ST_BUFFER_STRATEGY('point_circle', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0.000001)'), 10, ST_BUFFER_STRATEGY('point_circle', 10))); ---replace_regex /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5, ST_BUFFER_STRATEGY('point_circle', 20))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 10,20 20,30 30)'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 15,15 15,15 10)'), 5, ST_BUFFER_STRATEGY('point_circle', 25))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100, ST_BUFFER_STRATEGY('point_circle', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOINT(5 5,10 10))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_circle', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(10 10,15 15))'), 5, ST_BUFFER_STRATEGY('point_circle', 20))); --echo ##################################################################################### --echo # ST_BUFFER() with 'point_square' strategy --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0)'), 2, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(2.34 -2.34)'), 3, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(1000 -1000)'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POINT(0 0.000001)'), 10, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(0 0,0 0,0 0,0 0)'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 10,20 20,30 30)'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(10 15,15 15,15 10)'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(1 -1,1000 -1000,0.0001 0.000)'), 100, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOINT(5 5,10 10))'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(5 5))'), 5, ST_BUFFER_STRATEGY('point_square'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POINT(5 5),MULTIPOINT(10 10,15 15))'), 5, ST_BUFFER_STRATEGY('point_square'))); --echo ##################################################################################### --echo # ST_BUFFER() with 'end_round' strategy --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('end_round', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('end_round', 3))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('end_round', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('end_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_round', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('end_round', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('end_round', 10))); ---replace_regex /([0-9]+.[0-9]{2})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 2 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('end_round', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('end_round', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('end_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('end_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' 'MULTILINESTRING((0 0,10 0),(0 0,-10 0)))'), 10, ST_BUFFER_STRATEGY('end_round', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 1, ST_BUFFER_STRATEGY('end_round', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 2, ST_BUFFER_STRATEGY('end_round', 5))); --echo ##################################################################################### --echo # ST_BUFFER() with 'end_flat' strategy --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -609,90 +607,90 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 --echo # ST_BUFFER() with 'join_round' strategy --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('join_round', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('join_round', 3))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(10 10,10 15,15 15,15 10,10 10)'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_round', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('join_round', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{2})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 2 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('join_round', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_round', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5, ST_BUFFER_STRATEGY('join_round', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]+).(0+)([^0-9])/13/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10, ST_BUFFER_STRATEGY('join_round', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))'), 1, ST_BUFFER_STRATEGY('join_round',60))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100, ST_BUFFER_STRATEGY('join_round', 60))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 5,5 5,0 0)))'), 0.5, ST_BUFFER_STRATEGY('join_round', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1, ST_BUFFER_STRATEGY('join_round', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /-1.77e-15/-3.55e-15/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4, ST_BUFFER_STRATEGY('join_round', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /11.9999/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4, ST_BUFFER_STRATEGY('join_round', 60))); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)))'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_round', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' 'MULTILINESTRING((0 0,10 0),(0 0,-10 0)))'), 10, ST_BUFFER_STRATEGY('join_round', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /10.0000/10/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -702,90 +700,90 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 --echo # ST_BUFFER() with 'join_mitter' strategy --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 5, ST_BUFFER_STRATEGY('join_miter', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,-0.00 0,0.0 0)'), 5, ST_BUFFER_STRATEGY('join_miter', 3))); ---replace_regex /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 5,5 5,5 0,0 0)'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 -1,1000 -1000,0.0001 0.000)'), 1000, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,-0.00 0),(0.0 0,0 -0))'), 10, ST_BUFFER_STRATEGY('join_miter', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0))'), 50, ST_BUFFER_STRATEGY('join_miter', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{1})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 2 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_miter', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0))'), 5, ST_BUFFER_STRATEGY('join_miter', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 10,10 20,20 20,20 10,10 10))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((10 0,0 10,-10 0,0 -10,10 0 ))'), 10, ST_BUFFER_STRATEGY('join_miter', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 8,8 8,8 0,0 0),(2 2,6 2,6 6,2 6,2 2))'), 1, ST_BUFFER_STRATEGY('join_miter',60))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4))'), 100, ST_BUFFER_STRATEGY('join_miter', 60))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 5,5 5,0 0)))'), 0.5, ST_BUFFER_STRATEGY('join_miter', 1))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 10,10 0,0 0,0 10)),((0 0,10 10,10 0,0 0)))'), 1, ST_BUFFER_STRATEGY('join_miter', 5))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,0 0)),((10 10,10 15,15 15,10 10)))'), 20, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((4 4,4 6,6 6,6 4, 4 4)))'), 4, ST_BUFFER_STRATEGY('join_miter', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0),(4 4,4 6,6 6,6 4,4 4)))'), 4, ST_BUFFER_STRATEGY('join_miter', 60))); ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTILINESTRING((0 0,5 0),(0 0,0 5)))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 4))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'MULTILINESTRING((0 0,10 10)))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ /(4.9999)/5.0000/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'LINESTRING(0 0,-5 -5,-10 -10),' 'MULTILINESTRING((0 0,5 5,10 10)),' 'MULTILINESTRING((0 0,10 0),(0 0,-10 0)))'), 10, ST_BUFFER_STRATEGY('join_miter', 50))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTRING((0 0,5 5,10 10)),' @@ -795,35 +793,35 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 --echo # ST_BUFFER() with more than one strategy values --echo ##################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_round', 10), ST_BUFFER_STRATEGY('join_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('end_round', 10), ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_round', 10), ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_round', 10), ST_BUFFER_STRATEGY('end_round', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_miter', 10), ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, ST_BUFFER_STRATEGY('join_miter', 10), ST_BUFFER_STRATEGY('end_round', 10))); @@ -832,11 +830,11 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(5 5,10 10)'), 5, --echo ##################################################################################### --echo # Strategy names with both upper and lower case letters should work ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('End_Round', 18), ST_BUFFER_STRATEGY('JOIN_MITER', 10))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('END_flat'), ST_BUFFER_STRATEGY('Join_Round', 30))); @@ -848,7 +846,7 @@ INSERT INTO t0 VALUES (ST_GEOMFROMTEXT('POINT(0 0)')), (ST_GEOMFROMTEXT('point(1 1)')); ---replace_regex /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(geom, 1, @buf_strat)) FROM t0; DROP TABLE t0; @@ -859,7 +857,7 @@ INSERT INTO t1 VALUES (ST_GEOMFROMTEXT('POINT(0 0)'), ST_BUFFER_STRATEGY('point_circle', 10)), (ST_GEOMFROMTEXT('POINT(1 1)'), ST_BUFFER_STRATEGY('point_square')); ---replace_regex /([0-9]+.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(geom, 1, strategy)) FROM t1; DROP TABLE t1; @@ -873,7 +871,7 @@ SELECT ST_BUFFER_STRATEGY('join_miter', 10) * 3; # ST_BUFFER_STRATEGY must work with any charset that ST_GEOMFROMTEXT() can work with SET names gb18030; ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1, 3 9, 4 6)'), 1, ST_BUFFER_STRATEGY('end_flat'), ST_BUFFER_STRATEGY('join_miter', 10))); From 7c8e25310337aad5effe41466f99488d16e84007 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 15:55:43 +1000 Subject: [PATCH 08/17] test: use replace_numberic_round for gis.gis_bugs_crashes test --- mysql-test/suite/gis/r/gis_bugs_crashes.result | 48 ++++++++++++------------ mysql-test/suite/gis/t/gis_bugs_crashes.test | 52 ++++++++++++++------------ 2 files changed, 53 insertions(+), 47 deletions(-) diff --git a/mysql-test/suite/gis/r/gis_bugs_crashes.result b/mysql-test/suite/gis/r/gis_bugs_crashes.result index 31be724..0d3b321 100644 --- a/mysql-test/suite/gis/r/gis_bugs_crashes.result +++ b/mysql-test/suite/gis/r/gis_bugs_crashes.result @@ -1418,23 +1418,23 @@ ST_ASTEXT(ST_CONVEXHULL(ST_GEOMFROMTEXT(@star_of_elems))) POLYGON((0 15,5 0,25 0,30 15,15 25,0 15)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1)) -POLYGON((15.0000 3.8819,24.5527 -0.8944,24.6028 -0.9138,24.6518 -0.9374,24.6895 -0.9476,24.7256 -0.9616,24.7780 -0.9714,24.8300 -0.9854,24.8694 -0.9885,24.9080 -0.9957,24.9608 -0.9957,25.0140 -0.9999,25.0538 -0.9956,25.0935 -0.9956,25.1449 -0.9859,25.1975 -0.9802,25.2363 -0.9686,25.2757 -0.9612,25.3240 -0.9423,25.3743 -0.9272,25.4107 -0.9085,25.4485 -0.8937,25.4921 -0.8665,25.5383 -0.8427,25.5711 -0.8172,25.6059 -0.7955,25.6434 -0.7610,25.6840 -0.7294,25.7118 -0.6980,25.7424 -0.6699,25.7726 -0.6294,25.8064 -0.5912,25.8282 -0.5549,25.8534 -0.5212,25.8753 -0.4763,25.9013 -0.4330,25.9163 -0.3928,25.9349 -0.3546,25.9481 -0.3069,25.9656 -0.2599,25.9729 -0.2172,25.9844 -0.1758,25.9885 -0.1269,25.9969 -0.0781,25.9963 -0.0342,25.9999 0.0089,25.9950 0.0573,25.9943 0.1064,25.9855 0.1498,25.9810 0.1935,25.9674 0.2396,25.9578 0.2873,23.1770 9.5564,30.5299 14.1520,30.6765 14.2636,30.8001 14.4002,30.8966 14.5572,30.9626 14.7292,30.9959 14.9104,30.9955 15.0946,30.9612 15.2756,30.8943 15.4473,30.7971 15.6038,30.6728 15.7398,30.5256 15.8506,30.3606 15.9326,30.1834 15.9830,30 16,19.6770 15.9999,15.9284 25.3713,15.8453 25.5342,15.7339 25.6792,15.5979 25.8015,15.4419 25.8970,15.2712 25.9625,15.0914 25.9958,14.9085 25.9958,14.7287 25.9625,14.5580 25.8970,14.4020 25.8015,14.2660 25.6792,14.1546 25.5342,14.0715 25.3713,10.3229 15.9999,0 16,-0.1847 15.9827,-0.3631 15.9317,-0.5289 15.8486,-0.6766 15.7363,-0.8010 15.5986,-0.8978 15.4403,-0.9637 15.2669,-0.9964 15.0843,-0.9948 14.8987,-0.9590 14.7167,-0.8902 14.5444,-0.7907 14.3878,-0.6640 14.2523,-0.5144 14.1425,7.6262 9.2580,4.0715 0.3713,4.0189 0.1935,4.0000 0.0089,4.0155 -0.1758,4.0650 -0.3546,4.1465 -0.5212,4.2575 -0.6699,4.3940 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9064 -0.9956,5.0919 -0.9957,5.2743 -0.9616,5.4472 -0.8944,15.0000 3.8819)) +POLYGON((15.0000 3.8820,24.5528 -0.8944,24.6028 -0.9139,24.6518 -0.9374,24.6896 -0.9476,24.7257 -0.9616,24.7780 -0.9714,24.8301 -0.9855,24.8695 -0.9885,24.9080 -0.9958,24.9608 -0.9957,25.0140 -0.9999,25.0538 -0.9956,25.0935 -0.9956,25.1449 -0.9859,25.1976 -0.9803,25.2364 -0.9687,25.2758 -0.9612,25.3241 -0.9424,25.3743 -0.9273,25.4108 -0.9085,25.4486 -0.8937,25.4922 -0.8665,25.5384 -0.8427,25.5711 -0.8173,25.6059 -0.7955,25.6434 -0.7610,25.6841 -0.7294,25.7119 -0.6980,25.7424 -0.6699,25.7726 -0.6295,25.8065 -0.5913,25.8283 -0.5549,25.8534 -0.5213,25.8754 -0.4763,25.9014 -0.4330,25.9163 -0.3928,25.9350 -0.3547,25.9482 -0.3069,25.9656 -0.2600,25.9730 -0.2173,25.9844 -0.1759,25.9885 -0.1270,25.9969 -0.0781,25.9963 -0.0343,26.0000 0.0090,25.9950 0.0573,25.9943 0.1064,25.9856 0.1499,25.9811 0.1935,25.9674 0.2397,25.9578 0.2873,23.1771 9.5564,30.5300 14.1520,30.6766 14.2636,30.8002 14.4002,30.8966 14.5572,30.9626 14.7292,30.9960 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,30.3607 15.9327,30.1835 15.9830,30 16,19.6770 16.0000,15.9285 25.3714,15.8453 25.5343,15.7339 25.6793,15.5979 25.8015,15.4420 25.8970,15.2712 25.9625,15.0914 25.9958,14.9086 25.9958,14.7288 25.9625,14.5580 25.8970,14.4021 25.8015,14.2661 25.6793,14.1547 25.5343,14.0715 25.3714,10.3230 16.0000,0 16,-0.1847 15.9828,-0.3631 15.9317,-0.5290 15.8486,-0.6766 15.7363,-0.8010 15.5986,-0.8978 15.4404,-0.9637 15.2669,-0.9964 15.0843,-0.9949 14.8988,-0.9590 14.7167,-0.8902 14.5445,-0.7907 14.3878,-0.6640 14.2523,-0.5145 14.1425,7.6262 9.2581,4.0715 0.3714,4.0189 0.1935,4.0000 0.0090,4.0156 -0.1759,4.0650 -0.3547,4.1466 -0.5213,4.2576 -0.6699,4.3941 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9065 -0.9956,5.0920 -0.9958,5.2743 -0.9616,5.4472 -0.8944,15.0000 3.8820)) SET @buf = ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1); SELECT st_area(@buf); st_area(@buf) -373.4693 +373.4694 SELECT ST_ASTEXT(ST_BUFFER(@buf, 1)); ST_ASTEXT(ST_BUFFER(@buf, 1)) -POLYGON((15.0000 2.7639,24.1055 -1.7888,24.1904 -1.8264,24.2045 -1.8319,24.2186 -1.8387,24.3274 -1.8791,24.3272 -1.8796,24.3633 -1.8936,24.3774 -1.8977,24.3916 -1.9030,24.4294 -1.9131,24.4295 -1.9125,24.5417 -1.9445,24.5556 -1.9471,24.5698 -1.9510,24.6856 -1.9709,24.6855 -1.9714,24.7240 -1.9786,24.7376 -1.9799,24.7517 -1.9823,24.7911 -1.9854,24.7912 -1.9849,24.9087 -1.9957,24.9219 -1.9957,24.9357 -1.9968,25.0546 -1.9951,25.0546 -1.9956,25.0943 -1.9956,25.1069 -1.9944,25.1202 -1.9942,25.1600 -1.9899,25.1600 -1.9894,25.2789 -1.9782,25.2910 -1.9759,25.3038 -1.9746,25.4217 -1.9508,25.4217 -1.9513,25.4612 -1.9438,25.4725 -1.9406,25.4847 -1.9381,25.5235 -1.9265,25.5233 -1.9260,25.6395 -1.8927,25.6500 -1.8886,25.6615 -1.8851,25.7743 -1.8396,25.7744 -1.8400,25.8123 -1.8252,25.8219 -1.8203,25.8326 -1.8160,25.8690 -1.7972,25.8688 -1.7968,25.9781 -1.7420,25.9869 -1.7365,25.9966 -1.7314,26.1004 -1.6652,26.1006 -1.6655,26.1354 -1.6438,26.1433 -1.6378,26.1522 -1.6321,26.1849 -1.6066,26.1846 -1.6063,26.2830 -1.5313,26.2899 -1.5250,26.2979 -1.5188,26.3887 -1.4336,26.3889 -1.4339,26.4195 -1.4057,26.4255 -1.3991,26.4325 -1.3925,26.4603 -1.3612,26.4600 -1.3609,26.5438 -1.2680,26.5489 -1.2612,26.5549 -1.2544,26.6294 -1.1528,26.6296 -1.1530,26.6547 -1.1193,26.6589 -1.1125,26.6640 -1.1056,26.6858 -1.0692,26.6855 -1.0690,26.7514 -0.9611,26.7547 -0.9543,26.7589 -0.9473,26.8141 -0.8325,26.8143 -0.8326,26.8330 -0.7944,26.8356 -0.7878,26.8388 -0.7809,26.8538 -0.7408,26.8534 -0.7406,26.8988 -0.6211,26.9006 -0.6146,26.9031 -0.6079,26.9365 -0.4836,26.9368 -0.4836,26.9482 -0.4422,26.9493 -0.4362,26.9510 -0.4297,26.9584 -0.3870,26.9581 -0.3869,26.9808 -0.2596,26.9813 -0.2540,26.9824 -0.2478,26.9925 -0.1180,26.9928 -0.1180,26.9964 -0.0748,26.9963 -0.0696,26.9968 -0.0638,26.9962 -0.0200,26.9959 -0.0200,26.9947 0.1106,26.9942 0.1153,26.9942 0.1206,26.9802 0.2515,26.9803 0.2515,26.9759 0.2951,26.9750 0.2993,26.9745 0.3041,26.9658 0.3476,26.9655 0.3475,26.9400 0.4771,26.9389 0.4808,26.9380 0.4850,26.9156 0.5746,24.3541 9.1128,31.0599 13.3040,31.1358 13.3564,31.2824 13.4680,31.4181 13.5927,31.5417 13.7293,31.6522 13.8767,31.7486 14.0337,31.8302 14.1989,31.8962 14.3709,31.9461 14.5482,31.9794 14.7294,31.9959 14.9129,31.9955 15.0972,31.9780 15.2806,31.9438 15.4616,31.8930 15.6387,31.8261 15.8104,31.7437 15.9751,31.6464 16.1316,31.5352 16.2785,31.4109 16.4145,31.2746 16.5384,31.1274 16.6493,30.9707 16.7461,30.8057 16.8281,30.6339 16.8946,30.4566 16.9449,30.2755 16.9787,30.0921 16.9957,29.9999 16.9999,20.3540 17.0000,16.8569 25.7427,16.8191 25.8261,16.7359 25.9889,16.6382 26.1435,16.5268 26.2885,16.4026 26.4227,16.2666 26.5450,16.1200 26.6543,15.9641 26.7498,15.8000 26.8307,15.6293 26.8961,15.4533 26.9457,15.2735 26.9790,15.0914 26.9958,14.9085 26.9958,14.7264 26.9790,14.5466 26.9457,14.3706 26.8961,14.1999 26.8307,14.0358 26.7498,13.8799 26.6543,13.7333 26.5450,13.5973 26.4227,13.4731 26.2885,13.3617 26.1435,13.2640 25.9889,13.1808 25.8261,13.1430 25.7427,9.6459 17.0000,0.0000 16.9999,-0.0927 16.9956,-0.2774 16.9784,-0.4598 16.9442,-0.6382 16.8931,-0.8110 16.8257,-0.9769 16.7426,-1.1343 16.6445,-1.2820 16.5322,-1.4186 16.4066,-1.5430 16.2690,-1.6541 16.1203,-1.7509 15.9621,-1.8326 15.7955,-1.8985 15.6221,-1.9480 15.4433,-1.9807 15.2606,-1.9964 15.0758,-1.9948 14.8902,-1.9760 14.7057,-1.9402 14.5236,-1.8876 14.3457,-1.8188 14.1734,-1.7343 14.0082,-1.6348 13.8516,-1.5212 13.7049,-1.3945 13.5694,-1.2558 13.4462,-1.1063 13.3364,-1.0289 13.2850,6.3814 8.8387,3.1430 0.7427,3.1126 0.6550,3.0599 0.4771,3.0240 0.2951,3.0052 0.1106,3.0035 -0.0748,3.0191 -0.2596,3.0517 -0.4422,3.1011 -0.6210,3.1669 -0.7945,3.2485 -0.9611,3.3452 -1.1194,3.4561 -1.2680,3.5804 -1.4057,3.7169 -1.5313,3.8645 -1.6437,4.0218 -1.7420,4.1876 -1.8252,4.3604 -1.8927,4.5387 -1.9438,4.7210 -1.9782,4.9057 -1.9956,5.0912 -1.9957,5.2759 -1.9786,5.4582 -1.9445,5.6366 -1.8936,5.8095 -1.8264,5.8944 -1.7888,15.0000 2.7639)) +POLYGON((15.0000 2.7639,24.1056 -1.7889,24.1905 -1.8265,24.2045 -1.8319,24.2187 -1.8387,24.3275 -1.8791,24.3273 -1.8797,24.3634 -1.8937,24.3774 -1.8977,24.3917 -1.9030,24.4294 -1.9132,24.4296 -1.9126,24.5417 -1.9446,24.5556 -1.9472,24.5699 -1.9510,24.6856 -1.9710,24.6855 -1.9715,24.7241 -1.9787,24.7377 -1.9800,24.7518 -1.9824,24.7912 -1.9855,24.7912 -1.9849,24.9088 -1.9958,24.9220 -1.9957,24.9358 -1.9968,25.0546 -1.9952,25.0546 -1.9956,25.0943 -1.9956,25.1070 -1.9944,25.1203 -1.9942,25.1601 -1.9900,25.1600 -1.9894,25.2789 -1.9783,25.2910 -1.9760,25.3038 -1.9746,25.4217 -1.9509,25.4218 -1.9513,25.4612 -1.9439,25.4726 -1.9406,25.4847 -1.9382,25.5235 -1.9265,25.5234 -1.9260,25.6396 -1.8927,25.6501 -1.8886,25.6615 -1.8852,25.7743 -1.8396,25.7745 -1.8400,25.8123 -1.8253,25.8220 -1.8204,25.8327 -1.8161,25.8691 -1.7973,25.8689 -1.7969,25.9782 -1.7420,25.9869 -1.7365,25.9967 -1.7315,26.1004 -1.6652,26.1006 -1.6656,26.1354 -1.6438,26.1433 -1.6378,26.1522 -1.6321,26.1850 -1.6067,26.1847 -1.6063,26.2831 -1.5314,26.2900 -1.5250,26.2979 -1.5188,26.3888 -1.4337,26.3890 -1.4339,26.4196 -1.4058,26.4256 -1.3991,26.4325 -1.3926,26.4603 -1.3612,26.4600 -1.3609,26.5438 -1.2681,26.5489 -1.2612,26.5549 -1.2545,26.6294 -1.1529,26.6297 -1.1531,26.6548 -1.1194,26.6590 -1.1125,26.6641 -1.1056,26.6859 -1.0693,26.6855 -1.0691,26.7515 -0.9611,26.7548 -0.9543,26.7590 -0.9473,26.8141 -0.8325,26.8144 -0.8326,26.8331 -0.7945,26.8356 -0.7878,26.8389 -0.7810,26.8538 -0.7408,26.8535 -0.7407,26.8988 -0.6211,26.9006 -0.6147,26.9031 -0.6080,26.9366 -0.4836,26.9368 -0.4837,26.9483 -0.4423,26.9494 -0.4362,26.9511 -0.4298,26.9585 -0.3870,26.9582 -0.3870,26.9809 -0.2597,26.9814 -0.2540,26.9824 -0.2479,26.9926 -0.1181,26.9928 -0.1181,26.9964 -0.0748,26.9964 -0.0696,26.9968 -0.0639,26.9962 -0.0201,26.9959 -0.0201,26.9948 0.1107,26.9943 0.1154,26.9942 0.1207,26.9802 0.2515,26.9804 0.2515,26.9759 0.2952,26.9751 0.2994,26.9746 0.3042,26.9658 0.3476,26.9656 0.3476,26.9400 0.4772,26.9389 0.4808,26.9381 0.4851,26.9157 0.5747,24.3542 9.1129,31.0600 13.3040,31.1359 13.3564,31.2824 13.4681,31.4181 13.5927,31.5417 13.7293,31.6522 13.8767,31.7487 14.0337,31.8302 14.1989,31.8962 14.3709,31.9461 14.5483,31.9795 14.7295,31.9960 14.9130,31.9955 15.0972,31.9781 15.2806,31.9438 15.4616,31.8930 15.6387,31.8261 15.8104,31.7437 15.9752,31.6465 16.1317,31.5352 16.2785,31.4109 16.4145,31.2746 16.5385,31.1275 16.6493,30.9707 16.7462,30.8057 16.8282,30.6339 16.8946,30.4567 16.9450,30.2756 16.9788,30.0921 16.9957,30.0000 17.0000,20.3541 17.0000,16.8570 25.7428,16.8191 25.8261,16.7360 25.9890,16.6383 26.1436,16.5268 26.2886,16.4026 26.4228,16.2667 26.5451,16.1201 26.6544,15.9641 26.7499,15.8001 26.8307,15.6294 26.8962,15.4533 26.9458,15.2735 26.9791,15.0914 26.9958,14.9086 26.9958,14.7265 26.9791,14.5467 26.9458,14.3706 26.8962,14.1999 26.8307,14.0359 26.7499,13.8799 26.6544,13.7333 26.5451,13.5974 26.4228,13.4732 26.2886,13.3617 26.1436,13.2640 25.9890,13.1809 25.8261,13.1430 25.7428,9.6459 17.0000,0.0000 17.0000,-0.0928 16.9957,-0.2775 16.9785,-0.4598 16.9442,-0.6382 16.8932,-0.8111 16.8258,-0.9769 16.7427,-1.1344 16.6445,-1.2821 16.5322,-1.4187 16.4067,-1.5430 16.2690,-1.6541 16.1204,-1.7509 15.9621,-1.8326 15.7955,-1.8985 15.6221,-1.9480 15.4433,-1.9808 15.2607,-1.9964 15.0758,-1.9948 14.8903,-1.9761 14.7057,-1.9402 14.5237,-1.8877 14.3457,-1.8188 14.1735,-1.7343 14.0083,-1.6349 13.8517,-1.5213 13.7050,-1.3946 13.5694,-1.2559 13.4462,-1.1063 13.3364,-1.0290 13.2850,6.3814 8.8388,3.1430 0.7428,3.1126 0.6551,3.0600 0.4772,3.0241 0.2952,3.0052 0.1107,3.0036 -0.0748,3.0191 -0.2597,3.0517 -0.4423,3.1011 -0.6211,3.1669 -0.7945,3.2485 -0.9611,3.3452 -1.1194,3.4562 -1.2681,3.5804 -1.4058,3.7170 -1.5314,3.8645 -1.6438,4.0219 -1.7420,4.1877 -1.8252,4.3605 -1.8927,4.5388 -1.9439,4.7210 -1.9783,4.9057 -1.9956,5.0912 -1.9958,5.2759 -1.9787,5.4583 -1.9446,5.6366 -1.8937,5.8095 -1.8265,5.8944 -1.7889,15.0000 2.7639)) SELECT ST_ASTEXT(ST_CENTROID(@buf)); ST_ASTEXT(ST_CENTROID(@buf)) POINT(15.1182 10.7393) SELECT ST_ASTEXT(ST_CONVEXHULL(@buf)); ST_ASTEXT(ST_CONVEXHULL(@buf)) -POLYGON((-0.9964 15.0843,-0.9948 14.8987,-0.9590 14.7167,4.0650 -0.3546,4.1465 -0.5212,4.2575 -0.6699,4.3940 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9064 -0.9956,5.0919 -0.9957,25.0140 -0.9999,25.0935 -0.9956,25.1975 -0.9802,25.2757 -0.9612,25.3743 -0.9272,25.4485 -0.8937,25.5383 -0.8427,25.6059 -0.7955,25.6840 -0.7294,25.7424 -0.6699,25.8064 -0.5912,25.8534 -0.5212,25.9013 -0.4330,25.9349 -0.3546,30.9626 14.7292,30.9959 14.9104,30.9955 15.0946,30.9612 15.2756,30.8943 15.4473,30.7971 15.6038,30.6728 15.7398,30.5256 15.8506,15.5979 25.8015,15.4419 25.8970,15.2712 25.9625,15.0914 25.9958,14.9085 25.9958,14.7287 25.9625,14.5580 25.8970,14.4020 25.8015,-0.5289 15.8486,-0.6766 15.7363,-0.8010 15.5986,-0.8978 15.4403,-0.9637 15.2669,-0.9964 15.0843)) +POLYGON((-0.9964 15.0843,-0.9949 14.8988,-0.9590 14.7167,4.0650 -0.3547,4.1466 -0.5213,4.2576 -0.6699,4.3941 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9065 -0.9956,5.0920 -0.9958,25.0140 -0.9999,25.0935 -0.9956,25.1976 -0.9803,25.2758 -0.9612,25.3743 -0.9273,25.4486 -0.8937,25.5384 -0.8427,25.6059 -0.7955,25.6841 -0.7294,25.7424 -0.6699,25.8065 -0.5913,25.8534 -0.5213,25.9014 -0.4330,25.9350 -0.3547,30.9626 14.7292,30.9960 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,15.5979 25.8015,15.4420 25.8970,15.2712 25.9625,15.0914 25.9958,14.9086 25.9958,14.7288 25.9625,14.5580 25.8970,14.4021 25.8015,-0.5290 15.8486,-0.6766 15.7363,-0.8010 15.5986,-0.8978 15.4404,-0.9637 15.2669,-0.9964 15.0843)) SELECT ST_ASTEXT(ST_ENVELOPE(@buf)); ST_ASTEXT(ST_ENVELOPE(@buf)) -POLYGON((-0.9964 -0.9999,30.9959 -0.9999,30.9959 25.9958,-0.9964 25.9958,-0.9964 -0.9999)) +POLYGON((-0.9964 -0.9999,30.9960 -0.9999,30.9960 25.9958,-0.9964 25.9958,-0.9964 -0.9999)) SELECT ST_DISTANCE(ST_GEOMFROMTEXT(@star_of_elems),ST_GEOMFROMTEXT(@star_top)) as result; result 0 @@ -1530,7 +1530,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('MULTILINESTRING((-10 3,-9 -4,-9 3,-1 3),' '(3 10,7 9,-7 2,2 -9,7 10,7 8,3 -4,-9 -1,-5 -8,-7 5,4 9,-3 -6,9 1),' '(4 4,-7 -3,1 -4,-10 -8) -GEOMETRYCOLLECTION(MULTIPOINT((-6.2 -0.19999999999999996),(-5.127659574468085 -1.8085106382978724),(-5 -2),(-4.152542372881356 -3.3559322033898304),(-3.333333333333333 -4.666666666666666),(-2.8703703703703702 -5.407407407407407),(-2.786259541984733 -5.541984732824428),(-2.7857142857142856 3),(-2.633587786259542 -5.786259541984733),(-2.2142857142857144 3),(-2.16 0.08000000000000007),(-2.1111111111111107 0.11111111111111116),(-1.5314685314685315 -2.8531468531468533),(-1.5283018867924527 -2.867924528301887),(-1.3486238532110093 -3.706422018348624),(-1.1204819277108435 -4.771084337349397),(-1.0952380952380953 -4.888888888888889),(-1 -5.333333333333333),(-0.7727272727272725 -1.2272727272727266),(-0.666666666666667 1.0303030303030303),(-0.5454545454545454 -7.454545454545455),(-0.07224334600760418 0.27376425855513276),(0.08411214953271028 0.07476635514018692),(0.3 -2.3),(1.4210526315789478 -3.4210526315789473),(1.6363636363636367 -3.6363636363636367),(1.6666666666666667 -3.6666666666666665),(1.790322580645161 -2.096774193548387),(2.2857142857142856 -4.285714285714286),(2.3589743589743586 -2.8205128205128203),(2.387755102040816 -2.857142857142857),(2.6363636363636367 -4.636363636363637),(2.846153846153846 6.923076923076923),(3 10),(3.041666666666667 -5.041666666666666),(3.0851063829787235 -3.74468085106383),(3.174721189591078 -3.858736059479554),(3.3082437275985663 -4.028673835125447),(6.696969696969697 8.848484848484848),(7 10)),LINESTRING(7 9,-5 3)) +GEOMETRYCOLLECTION(MULTIPOINT((-6.2 -0.2000000000),(-5.1276595745 -1.8085106383),(-5 -2),(-4.1525423729 -3.3559322034),(-3.3333333333 -4.6666666667),(-2.8703703704 -5.4074074074),(-2.7862595420 -5.5419847328),(-2.7857142857 3),(-2.6335877863 -5.7862595420),(-2.2142857143 3),(-2.16 0.0800000000),(-2.1111111111 0.1111111111),(-1.5314685315 -2.8531468531),(-1.5283018868 -2.8679245283),(-1.3486238532 -3.7064220183),(-1.1204819277 -4.7710843373),(-1.0952380952 -4.8888888889),(-1 -5.3333333333),(-0.7727272727 -1.2272727273),(-0.6666666667 1.0303030303),(-0.5454545455 -7.4545454545),(-0.0722433460 0.2737642586),(0.0841121495 0.0747663551),(0.3 -2.3),(1.4210526316 -3.4210526316),(1.6363636364 -3.6363636364),(1.6666666667 -3.6666666667),(1.7903225806 -2.0967741935),(2.2857142857 -4.2857142857),(2.3589743590 -2.8205128205),(2.3877551020 -2.8571428571),(2.6363636364 -4.6363636364),(2.6842105263 6.8421052632),(2.8461538462 6.9230769231),(3 10),(3.0416666667 -5.0416666667),(3.0851063830 -3.7446808511),(3.0869565217 7.0434782609),(3.1747211896 -3.8587360595),(3.3082437276 -4.0286738351),(6.6969696970 8.8484848485),(7 10)),LINESTRING(7 9,-5 3)) ###################################################################################################### # BUG#20120173 : ASSERTION FAILURE WITH GEOMETRY SET OPERATIONS IN ITEM_GEOFUNC.CC FILE ###################################################################################################### @@ -1790,7 +1790,7 @@ ST_ASTEXT( ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('MULTIPOLYGON(((-2 3,3 2,-7 4,-8 -4,-8 8,4 3,-10 -4,0 6,-4 7,-9 3,-6 0,-1 -8,-5 -3,2 -6,-7 -7, -2 3)),' '((-8 -9,-4 7,-5 5,6 -9,-6 -4,-1 6,-7 8,-2 0,1 -4,-9 -5,2 -3,0 6, -GEOMETRYCOLLECTION(MULTIPOLYGON(((-2 3,-7 -7,2 -6,-5 -3,-1 -8,-6 0,-9 3,-4 7,0 6,-10 -4,4 3,-8 8,-8 -4,-7 4,3 2,-2 3)),((-8 -9,8 -6,0 6,2 -3,-9 -5,1 -4,-2 0,-7 8,-1 6,-6 -4,6 -9,-5 5,-4 7,-8 -9)),((-4 -5,-10 8,-1 -1,-5 -7,-5 5,0 6,10 1,6 -9,8 -4,6 7,-10 2,10 -8,0 -7,-4 -5)),((4 -9,7 -5,3 -6,4 -9)),((-8 -4,5 4,-3 8,-10 -2,-3 -3,5 -8,9 -8,3 7,8 -1,8 4,-8 -4))),MULTILINESTRING((0.0412 0.9484,0.5714 0.2857),(5.3333 -5.6666,5.9130 -6.3913,5.9354 -6.4193,6.6666 -7.3333),(7.2 -8,8 -9,7 -8),(6.6666 -7.6666,6.5714 -7.5714),(4.6 -5.6,4 -5),(2 -3,-0.6666 -0.3333,-1 0,-1.0551 -0.0206),(-1.7272 -0.2727,-1.7804 -0.2926),(-3.8571 -1.0714,-4.0769 -1.1538,-4.6923 -1.3846,-5 -1.5),(-6.2413 -1.9655,-7.3448 -2.3793,-7.8196 -2.5573),(-8 -2.625,-9 -3,-9 -2.1428),(-9 -0.5714,-9 1.5),(-9 2.3125,-9 3),(-9 5.8333,-9 7),(-9 7,-9 5.8333),(-9 2,-8 1.4),(-9 2,-7.7323 1.2394),(-7.3720 1.0232,-6.5531 0.5319,-6.5 0.5,-5.875 0.125),(-5 -0.3999,-4.3846 -0.7692),(-3.5569 -1.2658,-3.0909 -1.5454),(0.0869 -3.3478,-1.3333 -2.3333),(-1.7096 -2.0645,-2.7058 -1.3529,-3.1652 -1.0247),(-3.7894 -0.5789,-4.1578 -0.3157,-5 0.2857),(-5.4166 0.5833,-5.5757 0.6969,-6 1,-5.3 1.8),(-5 2.1428,-4.6 2.6),(-4.0312 3.25,-3.9148 3.3829),(-3.8172 3.4946,-3.2903 4.0967,-2.0458 5.5190,-1.9696 5.6060),(-0.8260 6.9130,1 9,-0.5 6.75),(-0.8571 6.2142,-1.1538 5.7692,-1.4782 5.2826),(-2.8823 3.1764,-3 3),(-3.8 1.7999,-5 0),(-5.25 -0.375,-5.5161 -0.7741),(-6.2 -1.7999,-6.5 -2.25,-6.6521 -2.4782,-7.4347 -3.6521,-7.5 -3.75),(-8.2857 -4.9285,-9 -6,-7.2807 -6.1228),(-9 -6,-6.5862 -6.1724),(-5 -6.2857,-4.5454 -6.3181),(-2.3043 -6.4782,-2.2121 -6.4848),(-1.9345 -6.5046,-0.8333 -6.5833,0.4137 -6.6724),(3.3103 -6.8793,4.3945 -6.9567,5 -7,4.9496 -6.5719),(4.8285 -5.5428,4.8125 -5.4062),(4.2142 -0.3214,3.9444 1.9722,3.8333 2.9166),(3.8144 3.0773,3.7932 3.2573),(3.625 4.6875,3.5 5.75,3.4468 6.2021,3.4347 6.3043),(3 10,2.6315 5.9473),(3 10,2.5652 5.2173),(2.5217 4.7391,2.4233 3.6569),(2.3037 2.3407,2.2857 2.1428),(6 -3,7.25 -3.625,8 -4)),POINT(4 8)) +GEOMETRYCOLLECTION(MULTIPOLYGON(((-2 3,-7 -7,2 -6,-5 -3,-1 -8,-6 0,-9 3,-4 7,0 6,-10 -4,4 3,-8 8,-8 -4,-7 4,3 2,-2 3)),((-8 -9,8 -6,0 6,2 -3,-9 -5,1 -4,-2 0,-7 8,-1 6,-6 -4,6 -9,-5 5,-4 7,-8 -9)),((-4 -5,-10 8,-1 -1,-5 -7,-5 5,0 6,10 1,6 -9,8 -4,6 7,-10 2,10 -8,0 -7,-4 -5)),((4 -9,7 -5,3 -6,4 -9)),((-8 -4,5 4,-3 8,-10 -2,-3 -3,5 -8,9 -8,3 7,8 -1,8 4,-8 -4))),MULTILINESTRING((0.0412 0.9485,0.5714 0.2857),(5.3333 -5.6667,5.9130 -6.3913,5.9355 -6.4194,6.6667 -7.3333),(7.2 -8,8 -9,7 -8),(6.6667 -7.6667,6.5714 -7.5714),(4.6 -5.6,4 -5),(2 -3,-0.6667 -0.3333,-1 0,-1.0552 -0.0207),(-1.7273 -0.2727,-1.7805 -0.2927),(-3.8571 -1.0714,-4.0769 -1.1538,-4.6923 -1.3846,-5 -1.5),(-6.2414 -1.9655,-7.3448 -2.3793,-7.8197 -2.5574),(-8 -2.625,-9 -3,-9 -2.1429),(-9 -0.5714,-9 1.5),(-9 2.3125,-9 3),(-9 5.8333,-9 7),(-9 7,-9 5.8333),(-9 2,-8 1.4),(-9 2,-7.7324 1.2394),(-7.3721 1.0233,-6.5532 0.5319,-6.5 0.5,-5.875 0.125),(-5 -0.4000,-4.3846 -0.7692),(-3.5570 -1.2658,-3.0909 -1.5455),(0.0870 -3.3478,-1.3333 -2.3333),(-1.7097 -2.0645,-2.7059 -1.3529,-3.1653 -1.0248),(-3.7895 -0.5789,-4.1579 -0.3158,-5 0.2857),(-5.4167 0.5833,-5.5758 0.6970,-6 1,-5.3 1.8),(-5 2.1429,-4.6 2.6),(-4.0312 3.25,-3.9149 3.3830),(-3.8172 3.4946,-3.2903 4.0968,-2.0458 5.5191,-1.9697 5.6061),(-0.8261 6.9130,1 9,-0.5 6.75),(-0.8571 6.2143,-1.1538 5.7692,-1.4783 5.2826),(-2.8824 3.1765,-3 3),(-3.8 1.8000,-5 0),(-5.25 -0.375,-5.5161 -0.7742),(-6.2 -1.8000,-6.5 -2.25,-6.6522 -2.4783,-7.4348 -3.6522,-7.5 -3.75),(-8.2857 -4.9286,-9 -6,-7.2807 -6.1228),(-9 -6,-6.5862 -6.1724),(-5 -6.2857,-4.5455 -6.3182),(-2.3043 -6.4783,-2.2121 -6.4848),(-1.9346 -6.5047,-0.8333 -6.5833,0.4138 -6.6724),(3.3103 -6.8793,4.3946 -6.9568,5 -7,4.9496 -6.5719),(4.8286 -5.5429,4.8125 -5.4062),(4.2143 -0.3214,3.9444 1.9722,3.8333 2.9167),(3.8144 3.0773,3.7932 3.2574),(3.625 4.6875,3.5 5.75,3.4468 6.2021,3.4348 6.3043),(3 10,2.6316 5.9474),(3 10,2.5652 5.2174),(2.5217 4.7391,2.4234 3.6569),(2.3037 2.3407,2.2857 2.1429),(6 -3,7.25 -3.625,8 -4)),POINT(4 8)) SELECT ST_ASTEXT( ST_INTERSECTION( ST_GEOMFROMTEXT('MULTILINESTRING((3 -.7),(4 -1032.34324),(2 1,8 7),(7 5,-4 8,2.2 8,2 8,6 7))'), @@ -1995,14 +1995,14 @@ ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2)),' -GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.5696202531645591 -0.9113924050632936,-1.1702127659574466 -1.872340425531915),(-5 -8,3 -7,-2 -7,0.9938650306748467 -3.6319018404907975),(1.0666666666666669 -3.55,6 2,6 3,6 3.8333333333333335),(1 0,0.6164383561643836 -0.054794520547945216),(-3.17910447761194 -0.5970149253731343,-4.163934426229508 -0.7377049180327869),(-5.176470588235294 -0.8823529411764706,-6 -1,-5.338582677165355 -1.141732283464567),(-1.9067796610169485 -1.8771186440677967,-1.906779661016949 -1.8771186440677967,-1.215189873417724 -2.0253164556962022),(7 -8,9 -10,4 -2))) +GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.5696202531645589 -0.9113924050632932,-1.1702127659574466 -1.872340425531915),(-5 -8,3 -7,-2 -7,0.9938650306748467 -3.6319018404907975),(1.066666666666667 -3.55,6 2,6 3,6 3.8333333333333335),(1 0,0.6164383561643836 -0.054794520547945216),(-3.1791044776119404 -0.5970149253731343,-4.163934426229508 -0.7377049180327869),(-5.176470588235294 -0.8823529411764706,-6 -1,-5.338582677165355 -1.141732283464567),(-1.906779661016949 -1.8771186440677967,-1.2151898734177227 -2.0253164556962022),(7 -8,9 -10,4 -2))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2),(-1 -2,10 -7,8 -5))'))); ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2),(-1 -2,10 -7,8 -5))'))) -GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.5696202531645573 -0.9113924050632907,-1.1702127659574466 -1.872340425531915),(-1.25 -2,-5 -8),(-5 -8,3 -7,-2 -7,0.9938650306748467 -3.6319018404907975),(1.0666666666666669 -3.55,6 2,6 3,6 3.8333333333333335),(1.5 0.583333333333333,1 0,0.6164383561643836 -0.0547945205479452),(1 0,-2.92 -0.56),(-3.17910447761194 -0.5970149253731343,-4.163934426229508 -0.7377049180327869),(-5.176470588235294 -0.8823529411764706,-6 -1,-5.338582677165355 -1.141732283464567),(-4.303030303030303 -1.3636363636363635,-1.906779661016949 -1.8771186440677967,-1.215189873417721 -2.0253164556962027),(-0.8666666666666663 -2.1,0.5882352941176467 -2.4117647058823533),(2 -1,0.40909090909090917 -0.20454545454545459),(-0.29032258064516125 -0.7096774193548387,1 -2),(7 -8,9 -10,4 -2),(-1 -2,0.375 -2.625))) +GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.56962 -0.91139,-1.17021 -1.87234),(-1.25 -2,-5 -8),(-5 -8,3 -7,-2 -7,0.99387 -3.63190),(1.06667 -3.55,6 2,6 3,6 3.83333),(1.5 0.58333,1 0,0.61644 -0.05479),(1 0,-2.92 -0.56),(-3.17910 -0.59701,-4.16393 -0.73770),(-5.17647 -0.88235,-6 -1,-5.33858 -1.14173),(-4.30303 -1.36364,-1.90678 -1.87712,-1.21519 -2.02532),(-0.86667 -2.1,0.58824 -2.41176),(2 -1,0.40909 -0.20455),(-0.29032 -0.70968,1 -2),(7 -8,9 -10,4 -2),(-1 -2,0.375 -2.625))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('LINESTRING(-1 -2,10 -7,8 -5)'))); ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('LINESTRING(-1 -2,10 -7,8 -5)'))) GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),LINESTRING(-1 -2,0.375 -2.625)) @@ -2099,7 +2099,7 @@ ST_ASWKB( ST_GEOMFROMTEXT('MULTILINESTRING((1 5, -4.3 -.1),' '(0 6,8.6 6,189.7654 5,1 3,6 3,3 5,6 2.232432,0 4),' '(-6 5,1 2 -GEOMETRYCOLLECTION(POINT(-1.3068033885057968 6.95588691462719),POINT(-1.250432813361253 9.348630781695498),POINT(-0.5326974515460634 -0.629698715046247),POINT(-0.3237169258807251 2.7557858007322666),POINT(-0.3093463318554086 2.9885894239423596),POINT(-0.2870773950336814 3.3493462004543613),POINT(-0.27224727752722444 3.5895941040589596),POINT(-0.26002971768202054 3.7875185735512633),POINT(0.17057191599583232 2.5603603747987496),POINT(0.20348293501690584 8.213958459413115),POINT(0.20670833865183072 6.559793242463126),POINT(0.20706121970032634 6.3788163408990215),POINT(0.20779986151819596 5.999999999999999),POINT(0.21087723180606566 4.421754463612131),POINT(0.21122968964554562 4.240994607017413),POINT(0.21182127180948937 3.9375985830383744),POINT(0.2126701994349945 3.502221585687387),POINT(0.2136823839732358 2.983117422044227),POINT(0.21373120040140098 2.9580816601363997),POINT(0.21454060039978828 2.5429766142332513),POINT(0.21523554423848199 2.186571011767442),POINT(0.21538050637760223 2.1122264163466085),POINT(0.2185007981672563 0.5119683620393687),POINT(0.23647190090662562 2.1820461071718458),POINT(0.3301406780816283 2.8671349368006327),POINT(0.38951211292922494 2.9812778660476296),POINT(0.39436697479256644 8.039435908761082),POINT(0.4375000000000009 8),POINT(0.4460055443973996 -116.16503721642789),POINT(0.5720091516699135 8.057199771171568),POINT(0.6149864872883692 2.9789189206070934),POINT(0.6163999319893212 2.9818945936617283),POINT(0.9813981034250419 6),POINT(1 2.232432),POINT(1.0000224788601089 5.9922197425210015),POINT(1.0053012917379935 4.165146520195549),POINT(1.0063480798617221 3.80283806286684),POINT(1.00865931451096 3.0028864381703197),POINT(1.0150805760981134 0.7803952510726049),POINT(1.0388693195486667 3.8833920413539995),POINT(1.0412371134020617 3.876288659793815),POINT(1.2569493468662905 2.972202612534838),POINT(1.3 3.1),POINT(1.5230208408561547 1.9079166365753808),POINT(1.5923914063484486 4.76304343746062),POINT(1.6756969713169383 1.2972121147322464),POINT(1.7017543859649122 3.2339181286549707),POINT(2 3),POINT(2.28326548655475 1.3412256626058738),POINT(2.3207547169811322 1.5849056603773581),POINT(2.3435512850038953 1.7330833525253189),POINT(2.370748356394707 6),POINT(2.386740331491713 3.110497237569061),POINT(2.403519711951156 1.2472751700426596),POINT(2.412406123379353 2.180639801965793),POINT(2.5321325326209725 2.958861462036321),POINT(2.540973363458562 3.0163268624807147),POINT(2.550910316925152 3.080917060013486),POINT(2.6887552170098443 1.6595295465330486),POINT(2.953757225433526 5.699421965317919),POINT(3 6),POINT(3.0067352148266244 6),POINT(3.009100471227746 5.648822426306062),POINT(3.018909545454914 4.192436181818035),POINT(3.0202739190800645 3.989863040459968),POINT(3.0262101246182627 3.1084946370747915),POINT(3.02679622572439 3.0214742344277536),POINT(3.026796475292346 3.0214371802338764),POINT(3.0272528247444535 2.9536814420941813),POINT(3.0307335913939544 2.4368803096727456),POINT(3.033663567232252 2.001856941640744),POINT(3.033831569455859 1.9769130864064213),POINT(3.0364682172170467 1.5854411246265734),POINT(3.0421060737811922 0.7483695969510409),POINT(3.0435512346111793 0.5338017075536241),POINT(3.0498391451947966 -0.39978552692639546),POINT(3.0516129643768455 -0.663150427335685),POINT(3.22810602509037 -796.1565697664814),POINT(3.5555555555555554 3.4444444444444446),POINT(4.007785622525587 4.735738859405178),POINT(4.132774777756052 2.5487432499511145),POINT(4.17391304347826 4.583850931677019),POINT(4.184712625258058 3.8216551503096703),POINT(4.3686805736779 4.087546284214733),POINT(4.38014506152931 4.104116049223448),POINT(4.428571428571429 4.142857142857142),POINT(4.576032868900963 3.5460739550271665),POINT(4.584905660377359 3.566037735849057),POINT(4.957703927492448 4.7492447129909365),POINT(5 1.4359928939902957),POINT(5.000958495470734 4.801150194565025),POINT(5.001920672853931 4.601536538283199),POINT(5.005671512443617 3.823386045765801),POINT(5.006447650211121 3.6623682331926375),POINT(5.007727215776458 3.3969091136893894),POINT(5.008933207833419 3.1467135799541666),POINT(5.009435631356616 3.042480620191782),POINT(5.009640396364852 3),POINT(5.009963648324956 2.9329380353522083),POINT(5.011937172407166 2.5235100393406356),POINT(5.017203083598111 1.4310422627786465),POINT(5.0184945033490065 1.1631238697955268),POINT(5.019096693039546 1.0381933860792287),POINT(5.027386389591994 -0.6815899586538308),POINT(5.038811021211276 -3.051748028281736),POINT(5.135593827717932 1),POINT(5.153811622682032 3.0440103072139495),POINT(5.285714285714286 5.142857142857143),POINT(5.395321452430659 1.0828320372418117),POINT(5.411764705882353 3.235294117647059),POINT(5.6615415557907065 2.926121133261659),POINT(5.666666666666667 6),POINT(5.750265604998302 3.0503298338042706),POINT(5.790142575524733 3.106155359520246),POINT(6.06556854930577 3.0536705195899865),POINT(6.097893693429729 2.9215559542319918),POINT(6.3076923076923075 4.769230769230769),POINT(6.433333333333334 4.266666666666667),POINT(6.562970132999666 -5.083960177332983),POINT(6.581467724157924 -0.6960939149653314),POINT(6.587895790751739 0.8287260628328568),POINT(6.588528668432964 0.9788527794357833),POINT(6.589763454480116 1.2717598931881184),POINT(6.594396750598089 2.3708372565959053),POINT(6.596696373737318 2.9163374086133445),POINT(6.597299068253058 3.0593042905984476),POINT(6.59958542838319 3.6016582864672273),POINT(6.611170446274414 0.8237668507898244),POINT(6.666666666666667 6),POINT(6.826605423768893 -373.94819977080806),POINT(6.851694915254237 2.1355932203389836),POINT(6.98889569410794 1.5910529131698257),POINT(7.233062330623306 -2.168292682926829),POINT(7.857257142857142 6),POINT(7.985622025683107 3.0740137972921215),POINT(8.15490202638159 0.5280884271661537),POINT(8.253731343283583 1),POINT(8.275939597269154 6.586131990897179),POINT(8.525404608739807 2.820210878556703),POINT(8.54865385265276 2.838809529741019),POINT(8.962933842995367 2.891581490761452),POINT(8.982721744049384 -2.9728484549347467),POINT(10.0002 -1032.34324),POINT(-0.7894269180314115 2.9936120963106445),POINT(-0.7566506759703445 3.309638028783253),POINT(-0.7065026362038664 3.6678383128295255),POINT(-0.7053428345352559 3.676122610462458),POINT(-0.5322427770870091 2.8382300111567345),POINT(0.048405275947358994 -0.6351220403152757),POINT(0.10749009908434837 2.209528709622637),POINT(0.23588693775379155 2.5345369799220876),POINT(0.502294295440373 7.6422084936296075),POINT(0.5912311307833158 3.434012408867871),POINT(0.6191428705587008 2.142601182370785),POINT(0.6231653577819406 0.9117872439343158),POINT(0.6237828169691946 0.7228550405709191),POINT(0.7298834721962262 3.7849802218028437),POINT(0.9225495059559787 1.7175497403299207),POINT(1.0043920788723937 4.479838197767776),POINT(1.011679851207373 1.9574351515393573),POINT(1.0118303293156554 1.9053525093718235),POINT(1.0146591820584798 0.9262458018827147),POINT(1.1812448804366062 4.9275020478253575),POINT(1.3644094598868468 2.90677162033946),POINT(1.3882103518465296 2.97082934095975),POINT(1.3990488221743331 3),POINT(1.43457260366905 7.088390762359726),POINT(1.604942857142857 6),POINT(1.7007312147193645 1.283240303215405),POINT(1.871304347826087 1.3860869565217393),POINT(1.8756165050639775 6.685150623941507),POINT(1.9943714821763603 4.602251407129456),POINT(2.0600461893764432 1.2720554272517324),POINT(2.0949344815723228 1.4883622029203474),POINT(2.5137103366277773 6),POINT(2.5419298092694866 6.075949888667898),POINT(3.160359289329147 -775.4271995955245),POINT(3.2336465227304965 -767.0972558089059),POINT(3.266733333333333 6),POINT(4 1.7237686978764892),POINT(4 2.9435044207790746),POINT(4 3.8),POINT(4 4.077477333333333),POINT(4 4.742857142857143),POINT(5.0642816882081485 -559.0243444093659),POINT(5.094956799689188 4.913948159627026),POINT(5.265670276474132 4.812536221179306),POINT(6.476721471593684 4.093114113625265),POINT(7.087453458422117 -329.0674155638844),POINT(8.565495871140024 2.8522826056077957),POINT(9.098259943108358 -100.51594478484922),MULTILINESTRING((-0.7653999999999996 8.881784197001252e-16,-0.7654 0,5 3),(0.7984790874524714 4.806083650190114,0.21122968964554634 4.240994607017228),(0.20779986151819552 6.000000000000227,0.5 6),(1.959700171718825 6,2.05 6),(3.006735214826623 6.000000000000227,3.2727272727272725 6,5.3446750972261565 6,5.640054397824088 5.999999999999999),(7.857257142857143 6,8.571440815976686 6,8.6 6,8.99967072990898 5.997793890390168),(8.6 6,189.7654 5,8.987909888345353 3.0846331996048573),(8.56420058670109 3.0801439308973055,7.985622025683106 3.074013797292121,7.552065143908058 3.0694201918774104),(6.597299068253058 3.0593042905983094,6.06556854930577 3.0536705195899856),(5.348691697728959 3.046075093186876,5.153811622682031 3.0440103072139504),(5.009435631356617 3.042480620191588,4.349104133767298 3.035484300976422,3.6355363469936135 3.0279239346510916),(2.0385111797954947 3.011003194227284,1.2493395517616932 3.0026417929531757,1 3),(1 3,1.25 3),(2.5384615384615383 3,3.0269408593064977 3,3.616216 3,4.333333333333334 3),(5.181818181818182 3,5.333333333333333 3),(5.714314285714286 3,6 3,5.806473464858518 3.1290176900943214),(5.454545454545455 3.3636363636363633,5.00644765021112 3.662368233192586,4.8 3.8,4.714285714285714 3.857142857142857,4.578947368421053 3.9473684210526314),(4.333333333333333 4.111111111111111,3.0135311866190753 4.990979208920617),(3.013554649957279 4.987495528175677,4.0616928480122985 4.020564282670766),(4.220788028120986 3.873795372863086,4.418832382925834 3.6910949665502386),(5.2015078273876965 2.9690591283907626,5.294441808196902 2.8833254245907063),(5.497296552036384 2.696187325357923,6 2.232432,5.594194449425349 2.3519801509030223),(6 2.232432,5.311014836272068 2.4354033546467093),(5.159967073339523 2.479901220018568,5.011937172407167 2.523510039340435,4.2246414098172025 2.7554431720887047,3.578674942152815 2.945741448308139),(2.7079171620240383 3.2022620462925824,2.575576742767682 3.241248827989936),(2.1233856960245974 3.374461898674866,1.0795040326672316 3.6819838693310745,0.9649694452659672 3.715725147928354,0.9383071519877015 3.7235797173292338,0.7972370128659554 3.765138227940425),(-0.3237169258807242 2.7557858007322658,0.17057191599583205 2.56036037479875,0.19922180034015025 2.5490331600680296),(0.21454060039978806 2.542976614233339,0.37734024032055036 2.4786110322537906),(6.242571337505677 -474.43547325137604,6.826605423768893 -373.9481997708082),(8.982721744049384 -2.972848454934746,9 0),(9 0,189.7654 1,8.962933842995369 2.891581490761455),(8.536722473971128 2.8960405756065573,8.408441507515107 2.897382669588586,7.430708887013444 2.907611849351259),(6.596696373737318 2.916337408613302,6.097893693429729 2.9215559542319927),(5.309933236744222 2.929799710232665,5.225931834987745 2.9306785450192585),(5.009963648324956 2.932938035352371,4.3067976265507335 2.94029465973915,3.580166200685639 2.9478967825695905),(2.1101717707519874 2.963276076416004,1.2569493468662902 2.972202612534839,1 2.9748908536795886,0.6149864872883697 2.978918920607094,0.47067814990151646 2.9804286952565526,0.3895121129291965 2.98127786604763),(-1.4 3,-1.306803388505795 6.9558869146271896),(-1.2504328133612521 9.348630781695498,0.31147540983606553 9.91822950819672,0.3751862474892954 9.463133893291465),(0.5800167993280267 8,0.85246534186352 6.05386113944861,1.3638480456882514 4.8544607817247,1.4831932773109244 4.80672268907563),(2.7391304347826084 4.304347826086957,3.018909545454913 4.192436181818039,3.727272727272727 3.909090909090909),(4.132938081864926 3.74682476725403,4.333333333333334 3.666666666666667),(4.902439024390244 3.4390243902439024,5.007727215776458 3.396909113689417),(5.7778019750935545 3.0888792099625784,6 3,5.64 2.2800000000000002),(5.019096693039545 1.0381933860790902,5 1),(5 1,5.019280792729704 1),(5.1355938277179325 1,6 1),(6.454545454545455 1,6.568050583356943 1,6.588617817148249 1),(8.316239316239315 1,9 1),(4.46857804565248 -501.90067007298705,0.4460055443973996 -116.16503721642778),(-0.6865879576035461 -7.5575053130871765,-0.7261514394429778 -3.7636533189761394),(-0.7653999999999996 8.881784197001252e-16,-0.7055293317678581 0.031153433360465096),(-0.48481473565998395 0.14600128230826104,0.21850079816725643 0.5119683620393971,1 0.9186179623269854),(2.324260118172246 1.6076907681195998,2.837760148563958 1.8748882030200635,3.0338315694558604 1.9769130864062845,3.8285992929416066 2.390466902352798),(4.454545454545455 3.2727272727272725,3.9718874308478944 3.5140562845760526),(3.909090909090909 3.5454545454545454,3.4 3.8,3.020273919080065 3.9898630404600226),(2.412406123379353 2.1806398019657944,2.9435510802156513 2.0277891350321307,3.033663567232251 2.0018569416406535,3.7926407441832835 1.7834416744123878),(5.789913532037456 1.2086748923076345,6.091429433528652 1.1219059113715355,6.248741316520661 1.0766353577826588),(6.440982669530936 1.0213129478799579,6.572065590386247 0.9835904549550702,6.588528668432964 0.9788527794357362),(8.15490202638159 0.5280884271661532,8.18212740620899 0.5202536216002167),(8.177611896515856 0.4899997066562385,8.144306401587228 0.49709622464264097),(6.587895790751739 0.8287260628326987,6.559717156435642 0.8347301827439912),(5.018494503349007 1.1631238697952528,5 1.167064558139535,3.6468388143533286 1.4553873322949888,3.0364682172170445 1.5854411246266409),(1.5230208408561545 1.907916636575382,1 2.019358511627907,0.2364719009066274 2.1820461071718453,0.21523554423848168 2.1865710117674553),(0 2.232432,0.20583742977736258 2.117552483741816),(0.2153805063776022 2.112226416346857,1 1.6743240000000001),(2.2172202431565786 0.9949836445323683,2.228987144996931 0.988416442480053,3.04355123461118 0.5338017075534935,3.1987487660730998 0.44718472366447437),(3.272727272727273 0.4058967272727272,4 0,3.420244763820535 0.45294283694077225),(3.2577357848670885 0.5799055159509479,3.042106073781193 0.7483695969508517),(1.5145510415099104 1.9417958339603585,1 2.3437968749999993,0.49916424953825045 2.7350826306068425,0.376565054257604 2.8308651675322727,0.33014067808162784 2.8671349368006327),(1 0,1.32 0.384),(1 0,1.6820976351523418 0.8185171621828095),(1 0,1.7692307692307692 0.9230769230769231),(2.3207547169811322 1.5849056603773586,3.030733591393955 2.436880309672688,3.1739130434782608 2.608695652173913),(3.96875 3.5625,4.184712625258057 3.821655150309668,4.453608247422681 4.144329896907217,4.461538461538462 4.153846153846154,4.704060652458992 4.44487278295079),(5.493413900889959 5.392096681067951,5.863239160499081 5.835886992598898),(6.08107280245768 5.675708790169281,6.181818181818182 5.272727272727273),(6.48149684453794 4.074012621848242,6.570247933884298 3.7190082644628095,6.585246218925046 3.6590151242998155,6.5995854283831905 3.6016582864672375),(6.9375 2.25,7 2,6.851694915254237 2.1355932203389827),(6.594396750598089 2.3708372565960323,6.128394845228898 2.796896141505008),(5.467153284671533 3.4014598540145986,5.005671512443617 3.8233860457658357,4.976190476190477 3.850340136054422,4.787810383747178 4.022573363431151,4.595419847328245 4.198473282442748,4.503547393598493 4.282470954424235),(2.4636027452583242 6.147563204335246,2.2241035856573705 6.366533864541832,2.1741221724427535 6.412231156623768),(0.3943669747925682 8.039435908761082,0.20348293501690584 8.213958459413107),(-0.1752389675387337 5.161128725872514,0.14881901177715107 6.347806546715802),(0.20670833865183091 6.559793242463002,0.2867630190410645 6.8529479238357425),(0.6 8,0.6060238218140649 6.156811087286171,0.6079474591914528 5.568210163234189,0.614985277874548 3.4147551363801174,0.6156517714518788 3.210819228239097),(0.6246098681047852 0.4697911999691291,0.6419435163447376 -4.834015791493288),(3.281209938024379 -783.5596393894779,1.0290092830088593 -4.040530969832162,1.0156054490564213 0.5987291550334248),(1.0086593145109592 3.0028864381703197,1.0063480798617226 3.80283806286684,1.00626504485418 3.831577675788367,1.005845997485208 3.9766160100591605),(0.9967859042368499 5.9935718084737,0.6666666666666667 5.333333333333333,0.21087723180606543 4.4217544636123876),(0.20706121970032676 6.378816340898766,0.2284922020474155 6.314523393857754,0.9685212893551598 4.09443613193452,1 4),(2.0460878080557694 0.938549589258974,2.1914893617021276 0.7446808510638299,2.6052344828254053 0.19302068956612642,2.9014778325123154 -0.2019704433497537),(3.049839145194796 -0.39978552692628,5 -3),(6.3385518590998045 -4.784735812133072,6.562970132999667 -5.08396017733289),(8 -7,7.233062330623306 -2.16829268292683),(7.010274295409558 -0.7647280610802148,7 -0.7,6.9839616248860015 -0.6998503167840819),(6.581467724157925 -0.6960939149653118,5.027386389591995 -0.6815899586541239,5 -0.6813343664985977,3.0516129643768455 -0.6631504273357223),(2.678211929802206 -0.6596655439054776,0.22074060902229764 -0.6367304143985352),(5 0,5.024008414362973 0.019205963251847685),(6.38556086465178 1.1084043555472025,6.4066720887377855 1.1252926592838577,6.515996313447897 1.212748540816685,6.589763454480116 1.2717598931883658),(8.974375935866124 3.17937357374995,8.93904156611594 5.591578492976794,8.545456199729294 6.181897510654993),(6.571428571428571 5.857142857142858,6.218405777667094 5.574724622133675,5.5747237598811035 5.059779007904883),(5.084942084942085 4.667953667953668,5.068965517241379 4.655172413793103,5.001920672853931 4.601536538283145,4.771089625728822 4.416871700583058,4.445783132530121 4.156626506024097),(3 3,2.550910316925152 3.080917060013487),(2.386740331491712 3.110497237569061,1.7017543859649127 3.233918128654971,1.1674528301886793 3.330188679245283,0.8122406639004152 3.394190871369294,0.7393077198119982 3.4073319423762167,0.6221081321605393 3.428448985196299))) +GEOMETRYCOLLECTION(POINT(-1.3068033885 6.9558869146),POINT(-1.2504328134 9.3486307817),POINT(-0.5326974515 -0.6296987150),POINT(-0.3237169259 2.7557858007),POINT(-0.3093463319 2.9885894239),POINT(-0.2870773950 3.3493462005),POINT(-0.2722472775 3.5895941041),POINT(-0.2600297177 3.7875185736),POINT(0.2034829350 8.2139584594),POINT(0.2067083387 6.5597932425),POINT(0.2070612197 6.3788163409),POINT(0.2077998615 6.0000000000),POINT(0.2108772318 4.4217544636),POINT(0.2112296896 4.2409946070),POINT(0.2118212718 3.9375985830),POINT(0.2126701994 3.5022215857),POINT(0.2136823840 2.9831174220),POINT(0.2137312004 2.9580816601),POINT(0.2145406004 2.5429766142),POINT(0.2152355442 2.1865710118),POINT(0.2153805064 2.1122264163),POINT(0.2185007982 0.5119683620),POINT(0.2364719009 2.1820461072),POINT(0.3301406781 2.8671349368),POINT(0.3895121129 2.9812778660),POINT(0.4375000000 8),POINT(0.5720091517 8.0571997712),POINT(0.6163999320 2.9818945937),POINT(0.9813981034 6),POINT(1 2.232432),POINT(1.0000224789 5.9922197425),POINT(1.0053012917 4.1651465202),POINT(1.0086593145 3.0028864382),POINT(1.0150805761 0.7803952511),POINT(1.0388693195 3.8833920414),POINT(1.0412371134 3.8762886598),POINT(1.3 3.1),POINT(1.5230208409 1.9079166366),POINT(1.5923914063 4.7630434375),POINT(1.6756969713 1.2972121147),POINT(1.7017543860 3.2339181287),POINT(2 3),POINT(2.2832654866 1.3412256626),POINT(2.3207547170 1.5849056604),POINT(2.3435512850 1.7330833525),POINT(2.3707483564 6),POINT(2.3867403315 3.1104972376),POINT(2.4035197120 1.2472751700),POINT(2.4124061234 2.1806398020),POINT(2.5321325326 2.9588614620),POINT(2.5409733635 3.0163268625),POINT(2.5509103169 3.0809170600),POINT(2.6887552170 1.6595295465),POINT(2.9537572254 5.6994219653),POINT(3 6),POINT(3.0067352148 6),POINT(3.0091004712 5.6488224263),POINT(3.0189095455 4.1924361818),POINT(3.0202739191 3.9898630405),POINT(3.0262101246 3.1084946371),POINT(3.0267962257 3.0214742344),POINT(3.0267964753 3.0214371802),POINT(3.0272528247 2.9536814421),POINT(3.0307335914 2.4368803097),POINT(3.0336635672 2.0018569416),POINT(3.0338315695 1.9769130864),POINT(3.0364682172 1.5854411246),POINT(3.0421060738 0.7483695970),POINT(3.0435512346 0.5338017076),POINT(3.0498391452 -0.3997855269),POINT(3.0516129644 -0.6631504273),POINT(3.2281060251 -796.1565697665),POINT(3.4202447638 0.4529428369),POINT(3.5555555556 3.4444444444),POINT(4.0077856225 4.7357388594),POINT(4.1327747778 2.5487432500),POINT(4.1739130435 4.5838509317),POINT(4.3686805737 4.0875462842),POINT(4.3801450615 4.1041160492),POINT(4.4285714286 4.1428571429),POINT(4.5760328689 3.5460739550),POINT(4.5849056604 3.5660377358),POINT(4.9577039275 4.7492447130),POINT(5 1.4359928940),POINT(5.0009584955 4.8011501946),POINT(5.0019206729 4.6015365383),POINT(5.0056715124 3.8233860458),POINT(5.0064476502 3.6623682332),POINT(5.0077272158 3.3969091137),POINT(5.0089332078 3.1467135800),POINT(5.0094356314 3.0424806202),POINT(5.0096403964 3),POINT(5.0099636483 2.9329380354),POINT(5.0119371724 2.5235100393),POINT(5.0172030836 1.4310422628),POINT(5.0184945033 1.1631238698),POINT(5.0190966930 1.0381933861),POINT(5.0273863896 -0.6815899587),POINT(5.0388110212 -3.0517480283),POINT(5.1538116227 3.0440103072),POINT(5.2857142857 5.1428571429),POINT(5.3953214524 1.0828320372),POINT(5.4117647059 3.2352941176),POINT(5.6615415558 2.9261211333),POINT(5.6666666667 6),POINT(5.7502656050 3.0503298338),POINT(5.7901425755 3.1061553595),POINT(6.0655685493 3.0536705196),POINT(6.0978936934 2.9215559542),POINT(6.3076923077 4.7692307692),POINT(6.4333333333 4.2666666667),POINT(6.5629701330 -5.0839601773),POINT(6.5814677242 -0.6960939150),POINT(6.5878957908 0.8287260628),POINT(6.5885286684 0.9788527794),POINT(6.5897634545 1.2717598932),POINT(6.5943967506 2.3708372566),POINT(6.5966963737 2.9163374086),POINT(6.5972990683 3.0593042906),POINT(6.5995854284 3.6016582865),POINT(6.6111704463 0.8237668508),POINT(6.6666666667 6),POINT(6.8516949153 2.1355932203),POINT(6.9888956941 1.5910529132),POINT(7.2330623306 -2.1682926829),POINT(7.8572571429 6),POINT(7.9856220257 3.0740137973),POINT(8.2537313433 1),POINT(8.2759395973 6.5861319909),POINT(8.5254046087 2.8202108786),POINT(8.5486538527 2.8388095297),POINT(8.9629338430 2.8915814908),POINT(10.0002 -1032.34324),POINT(-0.7894269180 2.9936120963),POINT(-0.7566506760 3.3096380288),POINT(-0.7065026362 3.6678383128),POINT(-0.7053428345 3.6761226105),POINT(-0.5322427771 2.8382300112),POINT(0.0484052759 -0.6351220403),POINT(0.1074900991 2.2095287096),POINT(0.2358869378 2.5345369799),POINT(0.5022942954 7.6422084936),POINT(0.5912311308 3.4340124089),POINT(0.6191428706 2.1426011824),POINT(0.6231653578 0.9117872439),POINT(0.6237828170 0.7228550406),POINT(0.7298834722 3.7849802218),POINT(0.9225495060 1.7175497403),POINT(1.0043920789 4.4798381978),POINT(1.0116798512 1.9574351515),POINT(1.0118303293 1.9053525094),POINT(1.0146591821 0.9262458019),POINT(1.1812448804 4.9275020478),POINT(1.3644094599 2.9067716203),POINT(1.3882103518 2.9708293410),POINT(1.3990488222 3),POINT(1.4345726037 7.0883907624),POINT(1.6049428571 6),POINT(1.8713043478 1.3860869565),POINT(1.8756165051 6.6851506239),POINT(1.9943714822 4.6022514071),POINT(2.0600461894 1.2720554273),POINT(2.0949344816 1.4883622029),POINT(2.5137103366 6),POINT(2.5419298093 6.0759498887),POINT(3.1603592893 -775.4271995955),POINT(3.2336465227 -767.0972558089),POINT(3.2667333333 6),POINT(4 1.7237686979),POINT(4 2.9435044208),POINT(4 3.8),POINT(4 4.0774773333),POINT(4 4.7428571429),POINT(5.0642816882 -559.0243444094),POINT(5.0949567997 4.9139481596),POINT(5.2656702765 4.8125362212),POINT(6.4767214716 4.0931141136),POINT(7.0874534584 -329.0674155639),POINT(8.5654958711 2.8522826056),POINT(9.0982599431 -100.5159447848),MULTILINESTRING((-0.7654000000 0,-0.7654 0,5 3),(0.7984790875 4.8060836502,0.2112296896 4.2409946070),(0.2077998615 6.0000000000,0.5 6),(1.9597001717 6,2.05 6),(3.0067352148 6.0000000000,3.2727272727 6,5.3446750972 6,5.6400543978 6.0000000000),(7.8572571429 6,8.5714408160 6,8.6 6,8.9996707299 5.9977938904),(8.6 6,189.7654 5,8.9879098883 3.0846331996),(8.5642005867 3.0801439309,7.9856220257 3.0740137973,7.5520651439 3.0694201919),(6.5972990683 3.0593042906,6.0655685493 3.0536705196),(5.3486916977 3.0460750932,5.1538116227 3.0440103072),(5.0094356314 3.0424806202,4.3491041338 3.0354843010,3.6355363470 3.0279239347),(2.0385111798 3.0110031942,1.2493395518 3.0026417930,1 3),(1 3,1.25 3),(2.5384615385 3,3.0269408593 3,3.616216 3,4.3333333333 3),(5.1818181818 3,5.3333333333 3),(5.7143142857 3,6 3,5.8064734649 3.1290176901),(5.4545454545 3.3636363636,5.0064476502 3.6623682332,4.8 3.8,4.7142857143 3.8571428571,4.5789473684 3.9473684211),(4.3333333333 4.1111111111,3.0135311866 4.9909792089),(3.0135546500 4.9874955282,4.0616928480 4.0205642827),(4.2207880281 3.8737953729,4.4188323829 3.6910949666),(5.2015078274 2.9690591284,5.2944418082 2.8833254246),(5.4972965520 2.6961873254,6 2.232432,5.5941944494 2.3519801509),(6 2.232432,5.3110148363 2.4354033546),(5.1599670733 2.4799012200,5.0119371724 2.5235100393,4.2246414098 2.7554431721,3.5786749422 2.9457414483),(2.7079171620 3.2022620463,2.5755767428 3.2412488280),(2.1233856960 3.3744618987,1.0795040327 3.6819838693,0.9649694453 3.7157251479,0.9383071520 3.7235797173,0.7972370129 3.7651382279),(-0.3237169259 2.7557858007,0.1705719160 2.5603603748,0.1992218003 2.5490331601),(0.2145406004 2.5429766142,0.3773402403 2.4786110323),(6.2425713375 -474.4354732514,6.8266054238 -373.9481997708),(8.9827217440 -2.9728484549,9 0),(9 0,189.7654 1,8.9629338430 2.8915814908),(8.5367224740 2.8960405756,8.4084415075 2.8973826696,7.4307088870 2.9076118494),(6.5966963737 2.9163374086,6.0978936934 2.9215559542),(5.3099332367 2.9297997102,5.2259318350 2.9306785450),(5.0099636483 2.9329380354,4.3067976266 2.9402946597,3.5801662007 2.9478967826),(2.1101717708 2.9632760764,1.2569493469 2.9722026125,1 2.9748908537,0.6149864873 2.9789189206,0.4706781499 2.9804286953,0.3895121129 2.9812778660),(-1.4 3,-1.3068033885 6.9558869146),(-1.2504328134 9.3486307817,0.3114754098 9.9182295082,0.3751862475 9.4631338933),(0.5800167993 8,0.8524653419 6.0538611394,1.3638480457 4.8544607817,1.4831932773 4.8067226891),(2.7391304348 4.3043478261,3.0189095455 4.1924361818,3.7272727273 3.9090909091),(4.1329380819 3.7468247673,4.3333333333 3.6666666667),(4.9024390244 3.4390243902,5.0077272158 3.3969091137),(5.7778019751 3.0888792100,6 3,5.64 2.2800000000),(5.0190966930 1.0381933861,5 1),(5 1,5.0192807927 1),(5.1355938277 1,6 1),(6.4545454545 1,6.5680505834 1,6.5886178171 1),(8.3162393162 1,9 1),(4.4685780457 -501.9006700730,0.4460055444 -116.1650372164),(-0.6865879576 -7.5575053131,-0.7261514394 -3.7636533190),(-0.4848147357 0.1460012823,0.2185007982 0.5119683620,1 0.9186179623),(2.3242601182 1.6076907681,2.8377601486 1.8748882030,3.0338315695 1.9769130864,3.8285992929 2.3904669024),(4.4545454545 3.2727272727,3.9718874308 3.5140562846),(3.9090909091 3.5454545455,3.4 3.8,3.0202739191 3.9898630405),(2.4124061234 2.1806398020,2.9435510802 2.0277891350,3.0336635672 2.0018569416,3.7926407442 1.7834416744),(5.7899135320 1.2086748923,6.0914294335 1.1219059114,6.2487413165 1.0766353578),(6.4409826695 1.0213129479,6.5720655904 0.9835904550,6.5885286684 0.9788527794),(8.1549020264 0.5280884272,8.1821274062 0.5202536216),(8.1776118965 0.4899997067,8.1443064016 0.4970962246),(6.5878957908 0.8287260628,6.5597171564 0.8347301827),(5.0184945033 1.1631238698,5 1.1670645581,3.6468388144 1.4553873323,3.0364682172 1.5854411246),(1.5230208409 1.9079166366,1 2.0193585116,0.2364719009 2.1820461072,0.2152355442 2.1865710118),(0 2.232432,0.2058374298 2.1175524837),(0.2153805064 2.1122264163,1 1.6743240000),(2.2172202432 0.9949836445,2.2289871450 0.9884164425,3.0435512346 0.5338017076,3.1987487661 0.4471847237),(3.2727272727 0.4058967273,4 0,3.4202447638 0.4529428369),(3.2577357849 0.5799055160,3.0421060738 0.7483695970),(1.5145510415 1.9417958340,1 2.343796875,0.4991642495 2.7350826306,0.3765650543 2.8308651675,0.3301406781 2.8671349368),(1 0,1.32 0.384),(1 0,1.6820976352 0.8185171622),(1 0,1.7692307692 0.9230769231),(2.3207547170 1.5849056604,3.0307335914 2.4368803097,3.1739130435 2.6086956522),(3.96875 3.5625,4.1847126253 3.8216551503,4.4536082474 4.1443298969,4.4615384615 4.1538461538,4.7040606525 4.4448727830),(5.4934139009 5.3920966811,5.8632391605 5.8358869926),(6.0810728025 5.6757087902,6.1818181818 5.2727272727),(6.4814968445 4.0740126218,6.5702479339 3.7190082645,6.5852462189 3.6590151243,6.5995854284 3.6016582865),(6.9375 2.25,7 2,6.8516949153 2.1355932203),(6.5943967506 2.3708372566,6.1283948452 2.7968961415),(5.4671532847 3.4014598540,5.0056715124 3.8233860458,4.9761904762 3.8503401361,4.7878103837 4.0225733634,4.5954198473 4.1984732824,4.5035473936 4.2824709544),(2.4636027453 6.1475632043,2.2241035857 6.3665338645,2.1741221724 6.4122311566),(0.3943669748 8.0394359088,0.2034829350 8.2139584594),(-0.1752389675 5.1611287259,0.1488190118 6.3478065467),(0.2067083387 6.5597932425,0.2867630190 6.8529479238),(0.6 8,0.6060238218 6.1568110873,0.6079474592 5.5682101632,0.6149852779 3.4147551364,0.6156517715 3.2108192282),(0.6246098681 0.4697912000,0.6419435163 -4.8340157915),(3.2812099380 -783.5596393895,1.0290092830 -4.0405309698,1.0156054491 0.5987291550),(1.0086593145 3.0028864382,1.0063480799 3.8028380629,1.0062650449 3.8315776758,1.0058459975 3.9766160101),(0.9967859042 5.9935718085,0.6666666667 5.3333333333,0.2108772318 4.4217544636),(0.2070612197 6.3788163409,0.2284922020 6.3145233939,0.9685212894 4.0944361319,1 4),(2.0460878081 0.9385495893,2.1914893617 0.7446808511,2.6052344828 0.1930206896,2.9014778325 -0.2019704433),(3.0498391452 -0.3997855269,5 -3),(6.3385518591 -4.7847358121,6.5629701330 -5.0839601773),(8 -7,7.2330623306 -2.1682926829),(7.0102742954 -0.7647280611,7 -0.7,6.9839616249 -0.6998503168),(6.5814677242 -0.6960939150,5.0273863896 -0.6815899587,5 -0.6813343665,3.0516129644 -0.6631504273),(2.6782119298 -0.6596655439,0.2207406090 -0.6367304144),(5 0,5.0240084144 0.0192059633),(6.3855608647 1.1084043555,6.4066720887 1.1252926593,6.5159963134 1.2127485408,6.5897634545 1.2717598932),(8.9743759359 3.1793735737,8.9390415661 5.5915784930,8.5454561997 6.1818975107),(6.5714285714 5.8571428571,6.2184057777 5.5747246221,5.5747237599 5.0597790079),(5.0849420849 4.6679536680,5.0689655172 4.6551724138,5.0019206729 4.6015365383,4.7710896257 4.4168717006,4.4457831325 4.1566265060),(3 3,2.5509103169 3.0809170600),(2.3867403315 3.1104972376,1.7017543860 3.2339181287,1.1674528302 3.3301886792,0.8122406639 3.3941908714,0.7393077198 3.4073319424,0.6221081322 3.4284489852))) SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB( ST_ASWKB( @@ -2150,7 +2150,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTIPOINT(4 2, 2 4, 4 1, 5 -3.9, 10.0002 3, 2.232432 2, 189.7654 -.9, 7 7),' 'POLYGON((8 3, -0.7654 -.0, 10.0002 8, 1 6, 189.7654 4, -1032.3 -GEOMETRYCOLLECTION(MULTIPOINT((-0.3372510561638601 3.097690680136934),(-0.3348537979249109 2.8339874793358657),(-0.31984330357976365 1.1828030803811294),(-0.3102416127352067 0.12659788409820827),(-0.30901013251605036 -0.008867402981812766),(-0.23389056889323 -0.008358533397143653),(-0.22460317460317458 0.13095238095238115),(-0.14904961902666525 1.264255714600019),(-0.05168002135159308 2.724799679726104),(-0.022025625381330127 3.169615619280049),(0.000690994704595964 9.624539670870856),(0.22916666666666669 6.937500000000002),(0.40370586839786693 -0.13841248990864097),(0.49060531000304763 -0.00345070514031498),(0.5267424687808875 0.05267319341422105),(0.5827047144377622 -0.19978310131312538),(0.6042825300016732 0.1730991116949987),(0.7870372295619745 -0.0014426371948452754),(0.8790860445781419 0.08790684632088777),(0.9253601792083448 0.6717583871248964),(0.97941212605967 0.18529086546297013),(0.9868946509409237 0.19255396530208113),(1.7900313279896287 2.0146618548741326),(1.9520445748710875 2.2662813883407877),(2.558705879251926 1.7182718293428634),(2.973817659883715 3.8531767312122014),(3.01884563632834 6.794925377015943),(3.0256607304627385 5.780534179150209),(3.0379404330629587 3.9527645277814827),(3.0497503740285703 2.1949164443099107),(4.472604020566513 4.195154589765787),(4.495378280106891 3.598151312042756),(4.853226108482295 6.7720484045616836),(4.897429656432777 5.033694152417507),(4.923369225347917 4.01359142281459),(4.931538864962354 3.6923111541323737),(5.306415990488793 4.385405341567708),(5.533619466518825 4.437246324530273),(5.850470783392912 4.140188313357164),(6.237374965413903 4.59782211089372),(6.366732867789951 4.34669314711598),(6.521964885470061 5.565308265203652),(6.678652025552896 3.741148890192884),(6.749804972479449 2.9127827899047984),(6.864792393175456 1.5740935946074899),(7.607159315043259 0.7607007174899763),(7.809094413356824 0.5394454786452623),(8.184175358475203 0.8184011678241642),(8.314626170828312 0.5651504832624566)),LINESTRING(1 8,9 -0.7654),MULTILINESTRING((5 0,2.7597928441960367 -0.6195528193173043),(1.775131641068095 -0.6086123824033698,1 -0.34285478796218644),(1 0.09999800003999926,6.014223362843059 0.6014103080781297,7.267997404338554 0.7267852047297609),(7.642921243007735 0.530995995407173,6.01451790886655 0.44819582587433615),(-0.6159558538577858 0.11105309217672277,-1.0710967783936887 0.824525345172105,1 1.8122450536837855,2.1656295600705677 2.3681414759641783,2.232432 2.4),(1 -1032.34324,-1032.34324 -7,-9.425842657009719 -0.07062599896532706),(1 -1032.34324,-1032.34324 -7,1 0,0.9353243308592405 0.5820810222668358),(0.8850980392156863 1.0341176470588236,0.8653527872903526 1.2118249143868265,0.6658833657166321 3.007049708550308,0.5555555555555556 4),(4.818759065979881 8.127503626391952,4.8422953496841235 7.201912791403436),(4.851096941208207 6.855780302928425,4.87390175403246 5.958955383200179),(4.923714833332804 4.000000000000028,4.931988965065491 3.67461046121388,4.9490686504210935 3.002932619958754),(4.975465706384498 1.9648386975099186,4.9765189274243795 1.9234195952429616,4.987954333338013 1.4737093928576428),(4.98964009527577 1.4074149081731946,4.997132111722381 1.1127829328916619),(6.252618890656156 8.701047556262463,6.278579228917415 8.398816024097846),(6.34223193789655 7.65776806210345,6.38189994395877 7.19595118863109,6.489622787505965 5.941836557043759),(6.65641787175112 4,6.6879049135354105 3.6334263141710057),(6.736617790481372 3.0663086099500996,6.742209554837968 3.001209014868172),(6.778231154860737 2.581843779471811,6.855428333499585 1.6831104369397565,6.856221115174684 1.6738808337687203),(6.92205495631125 0.9074400241480589,7 0,7.00193752755703 -0.6666867128236821),(7 0,10.0002 -1032.34324,7.19822834951391 -615.2843816965766),(3.0686821851493917 -0.6229848468383352,3.0599053207576734 0.683405616483924,3.056959772078886 1.1218351662041641),(3.0559864247872506 1.266712831227096,3.055710429508456 1.3077932882156347),(3.0545138694844614 1.4858950036318674,3.0454709427987376 2.8318874509911893,3.0447971012912785 2.9321852429868613),(3.044309490834742 3.004763514884919,3.0376230858794173 4),(3.026278613514555 5.688565511261913,3.024330366640106 5.978551891748793,3.021168772806692 6.449138635320651),(2.003560729594184 6.900423597601892,2.517574709397424 6.337231330280977,2.843182344770838 5.9804711843932115),(4.650717594177106 4,4.954672345398416 3.66696437795559,5.561257516116146 3.002344171029442),(6.010554091463437 2.5100611458358344,6.143355087689498 2.36455441429581,6.77600593280985 1.6713746995685672,6.781067671450078 1.665828679083936),(7.975149847761971 0.35750269055340267,8.92945268624466 -0.6881030720011179),(8.79567904259395 -0.6866167312125725,6.014638027896728 0.3857133153539962),(4.4458861583671405 0.9906018288328557,3.8150313209483655 1.233850523696011),(3.583284020325487 1.3232090021777307,3.3563815059468847 1.4106993996669466),(3.0966996066611596 1.5108290639480293,2.183697454428104 1.862869769297358),(1.8925403055915835 1.9751358442383773,1 2.319286751182747),(-0.7286285204098598 3.008390142968978,1 3.402811052547517,1.7958482044428012 3.584399617688366),(2.1194969917738806 3.658246512828595,3.6172999999999997 4),(6.006641700797518 4.545175736600186,8 5,6.007299668007257 4.202919867203036),(5.5 4,4.798780487804878 3.7195121951219514,3.5884518755955996 3.2353807502382397,3.011986461167452 3.004794584466981)),POINT(-9.425842657009722 -0.07062599896532756),POINT(-1.0710967783936893 0.8245253451721046),POINT(-0.6159558538577823 0.11105309217672288),POINT(-0.4103840779064605 0.12150589434373948),POINT(0.6658833657165815 3.007049708550308),POINT(1 0.09999800003999848),POINT(1 0.1932203389830507),POINT(1 2.319286751182748),POINT(1.7958482044428017 3.584399617688366),POINT(2.183697454428104 1.8628697692973573),POINT(2.517574709397425 6.337231330280977),POINT(3.0147408839139533 7.405896353565595),POINT(3.024330366640105 5.978551891748793),POINT(3.0355143686115698 4.31387156114215),POINT(3.044309490834621 3.0047635148849197),POINT(3.068682185149391 -0.6229848468381078),POINT(3.0736043130969715 5.728003594247476),POINT(3.096699606661158 1.5108290639480284),POINT(3.8256403046067464 4.047536975975254),POINT(4.6372529469906745 4.014752877305993),POINT(4.918034043140146 4.223403465215238),POINT(4.931988965065489 3.6746104612138804),POINT(4.949068650421168 3.002932619958754),POINT(4.959020578899399 2.6115618366298747),POINT(4.989640095275769 1.407414908173223),POINT(5.060546055317748 4.3293052354297),POINT(5.561257516116257 3.002344171029442),POINT(5.581905534979697 2.979720652961121),POINT(6.006641700797517 4.545175736600159),POINT(6.007299668007257 4.202919867202903),POINT(6.010554091463437 2.510061145835798),POINT(6.014223362843059 0.6014103080781439),POINT(6.01451790886655 0.44819582587457063),POINT(6.014638027896727 0.38571331535397135),POINT(6.381899943958768 7.19595118863109),POINT(6.489622787505977 5.941836557043759),POINT(6.5340770841083 5.424297454193579),POINT(6.736617790481368 3.066308609950101),POINT(6.7422095548379275 3.001209014868172),POINT(6.855428333499582 1.683110436939785),POINT(6.868783766954554 1.527625825175619),POINT(6.900738424652399 1.5347084265689828),POINT(6.92205495631125 0.9074400241480305),POINT(7.642921243007737 0.5309959954071728),POINT(7.975149847761969 0.35750269055340356)) +GEOMETRYCOLLECTION(MULTIPOINT((-0.3372510562 3.0976906801),(-0.3348537979 2.8339874793),(-0.3198433036 1.1828030804),(-0.3102416127 0.1265978841),(-0.3090101325 -0.0088674030),(-0.2338905689 -0.0083585334),(-0.2246031746 0.1309523810),(-0.1490496190 1.2642557146),(-0.0516800214 2.7247996797),(-0.0220256254 3.1696156193),(0.0006909947 9.6245396709),(0.2291666667 6.9375000000),(0.4037058684 -0.1384124899),(0.4906053100 -0.0034507051),(0.5267424688 0.0526731934),(0.5827047144 -0.1997831013),(0.6042825300 0.1730991117),(0.7870372296 -0.0014426372),(0.8790860446 0.0879068463),(0.9253601792 0.6717583871),(0.9794121261 0.1852908655),(0.9868946509 0.1925539653),(1.7900313280 2.0146618549),(1.9520445749 2.2662813883),(2.5587058793 1.7182718293),(2.9738176599 3.8531767312),(3.0188456363 6.7949253770),(3.0256607305 5.7805341792),(3.0379404331 3.9527645278),(3.0497503740 2.1949164443),(4.4726040206 4.1951545898),(4.4953782801 3.5981513120),(4.8532261085 6.7720484046),(4.8974296564 5.0336941524),(4.9233692253 4.0135914228),(4.9315388650 3.6923111541),(5.3064159905 4.3854053416),(5.5336194665 4.4372463245),(5.8504707834 4.1401883134),(6.2373749654 4.5978221109),(6.3667328678 4.3466931471),(6.5219648855 5.5653082652),(6.6786520256 3.7411488902),(6.7498049725 2.9127827899),(6.8647923932 1.5740935946),(7.6071593150 0.7607007175),(7.8090944134 0.5394454786),(8.1841753585 0.8184011678),(8.3146261708 0.5651504833)),LINESTRING(1 8,9 -0.7654),MULTILINESTRING((5 0,2.7597928442 -0.6195528193),(1.7751316411 -0.6086123824,1 -0.3428547880),(1 0.0999980000,6.0142233628 0.6014103081,7.2679974043 0.7267852047),(7.6429212430 0.5309959954,6.0145179089 0.4481958259),(-0.6159558539 0.1110530922,-1.0710967784 0.8245253452,1 1.8122450537,2.1656295601 2.3681414760,2.232432 2.4),(1 -1032.34324,-1032.34324 -7,-9.4258426570 -0.0706259990),(1 -1032.34324,-1032.34324 -7,1 0,0.9353243309 0.5820810223),(0.8850980392 1.0341176471,0.8653527873 1.2118249144,0.6658833657 3.0070497086,0.5555555556 4),(4.8187590660 8.1275036264,4.8422953497 7.2019127914),(4.8510969412 6.8557803029,4.8739017540 5.9589553832),(4.9237148333 4.0000000000,4.9319889651 3.6746104612,4.9490686504 3.0029326200),(4.9754657064 1.9648386975,4.9765189274 1.9234195952,4.9879543333 1.4737093929),(4.9896400953 1.4074149082,4.9971321117 1.1127829329),(6.2526188907 8.7010475563,6.2785792289 8.3988160241),(6.3422319379 7.6577680621,6.3818999440 7.1959511886,6.4896227875 5.9418365570),(6.6564178718 4,6.6879049135 3.6334263142),(6.7366177905 3.0663086100,6.7422095548 3.0012090149),(6.7782311549 2.5818437795,6.8554283335 1.6831104369,6.8562211152 1.6738808338),(6.9220549563 0.9074400241,7 0,7.0019375276 -0.6666867128),(7 0,10.0002 -1032.34324,7.1982283495 -615.2843816966),(3.0686821851 -0.6229848468,3.0599053208 0.6834056165,3.0569597721 1.1218351662),(3.0559864248 1.2667128312,3.0557104295 1.3077932882),(3.0545138695 1.4858950036,3.0454709428 2.8318874510,3.0447971013 2.9321852430),(3.0443094908 3.0047635149,3.0376230859 4),(3.0262786135 5.6885655113,3.0243303666 5.9785518917,3.0211687728 6.4491386353),(2.0035607296 6.9004235976,2.5175747094 6.3372313303,2.8431823448 5.9804711844),(4.6507175942 4,4.9546723454 3.6669643780,5.5612575161 3.0023441710),(6.0105540915 2.5100611458,6.1433550877 2.3645544143,6.7760059328 1.6713746996,6.7810676715 1.6658286791),(7.9751498478 0.3575026906,8.9294526862 -0.6881030720),(8.7956790426 -0.6866167312,6.0146380279 0.3857133154),(4.4458861584 0.9906018288,3.8150313209 1.2338505237),(3.5832840203 1.3232090022,3.3563815059 1.4106993997),(3.0966996067 1.5108290639,2.1836974544 1.8628697693),(1.8925403056 1.9751358442,1 2.3192867512),(-0.7286285204 3.0083901430,1 3.4028110525,1.7958482044 3.5843996177),(2.1194969918 3.6582465128,3.6173000000 4),(6.0066417008 4.5451757366,8 5,6.0072996680 4.2029198672),(5.5 4,4.7987804878 3.7195121951,3.5884518756 3.2353807502,3.0119864612 3.0047945845)),POINT(-9.4258426570 -0.0706259990),POINT(-1.0710967784 0.8245253452),POINT(-0.6159558539 0.1110530922),POINT(-0.4103840779 0.1215058943),POINT(0.6658833657 3.0070497086),POINT(1 0.0999980000),POINT(1 0.1932203390),POINT(1 2.3192867512),POINT(2.1836974544 1.8628697693),POINT(2.5175747094 6.3372313303),POINT(3.0147408839 7.4058963536),POINT(3.0355143686 4.3138715611),POINT(3.0443094908 3.0047635149),POINT(3.0736043131 5.7280035942),POINT(3.8256403046 4.0475369760),POINT(4.6372529470 4.0147528773),POINT(4.8739017540 5.9589553832),POINT(4.9180340431 4.2234034652),POINT(4.9490686504 3.0029326200),POINT(4.9590205789 2.6115618366),POINT(5.0605460553 4.3293052354),POINT(5.5612575161 3.0023441710),POINT(5.5819055350 2.9797206530),POINT(6.0066417008 4.5451757366),POINT(6.0072996680 4.2029198672),POINT(6.0105540915 2.5100611458),POINT(6.0142233628 0.6014103081),POINT(6.0145179089 0.4481958259),POINT(6.0146380279 0.3857133154),POINT(6.4896227875 5.9418365570),POINT(6.5340770841 5.4242974542),POINT(6.6879049135 3.6334263142),POINT(6.7366177905 3.0663086100),POINT(6.7422095548 3.0012090149),POINT(6.8687837670 1.5276258252),POINT(6.9007384247 1.5347084266),POINT(6.9220549563 0.9074400241),POINT(7.6429212430 0.5309959954),POINT(7.9751498478 0.3575026906),POINT(8.9294526862 -0.6881030720)) SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('MULTILINESTRING((-.4 2, 2.232432 3, 6 9, 8 189.7654, -1032.34324 5.4, 2.232432 9),' '(-1032.34324 3, 8 -1.6),' @@ -2286,7 +2286,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB(GEOMETRYCOLLECTION( MULTIPOINT(POINT(8,-6.0), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), MULTIPOINT(POINT(8,-0.7654), POINT(2,7), POINT(8,-0.7654), POINT(-.0,7), POINT(.0,6), POINT( -GEOMETRYCOLLECTION(MULTILINESTRING((-0.7654 2.232432,3.6737899158554317 2.099559283781633),(3.927301157948162 4.545468302232982,2.8 4)),POINT(3.927301157948163 4.545468302232982)) +GEOMETRYCOLLECTION(MULTILINESTRING((-0.7654 2.232432,3.6737899159 2.0995592838),(3.9273011579 4.5454683022,2.8 4)),POINT(3.6737899159 2.0995592838),POINT(3.9273011579 4.5454683022)) ###################################################################################################### # BUG#20408240 : ST_DIFFERENCE : ASSERTION `T1->RESULT_RANGE' FAILED ###################################################################################################### @@ -2527,7 +2527,7 @@ ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,-7 -6,11 0,18 13,-14 11,0 0),(6 9,4 -2,-1 3, ###################################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) -POLYGON((-1 0,-0.9807 -0.1950,-0.9238 -0.3826,-0.8314 -0.5555,-0.7071 -0.7071,-0.5555 -0.8314,-0.3826 -0.9238,-0.1950 -0.9807,6.12e-17 -1,0.1950 -0.9807,0.3826 -0.9238,0.5555 -0.8314,0.7071 -0.7071,0.8314 -0.5555,0.9238 -0.3826,0.9807 -0.1950,1 0,1 1,1 1,0.9807 1.1950,0.9238 1.3826,0.8314 1.5555,0.7071 1.7071,0.5555 1.8314,0.3826 1.9238,0.1950 1.9807,1.1714e-15 2,-0.1950 1.9807,-0.3826 1.9238,-0.5555 1.8314,-0.7071 1.7071,-0.8314 1.5555,-0.9238 1.3826,-0.9807 1.1950,-1 1,-1 0)) +POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0.0000 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 1,1 1,0.9808 1.1951,0.9239 1.3827,0.8315 1.5556,0.7071 1.7071,0.5556 1.8315,0.3827 1.9239,0.1951 1.9808,0.0000 2,-0.1951 1.9808,-0.3827 1.9239,-0.5556 1.8315,-0.7071 1.7071,-0.8315 1.5556,-0.9239 1.3827,-0.9808 1.1951,-1 1,-1 0)) ###################################################################################################### # BUG#19894465 : WL#7929 : BOOST GEOMETRY BUFFER BUGS ###################################################################################################### @@ -2537,7 +2537,7 @@ ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) > 0 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) -POLYGON((-1 0,-0.9807 -0.1950,-0.9238 -0.3826,-0.8314 -0.5555,-0.7071 -0.7071,-0.5555 -0.8314,-0.3826 -0.9238,-0.1950 -0.9807,6.12e-17 -1,0.1950 -0.9807,0.3826 -0.9238,0.5555 -0.8314,0.7071 -0.7071,0.8314 -0.5555,0.9238 -0.3826,0.9807 -0.1950,1 0,1 1,1 1,0.9807 1.1950,0.9238 1.3826,0.8314 1.5555,0.7071 1.7071,0.5555 1.8314,0.3826 1.9238,0.1950 1.9807,1.1714e-15 2,-0.1950 1.9807,-0.3826 1.9238,-0.5555 1.8314,-0.7071 1.7071,-0.8314 1.5555,-0.9238 1.3826,-0.9807 1.1950,-1 1,-1 0)) +POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0.0000 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 1,1 1,0.9808 1.1951,0.9239 1.3827,0.8315 1.5556,0.7071 1.7071,0.5556 1.8315,0.3827 1.9239,0.1951 1.9808,0.0000 2,-0.1951 1.9808,-0.3827 1.9239,-0.5556 1.8315,-0.7071 1.7071,-0.8315 1.5556,-0.9239 1.3827,-0.9808 1.1951,-1 1,-1 0)) # Scenario 2 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) > 0; ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) > 0 @@ -2546,7 +2546,7 @@ SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON(1 1,1 1,1 1,1 1)'), 1)) > 0; ERROR 22023: Invalid GIS data provided to function st_geometryfromtext. SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) -POLYGON((2 1,1.9807 1.1950,1.9238 1.3826,1.8314 1.5555,1.7071 1.7071,1.5555 1.8314,1.3826 1.9238,1.1950 1.9807,1.0000 2,0.8049 1.9807,0.6173 1.9238,0.4444 1.8314,0.2928 1.7071,0.1685 1.5555,0.0761 1.3826,0.0192 1.1950,0 1.0000,0.0192 0.8049,0.0761 0.6173,0.1685 0.4444,0.2928 0.2928,0.4444 0.1685,0.6173 0.0761,0.8049 0.0192,1 0,1.1950 0.0192,1.3826 0.0761,1.5555 0.1685,1.7071 0.2928,1.8314 0.4444,1.9238 0.6173,1.9807 0.8049,2 1)) +POLYGON((2 1,1.9808 1.1951,1.9239 1.3827,1.8315 1.5556,1.7071 1.7071,1.5556 1.8315,1.3827 1.9239,1.1951 1.9808,1.0000 2,0.8049 1.9808,0.6173 1.9239,0.4444 1.8315,0.2929 1.7071,0.1685 1.5556,0.0761 1.3827,0.0192 1.1951,0 1.0000,0.0192 0.8049,0.0761 0.6173,0.1685 0.4444,0.2929 0.2929,0.4444 0.1685,0.6173 0.0761,0.8049 0.0192,1 0,1.1951 0.0192,1.3827 0.0761,1.5556 0.1685,1.7071 0.2929,1.8315 0.4444,1.9239 0.6173,1.9808 0.8049,2 1)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON(1 1,1 1,1 1,1 1)'), 1)); ERROR 22023: Invalid GIS data provided to function st_geometryfromtext. # Scenario 3 @@ -2555,7 +2555,7 @@ ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))'), 1)) -POLYGON((1 7,8 7,8.1950 7.0192,8.3826 7.0761,8.5555 7.1685,8.7071 7.2928,8.8314 7.4444,8.9238 7.6173,8.9807 7.8049,9 8,9 10,8.9807 10.1950,8.9238 10.3826,8.8314 10.5555,8.7071 10.7071,8.5555 10.8314,8.3826 10.9238,8.1950 10.9807,8 11,-10 11,-10.1950 10.9807,-10.3826 10.9238,-10.5555 10.8314,-10.7071 10.7071,-10.8314 10.5555,-10.9238 10.3826,-10.9807 10.1950,-11 10,-11 0,-10.9807 -0.1950,-10.9238 -0.3826,-10.8314 -0.5555,-10.7071 -0.7071,-10.5555 -0.8314,-10.3826 -0.9238,-10.1950 -0.9807,-10 -1,0 -1,0.1950 -0.9807,0.3826 -0.9238,0.5555 -0.8314,0.7071 -0.7071,0.8314 -0.5555,0.9238 -0.3826,0.9807 -0.1950,1 0,1 7)) +POLYGON((1 7,8 7,8.1951 7.0192,8.3827 7.0761,8.5556 7.1685,8.7071 7.2929,8.8315 7.4444,8.9239 7.6173,8.9808 7.8049,9 8,9 10,8.9808 10.1951,8.9239 10.3827,8.8315 10.5556,8.7071 10.7071,8.5556 10.8315,8.3827 10.9239,8.1951 10.9808,8 11,-10 11,-10.1951 10.9808,-10.3827 10.9239,-10.5556 10.8315,-10.7071 10.7071,-10.8315 10.5556,-10.9239 10.3827,-10.9808 10.1951,-11 10,-11 0,-10.9808 -0.1951,-10.9239 -0.3827,-10.8315 -0.5556,-10.7071 -0.7071,-10.5556 -0.8315,-10.3827 -0.9239,-10.1951 -0.9808,-10 -1,0 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 7)) # Scenario 4 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)) > 0; ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)) > 0 @@ -2565,10 +2565,10 @@ ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)) > 0 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)) -POLYGON((-1 0,-0.9807 -0.1950,-0.9238 -0.3826,-0.8314 -0.5555,-0.7071 -0.7071,-0.5555 -0.8314,-0.3826 -0.9238,-0.1950 -0.9807,6.12e-17 -1,0.1950 -0.9807,0.3826 -0.9238,0.5555 -0.8314,0.7071 -0.7071,10.7071 9.2928,10.8236 9.4328,10.9128 9.5916,10.9717 9.7640,10.9984 9.9442,10.9919 10.1262,10.9526 10.3041,10.8816 10.4718,10.7814 10.6239,10.6553 10.7553,10.5074 10.8616,10.3427 10.9394,10.1666 10.9860,9.9850 10.9998,9.8038 10.9805,-0.1961 8.9805,-0.3835 8.9235,-0.5561 8.8310,-0.7075 8.7066,-0.8317 8.5551,-0.9239 8.3824,-0.9808 8.1949,-1 8,-1 0)) +POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0.0000 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,10.7071 9.2929,10.8236 9.4329,10.9128 9.5917,10.9718 9.7640,10.9984 9.9442,10.9920 10.1263,10.9526 10.3041,10.8817 10.4719,10.7815 10.6240,10.6553 10.7554,10.5074 10.8617,10.3427 10.9394,10.1666 10.9860,9.9850 10.9999,9.8039 10.9806,-0.1961 8.9806,-0.3835 8.9235,-0.5562 8.8311,-0.7075 8.7067,-0.8317 8.5552,-0.9240 8.3824,-0.9808 8.1949,-1 8,-1 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)) -POLYGON((0.0100 0.8585,0.0528 0.6793,0.1277 0.5109,0.2322 0.3592,0.3628 0.2292,0.5150 0.1254,0.6837 0.0513,0.8632 0.0094,1.0472 0.0011,1.2297 0.0267,1.4044 0.0854,1.5653 0.1751,1.7071 0.2928,10.7071 9.2928,10.8236 9.4328,10.9128 9.5916,10.9717 9.7640,10.9984 9.9442,10.9919 10.1262,10.9526 10.3041,10.8816 10.4718,10.7814 10.6239,10.6553 10.7553,10.5074 10.8616,10.3427 10.9394,10.1666 10.9860,9.9850 10.9998,9.8038 10.9805,-0.1961 8.9805,-0.3772 8.9261,-0.5448 8.8385,-0.6929 8.7209,-0.8163 8.5775,-0.9104 8.4135,-0.9720 8.2347,-0.9988 8.0474,-0.9899 7.8585,0.0100 0.8585)) +POLYGON((0.0101 0.8586,0.0528 0.6793,0.1277 0.5110,0.2322 0.3593,0.3628 0.2293,0.5151 0.1254,0.6838 0.0513,0.8632 0.0094,1.0473 0.0011,1.2298 0.0268,1.4044 0.0854,1.5654 0.1752,1.7071 0.2929,10.7071 9.2929,10.8236 9.4329,10.9128 9.5917,10.9718 9.7640,10.9984 9.9442,10.9920 10.1263,10.9526 10.3041,10.8817 10.4719,10.7815 10.6240,10.6553 10.7554,10.5074 10.8617,10.3427 10.9394,10.1666 10.9860,9.9850 10.9999,9.8039 10.9806,-0.1961 8.9806,-0.3772 8.9261,-0.5449 8.8385,-0.6930 8.7209,-0.8163 8.5776,-0.9105 8.4135,-0.9721 8.2347,-0.9989 8.0475,-0.9899 7.8586,0.0101 0.8586)) # Scenario 5 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)) > 0; ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)) > 0 @@ -2578,10 +2578,10 @@ ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,8 2,8 8,2 8,2 2))'), 1)) > 0 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)) -POLYGON((1 2,1.0192 1.8049,1.0761 1.6173,1.1685 1.4444,1.2928 1.2928,1.4444 1.1685,1.6173 1.0761,1.8049 1.0192,2 1,8 1,8.1950 1.0192,8.3826 1.0761,8.5555 1.1685,8.7071 1.2928,8.8314 1.4444,8.9238 1.6173,8.9807 1.8049,9 2,9 8,8.9807 8.1950,8.9238 8.3826,8.8314 8.5555,8.7071 8.7071,8.5555 8.8314,8.3826 8.9238,8.1950 8.9807,8 9,2 9,1.8049 8.9807,1.6173 8.9238,1.4444 8.8314,1.2928 8.7071,1.1685 8.5555,1.0761 8.3826,1.0192 8.1950,1 8,1 2)) +POLYGON((1 2,1.0192 1.8049,1.0761 1.6173,1.1685 1.4444,1.2929 1.2929,1.4444 1.1685,1.6173 1.0761,1.8049 1.0192,2 1,8 1,8.1951 1.0192,8.3827 1.0761,8.5556 1.1685,8.7071 1.2929,8.8315 1.4444,8.9239 1.6173,8.9808 1.8049,9 2,9 8,8.9808 8.1951,8.9239 8.3827,8.8315 8.5556,8.7071 8.7071,8.5556 8.8315,8.3827 8.9239,8.1951 8.9808,8 9,2 9,1.8049 8.9808,1.6173 8.9239,1.4444 8.8315,1.2929 8.7071,1.1685 8.5556,1.0761 8.3827,1.0192 8.1951,1 8,1 2)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,8 2,8 8,2 8,2 2))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,8 2,8 8,2 8,2 2))'), 1)) -POLYGON((1 2,1.0192 1.8049,1.0761 1.6173,1.1685 1.4444,1.2928 1.2928,1.4444 1.1685,1.6173 1.0761,1.8049 1.0192,2 1,8 1,8.1950 1.0192,8.3826 1.0761,8.5555 1.1685,8.7071 1.2928,8.8314 1.4444,8.9238 1.6173,8.9807 1.8049,9 2,9 8,8.9807 8.1950,8.9238 8.3826,8.8314 8.5555,8.7071 8.7071,8.5555 8.8314,8.3826 8.9238,8.1950 8.9807,8 9,2 9,1.8049 8.9807,1.6173 8.9238,1.4444 8.8314,1.2928 8.7071,1.1685 8.5555,1.0761 8.3826,1.0192 8.1950,1 8,1 2)) +POLYGON((1 2,1.0192 1.8049,1.0761 1.6173,1.1685 1.4444,1.2929 1.2929,1.4444 1.1685,1.6173 1.0761,1.8049 1.0192,2 1,8 1,8.1951 1.0192,8.3827 1.0761,8.5556 1.1685,8.7071 1.2929,8.8315 1.4444,8.9239 1.6173,8.9808 1.8049,9 2,9 8,8.9808 8.1951,8.9239 8.3827,8.8315 8.5556,8.7071 8.7071,8.5556 8.8315,8.3827 8.9239,8.1951 8.9808,8 9,2 9,1.8049 8.9808,1.6173 8.9239,1.4444 8.8315,1.2929 8.7071,1.1685 8.5556,1.0761 8.3827,1.0192 8.1951,1 8,1 2)) ###################################################################################################### # BUG#20510010 : ST_BUFFER() : MYSQLD GOT SIGNAL 11 ###################################################################################################### @@ -2595,7 +2595,7 @@ ST_BUFFER( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTILINESTRING((12 -12,-15 19),(2 -9,-4 -8,18 3,-9 -8),(13 11,-15 9,-16 6,-17 5)),' 'LINESTRING(14 -16,-3 18,-13 -7,-10 1))'), 6561)) -POLYGON((-549 6535,-849 6526,-1156 6456,-1273 6444,-1303 6438,-1347 6425,-1518 6401,-1773 6314,-2102 6238,-2405 6103,-2534 6063,-2579 6039,-2705 5996,-2933 5866,-3276 5712,-3536 5526,-3667 5456,-3712 5419,-3793 5373,-3986 5206,-4324 4966,-4533 4744,-4661 4639,-4701 4590,-4743 4554,-4795 4487,-4804 4480,-4888 4370,-4897 4358,-5206 4030,-5359 3786,-5476 3644,-5508 3583,-5519 3569,-5557 3495,-5585 3458,-5662 3303,-5889 2940,-5984 2690,-6081 2509,-6126 2358,-6153 2304,-6156 2296,-6207 2103,-6346 1738,-6387 1495,-6453 1278,-6467 1133,-6486 1062,-6502 812,-6560 470,-6553 245,-6577 -1,-6565 -129,-6570 -211,-6531 -515,-6522 -815,-6477 -1013,-6450 -1281,-6418 -1386,-6406 -1478,-6353 -1636,-6353 -1637,-6351 -1642,-6291 -1821,-6234 -2068,-6160 -2235,-6101 -2427,-6085 -2483,-6084 -2485,-6075 -2512,-6033 -2591,-6000 -2689,-5918 -2832,-5913 -2845,-5871 -2916,-5854 -2950,-5826 -2994,-5792 -3053,-5708 -3242,-5619 -3366,-5485 -3621,-5474 -3635,-5468 -3645,-5423 -3700,-5367 -3798,-5262 -3920,-5246 -3945,-5185 -4012,-5169 -4038,-5058 -4155,-5057 -4156,-4962 -4290,-4935 -4321,-4860 -4392,-4675 -4620,-4606 -4677,-4531 -4764,-4410 -4858,-4377 -4893,-4316 -4938,-4284 -4972,-4124 -5086,-3999 -5203,-3890 -5272,-3685 -5441,-3607 -5484,-3523 -5549,-3395 -5614,-3340 -5654,-3285 -5680,-3235 -5715,-3050 -5798,-2909 -5886,-2761 -5942,-2555 -6054,-2469 -6081,-2383 -6124,-2256 -6160,-2175 -6198,-2130 -6209,-2060 -6240,-1858 -6286,-1707 -6343,-1521 -6375,-1326 -6435,-1237 -6444,-1153 -6468,-1035 -6477,-925 -6504,-894 -6505,-806 -6525,-594 -6531,-439 -6557,-218 -6550,-47 -6568,42 -6560,120 -6566,224 -6554,359 -6560,375 -6557,479 -6560,691 -6524,846 -6519,1091 -6463,1233 -6450,1319 -6424,1388 -6416,1463 -6392,1582 -6372,1630 -6364,1634 -6363,1746 -6344,1949 -6266,2099 -6231,2356 -6116,2466 -6084,2493 -6073,2488 -6060,2498 -6057,2530 -6047,2532 -6046,2604 -6023,2646 -5999,2948 -5884,3132 -5768,3273 -5705,3582 -5485,3593 -5478,3663 -5440,3689 -5419,3720 -5402,3738 -5386,4036 -5199,4194 -5049,4321 -4959,4571 -4693,4657 -4623,4700 -4570,4854 -4424,4885 -4396,4887 -4392,4970 -4314,5095 -4138,5203 -4023,5383 -3736,5472 -3628,5513 -3550,5636 -3385,5652 -3352,5713 -3265,5800 -3070,5886 -2933,5996 -2645,6077 -2493,6100 -2414,6180 -2248,6198 -2180,6238 -2090,6284 -1886,6343 -1731,6389 -1460,6449 -1262,6456 -1185,6497 -1029,6503 -922,6523 -836,6529 -631,6557 -463,6550 -223,6573 17,6566 91,6575 228,6556 371,6558 449,6524 645,6519 822,6474 1020,6446 1297,6425 1366,6411 1477,6353 1650,6342 1716,6272 1897,6231 2075,6162 2229,6071 2528,6039 2589,6011 2672,5903 2863,5882 2918,5865 2952,5770 3103,5705 3249,5625 3360,5464 3661,5422 3713,5390 3768,5254 3928,5199 4015,5032 4194,4959 4297,4932 4328,4860 4395,4647 4655,4597 4695,4571 4726,4434 4835,4344 4932,4116 5097,3996 5210,3879 5283,3652 5470,3598 5498,3584 5509,3461 5573,3329 5669,3072 5789,2906 5893,2737 5957,2517 6075,2358 6123,2193 6200,1918 6269,1704 6350,1481 6388,1286 6447,1159 6459,976 6505,696 6520,436 6564,165 6556,6 6571,-84 6562,-275 6573,-549 6535)) +POLYGON((-549 6536,-849 6527,-1156 6456,-1274 6445,-1304 6439,-1348 6425,-1518 6402,-1773 6315,-2103 6239,-2405 6103,-2534 6064,-2580 6040,-2705 5997,-2933 5866,-3276 5712,-3537 5527,-3668 5456,-3713 5420,-3793 5373,-3987 5206,-4324 4967,-4534 4744,-4661 4639,-4702 4590,-4743 4554,-4796 4488,-4804 4480,-4888 4370,-4898 4359,-5207 4031,-5359 3787,-5476 3644,-5508 3584,-5520 3569,-5558 3495,-5586 3459,-5662 3304,-5889 2941,-5985 2690,-6081 2509,-6127 2359,-6153 2305,-6156 2297,-6208 2103,-6347 1739,-6388 1495,-6453 1278,-6467 1133,-6486 1063,-6503 812,-6560 470,-6554 246,-6578 -2,-6565 -129,-6571 -212,-6532 -515,-6523 -815,-6477 -1013,-6451 -1282,-6419 -1386,-6407 -1478,-6354 -1636,-6354 -1637,-6352 -1643,-6292 -1822,-6235 -2069,-6160 -2235,-6102 -2428,-6085 -2483,-6084 -2485,-6076 -2512,-6034 -2591,-6001 -2689,-5919 -2833,-5914 -2846,-5871 -2916,-5854 -2950,-5827 -2994,-5793 -3053,-5708 -3242,-5620 -3366,-5485 -3621,-5474 -3635,-5468 -3646,-5423 -3701,-5367 -3799,-5262 -3920,-5247 -3946,-5186 -4012,-5169 -4039,-5058 -4156,-5058 -4156,-4963 -4290,-4936 -4321,-4860 -4392,-4675 -4620,-4607 -4677,-4531 -4764,-4410 -4859,-4378 -4894,-4317 -4939,-4285 -4973,-4124 -5086,-4000 -5204,-3890 -5272,-3686 -5442,-3608 -5484,-3524 -5550,-3396 -5614,-3341 -5655,-3285 -5680,-3235 -5716,-3050 -5799,-2910 -5886,-2762 -5943,-2555 -6055,-2470 -6081,-2383 -6125,-2257 -6160,-2175 -6198,-2131 -6209,-2061 -6240,-1858 -6286,-1708 -6344,-1521 -6375,-1326 -6435,-1237 -6445,-1153 -6468,-1035 -6477,-926 -6504,-895 -6505,-807 -6525,-595 -6531,-439 -6557,-219 -6551,-47 -6569,42 -6561,120 -6567,224 -6554,359 -6560,376 -6558,479 -6560,691 -6524,846 -6520,1092 -6463,1233 -6450,1320 -6425,1389 -6416,1463 -6392,1582 -6372,1630 -6365,1635 -6363,1747 -6344,1950 -6266,2100 -6232,2356 -6117,2466 -6084,2493 -6073,2488 -6061,2499 -6057,2530 -6048,2533 -6046,2604 -6023,2647 -6000,2948 -5884,3133 -5768,3273 -5705,3583 -5485,3593 -5478,3664 -5440,3689 -5420,3720 -5402,3739 -5387,4037 -5199,4195 -5050,4321 -4960,4572 -4694,4657 -4623,4701 -4570,4854 -4425,4885 -4397,4888 -4393,4971 -4315,5095 -4138,5204 -4024,5384 -3736,5472 -3628,5514 -3551,5637 -3385,5652 -3353,5714 -3265,5801 -3070,5886 -2934,5996 -2645,6077 -2493,6101 -2415,6181 -2249,6198 -2181,6238 -2091,6285 -1886,6344 -1732,6389 -1461,6449 -1262,6457 -1185,6497 -1029,6504 -923,6523 -837,6529 -632,6557 -463,6550 -224,6574 18,6567 92,6575 228,6556 371,6558 449,6525 646,6520 822,6474 1021,6447 1298,6426 1366,6411 1478,6353 1650,6342 1717,6273 1898,6232 2076,6163 2230,6072 2528,6039 2589,6011 2672,5903 2863,5882 2918,5865 2952,5770 3104,5705 3249,5626 3360,5464 3662,5422 3713,5391 3769,5254 3929,5200 4015,5033 4194,4960 4297,4933 4328,4861 4396,4647 4655,4598 4696,4572 4726,4435 4835,4344 4932,4117 5098,3997 5211,3880 5284,3652 5470,3599 5499,3585 5510,3461 5574,3330 5670,3072 5790,2907 5893,2737 5958,2517 6075,2359 6123,2193 6200,1918 6269,1705 6351,1482 6388,1286 6447,1160 6460,977 6505,696 6521,436 6564,165 6556,6 6572,-85 6563,-276 6573,-549 6536)) ###################################################################################################### # BUG#20510359 : ST_BUFFER() RETURNS NULL INSTEAD OF AN EMPTY GEOMETRY ###################################################################################################### @@ -2622,10 +2622,10 @@ ERROR HY000: Geometry byte string must be little endian. ###################################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,10 10,10 0,0 10)'), 20, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,10 10,10 0,0 10)'), 20, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((-10 0,-14.1421 -4.1421,-4.1421 -14.1421,-1.1114 -16.6293,2.3463 -18.4775,6.0981 -19.6157,10.0000 -20,13.9018 -19.6157,17.6536 -18.4775,21.1114 -16.6293,24.1421 -14.1421,26.6293 -11.1114,28.4775 -7.6536,29.6157 -3.9018,30 0,30 10,29.6157 13.9018,28.4775 17.6536,26.6293 21.1114,24.1421 24.1421,21.1114 26.6293,17.6536 28.4775,13.9018 29.6157,10.0000 30,6.0981 29.6157,2.3463 28.4775,-1.1114 26.6293,-4.1421 24.1421,-14.1421 14.1421,-10 10,-10 0)) +POLYGON((-10 0,-14.1421 -4.1421,-4.1421 -14.1421,-1.1114 -16.6294,2.3463 -18.4776,6.0982 -19.6157,10.0000 -20,13.9018 -19.6157,17.6537 -18.4776,21.1114 -16.6294,24.1421 -14.1421,26.6294 -11.1114,28.4776 -7.6537,29.6157 -3.9018,30 0,30 10,29.6157 13.9018,28.4776 17.6537,26.6294 21.1114,24.1421 24.1421,21.1114 26.6294,17.6537 28.4776,13.9018 29.6157,10.0000 30,6.0982 29.6157,2.3463 28.4776,-1.1114 26.6294,-4.1421 24.1421,-14.1421 14.1421,-10 10,-10 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,10 10),(10 0,0 10))'), 50, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,10 10),(10 0,0 10))'), 50, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((5.0000 14.9999,-25.3553 45.3553,-35.3553 35.3553,-4.9999 4.9999,-35.3553 -25.3553,-25.3553 -35.3553,4.9999 -4.9999,35.3553 -35.3553,45.3553 -25.3553,14.9999 5.0000,45.3553 35.3553,35.3553 45.3553,5.0000 14.9999)) +POLYGON((5.0000 15.0000,-25.3553 45.3553,-35.3553 35.3553,-5.0000 5.0000,-35.3553 -25.3553,-25.3553 -35.3553,5.0000 -5.0000,35.3553 -35.3553,45.3553 -25.3553,15.0000 5.0000,45.3553 35.3553,35.3553 45.3553,5.0000 15.0000)) ###################################################################################################### # BUG#20558350 : ST_BUFFER RETURNS INCORRECT RESULT WITH NEGATIVE DISTANCE AND POLYGON WITH HOLE ###################################################################################################### @@ -2655,7 +2655,7 @@ GEOMETRYCOLLECTION(MULTIPOLYGON(((4 1,4 4,1 4,1 1,4 1))),MULTIPOLYGON(((19 11,19 ###################################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(5 13,9 -10,12 -7,-1 -16,-18 15,-13 -10,-1 5,12 -7)'), 1, ST_BUFFER_STRATEGY('point_circle',1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(5 13,9 -10,12 -7,-1 -16,-18 15,-13 -10,-1 5,12 -7)'), 1, ST_BUFFER_STRATEGY('point_circle',1))) -MULTIPOLYGON(((6 13,4.5 13.8660,4.5 12.1339,6 13)),((10 -10,8.5 -9.1339,8.5 -10.8660,10 -10)),((0 -16,-1.5000 -15.1339,-1.4999 -16.8660,0 -16)),((-17 15,-18.5 15.8660,-18.5 14.1339,-17 15)),((-12 -10,-13.5 -9.1339,-13.5 -10.8660,-12 -10)),((0 5,-1.5000 5.8660,-1.4999 4.1339,0 5)),((11.5 -7.8660,13 -7,11.5 -6.1339,11.5 -7.8660))) +MULTIPOLYGON(((6 13,4.5 13.8660,4.5 12.1340,6 13)),((10 -10,8.5 -9.1340,8.5 -10.8660,10 -10)),((0 -16,-1.5000 -15.1340,-1.5000 -16.8660,0 -16)),((-17 15,-18.5 15.8660,-18.5 14.1340,-17 15)),((-12 -10,-13.5 -9.1340,-13.5 -10.8660,-12 -10)),((0 5,-1.5000 5.8660,-1.5000 4.1340,0 5)),((11.5 -7.8660,13 -7,11.5 -6.1340,11.5 -7.8660))) ###################################################################################################### # BUG#20451555 : ASSERTION FAILED: INDEX >= 0 && UNSIGNED(INDEX) < INFO.COUNT ###################################################################################################### diff --git a/mysql-test/suite/gis/t/gis_bugs_crashes.test b/mysql-test/suite/gis/t/gis_bugs_crashes.test index be5f030..59d6ded 100644 --- a/mysql-test/suite/gis/t/gis_bugs_crashes.test +++ b/mysql-test/suite/gis/t/gis_bugs_crashes.test @@ -1267,24 +1267,24 @@ SELECT ST_ASTEXT(ST_ENVELOPE(ST_GEOMFROMTEXT(@star_of_elems))); SELECT ST_ASTEXT(ST_CENTROID(ST_GEOMFROMTEXT(@star_of_elems))); SELECT ST_ASTEXT(ST_CONVEXHULL(ST_GEOMFROMTEXT(@star_of_elems))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1)); SET @buf = ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT st_area(@buf); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(@buf, 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_CENTROID(@buf)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_CONVEXHULL(@buf)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_ENVELOPE(@buf)); SELECT ST_DISTANCE(ST_GEOMFROMTEXT(@star_of_elems),ST_GEOMFROMTEXT(@star_top)) as result; @@ -1363,6 +1363,7 @@ SELECT ST_ASTEXT(ST_SYMDIFFERENCE( --echo # BUG#20133571 : ASSERTION `GRES->HAS_GEOM_HEADER_SPACE()' FAILED --echo ###################################################################################################### +--replace_numberic_round 10 SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('MULTILINESTRING((-10 3,-9 -4,-9 3,-1 3),' '(3 10,7 9,-7 2,2 -9,7 10,7 8,3 -4,-9 -1,-5 -8,-7 5,4 9,-3 -6,9 1),' @@ -1634,7 +1635,7 @@ SELECT ST_ASTEXT( ST_GEOMFROMTEXT('MULTIPOLYGON(((2 9,-2 9,-3 -5)),((-10 6,1 6,3 -4,-1 6)))'), ST_GEOMFROMTEXT('MULTIPOINT(8 -2,-2 -5,9 -9,-4 -10,-9 -4,10 -3,9 10,-1 -5,-3 3)'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ /([0-9]*.[0-9]{2})[0-9]*(e[-+]*[0-9]+)/12/ +--replace_numberic_round 4 SELECT ST_ASTEXT( ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('MULTIPOLYGON(((-2 3,3 2,-7 4,-8 -4,-8 8,4 3,-10 -4,0 6,-4 7,-9 3,-6 0,-1 -8,-5 -3,2 -6,-7 -7, -2 3)),' @@ -1857,6 +1858,7 @@ SELECT ST_ASTEXT(ST_SYMDIFFERENCE( 'MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2)),' 'LINESTRING(-1 -2,10 -7,8 -5))'))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2),(-1 -2,10 -7,8 -5))'))); @@ -1919,6 +1921,7 @@ SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('LINESTRING(-2 -2,-4 0,1 -8,-2 6,8 5,-7 -8,3 0,4 -1,-7 10,-4 10)'), ST_GEOMFROMTEXT('LINESTRING(-5 -4,3 0,4 -1,7 -4,2 -1,-4 -1,-2 6)'))); +--replace_numberic_round 10 SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB( ST_ASWKB( @@ -1940,6 +1943,7 @@ SELECT ST_ASTEXT(ST_INTERSECTION( 'MULTILINESTRING((5 10.0002,2 7,-0.7654 0,5 3),' '(0 -0.7654,4 10.0002,4 +.1,-.8 3,-.1 8,10.0002 2,+.9 -1032.34324)))'))); +#--replace_numberic_round 10 --error ER_BOOST_GEOMETRY_INCONSISTENT_TURNS_EXCEPTION SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB( @@ -1967,6 +1971,7 @@ SELECT ST_ASTEXT(ST_UNION( 'POLYGON((7 2, 6.9 +.6, -0.7654 -.5, 2.4 7, 7 3, 7 2)))'), ST_GEOMFROMWKB(POLYGON(LINESTRING(POINT(7,9), POINT(7,3), POINT(7,6), POINT(0,6), POINT(7,9)))))); +--replace_numberic_round 10 SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' @@ -2080,6 +2085,7 @@ SELECT ST_ASTEXT(ST_SYMDIFFERENCE( --echo # BUG#20462962 : ASSERTION `GEOMETRY::IS_VALID_GEOTYPE(GT)' FAILED --echo ###################################################################################################### +--replace_numberic_round 10 SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB(GEOMETRYCOLLECTION( MULTIPOINT(POINT(8,-6.0), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), @@ -2272,7 +2278,7 @@ SELECT ST_ASTEXT(ST_SIMPLIFY(ST_GEOMFROMTEXT('MULTIPOINT(19 -4,-2 -6,-8 2)'), 1) --echo # BUG#20534576 : WL#7929 : ST_BUFFER() : ASSERTION FAILURE IN SPATIAL.H FILE --echo ###################################################################################################### ---replace_regex /([0-9]+).[0-9]+/1/ /([0-9]*[0-9]{3})[0-9]{2}/155/ /([0-9]{3})[0-9]{1}/15/ /([0-9]{2})[0-9]{1}/15/ +--replace_numberic_round 5 SELECT ST_ASTEXT( ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), @@ -2318,7 +2324,7 @@ SELECT ST_ISVALID( --echo # BUG#20518038 : WL#7929 : ST_BUFFER() IS PRODUCING NON-CLOSED POLYGONS --echo ###################################################################################################### ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); --echo ###################################################################################################### @@ -2328,7 +2334,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); --echo # Scenario 1 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) > 0; ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); --echo # Scenario 2 @@ -2337,7 +2343,7 @@ SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) > 0; --error ER_GIS_INVALID_DATA SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON(1 1,1 1,1 1,1 1)'), 1)) > 0; ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)); --error ER_GIS_INVALID_DATA @@ -2346,7 +2352,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON(1 1,1 1,1 1,1 1)'), 1)); --echo # Scenario 3 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))'), 1)) > 0; ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0, 0 8, 8 8, 8 10, -10 10, -10 0, 0 0))'), 1)); --echo # Scenario 4 @@ -2354,10 +2360,10 @@ SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)) > SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)) > 0; ---replace_regex /([0-9]*.[0-9]{2})[0-9]+(e.+)/12/ /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)); --echo # Scenario 5 @@ -2365,17 +2371,17 @@ SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)) SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,8 2,8 8,2 8,2 2))'), 1)) > 0; ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,8 2,8 8,2 8,2 2))'), 1)); --echo ###################################################################################################### --echo # BUG#20510010 : ST_BUFFER() : MYSQLD GOT SIGNAL 11 --echo ###################################################################################################### ---replace_regex /([0-9]+).[0-9]*/1/ +--replace_numberic_round 0 SELECT ST_ASTEXT( ST_BUFFER( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' @@ -2386,13 +2392,13 @@ SELECT ST_ASTEXT( --echo # BUG#20510359 : ST_BUFFER() RETURNS NULL INSTEAD OF AN EMPTY GEOMETRY --echo ###################################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 0,10 10,0 10,0 0))'), -10)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 0,10 10,0 10,0 0))'), -8)); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 0,10 10,0 10,0 0))'), -6)); --echo ###################################################################################################### @@ -2412,10 +2418,10 @@ SELECT ST_ASTEXT(ST_BUFFER(0x010100000002000000000000000000000000000000, 1)); --echo # BUG#20558289 : ST_BUFFER() RETURNS EMPTY GEOMETRY WITH [MULTI]LINESTRING GEOMETRY --echo ###################################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,10 10,10 0,0 10)'), 20, ST_BUFFER_STRATEGY('end_flat'))); ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,10 10),(10 0,0 10))'), 50, ST_BUFFER_STRATEGY('end_flat'))); --echo ###################################################################################################### @@ -2453,7 +2459,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5, --echo # BUG#20607166 : SERVER IS HANGING WITH MULTIPOINT GEOMETRY AND '1' AS POINT_PER_CIRCLE' VALUE --echo ###################################################################################################### ---replace_regex /([0-9]+.[0-9]{4})[0-9]*/1/ +--replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(5 13,9 -10,12 -7,-1 -16,-18 15,-13 -10,-1 5,12 -7)'), 1, ST_BUFFER_STRATEGY('point_circle',1))); --echo ###################################################################################################### From 6e16e5ab905f10d78263f08d31b748272b1e8976 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 16:42:39 +1000 Subject: [PATCH 09/17] test: use replace_numberic_round for gis.geometry_class_attri_prop --- mysql-test/suite/gis/r/geometry_class_attri_prop.result | 2 +- mysql-test/suite/gis/t/geometry_class_attri_prop.test | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mysql-test/suite/gis/r/geometry_class_attri_prop.result b/mysql-test/suite/gis/r/geometry_class_attri_prop.result index e023700..0ce5378 100644 --- a/mysql-test/suite/gis/r/geometry_class_attri_prop.result +++ b/mysql-test/suite/gis/r/geometry_class_attri_prop.result @@ -4448,7 +4448,7 @@ STD(ST_SRID(g)) 0 SELECT STD(ST_DIMENSION(g)) FROM gis_geometry; STD(ST_DIMENSION(g)) -0.8235059090550115 +0.8235059091 SELECT STD(ST_ISSIMPLE(g)) FROM gis_geometry; STD(ST_ISSIMPLE(g)) 0.3062463845869244 diff --git a/mysql-test/suite/gis/t/geometry_class_attri_prop.test b/mysql-test/suite/gis/t/geometry_class_attri_prop.test index 55e90d4..1cc9821 100644 --- a/mysql-test/suite/gis/t/geometry_class_attri_prop.test +++ b/mysql-test/suite/gis/t/geometry_class_attri_prop.test @@ -589,6 +589,7 @@ SELECT STD(ST_GEOMETRYTYPE(g)) FROM gis_geometry; SELECT STD(ST_SRID(g)) FROM gis_geometry; +--replace_numberic_round 10 SELECT STD(ST_DIMENSION(g)) FROM gis_geometry; SELECT STD(ST_ISSIMPLE(g)) FROM gis_geometry; From cb3d2c4bc37cb3077727aa7d4d2e3591932690a5 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 16:43:03 +1000 Subject: [PATCH 10/17] test: use replace_numberic_round for gis.spatial_operators_symdifference --- mysql-test/suite/gis/r/spatial_operators_symdifference.result | 8 ++++---- mysql-test/suite/gis/t/spatial_operators_symdifference.test | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_operators_symdifference.result b/mysql-test/suite/gis/r/spatial_operators_symdifference.result index 976be14..4f8cb3e 100644 --- a/mysql-test/suite/gis/r/spatial_operators_symdifference.result +++ b/mysql-test/suite/gis/r/spatial_operators_symdifference.result @@ -539,10 +539,10 @@ ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT('MULTILINESTRING((0 25,25 0,25 30))') GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 25,10 15),(25 0,25 11.875),(25 15,25 30))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_lines_near_vertical),ST_GEOMFROMTEXT(@star_collection_elems))); ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_lines_near_vertical),ST_GEOMFROMTEXT(@star_collection_elems))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_collection_elems))) FROM gis_geometrycollection WHERE fid=114; ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_collection_elems))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_lines_near_horizontal),ST_GEOMFROMTEXT(@star_collection_multilinestr))); ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_lines_near_horizontal),ST_GEOMFROMTEXT(@star_collection_multilinestr))) POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)) @@ -778,13 +778,13 @@ POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)) #==================================================================================== SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT(@star_lines_near_vertical))); ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT(@star_lines_near_vertical))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT('MULTILINESTRING((0 30,30 30,0 35))'))); ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT('MULTILINESTRING((0 30,30 30,0 35))'))) GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),LINESTRING(0 30,30 30,0 35)) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_lines_near_vertical))) FROM gis_geometrycollection WHERE fid=115; ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_lines_near_vertical))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) #==================================================================================== # geometrycollection,polygon #==================================================================================== diff --git a/mysql-test/suite/gis/t/spatial_operators_symdifference.test b/mysql-test/suite/gis/t/spatial_operators_symdifference.test index 99661b0..5f65774 100644 --- a/mysql-test/suite/gis/t/spatial_operators_symdifference.test +++ b/mysql-test/suite/gis/t/spatial_operators_symdifference.test @@ -487,8 +487,10 @@ SELECT ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_of_elems))) FROM gis_g --echo #==================================================================================== SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT('MULTILINESTRING((0 25,25 0,25 30))'),ST_GEOMFROMTEXT(@star_collection_elems))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_lines_near_vertical),ST_GEOMFROMTEXT(@star_collection_elems))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_collection_elems))) FROM gis_geometrycollection WHERE fid=114; SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_lines_near_horizontal),ST_GEOMFROMTEXT(@star_collection_multilinestr))); @@ -663,10 +665,12 @@ SELECT ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_top_to_center))) FROM --echo #==================================================================================== --echo # geometrycollection,multilinestring --echo #==================================================================================== +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT(@star_lines_near_vertical))); SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT('MULTILINESTRING((0 30,30 30,0 35))'))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_SYMDIFFERENCE(g,ST_GEOMFROMTEXT(@star_lines_near_vertical))) FROM gis_geometrycollection WHERE fid=115; --echo #==================================================================================== From 53a29f7210ca8935443e7c13222c56d9f486b084 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 16:43:23 +1000 Subject: [PATCH 11/17] test: use replace_numberic_round for gis.spatial_operators_union --- mysql-test/suite/gis/r/spatial_operators_union.result | 8 ++++---- mysql-test/suite/gis/t/spatial_operators_union.test | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_operators_union.result b/mysql-test/suite/gis/r/spatial_operators_union.result index 685c043..9100e33 100644 --- a/mysql-test/suite/gis/r/spatial_operators_union.result +++ b/mysql-test/suite/gis/r/spatial_operators_union.result @@ -541,10 +541,10 @@ ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT('MULTILINESTRING((0 25,25 0,25 30))'),ST_GEOM GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 25,10 15),(25 0,25 11.875),(25 15,25 30))) SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_lines_near_vertical),ST_GEOMFROMTEXT(@star_collection_elems))); ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_lines_near_vertical),ST_GEOMFROMTEXT(@star_collection_elems))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) SELECT ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_collection_elems))) FROM gis_geometrycollection WHERE fid=114; ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_collection_elems))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_lines_near_horizontal),ST_GEOMFROMTEXT(@star_collection_multilinestr))); ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_lines_near_horizontal),ST_GEOMFROMTEXT(@star_collection_multilinestr))) GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 15,15 30,6 15),(4.2 12,0 5))) @@ -802,13 +802,13 @@ POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)) #==================================================================================== SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT(@star_lines_near_vertical))); ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT(@star_lines_near_vertical))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT('MULTILINESTRING((0 30,30 30,0 35))'))); ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT('MULTILINESTRING((0 30,30 30,0 35))'))) GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 30,30 30,0 35))) SELECT ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_lines_near_vertical))) FROM gis_geometrycollection WHERE fid=115; ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_lines_near_vertical))) -GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.883720930232558 11.511627906976745),(7.5 15,15 25,0 25))) +GEOMETRYCOLLECTION(POLYGON((5 0,15 5,25 0,22 10,30 15,20 15,15 25,10 15,0 15,7 10,5 0)),MULTILINESTRING((0 5,4.88372 11.51163),(7.5 15,15 25,0 25))) #==================================================================================== # geometrycollection,polygon #==================================================================================== diff --git a/mysql-test/suite/gis/t/spatial_operators_union.test b/mysql-test/suite/gis/t/spatial_operators_union.test index ffdb0a5..cfc1cef 100644 --- a/mysql-test/suite/gis/t/spatial_operators_union.test +++ b/mysql-test/suite/gis/t/spatial_operators_union.test @@ -488,8 +488,10 @@ SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT('MULTILINESTRING((100 100, 200 200))') --echo #==================================================================================== SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT('MULTILINESTRING((0 25,25 0,25 30))'),ST_GEOMFROMTEXT(@star_collection_elems))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_lines_near_vertical),ST_GEOMFROMTEXT(@star_collection_elems))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_collection_elems))) FROM gis_geometrycollection WHERE fid=114; SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_lines_near_horizontal),ST_GEOMFROMTEXT(@star_collection_multilinestr))); @@ -679,10 +681,12 @@ SELECT ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_top_to_center))) FROM gis_geom --echo #==================================================================================== --echo # geometrycollection,multilinestring --echo #==================================================================================== +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT(@star_lines_near_vertical))); SELECT ST_ASTEXT(ST_UNION(ST_GEOMFROMTEXT(@star_collection_elems),ST_GEOMFROMTEXT('MULTILINESTRING((0 30,30 30,0 35))'))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_UNION(g,ST_GEOMFROMTEXT(@star_lines_near_vertical))) FROM gis_geometrycollection WHERE fid=115; --echo #==================================================================================== From 02013da29e8841ed32d5c4cc0a4d0fc3e122b708 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 17:06:23 +1000 Subject: [PATCH 12/17] test: use replace_numberic_round for gis.spatial_op_testingfunc_mix --- mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result | 4 ++-- mysql-test/suite/gis/t/spatial_op_testingfunc_mix.test | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result b/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result index 4fc8855..f2ece19 100644 --- a/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result +++ b/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result @@ -528,7 +528,7 @@ SELECT ST_ASTEXT(ST_UNION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@sta ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); ST_ASTEXT(ST_UNION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))) -MULTIPOLYGON(((20 2.5,25 0,23.695652173913043 4.3478260869565215,23.333333333333336 4.166666666666667,19 15,20 15,15 25,10 15,0 15,7 10,5 0,15 5,15.90909090909091 4.545454545454546,16.071429972789407 5.357142459183436,20.454545435878362 2.727272963927534,20 2.5),(10 15,11 15,10.777778284173866 14.444445710434662,10 15)),((20 2.5,15.909090909090908 4.545454545454546,15 0,20 2.5)),((25 25,20 15,30 15,25 25)),((40 15,30 15,22 10,23.695652173913043 4.3478260869565215,25 5,35 0,32 10,40 15))) +MULTIPOLYGON(((20 2.5,25 0,23.69565 4.34783,23.33333 4.16667,19 15,20 15,15 25,10 15,0 15,7 10,5 0,15 5,15.90909 4.54545,16.07143 5.35714,20.45455 2.72727,20 2.5),(10 15,11 15,10.77778 14.44445,10 15)),((20 2.5,15.90909 4.54545,15 0,20 2.5)),((25 25,20 15,30 15,25 25)),((40 15,30 15,22 10,23.69565 4.34783,25 5,35 0,32 10,40 15))) SELECT ST_ASTEXT(ST_DIFFERENCE(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); ST_ASTEXT(ST_DIFFERENCE(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), @@ -543,7 +543,7 @@ SELECT ST_ASTEXT(ST_INTERSECTION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTE ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); ST_ASTEXT(ST_INTERSECTION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))) -GEOMETRYCOLLECTION(MULTIPOINT((16.071429972789407 5.357142459183436),(20.454545435878362 2.727272963927534),(22.05644715646448 3.5282235782322404)),MULTILINESTRING((-1.7763568394002505e-15 15,0 15),(15 5,15.90909090909091 4.545454545454546)),MULTIPOLYGON(((20 2.5,25 0,20.454545659504127 2.727272829752063,20 2.5)),((20 2.5,15.909090909090908 4.545454545454546,15 0,20 2.5)),((25 25,20 15,30 15,25 25)),((11 15,19 15,15 25,11 15)),((23.333333398692986 4.166666503267538,25 0,23.695652173913043 4.3478260869565215,23.333333398692986 4.166666503267538)),((0 15,8.870967741935484 9.67741935483871,10.777777750841748 14.44444437710437,10 15,0 15)),((15.90909090909091 4.545454545454546,16.071428650510203 5.357143252551023,8.870967741935484 9.67741935483871,5 0,15 5,15.90909090909091 4.545454545454546)),((17 10,10.777778284173866 14.444445710434662,10.777777750841748 14.444444377104368,17 10)),((40 15,30 15,22 10,23.695652173913043 4.3478260869565215,25 5,35 0,32 10,40 15)))) +GEOMETRYCOLLECTION(MULTIPOINT((16.07143 5.35714),(20.45455 2.72727),(22.05645 3.52822)),MULTILINESTRING((-0 15,0 15),(15.22077 4.88961,15.90909 4.54545)),MULTIPOLYGON(((20 2.5,25 0,20.45455 2.72727,20 2.5)),((20 2.5,15.90909 4.54545,15 0,20 2.5)),((25 25,20 15,30 15,25 25)),((11 15,19 15,15 25,11 15)),((23.33333 4.16667,25 0,23.69565 4.34783,23.33333 4.16667)),((0 15,8.87097 9.67742,10.77778 14.44444,10 15,0 15)),((15.90909 4.54545,16.07143 5.35714,8.87097 9.67742,5 0,15 5,15.90909 4.54545)),((17 10,10.77778 14.44445,10.77778 14.44444,17 10)),((40 15,30 15,22 10,23.69565 4.34783,25 5,35 0,32 10,40 15)))) #------------------------------------------------------------------------------------------- # Spatial Operators with ST_INTERSECTION() #------------------------------------------------------------------------------------------- diff --git a/mysql-test/suite/gis/t/spatial_op_testingfunc_mix.test b/mysql-test/suite/gis/t/spatial_op_testingfunc_mix.test index f50e53c..d2669ea 100644 --- a/mysql-test/suite/gis/t/spatial_op_testingfunc_mix.test +++ b/mysql-test/suite/gis/t/spatial_op_testingfunc_mix.test @@ -371,6 +371,7 @@ SELECT ST_TOUCHES(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_h SELECT ST_WITHIN(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2))); +--replace_numberic_round 5 SELECT ST_OVERLAPS(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2))); @@ -434,6 +435,7 @@ SELECT ST_ASTEXT(ST_INTERSECTION(ST_DIFFERENCE(ST_DIFFERENCE(ST_GEOMFROMTEXT(@st --echo #------------------------------------------------------------------------------------------- --echo # Spatial Operators with ST_SYMDIFFERENCE() --echo #------------------------------------------------------------------------------------------- +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_UNION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); @@ -443,6 +445,7 @@ SELECT ST_ASTEXT(ST_DIFFERENCE(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_INTERSECTION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); From 527e2eeb1811c7945b7b34dc595142f5d787575e Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 10 May 2016 17:17:40 +1000 Subject: [PATCH 13/17] correct gis.gis_bugs_crashes test result with more rounding --- mysql-test/suite/gis/r/gis_bugs_crashes.result | 10 +++++----- mysql-test/suite/gis/t/gis_bugs_crashes.test | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mysql-test/suite/gis/r/gis_bugs_crashes.result b/mysql-test/suite/gis/r/gis_bugs_crashes.result index 0d3b321..262e376 100644 --- a/mysql-test/suite/gis/r/gis_bugs_crashes.result +++ b/mysql-test/suite/gis/r/gis_bugs_crashes.result @@ -2490,14 +2490,14 @@ MULTIPOINT((19 -4),(-2 -6),(-8 2)) SELECT ST_ASTEXT( ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), -61555, -ST_BUFFER_STRATEGY('join_miter', 195))); +61958, +ST_BUFFER_STRATEGY('join_miter', 199))); ST_ASTEXT( ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), -61555, -ST_BUFFER_STRATEGY('join_miter', 195))) -POLYGON((23555 -57555,23555 -57555,23555 -57555,30555 -53555,33555 -51555,33555 -51555,34555 -51555,40555 -46555,43555 -44555,43555 -44555,43555 -44555,49555 -37555,51555 -35555,51555 -34555,51555 -34555,55555 -26555,56555 -24555,56555 -24555,57555 -24555,59555 -15555,60555 -12555,60555 -12555,60555 -12555,61555 -2855,61555 -755,61555 -695,61555 -425,61555 9155,60555 11555,60555 11555,60555 11555,58555 20555,57555 23555,57555 23555,57555 23555,53555 31555,51555 33555,51555 33555,51555 34555,46555 40555,44555 43555,44555 43555,44555 43555,37555 48555,35555 51555,34555 51555,34555 51555,28555 54555,24555 56555,24555 56555,24555 57555,17555 59555,12555 60555,12555 60555,12555 60555,6355 61555,755 61555,595 61555,435 61555,-5055 61555,-11555 60555,-11555 60555,-11555 60555,-16555 59555,-23555 57555,-23555 57555,-23555 57555,-23555 57555,-23555 57555,-27555 55555,-33555 51555,-33555 51555,-34555 51555,-37555 48555,-43555 44555,-43555 44555,-43555 44555,-46555 39555,-51555 35555,-51555 34555,-51555 34555,-54555 29555,-56555 24555,-57555 24555,-57555 24555,-59555 17555,-60555 12555,-60555 12555,-60555 12555,-61555 5455,-61555 755,-61555 625,-61555 405,-61555 -6955,-60555 -11555,-60555 -11555,-60555 -11555,-58555 -19555,-57555 -23555,-57555 -23555,-57555 -23555,-53555 -30555,-51555 -33555,-51555 -33555,-51555 -34555,-46555 -40555,-44555 -43555,-44555 -43555,-44555 -43555,-37555 -48555,-35555 -51555,-34555 -51555,-34555 -51555,-27555 -55555,-24555 -56555,-24555 -56555,-24555 -57555,-16555 -59555,-12555 -60555,-12555 -60555,-12555 -60555,-4155 -61555,-765 -61555,-665 -61555,-435 -61555,7555 -61555,11555 -60555,11555 -60555,11555 -60555,18555 -58555,23555 -57555,23555 -57555,23555 -57555)) +61958, +ST_BUFFER_STRATEGY('join_miter', 199))) +POLYGON((23109 -57472,23303 -57415,23335 -57402,30261 -53760,33786 -51931,33873 -51862,34085 -51750,40592 -46484,43269 -44341,43332 -44266,43526 -44109,49099 -37411,51088 -35047,51130 -34969,51295 -34772,55750 -26574,56943 -24405,56964 -24340,57094 -24100,59921 -15003,60611 -12826,60618 -12761,60699 -12501,61721 -2804,61948 -754,61943 -697,61972 -422,61095 9145,60905 11347,60888 11408,60863 11673,58209 20643,57522 23012,57489 23074,57417 23320,53145 31446,51927 33792,51881 33850,51765 34070,46301 40821,44337 43275,44268 43332,44124 43511,37969 48632,35043 51094,34947 51146,34787 51280,28141 54892,24401 56949,24289 56985,24115 57079,17524 59127,12822 60617,12682 60632,12516 60684,6342 61334,750 61954,594 61941,437 61957,-5014 61457,-11351 60911,-11527 60861,-11658 60848,-16102 59533,-23016 57528,-23021 57526,-23200 57433,-23305 57402,-23337 57389,-27338 55285,-33801 51931,-33960 51803,-34087 51737,-37982 48585,-43284 44341,-43409 44192,-43528 44096,-46944 39991,-51103 35047,-51192 34885,-51297 34759,-54140 29527,-56958 24405,-57007 24252,-57096 24087,-59033 17853,-60626 12826,-60642 12676,-60701 12488,-61439 5483,-61963 754,-61951 622,-61974 409,-61295 -6998,-60920 -11347,-60885 -11468,-60865 -11686,-58677 -19081,-57537 -23012,-57483 -23115,-57419 -23333,-53633 -30533,-51942 -33792,-51878 -33872,-51767 -34083,-46537 -40544,-44352 -43275,-44275 -43339,-44126 -43524,-37748 -48831,-35058 -51094,-34970 -51142,-34789 -51293,-27282 -55372,-24416 -56949,-24331 -56977,-24117 -57092,-16040 -59602,-12837 -60617,-12742 -60627,-12518 -60697,-4188 -61574,-765 -61954,-670 -61946,-439 -61970,7579 -61235,11336 -60911,11440 -60881,11656 -60861,18963 -58699,23001 -57528,23006 -57526,23109 -57472)) SELECT ST_ISVALID( ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), diff --git a/mysql-test/suite/gis/t/gis_bugs_crashes.test b/mysql-test/suite/gis/t/gis_bugs_crashes.test index 59d6ded..b98003f 100644 --- a/mysql-test/suite/gis/t/gis_bugs_crashes.test +++ b/mysql-test/suite/gis/t/gis_bugs_crashes.test @@ -2278,7 +2278,7 @@ SELECT ST_ASTEXT(ST_SIMPLIFY(ST_GEOMFROMTEXT('MULTIPOINT(19 -4,-2 -6,-8 2)'), 1) --echo # BUG#20534576 : WL#7929 : ST_BUFFER() : ASSERTION FAILURE IN SPATIAL.H FILE --echo ###################################################################################################### ---replace_numberic_round 5 +--replace_numberic_round 0 SELECT ST_ASTEXT( ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), From 484c7afdd3f54e031d5f68d40603cef2580552d3 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 11 May 2016 15:07:56 +1000 Subject: [PATCH 14/17] trim trailing 0 mysql-test/suite/gis/r/gis_bugs_crashes.result --- mysql-test/suite/gis/r/gis_bugs_crashes.result | 46 +++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/mysql-test/suite/gis/r/gis_bugs_crashes.result b/mysql-test/suite/gis/r/gis_bugs_crashes.result index 262e376..206042a 100644 --- a/mysql-test/suite/gis/r/gis_bugs_crashes.result +++ b/mysql-test/suite/gis/r/gis_bugs_crashes.result @@ -1418,23 +1418,23 @@ ST_ASTEXT(ST_CONVEXHULL(ST_GEOMFROMTEXT(@star_of_elems))) POLYGON((0 15,5 0,25 0,30 15,15 25,0 15)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1)) -POLYGON((15.0000 3.8820,24.5528 -0.8944,24.6028 -0.9139,24.6518 -0.9374,24.6896 -0.9476,24.7257 -0.9616,24.7780 -0.9714,24.8301 -0.9855,24.8695 -0.9885,24.9080 -0.9958,24.9608 -0.9957,25.0140 -0.9999,25.0538 -0.9956,25.0935 -0.9956,25.1449 -0.9859,25.1976 -0.9803,25.2364 -0.9687,25.2758 -0.9612,25.3241 -0.9424,25.3743 -0.9273,25.4108 -0.9085,25.4486 -0.8937,25.4922 -0.8665,25.5384 -0.8427,25.5711 -0.8173,25.6059 -0.7955,25.6434 -0.7610,25.6841 -0.7294,25.7119 -0.6980,25.7424 -0.6699,25.7726 -0.6295,25.8065 -0.5913,25.8283 -0.5549,25.8534 -0.5213,25.8754 -0.4763,25.9014 -0.4330,25.9163 -0.3928,25.9350 -0.3547,25.9482 -0.3069,25.9656 -0.2600,25.9730 -0.2173,25.9844 -0.1759,25.9885 -0.1270,25.9969 -0.0781,25.9963 -0.0343,26.0000 0.0090,25.9950 0.0573,25.9943 0.1064,25.9856 0.1499,25.9811 0.1935,25.9674 0.2397,25.9578 0.2873,23.1771 9.5564,30.5300 14.1520,30.6766 14.2636,30.8002 14.4002,30.8966 14.5572,30.9626 14.7292,30.9960 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,30.3607 15.9327,30.1835 15.9830,30 16,19.6770 16.0000,15.9285 25.3714,15.8453 25.5343,15.7339 25.6793,15.5979 25.8015,15.4420 25.8970,15.2712 25.9625,15.0914 25.9958,14.9086 25.9958,14.7288 25.9625,14.5580 25.8970,14.4021 25.8015,14.2661 25.6793,14.1547 25.5343,14.0715 25.3714,10.3230 16.0000,0 16,-0.1847 15.9828,-0.3631 15.9317,-0.5290 15.8486,-0.6766 15.7363,-0.8010 15.5986,-0.8978 15.4404,-0.9637 15.2669,-0.9964 15.0843,-0.9949 14.8988,-0.9590 14.7167,-0.8902 14.5445,-0.7907 14.3878,-0.6640 14.2523,-0.5145 14.1425,7.6262 9.2581,4.0715 0.3714,4.0189 0.1935,4.0000 0.0090,4.0156 -0.1759,4.0650 -0.3547,4.1466 -0.5213,4.2576 -0.6699,4.3941 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9065 -0.9956,5.0920 -0.9958,5.2743 -0.9616,5.4472 -0.8944,15.0000 3.8820)) +POLYGON((15 3.882,24.5528 -0.8944,24.6028 -0.9139,24.6518 -0.9374,24.6896 -0.9476,24.7257 -0.9616,24.778 -0.9714,24.8301 -0.9855,24.8695 -0.9885,24.908 -0.9958,24.9608 -0.9957,25.014 -0.9999,25.0538 -0.9956,25.0935 -0.9956,25.1449 -0.9859,25.1976 -0.9803,25.2364 -0.9687,25.2758 -0.9612,25.3241 -0.9424,25.3743 -0.9273,25.4108 -0.9085,25.4486 -0.8937,25.4922 -0.8665,25.5384 -0.8427,25.5711 -0.8173,25.6059 -0.7955,25.6434 -0.761,25.6841 -0.7294,25.7119 -0.698,25.7424 -0.6699,25.7726 -0.6295,25.8065 -0.5913,25.8283 -0.5549,25.8534 -0.5213,25.8754 -0.4763,25.9014 -0.433,25.9163 -0.3928,25.935 -0.3547,25.9482 -0.3069,25.9656 -0.26,25.973 -0.2173,25.9844 -0.1759,25.9885 -0.127,25.9969 -0.0781,25.9963 -0.0343,26 0.009,25.995 0.0573,25.9943 0.1064,25.9856 0.1499,25.9811 0.1935,25.9674 0.2397,25.9578 0.2873,23.1771 9.5564,30.53 14.152,30.6766 14.2636,30.8002 14.4002,30.8966 14.5572,30.9626 14.7292,30.996 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,30.3607 15.9327,30.1835 15.983,30 16,19.677 16,15.9285 25.3714,15.8453 25.5343,15.7339 25.6793,15.5979 25.8015,15.442 25.897,15.2712 25.9625,15.0914 25.9958,14.9086 25.9958,14.7288 25.9625,14.558 25.897,14.4021 25.8015,14.2661 25.6793,14.1547 25.5343,14.0715 25.3714,10.323 16,0 16,-0.1847 15.9828,-0.3631 15.9317,-0.529 15.8486,-0.6766 15.7363,-0.801 15.5986,-0.8978 15.4404,-0.9637 15.2669,-0.9964 15.0843,-0.9949 14.8988,-0.959 14.7167,-0.8902 14.5445,-0.7907 14.3878,-0.664 14.2523,-0.5145 14.1425,7.6262 9.2581,4.0715 0.3714,4.0189 0.1935,4 0.009,4.0156 -0.1759,4.065 -0.3547,4.1466 -0.5213,4.2576 -0.6699,4.3941 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9065 -0.9956,5.092 -0.9958,5.2743 -0.9616,5.4472 -0.8944,15 3.882)) SET @buf = ST_BUFFER(ST_GEOMFROMTEXT(@star_of_elems), 1); SELECT st_area(@buf); st_area(@buf) 373.4694 SELECT ST_ASTEXT(ST_BUFFER(@buf, 1)); ST_ASTEXT(ST_BUFFER(@buf, 1)) -POLYGON((15.0000 2.7639,24.1056 -1.7889,24.1905 -1.8265,24.2045 -1.8319,24.2187 -1.8387,24.3275 -1.8791,24.3273 -1.8797,24.3634 -1.8937,24.3774 -1.8977,24.3917 -1.9030,24.4294 -1.9132,24.4296 -1.9126,24.5417 -1.9446,24.5556 -1.9472,24.5699 -1.9510,24.6856 -1.9710,24.6855 -1.9715,24.7241 -1.9787,24.7377 -1.9800,24.7518 -1.9824,24.7912 -1.9855,24.7912 -1.9849,24.9088 -1.9958,24.9220 -1.9957,24.9358 -1.9968,25.0546 -1.9952,25.0546 -1.9956,25.0943 -1.9956,25.1070 -1.9944,25.1203 -1.9942,25.1601 -1.9900,25.1600 -1.9894,25.2789 -1.9783,25.2910 -1.9760,25.3038 -1.9746,25.4217 -1.9509,25.4218 -1.9513,25.4612 -1.9439,25.4726 -1.9406,25.4847 -1.9382,25.5235 -1.9265,25.5234 -1.9260,25.6396 -1.8927,25.6501 -1.8886,25.6615 -1.8852,25.7743 -1.8396,25.7745 -1.8400,25.8123 -1.8253,25.8220 -1.8204,25.8327 -1.8161,25.8691 -1.7973,25.8689 -1.7969,25.9782 -1.7420,25.9869 -1.7365,25.9967 -1.7315,26.1004 -1.6652,26.1006 -1.6656,26.1354 -1.6438,26.1433 -1.6378,26.1522 -1.6321,26.1850 -1.6067,26.1847 -1.6063,26.2831 -1.5314,26.2900 -1.5250,26.2979 -1.5188,26.3888 -1.4337,26.3890 -1.4339,26.4196 -1.4058,26.4256 -1.3991,26.4325 -1.3926,26.4603 -1.3612,26.4600 -1.3609,26.5438 -1.2681,26.5489 -1.2612,26.5549 -1.2545,26.6294 -1.1529,26.6297 -1.1531,26.6548 -1.1194,26.6590 -1.1125,26.6641 -1.1056,26.6859 -1.0693,26.6855 -1.0691,26.7515 -0.9611,26.7548 -0.9543,26.7590 -0.9473,26.8141 -0.8325,26.8144 -0.8326,26.8331 -0.7945,26.8356 -0.7878,26.8389 -0.7810,26.8538 -0.7408,26.8535 -0.7407,26.8988 -0.6211,26.9006 -0.6147,26.9031 -0.6080,26.9366 -0.4836,26.9368 -0.4837,26.9483 -0.4423,26.9494 -0.4362,26.9511 -0.4298,26.9585 -0.3870,26.9582 -0.3870,26.9809 -0.2597,26.9814 -0.2540,26.9824 -0.2479,26.9926 -0.1181,26.9928 -0.1181,26.9964 -0.0748,26.9964 -0.0696,26.9968 -0.0639,26.9962 -0.0201,26.9959 -0.0201,26.9948 0.1107,26.9943 0.1154,26.9942 0.1207,26.9802 0.2515,26.9804 0.2515,26.9759 0.2952,26.9751 0.2994,26.9746 0.3042,26.9658 0.3476,26.9656 0.3476,26.9400 0.4772,26.9389 0.4808,26.9381 0.4851,26.9157 0.5747,24.3542 9.1129,31.0600 13.3040,31.1359 13.3564,31.2824 13.4681,31.4181 13.5927,31.5417 13.7293,31.6522 13.8767,31.7487 14.0337,31.8302 14.1989,31.8962 14.3709,31.9461 14.5483,31.9795 14.7295,31.9960 14.9130,31.9955 15.0972,31.9781 15.2806,31.9438 15.4616,31.8930 15.6387,31.8261 15.8104,31.7437 15.9752,31.6465 16.1317,31.5352 16.2785,31.4109 16.4145,31.2746 16.5385,31.1275 16.6493,30.9707 16.7462,30.8057 16.8282,30.6339 16.8946,30.4567 16.9450,30.2756 16.9788,30.0921 16.9957,30.0000 17.0000,20.3541 17.0000,16.8570 25.7428,16.8191 25.8261,16.7360 25.9890,16.6383 26.1436,16.5268 26.2886,16.4026 26.4228,16.2667 26.5451,16.1201 26.6544,15.9641 26.7499,15.8001 26.8307,15.6294 26.8962,15.4533 26.9458,15.2735 26.9791,15.0914 26.9958,14.9086 26.9958,14.7265 26.9791,14.5467 26.9458,14.3706 26.8962,14.1999 26.8307,14.0359 26.7499,13.8799 26.6544,13.7333 26.5451,13.5974 26.4228,13.4732 26.2886,13.3617 26.1436,13.2640 25.9890,13.1809 25.8261,13.1430 25.7428,9.6459 17.0000,0.0000 17.0000,-0.0928 16.9957,-0.2775 16.9785,-0.4598 16.9442,-0.6382 16.8932,-0.8111 16.8258,-0.9769 16.7427,-1.1344 16.6445,-1.2821 16.5322,-1.4187 16.4067,-1.5430 16.2690,-1.6541 16.1204,-1.7509 15.9621,-1.8326 15.7955,-1.8985 15.6221,-1.9480 15.4433,-1.9808 15.2607,-1.9964 15.0758,-1.9948 14.8903,-1.9761 14.7057,-1.9402 14.5237,-1.8877 14.3457,-1.8188 14.1735,-1.7343 14.0083,-1.6349 13.8517,-1.5213 13.7050,-1.3946 13.5694,-1.2559 13.4462,-1.1063 13.3364,-1.0290 13.2850,6.3814 8.8388,3.1430 0.7428,3.1126 0.6551,3.0600 0.4772,3.0241 0.2952,3.0052 0.1107,3.0036 -0.0748,3.0191 -0.2597,3.0517 -0.4423,3.1011 -0.6211,3.1669 -0.7945,3.2485 -0.9611,3.3452 -1.1194,3.4562 -1.2681,3.5804 -1.4058,3.7170 -1.5314,3.8645 -1.6438,4.0219 -1.7420,4.1877 -1.8252,4.3605 -1.8927,4.5388 -1.9439,4.7210 -1.9783,4.9057 -1.9956,5.0912 -1.9958,5.2759 -1.9787,5.4583 -1.9446,5.6366 -1.8937,5.8095 -1.8265,5.8944 -1.7889,15.0000 2.7639)) +POLYGON((15 2.7639,24.1056 -1.7889,24.1905 -1.8265,24.2045 -1.8319,24.2187 -1.8387,24.3275 -1.8791,24.3273 -1.8797,24.3634 -1.8937,24.3774 -1.8977,24.3917 -1.903,24.4294 -1.9132,24.4296 -1.9126,24.5417 -1.9446,24.5556 -1.9472,24.5699 -1.951,24.6856 -1.971,24.6855 -1.9715,24.7241 -1.9787,24.7377 -1.98,24.7518 -1.9824,24.7912 -1.9855,24.7912 -1.9849,24.9088 -1.9958,24.922 -1.9957,24.9358 -1.9968,25.0546 -1.9952,25.0546 -1.9956,25.0943 -1.9956,25.107 -1.9944,25.1203 -1.9942,25.1601 -1.99,25.16 -1.9894,25.2789 -1.9783,25.291 -1.976,25.3038 -1.9746,25.4217 -1.9509,25.4218 -1.9513,25.4612 -1.9439,25.4726 -1.9406,25.4847 -1.9382,25.5235 -1.9265,25.5234 -1.926,25.6396 -1.8927,25.6501 -1.8886,25.6615 -1.8852,25.7743 -1.8396,25.7745 -1.84,25.8123 -1.8253,25.822 -1.8204,25.8327 -1.8161,25.8691 -1.7973,25.8689 -1.7969,25.9782 -1.742,25.9869 -1.7365,25.9967 -1.7315,26.1004 -1.6652,26.1006 -1.6656,26.1354 -1.6438,26.1433 -1.6378,26.1522 -1.6321,26.185 -1.6067,26.1847 -1.6063,26.2831 -1.5314,26.29 -1.525,26.2979 -1.5188,26.3888 -1.4337,26.389 -1.4339,26.4196 -1.4058,26.4256 -1.3991,26.4325 -1.3926,26.4603 -1.3612,26.46 -1.3609,26.5438 -1.2681,26.5489 -1.2612,26.5549 -1.2545,26.6294 -1.1529,26.6297 -1.1531,26.6548 -1.1194,26.659 -1.1125,26.6641 -1.1056,26.6859 -1.0693,26.6855 -1.0691,26.7515 -0.9611,26.7548 -0.9543,26.759 -0.9473,26.8141 -0.8325,26.8144 -0.8326,26.8331 -0.7945,26.8356 -0.7878,26.8389 -0.781,26.8538 -0.7408,26.8535 -0.7407,26.8988 -0.6211,26.9006 -0.6147,26.9031 -0.608,26.9366 -0.4836,26.9368 -0.4837,26.9483 -0.4423,26.9494 -0.4362,26.9511 -0.4298,26.9585 -0.387,26.9582 -0.387,26.9809 -0.2597,26.9814 -0.254,26.9824 -0.2479,26.9926 -0.1181,26.9928 -0.1181,26.9964 -0.0748,26.9964 -0.0696,26.9968 -0.0639,26.9962 -0.0201,26.9959 -0.0201,26.9948 0.1107,26.9943 0.1154,26.9942 0.1207,26.9802 0.2515,26.9804 0.2515,26.9759 0.2952,26.9751 0.2994,26.9746 0.3042,26.9658 0.3476,26.9656 0.3476,26.94 0.4772,26.9389 0.4808,26.9381 0.4851,26.9157 0.5747,24.3542 9.1129,31.06 13.304,31.1359 13.3564,31.2824 13.4681,31.4181 13.5927,31.5417 13.7293,31.6522 13.8767,31.7487 14.0337,31.8302 14.1989,31.8962 14.3709,31.9461 14.5483,31.9795 14.7295,31.996 14.913,31.9955 15.0972,31.9781 15.2806,31.9438 15.4616,31.893 15.6387,31.8261 15.8104,31.7437 15.9752,31.6465 16.1317,31.5352 16.2785,31.4109 16.4145,31.2746 16.5385,31.1275 16.6493,30.9707 16.7462,30.8057 16.8282,30.6339 16.8946,30.4567 16.945,30.2756 16.9788,30.0921 16.9957,30 17,20.3541 17,16.857 25.7428,16.8191 25.8261,16.736 25.989,16.6383 26.1436,16.5268 26.2886,16.4026 26.4228,16.2667 26.5451,16.1201 26.6544,15.9641 26.7499,15.8001 26.8307,15.6294 26.8962,15.4533 26.9458,15.2735 26.9791,15.0914 26.9958,14.9086 26.9958,14.7265 26.9791,14.5467 26.9458,14.3706 26.8962,14.1999 26.8307,14.0359 26.7499,13.8799 26.6544,13.7333 26.5451,13.5974 26.4228,13.4732 26.2886,13.3617 26.1436,13.264 25.989,13.1809 25.8261,13.143 25.7428,9.6459 17,0 17,-0.0928 16.9957,-0.2775 16.9785,-0.4598 16.9442,-0.6382 16.8932,-0.8111 16.8258,-0.9769 16.7427,-1.1344 16.6445,-1.2821 16.5322,-1.4187 16.4067,-1.543 16.269,-1.6541 16.1204,-1.7509 15.9621,-1.8326 15.7955,-1.8985 15.6221,-1.948 15.4433,-1.9808 15.2607,-1.9964 15.0758,-1.9948 14.8903,-1.9761 14.7057,-1.9402 14.5237,-1.8877 14.3457,-1.8188 14.1735,-1.7343 14.0083,-1.6349 13.8517,-1.5213 13.705,-1.3946 13.5694,-1.2559 13.4462,-1.1063 13.3364,-1.029 13.285,6.3814 8.8388,3.143 0.7428,3.1126 0.6551,3.06 0.4772,3.0241 0.2952,3.0052 0.1107,3.0036 -0.0748,3.0191 -0.2597,3.0517 -0.4423,3.1011 -0.6211,3.1669 -0.7945,3.2485 -0.9611,3.3452 -1.1194,3.4562 -1.2681,3.5804 -1.4058,3.717 -1.5314,3.8645 -1.6438,4.0219 -1.742,4.1877 -1.8252,4.3605 -1.8927,4.5388 -1.9439,4.721 -1.9783,4.9057 -1.9956,5.0912 -1.9958,5.2759 -1.9787,5.4583 -1.9446,5.6366 -1.8937,5.8095 -1.8265,5.8944 -1.7889,15 2.7639)) SELECT ST_ASTEXT(ST_CENTROID(@buf)); ST_ASTEXT(ST_CENTROID(@buf)) POINT(15.1182 10.7393) SELECT ST_ASTEXT(ST_CONVEXHULL(@buf)); ST_ASTEXT(ST_CONVEXHULL(@buf)) -POLYGON((-0.9964 15.0843,-0.9949 14.8988,-0.9590 14.7167,4.0650 -0.3547,4.1466 -0.5213,4.2576 -0.6699,4.3941 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9065 -0.9956,5.0920 -0.9958,25.0140 -0.9999,25.0935 -0.9956,25.1976 -0.9803,25.2758 -0.9612,25.3743 -0.9273,25.4486 -0.8937,25.5384 -0.8427,25.6059 -0.7955,25.6841 -0.7294,25.7424 -0.6699,25.8065 -0.5913,25.8534 -0.5213,25.9014 -0.4330,25.9350 -0.3547,30.9626 14.7292,30.9960 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,15.5979 25.8015,15.4420 25.8970,15.2712 25.9625,15.0914 25.9958,14.9086 25.9958,14.7288 25.9625,14.5580 25.8970,14.4021 25.8015,-0.5290 15.8486,-0.6766 15.7363,-0.8010 15.5986,-0.8978 15.4404,-0.9637 15.2669,-0.9964 15.0843)) +POLYGON((-0.9964 15.0843,-0.9949 14.8988,-0.959 14.7167,4.065 -0.3547,4.1466 -0.5213,4.2576 -0.6699,4.3941 -0.7955,4.5514 -0.8937,4.7242 -0.9612,4.9065 -0.9956,5.092 -0.9958,25.014 -0.9999,25.0935 -0.9956,25.1976 -0.9803,25.2758 -0.9612,25.3743 -0.9273,25.4486 -0.8937,25.5384 -0.8427,25.6059 -0.7955,25.6841 -0.7294,25.7424 -0.6699,25.8065 -0.5913,25.8534 -0.5213,25.9014 -0.433,25.935 -0.3547,30.9626 14.7292,30.996 14.9104,30.9955 15.0947,30.9612 15.2757,30.8944 15.4473,30.7971 15.6038,30.6728 15.7398,30.5257 15.8507,15.5979 25.8015,15.442 25.897,15.2712 25.9625,15.0914 25.9958,14.9086 25.9958,14.7288 25.9625,14.558 25.897,14.4021 25.8015,-0.529 15.8486,-0.6766 15.7363,-0.801 15.5986,-0.8978 15.4404,-0.9637 15.2669,-0.9964 15.0843)) SELECT ST_ASTEXT(ST_ENVELOPE(@buf)); ST_ASTEXT(ST_ENVELOPE(@buf)) -POLYGON((-0.9964 -0.9999,30.9960 -0.9999,30.9960 25.9958,-0.9964 25.9958,-0.9964 -0.9999)) +POLYGON((-0.9964 -0.9999,30.996 -0.9999,30.996 25.9958,-0.9964 25.9958,-0.9964 -0.9999)) SELECT ST_DISTANCE(ST_GEOMFROMTEXT(@star_of_elems),ST_GEOMFROMTEXT(@star_top)) as result; result 0 @@ -1530,7 +1530,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('MULTILINESTRING((-10 3,-9 -4,-9 3,-1 3),' '(3 10,7 9,-7 2,2 -9,7 10,7 8,3 -4,-9 -1,-5 -8,-7 5,4 9,-3 -6,9 1),' '(4 4,-7 -3,1 -4,-10 -8) -GEOMETRYCOLLECTION(MULTIPOINT((-6.2 -0.2000000000),(-5.1276595745 -1.8085106383),(-5 -2),(-4.1525423729 -3.3559322034),(-3.3333333333 -4.6666666667),(-2.8703703704 -5.4074074074),(-2.7862595420 -5.5419847328),(-2.7857142857 3),(-2.6335877863 -5.7862595420),(-2.2142857143 3),(-2.16 0.0800000000),(-2.1111111111 0.1111111111),(-1.5314685315 -2.8531468531),(-1.5283018868 -2.8679245283),(-1.3486238532 -3.7064220183),(-1.1204819277 -4.7710843373),(-1.0952380952 -4.8888888889),(-1 -5.3333333333),(-0.7727272727 -1.2272727273),(-0.6666666667 1.0303030303),(-0.5454545455 -7.4545454545),(-0.0722433460 0.2737642586),(0.0841121495 0.0747663551),(0.3 -2.3),(1.4210526316 -3.4210526316),(1.6363636364 -3.6363636364),(1.6666666667 -3.6666666667),(1.7903225806 -2.0967741935),(2.2857142857 -4.2857142857),(2.3589743590 -2.8205128205),(2.3877551020 -2.8571428571),(2.6363636364 -4.6363636364),(2.6842105263 6.8421052632),(2.8461538462 6.9230769231),(3 10),(3.0416666667 -5.0416666667),(3.0851063830 -3.7446808511),(3.0869565217 7.0434782609),(3.1747211896 -3.8587360595),(3.3082437276 -4.0286738351),(6.6969696970 8.8484848485),(7 10)),LINESTRING(7 9,-5 3)) +GEOMETRYCOLLECTION(MULTIPOINT((-6.2 -0.2),(-5.1276595745 -1.8085106383),(-5 -2),(-4.1525423729 -3.3559322034),(-3.3333333333 -4.6666666667),(-2.8703703704 -5.4074074074),(-2.786259542 -5.5419847328),(-2.7857142857 3),(-2.6335877863 -5.786259542),(-2.2142857143 3),(-2.16 0.08),(-2.1111111111 0.1111111111),(-1.5314685315 -2.8531468531),(-1.5283018868 -2.8679245283),(-1.3486238532 -3.7064220183),(-1.1204819277 -4.7710843373),(-1.0952380952 -4.8888888889),(-1 -5.3333333333),(-0.7727272727 -1.2272727273),(-0.6666666667 1.0303030303),(-0.5454545455 -7.4545454545),(-0.072243346 0.2737642586),(0.0841121495 0.0747663551),(0.3 -2.3),(1.4210526316 -3.4210526316),(1.6363636364 -3.6363636364),(1.6666666667 -3.6666666667),(1.7903225806 -2.0967741935),(2.2857142857 -4.2857142857),(2.358974359 -2.8205128205),(2.387755102 -2.8571428571),(2.6363636364 -4.6363636364),(2.6842105263 6.8421052632),(2.8461538462 6.9230769231),(3 10),(3.0416666667 -5.0416666667),(3.085106383 -3.7446808511),(3.0869565217 7.0434782609),(3.1747211896 -3.8587360595),(3.3082437276 -4.0286738351),(6.696969697 8.8484848485),(7 10)),LINESTRING(7 9,-5 3)) ###################################################################################################### # BUG#20120173 : ASSERTION FAILURE WITH GEOMETRY SET OPERATIONS IN ITEM_GEOFUNC.CC FILE ###################################################################################################### @@ -1790,7 +1790,7 @@ ST_ASTEXT( ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('MULTIPOLYGON(((-2 3,3 2,-7 4,-8 -4,-8 8,4 3,-10 -4,0 6,-4 7,-9 3,-6 0,-1 -8,-5 -3,2 -6,-7 -7, -2 3)),' '((-8 -9,-4 7,-5 5,6 -9,-6 -4,-1 6,-7 8,-2 0,1 -4,-9 -5,2 -3,0 6, -GEOMETRYCOLLECTION(MULTIPOLYGON(((-2 3,-7 -7,2 -6,-5 -3,-1 -8,-6 0,-9 3,-4 7,0 6,-10 -4,4 3,-8 8,-8 -4,-7 4,3 2,-2 3)),((-8 -9,8 -6,0 6,2 -3,-9 -5,1 -4,-2 0,-7 8,-1 6,-6 -4,6 -9,-5 5,-4 7,-8 -9)),((-4 -5,-10 8,-1 -1,-5 -7,-5 5,0 6,10 1,6 -9,8 -4,6 7,-10 2,10 -8,0 -7,-4 -5)),((4 -9,7 -5,3 -6,4 -9)),((-8 -4,5 4,-3 8,-10 -2,-3 -3,5 -8,9 -8,3 7,8 -1,8 4,-8 -4))),MULTILINESTRING((0.0412 0.9485,0.5714 0.2857),(5.3333 -5.6667,5.9130 -6.3913,5.9355 -6.4194,6.6667 -7.3333),(7.2 -8,8 -9,7 -8),(6.6667 -7.6667,6.5714 -7.5714),(4.6 -5.6,4 -5),(2 -3,-0.6667 -0.3333,-1 0,-1.0552 -0.0207),(-1.7273 -0.2727,-1.7805 -0.2927),(-3.8571 -1.0714,-4.0769 -1.1538,-4.6923 -1.3846,-5 -1.5),(-6.2414 -1.9655,-7.3448 -2.3793,-7.8197 -2.5574),(-8 -2.625,-9 -3,-9 -2.1429),(-9 -0.5714,-9 1.5),(-9 2.3125,-9 3),(-9 5.8333,-9 7),(-9 7,-9 5.8333),(-9 2,-8 1.4),(-9 2,-7.7324 1.2394),(-7.3721 1.0233,-6.5532 0.5319,-6.5 0.5,-5.875 0.125),(-5 -0.4000,-4.3846 -0.7692),(-3.5570 -1.2658,-3.0909 -1.5455),(0.0870 -3.3478,-1.3333 -2.3333),(-1.7097 -2.0645,-2.7059 -1.3529,-3.1653 -1.0248),(-3.7895 -0.5789,-4.1579 -0.3158,-5 0.2857),(-5.4167 0.5833,-5.5758 0.6970,-6 1,-5.3 1.8),(-5 2.1429,-4.6 2.6),(-4.0312 3.25,-3.9149 3.3830),(-3.8172 3.4946,-3.2903 4.0968,-2.0458 5.5191,-1.9697 5.6061),(-0.8261 6.9130,1 9,-0.5 6.75),(-0.8571 6.2143,-1.1538 5.7692,-1.4783 5.2826),(-2.8824 3.1765,-3 3),(-3.8 1.8000,-5 0),(-5.25 -0.375,-5.5161 -0.7742),(-6.2 -1.8000,-6.5 -2.25,-6.6522 -2.4783,-7.4348 -3.6522,-7.5 -3.75),(-8.2857 -4.9286,-9 -6,-7.2807 -6.1228),(-9 -6,-6.5862 -6.1724),(-5 -6.2857,-4.5455 -6.3182),(-2.3043 -6.4783,-2.2121 -6.4848),(-1.9346 -6.5047,-0.8333 -6.5833,0.4138 -6.6724),(3.3103 -6.8793,4.3946 -6.9568,5 -7,4.9496 -6.5719),(4.8286 -5.5429,4.8125 -5.4062),(4.2143 -0.3214,3.9444 1.9722,3.8333 2.9167),(3.8144 3.0773,3.7932 3.2574),(3.625 4.6875,3.5 5.75,3.4468 6.2021,3.4348 6.3043),(3 10,2.6316 5.9474),(3 10,2.5652 5.2174),(2.5217 4.7391,2.4234 3.6569),(2.3037 2.3407,2.2857 2.1429),(6 -3,7.25 -3.625,8 -4)),POINT(4 8)) +GEOMETRYCOLLECTION(MULTIPOLYGON(((-2 3,-7 -7,2 -6,-5 -3,-1 -8,-6 0,-9 3,-4 7,0 6,-10 -4,4 3,-8 8,-8 -4,-7 4,3 2,-2 3)),((-8 -9,8 -6,0 6,2 -3,-9 -5,1 -4,-2 0,-7 8,-1 6,-6 -4,6 -9,-5 5,-4 7,-8 -9)),((-4 -5,-10 8,-1 -1,-5 -7,-5 5,0 6,10 1,6 -9,8 -4,6 7,-10 2,10 -8,0 -7,-4 -5)),((4 -9,7 -5,3 -6,4 -9)),((-8 -4,5 4,-3 8,-10 -2,-3 -3,5 -8,9 -8,3 7,8 -1,8 4,-8 -4))),MULTILINESTRING((0.0412 0.9485,0.5714 0.2857),(5.3333 -5.6667,5.913 -6.3913,5.9355 -6.4194,6.6667 -7.3333),(7.2 -8,8 -9,7 -8),(6.6667 -7.6667,6.5714 -7.5714),(4.6 -5.6,4 -5),(2 -3,-0.6667 -0.3333,-1 0,-1.0552 -0.0207),(-1.7273 -0.2727,-1.7805 -0.2927),(-3.8571 -1.0714,-4.0769 -1.1538,-4.6923 -1.3846,-5 -1.5),(-6.2414 -1.9655,-7.3448 -2.3793,-7.8197 -2.5574),(-8 -2.625,-9 -3,-9 -2.1429),(-9 -0.5714,-9 1.5),(-9 2.3125,-9 3),(-9 5.8333,-9 7),(-9 7,-9 5.8333),(-9 2,-8 1.4),(-9 2,-7.7324 1.2394),(-7.3721 1.0233,-6.5532 0.5319,-6.5 0.5,-5.875 0.125),(-5 -0.4,-4.3846 -0.7692),(-3.557 -1.2658,-3.0909 -1.5455),(0.087 -3.3478,-1.3333 -2.3333),(-1.7097 -2.0645,-2.7059 -1.3529,-3.1653 -1.0248),(-3.7895 -0.5789,-4.1579 -0.3158,-5 0.2857),(-5.4167 0.5833,-5.5758 0.697,-6 1,-5.3 1.8),(-5 2.1429,-4.6 2.6),(-4.0312 3.25,-3.9149 3.383),(-3.8172 3.4946,-3.2903 4.0968,-2.0458 5.5191,-1.9697 5.6061),(-0.8261 6.913,1 9,-0.5 6.75),(-0.8571 6.2143,-1.1538 5.7692,-1.4783 5.2826),(-2.8824 3.1765,-3 3),(-3.8 1.8,-5 0),(-5.25 -0.375,-5.5161 -0.7742),(-6.2 -1.8,-6.5 -2.25,-6.6522 -2.4783,-7.4348 -3.6522,-7.5 -3.75),(-8.2857 -4.9286,-9 -6,-7.2807 -6.1228),(-9 -6,-6.5862 -6.1724),(-5 -6.2857,-4.5455 -6.3182),(-2.3043 -6.4783,-2.2121 -6.4848),(-1.9346 -6.5047,-0.8333 -6.5833,0.4138 -6.6724),(3.3103 -6.8793,4.3946 -6.9568,5 -7,4.9496 -6.5719),(4.8286 -5.5429,4.8125 -5.4062),(4.2143 -0.3214,3.9444 1.9722,3.8333 2.9167),(3.8144 3.0773,3.7932 3.2574),(3.625 4.6875,3.5 5.75,3.4468 6.2021,3.4348 6.3043),(3 10,2.6316 5.9474),(3 10,2.5652 5.2174),(2.5217 4.7391,2.4234 3.6569),(2.3037 2.3407,2.2857 2.1429),(6 -3,7.25 -3.625,8 -4)),POINT(4 8)) SELECT ST_ASTEXT( ST_INTERSECTION( ST_GEOMFROMTEXT('MULTILINESTRING((3 -.7),(4 -1032.34324),(2 1,8 7),(7 5,-4 8,2.2 8,2 8,6 7))'), @@ -2002,7 +2002,7 @@ ST_GEOMFROMTEXT('MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 - ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2),(-1 -2,10 -7,8 -5))'))) -GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.56962 -0.91139,-1.17021 -1.87234),(-1.25 -2,-5 -8),(-5 -8,3 -7,-2 -7,0.99387 -3.63190),(1.06667 -3.55,6 2,6 3,6 3.83333),(1.5 0.58333,1 0,0.61644 -0.05479),(1 0,-2.92 -0.56),(-3.17910 -0.59701,-4.16393 -0.73770),(-5.17647 -0.88235,-6 -1,-5.33858 -1.14173),(-4.30303 -1.36364,-1.90678 -1.87712,-1.21519 -2.02532),(-0.86667 -2.1,0.58824 -2.41176),(2 -1,0.40909 -0.20455),(-0.29032 -0.70968,1 -2),(7 -8,9 -10,4 -2),(-1 -2,0.375 -2.625))) +GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.56962 -0.91139,-1.17021 -1.87234),(-1.25 -2,-5 -8),(-5 -8,3 -7,-2 -7,0.99387 -3.6319),(1.06667 -3.55,6 2,6 3,6 3.83333),(1.5 0.58333,1 0,0.61644 -0.05479),(1 0,-2.92 -0.56),(-3.1791 -0.59701,-4.16393 -0.7377),(-5.17647 -0.88235,-6 -1,-5.33858 -1.14173),(-4.30303 -1.36364,-1.90678 -1.87712,-1.21519 -2.02532),(-0.86667 -2.1,0.58824 -2.41176),(2 -1,0.40909 -0.20455),(-0.29032 -0.70968,1 -2),(7 -8,9 -10,4 -2),(-1 -2,0.375 -2.625))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('LINESTRING(-1 -2,10 -7,8 -5)'))); ST_ASTEXT(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('LINESTRING(-1 -2,10 -7,8 -5)'))) GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),LINESTRING(-1 -2,0.375 -2.625)) @@ -2080,7 +2080,7 @@ ST_GEOMFROMTEXT('MULTILINESTRING((1 5, -4.3 -.1),' '(0 6,8.6 6,189.7654 5,1 3,6 3,3 5,6 2.232432,0 4),' '(-6 5,1 2.232432),' '(3 -1032.34324,9 0,189.7654 1,-1.4 3,3 189.7654,+.3 10.0002,1 5,6 3,5 1,9 1,10.0002 -1032.34324,-0.7654 0,5 3, 3 4),' - '(2.232432 2.232432,8.6 +.4,0.0 2.232432,4 0,-8.8 10.0002),' + '(2.232432 2.232432,8.6 +.4,0 2.232432,4 0,-8.8 10.0002),' '(1 0,6 6,7 2,-0 8.4),' '(-0.7654 3,+.6 8,4 -1032.34324,1 6,0 4),' '(0 7,2 1,8 -7,7 -.7, -1032.34324 9), (5 0, 10.0002 4, 8 7, 3 3, -8.1 5))'))), @@ -2090,7 +2090,7 @@ ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' '((7 5,1 3,1 0.8,2 -.5,3 6,6.6 3.7,2.232432 -1032.34324,+.2 10.0002,7 5),' '(0 8,10.0002 9,5 2,6 5,8 8,0 8)),' '((2 0,9 2.232432,9 -3,2 8,7 9,3 0,-1 -8.2,0 8,2 0),' - '(5 2,2 3,9 5,6 1,10.0002 2.232432,-6.2 9,8 10.0002,9 3.0,5 -8.7,5 2))),' + '(5 2,2 3,9 5,6 1,10.0002 2.232432,-6.2 9,8 10.0002,9 3,5 -8.7,5 2))),' 'MULTILINESTRING((5 10.0002,2 7,-0.7654 0,5 3),' '(0 -0.7654,4 10.0002,4 +.1,-.8 3,-.1 8,10.0002 2,+.9 -1032.34324)))'))); ST_ASTEXT(ST_INTERSECTION( @@ -2099,7 +2099,7 @@ ST_ASWKB( ST_GEOMFROMTEXT('MULTILINESTRING((1 5, -4.3 -.1),' '(0 6,8.6 6,189.7654 5,1 3,6 3,3 5,6 2.232432,0 4),' '(-6 5,1 2 -GEOMETRYCOLLECTION(POINT(-1.3068033885 6.9558869146),POINT(-1.2504328134 9.3486307817),POINT(-0.5326974515 -0.6296987150),POINT(-0.3237169259 2.7557858007),POINT(-0.3093463319 2.9885894239),POINT(-0.2870773950 3.3493462005),POINT(-0.2722472775 3.5895941041),POINT(-0.2600297177 3.7875185736),POINT(0.2034829350 8.2139584594),POINT(0.2067083387 6.5597932425),POINT(0.2070612197 6.3788163409),POINT(0.2077998615 6.0000000000),POINT(0.2108772318 4.4217544636),POINT(0.2112296896 4.2409946070),POINT(0.2118212718 3.9375985830),POINT(0.2126701994 3.5022215857),POINT(0.2136823840 2.9831174220),POINT(0.2137312004 2.9580816601),POINT(0.2145406004 2.5429766142),POINT(0.2152355442 2.1865710118),POINT(0.2153805064 2.1122264163),POINT(0.2185007982 0.5119683620),POINT(0.2364719009 2.1820461072),POINT(0.3301406781 2.8671349368),POINT(0.3895121129 2.9812778660),POINT(0.4375000000 8),POINT(0.5720091517 8.0571997712),POINT(0.6163999320 2.9818945937),POINT(0.9813981034 6),POINT(1 2.232432),POINT(1.0000224789 5.9922197425),POINT(1.0053012917 4.1651465202),POINT(1.0086593145 3.0028864382),POINT(1.0150805761 0.7803952511),POINT(1.0388693195 3.8833920414),POINT(1.0412371134 3.8762886598),POINT(1.3 3.1),POINT(1.5230208409 1.9079166366),POINT(1.5923914063 4.7630434375),POINT(1.6756969713 1.2972121147),POINT(1.7017543860 3.2339181287),POINT(2 3),POINT(2.2832654866 1.3412256626),POINT(2.3207547170 1.5849056604),POINT(2.3435512850 1.7330833525),POINT(2.3707483564 6),POINT(2.3867403315 3.1104972376),POINT(2.4035197120 1.2472751700),POINT(2.4124061234 2.1806398020),POINT(2.5321325326 2.9588614620),POINT(2.5409733635 3.0163268625),POINT(2.5509103169 3.0809170600),POINT(2.6887552170 1.6595295465),POINT(2.9537572254 5.6994219653),POINT(3 6),POINT(3.0067352148 6),POINT(3.0091004712 5.6488224263),POINT(3.0189095455 4.1924361818),POINT(3.0202739191 3.9898630405),POINT(3.0262101246 3.1084946371),POINT(3.0267962257 3.0214742344),POINT(3.0267964753 3.0214371802),POINT(3.0272528247 2.9536814421),POINT(3.0307335914 2.4368803097),POINT(3.0336635672 2.0018569416),POINT(3.0338315695 1.9769130864),POINT(3.0364682172 1.5854411246),POINT(3.0421060738 0.7483695970),POINT(3.0435512346 0.5338017076),POINT(3.0498391452 -0.3997855269),POINT(3.0516129644 -0.6631504273),POINT(3.2281060251 -796.1565697665),POINT(3.4202447638 0.4529428369),POINT(3.5555555556 3.4444444444),POINT(4.0077856225 4.7357388594),POINT(4.1327747778 2.5487432500),POINT(4.1739130435 4.5838509317),POINT(4.3686805737 4.0875462842),POINT(4.3801450615 4.1041160492),POINT(4.4285714286 4.1428571429),POINT(4.5760328689 3.5460739550),POINT(4.5849056604 3.5660377358),POINT(4.9577039275 4.7492447130),POINT(5 1.4359928940),POINT(5.0009584955 4.8011501946),POINT(5.0019206729 4.6015365383),POINT(5.0056715124 3.8233860458),POINT(5.0064476502 3.6623682332),POINT(5.0077272158 3.3969091137),POINT(5.0089332078 3.1467135800),POINT(5.0094356314 3.0424806202),POINT(5.0096403964 3),POINT(5.0099636483 2.9329380354),POINT(5.0119371724 2.5235100393),POINT(5.0172030836 1.4310422628),POINT(5.0184945033 1.1631238698),POINT(5.0190966930 1.0381933861),POINT(5.0273863896 -0.6815899587),POINT(5.0388110212 -3.0517480283),POINT(5.1538116227 3.0440103072),POINT(5.2857142857 5.1428571429),POINT(5.3953214524 1.0828320372),POINT(5.4117647059 3.2352941176),POINT(5.6615415558 2.9261211333),POINT(5.6666666667 6),POINT(5.7502656050 3.0503298338),POINT(5.7901425755 3.1061553595),POINT(6.0655685493 3.0536705196),POINT(6.0978936934 2.9215559542),POINT(6.3076923077 4.7692307692),POINT(6.4333333333 4.2666666667),POINT(6.5629701330 -5.0839601773),POINT(6.5814677242 -0.6960939150),POINT(6.5878957908 0.8287260628),POINT(6.5885286684 0.9788527794),POINT(6.5897634545 1.2717598932),POINT(6.5943967506 2.3708372566),POINT(6.5966963737 2.9163374086),POINT(6.5972990683 3.0593042906),POINT(6.5995854284 3.6016582865),POINT(6.6111704463 0.8237668508),POINT(6.6666666667 6),POINT(6.8516949153 2.1355932203),POINT(6.9888956941 1.5910529132),POINT(7.2330623306 -2.1682926829),POINT(7.8572571429 6),POINT(7.9856220257 3.0740137973),POINT(8.2537313433 1),POINT(8.2759395973 6.5861319909),POINT(8.5254046087 2.8202108786),POINT(8.5486538527 2.8388095297),POINT(8.9629338430 2.8915814908),POINT(10.0002 -1032.34324),POINT(-0.7894269180 2.9936120963),POINT(-0.7566506760 3.3096380288),POINT(-0.7065026362 3.6678383128),POINT(-0.7053428345 3.6761226105),POINT(-0.5322427771 2.8382300112),POINT(0.0484052759 -0.6351220403),POINT(0.1074900991 2.2095287096),POINT(0.2358869378 2.5345369799),POINT(0.5022942954 7.6422084936),POINT(0.5912311308 3.4340124089),POINT(0.6191428706 2.1426011824),POINT(0.6231653578 0.9117872439),POINT(0.6237828170 0.7228550406),POINT(0.7298834722 3.7849802218),POINT(0.9225495060 1.7175497403),POINT(1.0043920789 4.4798381978),POINT(1.0116798512 1.9574351515),POINT(1.0118303293 1.9053525094),POINT(1.0146591821 0.9262458019),POINT(1.1812448804 4.9275020478),POINT(1.3644094599 2.9067716203),POINT(1.3882103518 2.9708293410),POINT(1.3990488222 3),POINT(1.4345726037 7.0883907624),POINT(1.6049428571 6),POINT(1.8713043478 1.3860869565),POINT(1.8756165051 6.6851506239),POINT(1.9943714822 4.6022514071),POINT(2.0600461894 1.2720554273),POINT(2.0949344816 1.4883622029),POINT(2.5137103366 6),POINT(2.5419298093 6.0759498887),POINT(3.1603592893 -775.4271995955),POINT(3.2336465227 -767.0972558089),POINT(3.2667333333 6),POINT(4 1.7237686979),POINT(4 2.9435044208),POINT(4 3.8),POINT(4 4.0774773333),POINT(4 4.7428571429),POINT(5.0642816882 -559.0243444094),POINT(5.0949567997 4.9139481596),POINT(5.2656702765 4.8125362212),POINT(6.4767214716 4.0931141136),POINT(7.0874534584 -329.0674155639),POINT(8.5654958711 2.8522826056),POINT(9.0982599431 -100.5159447848),MULTILINESTRING((-0.7654000000 0,-0.7654 0,5 3),(0.7984790875 4.8060836502,0.2112296896 4.2409946070),(0.2077998615 6.0000000000,0.5 6),(1.9597001717 6,2.05 6),(3.0067352148 6.0000000000,3.2727272727 6,5.3446750972 6,5.6400543978 6.0000000000),(7.8572571429 6,8.5714408160 6,8.6 6,8.9996707299 5.9977938904),(8.6 6,189.7654 5,8.9879098883 3.0846331996),(8.5642005867 3.0801439309,7.9856220257 3.0740137973,7.5520651439 3.0694201919),(6.5972990683 3.0593042906,6.0655685493 3.0536705196),(5.3486916977 3.0460750932,5.1538116227 3.0440103072),(5.0094356314 3.0424806202,4.3491041338 3.0354843010,3.6355363470 3.0279239347),(2.0385111798 3.0110031942,1.2493395518 3.0026417930,1 3),(1 3,1.25 3),(2.5384615385 3,3.0269408593 3,3.616216 3,4.3333333333 3),(5.1818181818 3,5.3333333333 3),(5.7143142857 3,6 3,5.8064734649 3.1290176901),(5.4545454545 3.3636363636,5.0064476502 3.6623682332,4.8 3.8,4.7142857143 3.8571428571,4.5789473684 3.9473684211),(4.3333333333 4.1111111111,3.0135311866 4.9909792089),(3.0135546500 4.9874955282,4.0616928480 4.0205642827),(4.2207880281 3.8737953729,4.4188323829 3.6910949666),(5.2015078274 2.9690591284,5.2944418082 2.8833254246),(5.4972965520 2.6961873254,6 2.232432,5.5941944494 2.3519801509),(6 2.232432,5.3110148363 2.4354033546),(5.1599670733 2.4799012200,5.0119371724 2.5235100393,4.2246414098 2.7554431721,3.5786749422 2.9457414483),(2.7079171620 3.2022620463,2.5755767428 3.2412488280),(2.1233856960 3.3744618987,1.0795040327 3.6819838693,0.9649694453 3.7157251479,0.9383071520 3.7235797173,0.7972370129 3.7651382279),(-0.3237169259 2.7557858007,0.1705719160 2.5603603748,0.1992218003 2.5490331601),(0.2145406004 2.5429766142,0.3773402403 2.4786110323),(6.2425713375 -474.4354732514,6.8266054238 -373.9481997708),(8.9827217440 -2.9728484549,9 0),(9 0,189.7654 1,8.9629338430 2.8915814908),(8.5367224740 2.8960405756,8.4084415075 2.8973826696,7.4307088870 2.9076118494),(6.5966963737 2.9163374086,6.0978936934 2.9215559542),(5.3099332367 2.9297997102,5.2259318350 2.9306785450),(5.0099636483 2.9329380354,4.3067976266 2.9402946597,3.5801662007 2.9478967826),(2.1101717708 2.9632760764,1.2569493469 2.9722026125,1 2.9748908537,0.6149864873 2.9789189206,0.4706781499 2.9804286953,0.3895121129 2.9812778660),(-1.4 3,-1.3068033885 6.9558869146),(-1.2504328134 9.3486307817,0.3114754098 9.9182295082,0.3751862475 9.4631338933),(0.5800167993 8,0.8524653419 6.0538611394,1.3638480457 4.8544607817,1.4831932773 4.8067226891),(2.7391304348 4.3043478261,3.0189095455 4.1924361818,3.7272727273 3.9090909091),(4.1329380819 3.7468247673,4.3333333333 3.6666666667),(4.9024390244 3.4390243902,5.0077272158 3.3969091137),(5.7778019751 3.0888792100,6 3,5.64 2.2800000000),(5.0190966930 1.0381933861,5 1),(5 1,5.0192807927 1),(5.1355938277 1,6 1),(6.4545454545 1,6.5680505834 1,6.5886178171 1),(8.3162393162 1,9 1),(4.4685780457 -501.9006700730,0.4460055444 -116.1650372164),(-0.6865879576 -7.5575053131,-0.7261514394 -3.7636533190),(-0.4848147357 0.1460012823,0.2185007982 0.5119683620,1 0.9186179623),(2.3242601182 1.6076907681,2.8377601486 1.8748882030,3.0338315695 1.9769130864,3.8285992929 2.3904669024),(4.4545454545 3.2727272727,3.9718874308 3.5140562846),(3.9090909091 3.5454545455,3.4 3.8,3.0202739191 3.9898630405),(2.4124061234 2.1806398020,2.9435510802 2.0277891350,3.0336635672 2.0018569416,3.7926407442 1.7834416744),(5.7899135320 1.2086748923,6.0914294335 1.1219059114,6.2487413165 1.0766353578),(6.4409826695 1.0213129479,6.5720655904 0.9835904550,6.5885286684 0.9788527794),(8.1549020264 0.5280884272,8.1821274062 0.5202536216),(8.1776118965 0.4899997067,8.1443064016 0.4970962246),(6.5878957908 0.8287260628,6.5597171564 0.8347301827),(5.0184945033 1.1631238698,5 1.1670645581,3.6468388144 1.4553873323,3.0364682172 1.5854411246),(1.5230208409 1.9079166366,1 2.0193585116,0.2364719009 2.1820461072,0.2152355442 2.1865710118),(0 2.232432,0.2058374298 2.1175524837),(0.2153805064 2.1122264163,1 1.6743240000),(2.2172202432 0.9949836445,2.2289871450 0.9884164425,3.0435512346 0.5338017076,3.1987487661 0.4471847237),(3.2727272727 0.4058967273,4 0,3.4202447638 0.4529428369),(3.2577357849 0.5799055160,3.0421060738 0.7483695970),(1.5145510415 1.9417958340,1 2.343796875,0.4991642495 2.7350826306,0.3765650543 2.8308651675,0.3301406781 2.8671349368),(1 0,1.32 0.384),(1 0,1.6820976352 0.8185171622),(1 0,1.7692307692 0.9230769231),(2.3207547170 1.5849056604,3.0307335914 2.4368803097,3.1739130435 2.6086956522),(3.96875 3.5625,4.1847126253 3.8216551503,4.4536082474 4.1443298969,4.4615384615 4.1538461538,4.7040606525 4.4448727830),(5.4934139009 5.3920966811,5.8632391605 5.8358869926),(6.0810728025 5.6757087902,6.1818181818 5.2727272727),(6.4814968445 4.0740126218,6.5702479339 3.7190082645,6.5852462189 3.6590151243,6.5995854284 3.6016582865),(6.9375 2.25,7 2,6.8516949153 2.1355932203),(6.5943967506 2.3708372566,6.1283948452 2.7968961415),(5.4671532847 3.4014598540,5.0056715124 3.8233860458,4.9761904762 3.8503401361,4.7878103837 4.0225733634,4.5954198473 4.1984732824,4.5035473936 4.2824709544),(2.4636027453 6.1475632043,2.2241035857 6.3665338645,2.1741221724 6.4122311566),(0.3943669748 8.0394359088,0.2034829350 8.2139584594),(-0.1752389675 5.1611287259,0.1488190118 6.3478065467),(0.2067083387 6.5597932425,0.2867630190 6.8529479238),(0.6 8,0.6060238218 6.1568110873,0.6079474592 5.5682101632,0.6149852779 3.4147551364,0.6156517715 3.2108192282),(0.6246098681 0.4697912000,0.6419435163 -4.8340157915),(3.2812099380 -783.5596393895,1.0290092830 -4.0405309698,1.0156054491 0.5987291550),(1.0086593145 3.0028864382,1.0063480799 3.8028380629,1.0062650449 3.8315776758,1.0058459975 3.9766160101),(0.9967859042 5.9935718085,0.6666666667 5.3333333333,0.2108772318 4.4217544636),(0.2070612197 6.3788163409,0.2284922020 6.3145233939,0.9685212894 4.0944361319,1 4),(2.0460878081 0.9385495893,2.1914893617 0.7446808511,2.6052344828 0.1930206896,2.9014778325 -0.2019704433),(3.0498391452 -0.3997855269,5 -3),(6.3385518591 -4.7847358121,6.5629701330 -5.0839601773),(8 -7,7.2330623306 -2.1682926829),(7.0102742954 -0.7647280611,7 -0.7,6.9839616249 -0.6998503168),(6.5814677242 -0.6960939150,5.0273863896 -0.6815899587,5 -0.6813343665,3.0516129644 -0.6631504273),(2.6782119298 -0.6596655439,0.2207406090 -0.6367304144),(5 0,5.0240084144 0.0192059633),(6.3855608647 1.1084043555,6.4066720887 1.1252926593,6.5159963134 1.2127485408,6.5897634545 1.2717598932),(8.9743759359 3.1793735737,8.9390415661 5.5915784930,8.5454561997 6.1818975107),(6.5714285714 5.8571428571,6.2184057777 5.5747246221,5.5747237599 5.0597790079),(5.0849420849 4.6679536680,5.0689655172 4.6551724138,5.0019206729 4.6015365383,4.7710896257 4.4168717006,4.4457831325 4.1566265060),(3 3,2.5509103169 3.0809170600),(2.3867403315 3.1104972376,1.7017543860 3.2339181287,1.1674528302 3.3301886792,0.8122406639 3.3941908714,0.7393077198 3.4073319424,0.6221081322 3.4284489852))) +GEOMETRYCOLLECTION(POINT(-1.3068033885 6.9558869146),POINT(-1.2504328134 9.3486307817),POINT(-0.5326974515 -0.629698715),POINT(-0.3237169259 2.7557858007),POINT(-0.3093463319 2.9885894239),POINT(-0.287077395 3.3493462005),POINT(-0.2722472775 3.5895941041),POINT(-0.2600297177 3.7875185736),POINT(0.203482935 8.2139584594),POINT(0.2067083387 6.5597932425),POINT(0.2070612197 6.3788163409),POINT(0.2077998615 6),POINT(0.2108772318 4.4217544636),POINT(0.2112296896 4.240994607),POINT(0.2118212718 3.937598583),POINT(0.2126701994 3.5022215857),POINT(0.213682384 2.983117422),POINT(0.2137312004 2.9580816601),POINT(0.2145406004 2.5429766142),POINT(0.2152355442 2.1865710118),POINT(0.2153805064 2.1122264163),POINT(0.2185007982 0.511968362),POINT(0.2364719009 2.1820461072),POINT(0.3301406781 2.8671349368),POINT(0.3895121129 2.981277866),POINT(0.4375 8),POINT(0.5720091517 8.0571997712),POINT(0.616399932 2.9818945937),POINT(0.9813981034 6),POINT(1 2.232432),POINT(1.0000224789 5.9922197425),POINT(1.0053012917 4.1651465202),POINT(1.0086593145 3.0028864382),POINT(1.0150805761 0.7803952511),POINT(1.0388693195 3.8833920414),POINT(1.0412371134 3.8762886598),POINT(1.3 3.1),POINT(1.5230208409 1.9079166366),POINT(1.5923914063 4.7630434375),POINT(1.6756969713 1.2972121147),POINT(1.701754386 3.2339181287),POINT(2 3),POINT(2.2832654866 1.3412256626),POINT(2.320754717 1.5849056604),POINT(2.343551285 1.7330833525),POINT(2.3707483564 6),POINT(2.3867403315 3.1104972376),POINT(2.403519712 1.24727517),POINT(2.4124061234 2.180639802),POINT(2.5321325326 2.958861462),POINT(2.5409733635 3.0163268625),POINT(2.5509103169 3.08091706),POINT(2.688755217 1.6595295465),POINT(2.9537572254 5.6994219653),POINT(3 6),POINT(3.0067352148 6),POINT(3.0091004712 5.6488224263),POINT(3.0189095455 4.1924361818),POINT(3.0202739191 3.9898630405),POINT(3.0262101246 3.1084946371),POINT(3.0267962257 3.0214742344),POINT(3.0267964753 3.0214371802),POINT(3.0272528247 2.9536814421),POINT(3.0307335914 2.4368803097),POINT(3.0336635672 2.0018569416),POINT(3.0338315695 1.9769130864),POINT(3.0364682172 1.5854411246),POINT(3.0421060738 0.748369597),POINT(3.0435512346 0.5338017076),POINT(3.0498391452 -0.3997855269),POINT(3.0516129644 -0.6631504273),POINT(3.2281060251 -796.1565697665),POINT(3.4202447638 0.4529428369),POINT(3.5555555556 3.4444444444),POINT(4.0077856225 4.7357388594),POINT(4.1327747778 2.54874325),POINT(4.1739130435 4.5838509317),POINT(4.3686805737 4.0875462842),POINT(4.3801450615 4.1041160492),POINT(4.4285714286 4.1428571429),POINT(4.5760328689 3.546073955),POINT(4.5849056604 3.5660377358),POINT(4.9577039275 4.749244713),POINT(5 1.435992894),POINT(5.0009584955 4.8011501946),POINT(5.0019206729 4.6015365383),POINT(5.0056715124 3.8233860458),POINT(5.0064476502 3.6623682332),POINT(5.0077272158 3.3969091137),POINT(5.0089332078 3.14671358),POINT(5.0094356314 3.0424806202),POINT(5.0096403964 3),POINT(5.0099636483 2.9329380354),POINT(5.0119371724 2.5235100393),POINT(5.0172030836 1.4310422628),POINT(5.0184945033 1.1631238698),POINT(5.019096693 1.0381933861),POINT(5.0273863896 -0.6815899587),POINT(5.0388110212 -3.0517480283),POINT(5.1538116227 3.0440103072),POINT(5.2857142857 5.1428571429),POINT(5.3953214524 1.0828320372),POINT(5.4117647059 3.2352941176),POINT(5.6615415558 2.9261211333),POINT(5.6666666667 6),POINT(5.750265605 3.0503298338),POINT(5.7901425755 3.1061553595),POINT(6.0655685493 3.0536705196),POINT(6.0978936934 2.9215559542),POINT(6.3076923077 4.7692307692),POINT(6.4333333333 4.2666666667),POINT(6.562970133 -5.0839601773),POINT(6.5814677242 -0.696093915),POINT(6.5878957908 0.8287260628),POINT(6.5885286684 0.9788527794),POINT(6.5897634545 1.2717598932),POINT(6.5943967506 2.3708372566),POINT(6.5966963737 2.9163374086),POINT(6.5972990683 3.0593042906),POINT(6.5995854284 3.6016582865),POINT(6.6111704463 0.8237668508),POINT(6.6666666667 6),POINT(6.8516949153 2.1355932203),POINT(6.9888956941 1.5910529132),POINT(7.2330623306 -2.1682926829),POINT(7.8572571429 6),POINT(7.9856220257 3.0740137973),POINT(8.2537313433 1),POINT(8.2759395973 6.5861319909),POINT(8.5254046087 2.8202108786),POINT(8.5486538527 2.8388095297),POINT(8.962933843 2.8915814908),POINT(10.0002 -1032.34324),POINT(-0.789426918 2.9936120963),POINT(-0.756650676 3.3096380288),POINT(-0.7065026362 3.6678383128),POINT(-0.7053428345 3.6761226105),POINT(-0.5322427771 2.8382300112),POINT(0.0484052759 -0.6351220403),POINT(0.1074900991 2.2095287096),POINT(0.2358869378 2.5345369799),POINT(0.5022942954 7.6422084936),POINT(0.5912311308 3.4340124089),POINT(0.6191428706 2.1426011824),POINT(0.6231653578 0.9117872439),POINT(0.623782817 0.7228550406),POINT(0.7298834722 3.7849802218),POINT(0.922549506 1.7175497403),POINT(1.0043920789 4.4798381978),POINT(1.0116798512 1.9574351515),POINT(1.0118303293 1.9053525094),POINT(1.0146591821 0.9262458019),POINT(1.1812448804 4.9275020478),POINT(1.3644094599 2.9067716203),POINT(1.3882103518 2.970829341),POINT(1.3990488222 3),POINT(1.4345726037 7.0883907624),POINT(1.6049428571 6),POINT(1.8713043478 1.3860869565),POINT(1.8756165051 6.6851506239),POINT(1.9943714822 4.6022514071),POINT(2.0600461894 1.2720554273),POINT(2.0949344816 1.4883622029),POINT(2.5137103366 6),POINT(2.5419298093 6.0759498887),POINT(3.1603592893 -775.4271995955),POINT(3.2336465227 -767.0972558089),POINT(3.2667333333 6),POINT(4 1.7237686979),POINT(4 2.9435044208),POINT(4 3.8),POINT(4 4.0774773333),POINT(4 4.7428571429),POINT(5.0642816882 -559.0243444094),POINT(5.0949567997 4.9139481596),POINT(5.2656702765 4.8125362212),POINT(6.4767214716 4.0931141136),POINT(7.0874534584 -329.0674155639),POINT(8.5654958711 2.8522826056),POINT(9.0982599431 -100.5159447848),MULTILINESTRING((-0.7654 0,-0.7654 0,5 3),(0.7984790875 4.8060836502,0.2112296896 4.240994607),(0.2077998615 6,0.5 6),(1.9597001717 6,2.05 6),(3.0067352148 6,3.2727272727 6,5.3446750972 6,5.6400543978 6),(7.8572571429 6,8.571440816 6,8.6 6,8.9996707299 5.9977938904),(8.6 6,189.7654 5,8.9879098883 3.0846331996),(8.5642005867 3.0801439309,7.9856220257 3.0740137973,7.5520651439 3.0694201919),(6.5972990683 3.0593042906,6.0655685493 3.0536705196),(5.3486916977 3.0460750932,5.1538116227 3.0440103072),(5.0094356314 3.0424806202,4.3491041338 3.035484301,3.635536347 3.0279239347),(2.0385111798 3.0110031942,1.2493395518 3.002641793,1 3),(1 3,1.25 3),(2.5384615385 3,3.0269408593 3,3.616216 3,4.3333333333 3),(5.1818181818 3,5.3333333333 3),(5.7143142857 3,6 3,5.8064734649 3.1290176901),(5.4545454545 3.3636363636,5.0064476502 3.6623682332,4.8 3.8,4.7142857143 3.8571428571,4.5789473684 3.9473684211),(4.3333333333 4.1111111111,3.0135311866 4.9909792089),(3.01355465 4.9874955282,4.061692848 4.0205642827),(4.2207880281 3.8737953729,4.4188323829 3.6910949666),(5.2015078274 2.9690591284,5.2944418082 2.8833254246),(5.497296552 2.6961873254,6 2.232432,5.5941944494 2.3519801509),(6 2.232432,5.3110148363 2.4354033546),(5.1599670733 2.47990122,5.0119371724 2.5235100393,4.2246414098 2.7554431721,3.5786749422 2.9457414483),(2.707917162 3.2022620463,2.5755767428 3.241248828),(2.123385696 3.3744618987,1.0795040327 3.6819838693,0.9649694453 3.7157251479,0.938307152 3.7235797173,0.7972370129 3.7651382279),(-0.3237169259 2.7557858007,0.170571916 2.5603603748,0.1992218003 2.5490331601),(0.2145406004 2.5429766142,0.3773402403 2.4786110323),(6.2425713375 -474.4354732514,6.8266054238 -373.9481997708),(8.982721744 -2.9728484549,9 0),(9 0,189.7654 1,8.962933843 2.8915814908),(8.536722474 2.8960405756,8.4084415075 2.8973826696,7.430708887 2.9076118494),(6.5966963737 2.9163374086,6.0978936934 2.9215559542),(5.3099332367 2.9297997102,5.225931835 2.930678545),(5.0099636483 2.9329380354,4.3067976266 2.9402946597,3.5801662007 2.9478967826),(2.1101717708 2.9632760764,1.2569493469 2.9722026125,1 2.9748908537,0.6149864873 2.9789189206,0.4706781499 2.9804286953,0.3895121129 2.981277866),(-1.4 3,-1.3068033885 6.9558869146),(-1.2504328134 9.3486307817,0.3114754098 9.9182295082,0.3751862475 9.4631338933),(0.5800167993 8,0.8524653419 6.0538611394,1.3638480457 4.8544607817,1.4831932773 4.8067226891),(2.7391304348 4.3043478261,3.0189095455 4.1924361818,3.7272727273 3.9090909091),(4.1329380819 3.7468247673,4.3333333333 3.6666666667),(4.9024390244 3.4390243902,5.0077272158 3.3969091137),(5.7778019751 3.08887921,6 3,5.64 2.28),(5.019096693 1.0381933861,5 1),(5 1,5.0192807927 1),(5.1355938277 1,6 1),(6.4545454545 1,6.5680505834 1,6.5886178171 1),(8.3162393162 1,9 1),(4.4685780457 -501.900670073,0.4460055444 -116.1650372164),(-0.6865879576 -7.5575053131,-0.7261514394 -3.763653319),(-0.4848147357 0.1460012823,0.2185007982 0.511968362,1 0.9186179623),(2.3242601182 1.6076907681,2.8377601486 1.874888203,3.0338315695 1.9769130864,3.8285992929 2.3904669024),(4.4545454545 3.2727272727,3.9718874308 3.5140562846),(3.9090909091 3.5454545455,3.4 3.8,3.0202739191 3.9898630405),(2.4124061234 2.180639802,2.9435510802 2.027789135,3.0336635672 2.0018569416,3.7926407442 1.7834416744),(5.789913532 1.2086748923,6.0914294335 1.1219059114,6.2487413165 1.0766353578),(6.4409826695 1.0213129479,6.5720655904 0.983590455,6.5885286684 0.9788527794),(8.1549020264 0.5280884272,8.1821274062 0.5202536216),(8.1776118965 0.4899997067,8.1443064016 0.4970962246),(6.5878957908 0.8287260628,6.5597171564 0.8347301827),(5.0184945033 1.1631238698,5 1.1670645581,3.6468388144 1.4553873323,3.0364682172 1.5854411246),(1.5230208409 1.9079166366,1 2.0193585116,0.2364719009 2.1820461072,0.2152355442 2.1865710118),(0 2.232432,0.2058374298 2.1175524837),(0.2153805064 2.1122264163,1 1.674324),(2.2172202432 0.9949836445,2.228987145 0.9884164425,3.0435512346 0.5338017076,3.1987487661 0.4471847237),(3.2727272727 0.4058967273,4 0,3.4202447638 0.4529428369),(3.2577357849 0.579905516,3.0421060738 0.748369597),(1.5145510415 1.941795834,1 2.343796875,0.4991642495 2.7350826306,0.3765650543 2.8308651675,0.3301406781 2.8671349368),(1 0,1.32 0.384),(1 0,1.6820976352 0.8185171622),(1 0,1.7692307692 0.9230769231),(2.320754717 1.5849056604,3.0307335914 2.4368803097,3.1739130435 2.6086956522),(3.96875 3.5625,4.1847126253 3.8216551503,4.4536082474 4.1443298969,4.4615384615 4.1538461538,4.7040606525 4.444872783),(5.4934139009 5.3920966811,5.8632391605 5.8358869926),(6.0810728025 5.6757087902,6.1818181818 5.2727272727),(6.4814968445 4.0740126218,6.5702479339 3.7190082645,6.5852462189 3.6590151243,6.5995854284 3.6016582865),(6.9375 2.25,7 2,6.8516949153 2.1355932203),(6.5943967506 2.3708372566,6.1283948452 2.7968961415),(5.4671532847 3.401459854,5.0056715124 3.8233860458,4.9761904762 3.8503401361,4.7878103837 4.0225733634,4.5954198473 4.1984732824,4.5035473936 4.2824709544),(2.4636027453 6.1475632043,2.2241035857 6.3665338645,2.1741221724 6.4122311566),(0.3943669748 8.0394359088,0.203482935 8.2139584594),(-0.1752389675 5.1611287259,0.1488190118 6.3478065467),(0.2067083387 6.5597932425,0.286763019 6.8529479238),(0.6 8,0.6060238218 6.1568110873,0.6079474592 5.5682101632,0.6149852779 3.4147551364,0.6156517715 3.2108192282),(0.6246098681 0.4697912,0.6419435163 -4.8340157915),(3.281209938 -783.5596393895,1.029009283 -4.0405309698,1.0156054491 0.598729155),(1.0086593145 3.0028864382,1.0063480799 3.8028380629,1.0062650449 3.8315776758,1.0058459975 3.9766160101),(0.9967859042 5.9935718085,0.6666666667 5.3333333333,0.2108772318 4.4217544636),(0.2070612197 6.3788163409,0.228492202 6.3145233939,0.9685212894 4.0944361319,1 4),(2.0460878081 0.9385495893,2.1914893617 0.7446808511,2.6052344828 0.1930206896,2.9014778325 -0.2019704433),(3.0498391452 -0.3997855269,5 -3),(6.3385518591 -4.7847358121,6.562970133 -5.0839601773),(8 -7,7.2330623306 -2.1682926829),(7.0102742954 -0.7647280611,7 -0.7,6.9839616249 -0.6998503168),(6.5814677242 -0.696093915,5.0273863896 -0.6815899587,5 -0.6813343665,3.0516129644 -0.6631504273),(2.6782119298 -0.6596655439,0.220740609 -0.6367304144),(5 0,5.0240084144 0.0192059633),(6.3855608647 1.1084043555,6.4066720887 1.1252926593,6.5159963134 1.2127485408,6.5897634545 1.2717598932),(8.9743759359 3.1793735737,8.9390415661 5.591578493,8.5454561997 6.1818975107),(6.5714285714 5.8571428571,6.2184057777 5.5747246221,5.5747237599 5.0597790079),(5.0849420849 4.667953668,5.0689655172 4.6551724138,5.0019206729 4.6015365383,4.7710896257 4.4168717006,4.4457831325 4.156626506),(3 3,2.5509103169 3.08091706),(2.3867403315 3.1104972376,1.701754386 3.2339181287,1.1674528302 3.3301886792,0.8122406639 3.3941908714,0.7393077198 3.4073319424,0.6221081322 3.4284489852))) SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB( ST_ASWKB( @@ -2135,14 +2135,14 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTIPOINT(4 2, 2 4, 4 1, 5 -3.9, 10.0002 3, 2.232432 2, 189.7654 -.9, 7 7),' 'POLYGON((8 3, -0.7654 -.0, 10.0002 8, 1 6, 189.7654 4, -1032.34324 4, 8 3),' - '(2 7, 2.232432 0.5, 9 2, 2.232432 1, 9 5, 6 8, 8 -1032.34324, -9.7 -.1, 9.9 2, 1 5, 1 -.6, 10.0002 -.7, 1 4, 7.0 9, 2 7)),' + '(2 7, 2.232432 0.5, 9 2, 2.232432 1, 9 5, 6 8, 8 -1032.34324, -9.7 -.1, 9.9 2, 1 5, 1 -.6, 10.0002 -.7, 1 4, 7 9, 2 7)),' 'MULTILINESTRING((1 8, 9 -0.7654, 5 7, +.0 -0.7654, 8 7),' '(8 1.1, 6 4, -.4 10.0002, -.3 -1, +.3 8)))'), ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'POINT(9 6.7),' 'MULTILINESTRING((5 0, 2.232432 -0.7654, 0 0, 10.0002 1),' '(9 0.6, -2.8 0, 2.232432 2.4),' - '(1 -1032.34324, -1032.34324 -7.0, 1 0, 0 9, +.2 189.7654, 5 1),' + '(1 -1032.34324, -1032.34324 -7, 1 0, 0 9, +.2 189.7654, 5 1),' '(-9.3 189.7654, 7 0, 10.0002 -1032.34324, 3 9.6, 9 10.0002),' '(1 8, 9 -0.7654, -0.7654 3, 8 5, 3 3)),' 'POINT(-1032.34324 1))'))); @@ -2150,7 +2150,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTIPOINT(4 2, 2 4, 4 1, 5 -3.9, 10.0002 3, 2.232432 2, 189.7654 -.9, 7 7),' 'POLYGON((8 3, -0.7654 -.0, 10.0002 8, 1 6, 189.7654 4, -1032.3 -GEOMETRYCOLLECTION(MULTIPOINT((-0.3372510562 3.0976906801),(-0.3348537979 2.8339874793),(-0.3198433036 1.1828030804),(-0.3102416127 0.1265978841),(-0.3090101325 -0.0088674030),(-0.2338905689 -0.0083585334),(-0.2246031746 0.1309523810),(-0.1490496190 1.2642557146),(-0.0516800214 2.7247996797),(-0.0220256254 3.1696156193),(0.0006909947 9.6245396709),(0.2291666667 6.9375000000),(0.4037058684 -0.1384124899),(0.4906053100 -0.0034507051),(0.5267424688 0.0526731934),(0.5827047144 -0.1997831013),(0.6042825300 0.1730991117),(0.7870372296 -0.0014426372),(0.8790860446 0.0879068463),(0.9253601792 0.6717583871),(0.9794121261 0.1852908655),(0.9868946509 0.1925539653),(1.7900313280 2.0146618549),(1.9520445749 2.2662813883),(2.5587058793 1.7182718293),(2.9738176599 3.8531767312),(3.0188456363 6.7949253770),(3.0256607305 5.7805341792),(3.0379404331 3.9527645278),(3.0497503740 2.1949164443),(4.4726040206 4.1951545898),(4.4953782801 3.5981513120),(4.8532261085 6.7720484046),(4.8974296564 5.0336941524),(4.9233692253 4.0135914228),(4.9315388650 3.6923111541),(5.3064159905 4.3854053416),(5.5336194665 4.4372463245),(5.8504707834 4.1401883134),(6.2373749654 4.5978221109),(6.3667328678 4.3466931471),(6.5219648855 5.5653082652),(6.6786520256 3.7411488902),(6.7498049725 2.9127827899),(6.8647923932 1.5740935946),(7.6071593150 0.7607007175),(7.8090944134 0.5394454786),(8.1841753585 0.8184011678),(8.3146261708 0.5651504833)),LINESTRING(1 8,9 -0.7654),MULTILINESTRING((5 0,2.7597928442 -0.6195528193),(1.7751316411 -0.6086123824,1 -0.3428547880),(1 0.0999980000,6.0142233628 0.6014103081,7.2679974043 0.7267852047),(7.6429212430 0.5309959954,6.0145179089 0.4481958259),(-0.6159558539 0.1110530922,-1.0710967784 0.8245253452,1 1.8122450537,2.1656295601 2.3681414760,2.232432 2.4),(1 -1032.34324,-1032.34324 -7,-9.4258426570 -0.0706259990),(1 -1032.34324,-1032.34324 -7,1 0,0.9353243309 0.5820810223),(0.8850980392 1.0341176471,0.8653527873 1.2118249144,0.6658833657 3.0070497086,0.5555555556 4),(4.8187590660 8.1275036264,4.8422953497 7.2019127914),(4.8510969412 6.8557803029,4.8739017540 5.9589553832),(4.9237148333 4.0000000000,4.9319889651 3.6746104612,4.9490686504 3.0029326200),(4.9754657064 1.9648386975,4.9765189274 1.9234195952,4.9879543333 1.4737093929),(4.9896400953 1.4074149082,4.9971321117 1.1127829329),(6.2526188907 8.7010475563,6.2785792289 8.3988160241),(6.3422319379 7.6577680621,6.3818999440 7.1959511886,6.4896227875 5.9418365570),(6.6564178718 4,6.6879049135 3.6334263142),(6.7366177905 3.0663086100,6.7422095548 3.0012090149),(6.7782311549 2.5818437795,6.8554283335 1.6831104369,6.8562211152 1.6738808338),(6.9220549563 0.9074400241,7 0,7.0019375276 -0.6666867128),(7 0,10.0002 -1032.34324,7.1982283495 -615.2843816966),(3.0686821851 -0.6229848468,3.0599053208 0.6834056165,3.0569597721 1.1218351662),(3.0559864248 1.2667128312,3.0557104295 1.3077932882),(3.0545138695 1.4858950036,3.0454709428 2.8318874510,3.0447971013 2.9321852430),(3.0443094908 3.0047635149,3.0376230859 4),(3.0262786135 5.6885655113,3.0243303666 5.9785518917,3.0211687728 6.4491386353),(2.0035607296 6.9004235976,2.5175747094 6.3372313303,2.8431823448 5.9804711844),(4.6507175942 4,4.9546723454 3.6669643780,5.5612575161 3.0023441710),(6.0105540915 2.5100611458,6.1433550877 2.3645544143,6.7760059328 1.6713746996,6.7810676715 1.6658286791),(7.9751498478 0.3575026906,8.9294526862 -0.6881030720),(8.7956790426 -0.6866167312,6.0146380279 0.3857133154),(4.4458861584 0.9906018288,3.8150313209 1.2338505237),(3.5832840203 1.3232090022,3.3563815059 1.4106993997),(3.0966996067 1.5108290639,2.1836974544 1.8628697693),(1.8925403056 1.9751358442,1 2.3192867512),(-0.7286285204 3.0083901430,1 3.4028110525,1.7958482044 3.5843996177),(2.1194969918 3.6582465128,3.6173000000 4),(6.0066417008 4.5451757366,8 5,6.0072996680 4.2029198672),(5.5 4,4.7987804878 3.7195121951,3.5884518756 3.2353807502,3.0119864612 3.0047945845)),POINT(-9.4258426570 -0.0706259990),POINT(-1.0710967784 0.8245253452),POINT(-0.6159558539 0.1110530922),POINT(-0.4103840779 0.1215058943),POINT(0.6658833657 3.0070497086),POINT(1 0.0999980000),POINT(1 0.1932203390),POINT(1 2.3192867512),POINT(2.1836974544 1.8628697693),POINT(2.5175747094 6.3372313303),POINT(3.0147408839 7.4058963536),POINT(3.0355143686 4.3138715611),POINT(3.0443094908 3.0047635149),POINT(3.0736043131 5.7280035942),POINT(3.8256403046 4.0475369760),POINT(4.6372529470 4.0147528773),POINT(4.8739017540 5.9589553832),POINT(4.9180340431 4.2234034652),POINT(4.9490686504 3.0029326200),POINT(4.9590205789 2.6115618366),POINT(5.0605460553 4.3293052354),POINT(5.5612575161 3.0023441710),POINT(5.5819055350 2.9797206530),POINT(6.0066417008 4.5451757366),POINT(6.0072996680 4.2029198672),POINT(6.0105540915 2.5100611458),POINT(6.0142233628 0.6014103081),POINT(6.0145179089 0.4481958259),POINT(6.0146380279 0.3857133154),POINT(6.4896227875 5.9418365570),POINT(6.5340770841 5.4242974542),POINT(6.6879049135 3.6334263142),POINT(6.7366177905 3.0663086100),POINT(6.7422095548 3.0012090149),POINT(6.8687837670 1.5276258252),POINT(6.9007384247 1.5347084266),POINT(6.9220549563 0.9074400241),POINT(7.6429212430 0.5309959954),POINT(7.9751498478 0.3575026906),POINT(8.9294526862 -0.6881030720)) +GEOMETRYCOLLECTION(MULTIPOINT((-0.3372510562 3.0976906801),(-0.3348537979 2.8339874793),(-0.3198433036 1.1828030804),(-0.3102416127 0.1265978841),(-0.3090101325 -0.008867403),(-0.2338905689 -0.0083585334),(-0.2246031746 0.130952381),(-0.149049619 1.2642557146),(-0.0516800214 2.7247996797),(-0.0220256254 3.1696156193),(0.0006909947 9.6245396709),(0.2291666667 6.9375),(0.4037058684 -0.1384124899),(0.49060531 -0.0034507051),(0.5267424688 0.0526731934),(0.5827047144 -0.1997831013),(0.60428253 0.1730991117),(0.7870372296 -0.0014426372),(0.8790860446 0.0879068463),(0.9253601792 0.6717583871),(0.9794121261 0.1852908655),(0.9868946509 0.1925539653),(1.790031328 2.0146618549),(1.9520445749 2.2662813883),(2.5587058793 1.7182718293),(2.9738176599 3.8531767312),(3.0188456363 6.794925377),(3.0256607305 5.7805341792),(3.0379404331 3.9527645278),(3.049750374 2.1949164443),(4.4726040206 4.1951545898),(4.4953782801 3.598151312),(4.8532261085 6.7720484046),(4.8974296564 5.0336941524),(4.9233692253 4.0135914228),(4.931538865 3.6923111541),(5.3064159905 4.3854053416),(5.5336194665 4.4372463245),(5.8504707834 4.1401883134),(6.2373749654 4.5978221109),(6.3667328678 4.3466931471),(6.5219648855 5.5653082652),(6.6786520256 3.7411488902),(6.7498049725 2.9127827899),(6.8647923932 1.5740935946),(7.607159315 0.7607007175),(7.8090944134 0.5394454786),(8.1841753585 0.8184011678),(8.3146261708 0.5651504833)),LINESTRING(1 8,9 -0.7654),MULTILINESTRING((5 0,2.7597928442 -0.6195528193),(1.7751316411 -0.6086123824,1 -0.342854788),(1 0.099998,6.0142233628 0.6014103081,7.2679974043 0.7267852047),(7.642921243 0.5309959954,6.0145179089 0.4481958259),(-0.6159558539 0.1110530922,-1.0710967784 0.8245253452,1 1.8122450537,2.1656295601 2.368141476,2.232432 2.4),(1 -1032.34324,-1032.34324 -7,-9.425842657 -0.070625999),(1 -1032.34324,-1032.34324 -7,1 0,0.9353243309 0.5820810223),(0.8850980392 1.0341176471,0.8653527873 1.2118249144,0.6658833657 3.0070497086,0.5555555556 4),(4.818759066 8.1275036264,4.8422953497 7.2019127914),(4.8510969412 6.8557803029,4.873901754 5.9589553832),(4.9237148333 4,4.9319889651 3.6746104612,4.9490686504 3.00293262),(4.9754657064 1.9648386975,4.9765189274 1.9234195952,4.9879543333 1.4737093929),(4.9896400953 1.4074149082,4.9971321117 1.1127829329),(6.2526188907 8.7010475563,6.2785792289 8.3988160241),(6.3422319379 7.6577680621,6.381899944 7.1959511886,6.4896227875 5.941836557),(6.6564178718 4,6.6879049135 3.6334263142),(6.7366177905 3.06630861,6.7422095548 3.0012090149),(6.7782311549 2.5818437795,6.8554283335 1.6831104369,6.8562211152 1.6738808338),(6.9220549563 0.9074400241,7 0,7.0019375276 -0.6666867128),(7 0,10.0002 -1032.34324,7.1982283495 -615.2843816966),(3.0686821851 -0.6229848468,3.0599053208 0.6834056165,3.0569597721 1.1218351662),(3.0559864248 1.2667128312,3.0557104295 1.3077932882),(3.0545138695 1.4858950036,3.0454709428 2.831887451,3.0447971013 2.932185243),(3.0443094908 3.0047635149,3.0376230859 4),(3.0262786135 5.6885655113,3.0243303666 5.9785518917,3.0211687728 6.4491386353),(2.0035607296 6.9004235976,2.5175747094 6.3372313303,2.8431823448 5.9804711844),(4.6507175942 4,4.9546723454 3.666964378,5.5612575161 3.002344171),(6.0105540915 2.5100611458,6.1433550877 2.3645544143,6.7760059328 1.6713746996,6.7810676715 1.6658286791),(7.9751498478 0.3575026906,8.9294526862 -0.688103072),(8.7956790426 -0.6866167312,6.0146380279 0.3857133154),(4.4458861584 0.9906018288,3.8150313209 1.2338505237),(3.5832840203 1.3232090022,3.3563815059 1.4106993997),(3.0966996067 1.5108290639,2.1836974544 1.8628697693),(1.8925403056 1.9751358442,1 2.3192867512),(-0.7286285204 3.008390143,1 3.4028110525,1.7958482044 3.5843996177),(2.1194969918 3.6582465128,3.6173 4),(6.0066417008 4.5451757366,8 5,6.007299668 4.2029198672),(5.5 4,4.7987804878 3.7195121951,3.5884518756 3.2353807502,3.0119864612 3.0047945845)),POINT(-9.425842657 -0.070625999),POINT(-1.0710967784 0.8245253452),POINT(-0.6159558539 0.1110530922),POINT(-0.4103840779 0.1215058943),POINT(0.6658833657 3.0070497086),POINT(1 0.099998),POINT(1 0.193220339),POINT(1 2.3192867512),POINT(2.1836974544 1.8628697693),POINT(2.5175747094 6.3372313303),POINT(3.0147408839 7.4058963536),POINT(3.0355143686 4.3138715611),POINT(3.0443094908 3.0047635149),POINT(3.0736043131 5.7280035942),POINT(3.8256403046 4.047536976),POINT(4.637252947 4.0147528773),POINT(4.873901754 5.9589553832),POINT(4.9180340431 4.2234034652),POINT(4.9490686504 3.00293262),POINT(4.9590205789 2.6115618366),POINT(5.0605460553 4.3293052354),POINT(5.5612575161 3.002344171),POINT(5.581905535 2.979720653),POINT(6.0066417008 4.5451757366),POINT(6.007299668 4.2029198672),POINT(6.0105540915 2.5100611458),POINT(6.0142233628 0.6014103081),POINT(6.0145179089 0.4481958259),POINT(6.0146380279 0.3857133154),POINT(6.4896227875 5.941836557),POINT(6.5340770841 5.4242974542),POINT(6.6879049135 3.6334263142),POINT(6.7366177905 3.06630861),POINT(6.7422095548 3.0012090149),POINT(6.868783767 1.5276258252),POINT(6.9007384247 1.5347084266),POINT(6.9220549563 0.9074400241),POINT(7.642921243 0.5309959954),POINT(7.9751498478 0.3575026906),POINT(8.9294526862 -0.688103072)) SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('MULTILINESTRING((-.4 2, 2.232432 3, 6 9, 8 189.7654, -1032.34324 5.4, 2.232432 9),' '(-1032.34324 3, 8 -1.6),' @@ -2275,7 +2275,7 @@ GEOMETRYCOLLECTION(POINT(-8 -9),POINT(-6 3),POINT(-3 7),POINT(-3 9),POINT(-2 6), ###################################################################################################### SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB(GEOMETRYCOLLECTION( -MULTIPOINT(POINT(8,-6.0), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), +MULTIPOINT(POINT(8,-6), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), MULTIPOINT(POINT(8,-0.7654), POINT(2,7), POINT(8,-0.7654), POINT(-.0,7), POINT(.0,6), POINT(.9,+.4), POINT(6,2.232432)), POLYGON( LINESTRING(POINT(8,6), POINT(-.4,3), POINT(-9.8,2.232432), POINT(-1032.34324,8), POINT(2.232432,.8), POINT(8,6))), @@ -2284,7 +2284,7 @@ LINESTRING(POINT(0,9), POINT(3,1), POINT(3,0), POINT(3,2), POINT(0,9))))), ST_GEOMFROMTEXT('MULTILINESTRING((-0.7654 2.232432, 7 2, -6 -1032.34324, 9 7, 2.8 4))'))); ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB(GEOMETRYCOLLECTION( -MULTIPOINT(POINT(8,-6.0), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), +MULTIPOINT(POINT(8,-6), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), MULTIPOINT(POINT(8,-0.7654), POINT(2,7), POINT(8,-0.7654), POINT(-.0,7), POINT(.0,6), POINT( GEOMETRYCOLLECTION(MULTILINESTRING((-0.7654 2.232432,3.6737899159 2.0995592838),(3.9273011579 4.5454683022,2.8 4)),POINT(3.6737899159 2.0995592838),POINT(3.9273011579 4.5454683022)) ###################################################################################################### @@ -2527,7 +2527,7 @@ ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,-7 -6,11 0,18 13,-14 11,0 0),(6 9,4 -2,-1 3, ###################################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) -POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0.0000 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 1,1 1,0.9808 1.1951,0.9239 1.3827,0.8315 1.5556,0.7071 1.7071,0.5556 1.8315,0.3827 1.9239,0.1951 1.9808,0.0000 2,-0.1951 1.9808,-0.3827 1.9239,-0.5556 1.8315,-0.7071 1.7071,-0.8315 1.5556,-0.9239 1.3827,-0.9808 1.1951,-1 1,-1 0)) +POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 1,1 1,0.9808 1.1951,0.9239 1.3827,0.8315 1.5556,0.7071 1.7071,0.5556 1.8315,0.3827 1.9239,0.1951 1.9808,0 2,-0.1951 1.9808,-0.3827 1.9239,-0.5556 1.8315,-0.7071 1.7071,-0.8315 1.5556,-0.9239 1.3827,-0.9808 1.1951,-1 1,-1 0)) ###################################################################################################### # BUG#19894465 : WL#7929 : BOOST GEOMETRY BUFFER BUGS ###################################################################################################### @@ -2537,7 +2537,7 @@ ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) > 0 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,0 1)'), 1)) -POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0.0000 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 1,1 1,0.9808 1.1951,0.9239 1.3827,0.8315 1.5556,0.7071 1.7071,0.5556 1.8315,0.3827 1.9239,0.1951 1.9808,0.0000 2,-0.1951 1.9808,-0.3827 1.9239,-0.5556 1.8315,-0.7071 1.7071,-0.8315 1.5556,-0.9239 1.3827,-0.9808 1.1951,-1 1,-1 0)) +POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,0.8315 -0.5556,0.9239 -0.3827,0.9808 -0.1951,1 0,1 1,1 1,0.9808 1.1951,0.9239 1.3827,0.8315 1.5556,0.7071 1.7071,0.5556 1.8315,0.3827 1.9239,0.1951 1.9808,0 2,-0.1951 1.9808,-0.3827 1.9239,-0.5556 1.8315,-0.7071 1.7071,-0.8315 1.5556,-0.9239 1.3827,-0.9808 1.1951,-1 1,-1 0)) # Scenario 2 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) > 0; ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) > 0 @@ -2546,7 +2546,7 @@ SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON(1 1,1 1,1 1,1 1)'), 1)) > 0; ERROR 22023: Invalid GIS data provided to function st_geometryfromtext. SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(1 1,1 1)'), 1)) -POLYGON((2 1,1.9808 1.1951,1.9239 1.3827,1.8315 1.5556,1.7071 1.7071,1.5556 1.8315,1.3827 1.9239,1.1951 1.9808,1.0000 2,0.8049 1.9808,0.6173 1.9239,0.4444 1.8315,0.2929 1.7071,0.1685 1.5556,0.0761 1.3827,0.0192 1.1951,0 1.0000,0.0192 0.8049,0.0761 0.6173,0.1685 0.4444,0.2929 0.2929,0.4444 0.1685,0.6173 0.0761,0.8049 0.0192,1 0,1.1951 0.0192,1.3827 0.0761,1.5556 0.1685,1.7071 0.2929,1.8315 0.4444,1.9239 0.6173,1.9808 0.8049,2 1)) +POLYGON((2 1,1.9808 1.1951,1.9239 1.3827,1.8315 1.5556,1.7071 1.7071,1.5556 1.8315,1.3827 1.9239,1.1951 1.9808,1 2,0.8049 1.9808,0.6173 1.9239,0.4444 1.8315,0.2929 1.7071,0.1685 1.5556,0.0761 1.3827,0.0192 1.1951,0 1,0.0192 0.8049,0.0761 0.6173,0.1685 0.4444,0.2929 0.2929,0.4444 0.1685,0.6173 0.0761,0.8049 0.0192,1 0,1.1951 0.0192,1.3827 0.0761,1.5556 0.1685,1.7071 0.2929,1.8315 0.4444,1.9239 0.6173,1.9808 0.8049,2 1)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON(1 1,1 1,1 1,1 1)'), 1)); ERROR 22023: Invalid GIS data provided to function st_geometryfromtext. # Scenario 3 @@ -2565,10 +2565,10 @@ ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)) > 0 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,10 10,0 8,0 0))'), 1)) -POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0.0000 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,10.7071 9.2929,10.8236 9.4329,10.9128 9.5917,10.9718 9.7640,10.9984 9.9442,10.9920 10.1263,10.9526 10.3041,10.8817 10.4719,10.7815 10.6240,10.6553 10.7554,10.5074 10.8617,10.3427 10.9394,10.1666 10.9860,9.9850 10.9999,9.8039 10.9806,-0.1961 8.9806,-0.3835 8.9235,-0.5562 8.8311,-0.7075 8.7067,-0.8317 8.5552,-0.9240 8.3824,-0.9808 8.1949,-1 8,-1 0)) +POLYGON((-1 0,-0.9808 -0.1951,-0.9239 -0.3827,-0.8315 -0.5556,-0.7071 -0.7071,-0.5556 -0.8315,-0.3827 -0.9239,-0.1951 -0.9808,0 -1,0.1951 -0.9808,0.3827 -0.9239,0.5556 -0.8315,0.7071 -0.7071,10.7071 9.2929,10.8236 9.4329,10.9128 9.5917,10.9718 9.764,10.9984 9.9442,10.992 10.1263,10.9526 10.3041,10.8817 10.4719,10.7815 10.624,10.6553 10.7554,10.5074 10.8617,10.3427 10.9394,10.1666 10.986,9.985 10.9999,9.8039 10.9806,-0.1961 8.9806,-0.3835 8.9235,-0.5562 8.8311,-0.7075 8.7067,-0.8317 8.5552,-0.924 8.3824,-0.9808 8.1949,-1 8,-1 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((1 1,10 10,0 8,1 1))'), 1)) -POLYGON((0.0101 0.8586,0.0528 0.6793,0.1277 0.5110,0.2322 0.3593,0.3628 0.2293,0.5151 0.1254,0.6838 0.0513,0.8632 0.0094,1.0473 0.0011,1.2298 0.0268,1.4044 0.0854,1.5654 0.1752,1.7071 0.2929,10.7071 9.2929,10.8236 9.4329,10.9128 9.5917,10.9718 9.7640,10.9984 9.9442,10.9920 10.1263,10.9526 10.3041,10.8817 10.4719,10.7815 10.6240,10.6553 10.7554,10.5074 10.8617,10.3427 10.9394,10.1666 10.9860,9.9850 10.9999,9.8039 10.9806,-0.1961 8.9806,-0.3772 8.9261,-0.5449 8.8385,-0.6930 8.7209,-0.8163 8.5776,-0.9105 8.4135,-0.9721 8.2347,-0.9989 8.0475,-0.9899 7.8586,0.0101 0.8586)) +POLYGON((0.0101 0.8586,0.0528 0.6793,0.1277 0.511,0.2322 0.3593,0.3628 0.2293,0.5151 0.1254,0.6838 0.0513,0.8632 0.0094,1.0473 0.0011,1.2298 0.0268,1.4044 0.0854,1.5654 0.1752,1.7071 0.2929,10.7071 9.2929,10.8236 9.4329,10.9128 9.5917,10.9718 9.764,10.9984 9.9442,10.992 10.1263,10.9526 10.3041,10.8817 10.4719,10.7815 10.624,10.6553 10.7554,10.5074 10.8617,10.3427 10.9394,10.1666 10.986,9.985 10.9999,9.8039 10.9806,-0.1961 8.9806,-0.3772 8.9261,-0.5449 8.8385,-0.693 8.7209,-0.8163 8.5776,-0.9105 8.4135,-0.9721 8.2347,-0.9989 8.0475,-0.9899 7.8586,0.0101 0.8586)) # Scenario 5 SELECT ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)) > 0; ST_AREA(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((2 2,2 8,8 8,8 2,2 2))'), 1)) > 0 @@ -2622,10 +2622,10 @@ ERROR HY000: Geometry byte string must be little endian. ###################################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,10 10,10 0,0 10)'), 20, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('LINESTRING(0 0,10 10,10 0,0 10)'), 20, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((-10 0,-14.1421 -4.1421,-4.1421 -14.1421,-1.1114 -16.6294,2.3463 -18.4776,6.0982 -19.6157,10.0000 -20,13.9018 -19.6157,17.6537 -18.4776,21.1114 -16.6294,24.1421 -14.1421,26.6294 -11.1114,28.4776 -7.6537,29.6157 -3.9018,30 0,30 10,29.6157 13.9018,28.4776 17.6537,26.6294 21.1114,24.1421 24.1421,21.1114 26.6294,17.6537 28.4776,13.9018 29.6157,10.0000 30,6.0982 29.6157,2.3463 28.4776,-1.1114 26.6294,-4.1421 24.1421,-14.1421 14.1421,-10 10,-10 0)) +POLYGON((-10 0,-14.1421 -4.1421,-4.1421 -14.1421,-1.1114 -16.6294,2.3463 -18.4776,6.0982 -19.6157,10 -20,13.9018 -19.6157,17.6537 -18.4776,21.1114 -16.6294,24.1421 -14.1421,26.6294 -11.1114,28.4776 -7.6537,29.6157 -3.9018,30 0,30 10,29.6157 13.9018,28.4776 17.6537,26.6294 21.1114,24.1421 24.1421,21.1114 26.6294,17.6537 28.4776,13.9018 29.6157,10 30,6.0982 29.6157,2.3463 28.4776,-1.1114 26.6294,-4.1421 24.1421,-14.1421 14.1421,-10 10,-10 0)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,10 10),(10 0,0 10))'), 50, ST_BUFFER_STRATEGY('end_flat'))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,10 10),(10 0,0 10))'), 50, ST_BUFFER_STRATEGY('end_flat'))) -POLYGON((5.0000 15.0000,-25.3553 45.3553,-35.3553 35.3553,-5.0000 5.0000,-35.3553 -25.3553,-25.3553 -35.3553,5.0000 -5.0000,35.3553 -35.3553,45.3553 -25.3553,15.0000 5.0000,45.3553 35.3553,35.3553 45.3553,5.0000 15.0000)) +POLYGON((5 15,-25.3553 45.3553,-35.3553 35.3553,-5 5,-35.3553 -25.3553,-25.3553 -35.3553,5 -5,35.3553 -35.3553,45.3553 -25.3553,15 5,45.3553 35.3553,35.3553 45.3553,5 15)) ###################################################################################################### # BUG#20558350 : ST_BUFFER RETURNS INCORRECT RESULT WITH NEGATIVE DISTANCE AND POLYGON WITH HOLE ###################################################################################################### @@ -2655,7 +2655,7 @@ GEOMETRYCOLLECTION(MULTIPOLYGON(((4 1,4 4,1 4,1 1,4 1))),MULTIPOLYGON(((19 11,19 ###################################################################################################### SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(5 13,9 -10,12 -7,-1 -16,-18 15,-13 -10,-1 5,12 -7)'), 1, ST_BUFFER_STRATEGY('point_circle',1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTIPOINT(5 13,9 -10,12 -7,-1 -16,-18 15,-13 -10,-1 5,12 -7)'), 1, ST_BUFFER_STRATEGY('point_circle',1))) -MULTIPOLYGON(((6 13,4.5 13.8660,4.5 12.1340,6 13)),((10 -10,8.5 -9.1340,8.5 -10.8660,10 -10)),((0 -16,-1.5000 -15.1340,-1.5000 -16.8660,0 -16)),((-17 15,-18.5 15.8660,-18.5 14.1340,-17 15)),((-12 -10,-13.5 -9.1340,-13.5 -10.8660,-12 -10)),((0 5,-1.5000 5.8660,-1.5000 4.1340,0 5)),((11.5 -7.8660,13 -7,11.5 -6.1340,11.5 -7.8660))) +MULTIPOLYGON(((6 13,4.5 13.866,4.5 12.134,6 13)),((10 -10,8.5 -9.134,8.5 -10.866,10 -10)),((0 -16,-1.5 -15.134,-1.5 -16.866,0 -16)),((-17 15,-18.5 15.866,-18.5 14.134,-17 15)),((-12 -10,-13.5 -9.134,-13.5 -10.866,-12 -10)),((0 5,-1.5 5.866,-1.5 4.134,0 5)),((11.5 -7.866,13 -7,11.5 -6.134,11.5 -7.866))) ###################################################################################################### # BUG#20451555 : ASSERTION FAILED: INDEX >= 0 && UNSIGNED(INDEX) < INFO.COUNT ###################################################################################################### From d6d32b6a3f296bc5221156087d11627cdd2a3017 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 11 May 2016 15:24:19 +1000 Subject: [PATCH 15/17] round gis.spatial_analysis_functions_buffer test to 1/10s vs 1/100s for cross platform results --- mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result | 2 +- mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result b/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result index ea90615..ccae697 100644 --- a/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result +++ b/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result @@ -694,7 +694,7 @@ ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0 POLYGON((5 109.5075,0 110,-19.509 108.0785,-38.2683 102.388,-55.557 93.147,-70.7107 80.7107,-83.147 65.557,-92.388 48.2683,-98.0785 29.509,-100 10,-99.5075 5,-100 0,-98.0785 -19.509,-92.388 -38.2683,-83.147 -55.557,-70.7107 -70.7107,-55.557 -83.147,-38.2683 -92.388,-19.509 -98.0785,0 -100,10 -100,29.509 -98.0785,48.2683 -92.388,65.557 -83.147,80.7107 -70.7107,93.147 -55.557,102.388 -38.2683,108.0785 -19.509,110 0,109.5075 5,110 10,108.0785 29.509,102.388 48.2683,93.147 65.557,80.7107 80.7107,65.557 93.147,48.2683 102.388,29.509 108.0785,10 110,5 109.5075)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0 0),(2 2,4 -9))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))) -POLYGON((292.89 -1707.11,36355.34 -36355.34,1707.11 -292.89,735.28 678.95,720.7 697.32,571.24 824.17,399.9 919.43,213.27 979.43,18.53 1001.86,-176.85 985.88,-194.49 980.84,-195.09 980.79,-201.35 978.89,-365.36 932.08,-379.38 924.88,-382.68 923.88,-415.6 906.28,-539.75 842.54,-549.86 834.52,-555.57 831.47,-609.87 786.9,-693.32 720.7,-699.67 713.21,-707.11 707.11,-773 626.81,-820.17 571.24,-823.46 565.33,-831.47 555.57,-896.03 434.8,-915.43 399.9,-916.55 396.39,-923.88 382.68,-972.73 221.65,-975.43 213.27,-975.52 212.47,-980.79 195.09,-1000 0,-980.79 -195.09,-930.59 -360.57,-926.08 -376.36,-925.38 -377.71,-923.88 -382.68,-897.4 -432.21,-836.54 -550.75,-714.7 -704.33,-682.99 -731.24,292.89 -1707.11)) +POLYGON((292.9 -1707.1,36355.3 -36355.3,1707.1 -292.9,735.3 678.9,720.7 697.3,571.2 824.2,399.9 919.4,213.3 979.4,18.5 1001.9,-176.9 985.9,-194.5 980.8,-195.1 980.8,-201.3 978.9,-365.4 932.1,-379.4 924.9,-382.7 923.9,-415.6 906.3,-539.8 842.5,-549.9 834.5,-555.6 831.5,-609.9 786.9,-693.3 720.7,-699.7 713.2,-707.1 707.1,-773 626.8,-820.2 571.2,-823.5 565.3,-831.5 555.6,-896 434.8,-915.4 399.9,-916.6 396.4,-923.9 382.7,-972.7 221.7,-975.4 213.3,-975.5 212.5,-980.8 195.1,-1000 0,-980.8 -195.1,-930.6 -360.6,-926.1 -376.4,-925.4 -377.7,-923.9 -382.7,-897.4 -432.2,-836.5 -550.8,-714.7 -704.3,-683 -731.2,292.9 -1707.1)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_miter', 1))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('POLYGON((0 0,0 5,5 5,0 0))'), 1, ST_BUFFER_STRATEGY('join_miter', 1))) POLYGON((-1 0,-0.3827 -0.9239,0.7071 -0.7071,5.7071 4.2929,5.9239 5.3827,5 6,0 6,-0.7071 5.7071,-1 5,-1 0)) diff --git a/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test b/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test index b793d8d..3715be6 100644 --- a/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test +++ b/mysql-test/suite/gis/t/spatial_analysis_functions_buffer.test @@ -721,7 +721,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,0 5,5 5,5 0,0 0 --replace_numberic_round 4 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))'), 100, ST_BUFFER_STRATEGY('join_miter', 10))); ---replace_numberic_round 2 +--replace_numberic_round 1 SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('MULTILINESTRING((1 -1,1000 -1000,0.0001 0.000),(2 2,4 -9.002))'), 1000, ST_BUFFER_STRATEGY('join_miter', 50))); --replace_numberic_round 4 From 2a80c3ac07881864f578f184936de1b1202f19a6 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 11 May 2016 17:02:24 +1000 Subject: [PATCH 16/17] test: gis.gis_bug_crashes - more rounding + x86 results --- mysql-test/suite/gis/r/gis_bugs_crashes.result | 12 ++++++------ mysql-test/suite/gis/t/gis_bugs_crashes.test | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/mysql-test/suite/gis/r/gis_bugs_crashes.result b/mysql-test/suite/gis/r/gis_bugs_crashes.result index 206042a..0c24ef0 100644 --- a/mysql-test/suite/gis/r/gis_bugs_crashes.result +++ b/mysql-test/suite/gis/r/gis_bugs_crashes.result @@ -1530,7 +1530,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('MULTILINESTRING((-10 3,-9 -4,-9 3,-1 3),' '(3 10,7 9,-7 2,2 -9,7 10,7 8,3 -4,-9 -1,-5 -8,-7 5,4 9,-3 -6,9 1),' '(4 4,-7 -3,1 -4,-10 -8) -GEOMETRYCOLLECTION(MULTIPOINT((-6.2 -0.2),(-5.1276595745 -1.8085106383),(-5 -2),(-4.1525423729 -3.3559322034),(-3.3333333333 -4.6666666667),(-2.8703703704 -5.4074074074),(-2.786259542 -5.5419847328),(-2.7857142857 3),(-2.6335877863 -5.786259542),(-2.2142857143 3),(-2.16 0.08),(-2.1111111111 0.1111111111),(-1.5314685315 -2.8531468531),(-1.5283018868 -2.8679245283),(-1.3486238532 -3.7064220183),(-1.1204819277 -4.7710843373),(-1.0952380952 -4.8888888889),(-1 -5.3333333333),(-0.7727272727 -1.2272727273),(-0.6666666667 1.0303030303),(-0.5454545455 -7.4545454545),(-0.072243346 0.2737642586),(0.0841121495 0.0747663551),(0.3 -2.3),(1.4210526316 -3.4210526316),(1.6363636364 -3.6363636364),(1.6666666667 -3.6666666667),(1.7903225806 -2.0967741935),(2.2857142857 -4.2857142857),(2.358974359 -2.8205128205),(2.387755102 -2.8571428571),(2.6363636364 -4.6363636364),(2.6842105263 6.8421052632),(2.8461538462 6.9230769231),(3 10),(3.0416666667 -5.0416666667),(3.085106383 -3.7446808511),(3.0869565217 7.0434782609),(3.1747211896 -3.8587360595),(3.3082437276 -4.0286738351),(6.696969697 8.8484848485),(7 10)),LINESTRING(7 9,-5 3)) +GEOMETRYCOLLECTION(MULTIPOINT((-6.2 -0.2),(-5.1276595745 -1.8085106383),(-5 -2),(-4.1525423729 -3.3559322034),(-3.3333333333 -4.6666666667),(-2.8703703704 -5.4074074074),(-2.786259542 -5.5419847328),(-2.7857142857 3),(-2.6335877863 -5.786259542),(-2.2142857143 3),(-2.16 0.08),(-2.1111111111 0.1111111111),(-1.5314685315 -2.8531468531),(-1.5283018868 -2.8679245283),(-1.3486238532 -3.7064220183),(-1.1204819277 -4.7710843373),(-1.0952380952 -4.8888888889),(-1 -5.3333333333),(-0.7727272727 -1.2272727273),(-0.6666666667 1.0303030303),(-0.5454545455 -7.4545454545),(-0.072243346 0.2737642586),(0.0841121495 0.0747663551),(0.3 -2.3),(1.4210526316 -3.4210526316),(1.6363636364 -3.6363636364),(1.6666666667 -3.6666666667),(1.7903225806 -2.0967741935),(2.2857142857 -4.2857142857),(2.358974359 -2.8205128205),(2.387755102 -2.8571428571),(2.6363636364 -4.6363636364),(2.8461538462 6.9230769231),(3 10),(3.0416666667 -5.0416666667),(3.085106383 -3.7446808511),(3.1747211896 -3.8587360595),(3.3082437276 -4.0286738351),(6.696969697 8.8484848485),(7 10)),LINESTRING(7 9,-5 3)) ###################################################################################################### # BUG#20120173 : ASSERTION FAILURE WITH GEOMETRY SET OPERATIONS IN ITEM_GEOFUNC.CC FILE ###################################################################################################### @@ -1995,7 +1995,7 @@ ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2)),' -GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.5696202531645589 -0.9113924050632932,-1.1702127659574466 -1.872340425531915),(-5 -8,3 -7,-2 -7,0.9938650306748467 -3.6319018404907975),(1.066666666666667 -3.55,6 2,6 3,6 3.8333333333333335),(1 0,0.6164383561643836 -0.054794520547945216),(-3.1791044776119404 -0.5970149253731343,-4.163934426229508 -0.7377049180327869),(-5.176470588235294 -0.8823529411764706,-6 -1,-5.338582677165355 -1.141732283464567),(-1.906779661016949 -1.8771186440677967,-1.2151898734177227 -2.0253164556962022),(7 -8,9 -10,4 -2))) +GEOMETRYCOLLECTION(POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0)),MULTILINESTRING((-0.56962 -0.91139,-1.17021 -1.87234),(-5 -8,3 -7,-2 -7,0.99387 -3.6319),(1.06667 -3.55,6 2,6 3,6 3.83333),(1 0,0.61644 -0.05479),(-3.1791 -0.59701,-4.16393 -0.7377),(-5.17647 -0.88235,-6 -1,-5.33858 -1.14173),(-1.90678 -1.87712,-1.90678 -1.87712,-1.21519 -2.02532),(7 -8,9 -10,4 -2))) SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('MULTILINESTRING((5 8,-5 -8,3 -7,-2 -7,6 2,6 3,6 10,7 7,1 0,-6 -1,8 -4,-2 1,9 -10,4 -2),(-1 -2,10 -7,8 -5))'))); @@ -2099,7 +2099,7 @@ ST_ASWKB( ST_GEOMFROMTEXT('MULTILINESTRING((1 5, -4.3 -.1),' '(0 6,8.6 6,189.7654 5,1 3,6 3,3 5,6 2.232432,0 4),' '(-6 5,1 2 -GEOMETRYCOLLECTION(POINT(-1.3068033885 6.9558869146),POINT(-1.2504328134 9.3486307817),POINT(-0.5326974515 -0.629698715),POINT(-0.3237169259 2.7557858007),POINT(-0.3093463319 2.9885894239),POINT(-0.287077395 3.3493462005),POINT(-0.2722472775 3.5895941041),POINT(-0.2600297177 3.7875185736),POINT(0.203482935 8.2139584594),POINT(0.2067083387 6.5597932425),POINT(0.2070612197 6.3788163409),POINT(0.2077998615 6),POINT(0.2108772318 4.4217544636),POINT(0.2112296896 4.240994607),POINT(0.2118212718 3.937598583),POINT(0.2126701994 3.5022215857),POINT(0.213682384 2.983117422),POINT(0.2137312004 2.9580816601),POINT(0.2145406004 2.5429766142),POINT(0.2152355442 2.1865710118),POINT(0.2153805064 2.1122264163),POINT(0.2185007982 0.511968362),POINT(0.2364719009 2.1820461072),POINT(0.3301406781 2.8671349368),POINT(0.3895121129 2.981277866),POINT(0.4375 8),POINT(0.5720091517 8.0571997712),POINT(0.616399932 2.9818945937),POINT(0.9813981034 6),POINT(1 2.232432),POINT(1.0000224789 5.9922197425),POINT(1.0053012917 4.1651465202),POINT(1.0086593145 3.0028864382),POINT(1.0150805761 0.7803952511),POINT(1.0388693195 3.8833920414),POINT(1.0412371134 3.8762886598),POINT(1.3 3.1),POINT(1.5230208409 1.9079166366),POINT(1.5923914063 4.7630434375),POINT(1.6756969713 1.2972121147),POINT(1.701754386 3.2339181287),POINT(2 3),POINT(2.2832654866 1.3412256626),POINT(2.320754717 1.5849056604),POINT(2.343551285 1.7330833525),POINT(2.3707483564 6),POINT(2.3867403315 3.1104972376),POINT(2.403519712 1.24727517),POINT(2.4124061234 2.180639802),POINT(2.5321325326 2.958861462),POINT(2.5409733635 3.0163268625),POINT(2.5509103169 3.08091706),POINT(2.688755217 1.6595295465),POINT(2.9537572254 5.6994219653),POINT(3 6),POINT(3.0067352148 6),POINT(3.0091004712 5.6488224263),POINT(3.0189095455 4.1924361818),POINT(3.0202739191 3.9898630405),POINT(3.0262101246 3.1084946371),POINT(3.0267962257 3.0214742344),POINT(3.0267964753 3.0214371802),POINT(3.0272528247 2.9536814421),POINT(3.0307335914 2.4368803097),POINT(3.0336635672 2.0018569416),POINT(3.0338315695 1.9769130864),POINT(3.0364682172 1.5854411246),POINT(3.0421060738 0.748369597),POINT(3.0435512346 0.5338017076),POINT(3.0498391452 -0.3997855269),POINT(3.0516129644 -0.6631504273),POINT(3.2281060251 -796.1565697665),POINT(3.4202447638 0.4529428369),POINT(3.5555555556 3.4444444444),POINT(4.0077856225 4.7357388594),POINT(4.1327747778 2.54874325),POINT(4.1739130435 4.5838509317),POINT(4.3686805737 4.0875462842),POINT(4.3801450615 4.1041160492),POINT(4.4285714286 4.1428571429),POINT(4.5760328689 3.546073955),POINT(4.5849056604 3.5660377358),POINT(4.9577039275 4.749244713),POINT(5 1.435992894),POINT(5.0009584955 4.8011501946),POINT(5.0019206729 4.6015365383),POINT(5.0056715124 3.8233860458),POINT(5.0064476502 3.6623682332),POINT(5.0077272158 3.3969091137),POINT(5.0089332078 3.14671358),POINT(5.0094356314 3.0424806202),POINT(5.0096403964 3),POINT(5.0099636483 2.9329380354),POINT(5.0119371724 2.5235100393),POINT(5.0172030836 1.4310422628),POINT(5.0184945033 1.1631238698),POINT(5.019096693 1.0381933861),POINT(5.0273863896 -0.6815899587),POINT(5.0388110212 -3.0517480283),POINT(5.1538116227 3.0440103072),POINT(5.2857142857 5.1428571429),POINT(5.3953214524 1.0828320372),POINT(5.4117647059 3.2352941176),POINT(5.6615415558 2.9261211333),POINT(5.6666666667 6),POINT(5.750265605 3.0503298338),POINT(5.7901425755 3.1061553595),POINT(6.0655685493 3.0536705196),POINT(6.0978936934 2.9215559542),POINT(6.3076923077 4.7692307692),POINT(6.4333333333 4.2666666667),POINT(6.562970133 -5.0839601773),POINT(6.5814677242 -0.696093915),POINT(6.5878957908 0.8287260628),POINT(6.5885286684 0.9788527794),POINT(6.5897634545 1.2717598932),POINT(6.5943967506 2.3708372566),POINT(6.5966963737 2.9163374086),POINT(6.5972990683 3.0593042906),POINT(6.5995854284 3.6016582865),POINT(6.6111704463 0.8237668508),POINT(6.6666666667 6),POINT(6.8516949153 2.1355932203),POINT(6.9888956941 1.5910529132),POINT(7.2330623306 -2.1682926829),POINT(7.8572571429 6),POINT(7.9856220257 3.0740137973),POINT(8.2537313433 1),POINT(8.2759395973 6.5861319909),POINT(8.5254046087 2.8202108786),POINT(8.5486538527 2.8388095297),POINT(8.962933843 2.8915814908),POINT(10.0002 -1032.34324),POINT(-0.789426918 2.9936120963),POINT(-0.756650676 3.3096380288),POINT(-0.7065026362 3.6678383128),POINT(-0.7053428345 3.6761226105),POINT(-0.5322427771 2.8382300112),POINT(0.0484052759 -0.6351220403),POINT(0.1074900991 2.2095287096),POINT(0.2358869378 2.5345369799),POINT(0.5022942954 7.6422084936),POINT(0.5912311308 3.4340124089),POINT(0.6191428706 2.1426011824),POINT(0.6231653578 0.9117872439),POINT(0.623782817 0.7228550406),POINT(0.7298834722 3.7849802218),POINT(0.922549506 1.7175497403),POINT(1.0043920789 4.4798381978),POINT(1.0116798512 1.9574351515),POINT(1.0118303293 1.9053525094),POINT(1.0146591821 0.9262458019),POINT(1.1812448804 4.9275020478),POINT(1.3644094599 2.9067716203),POINT(1.3882103518 2.970829341),POINT(1.3990488222 3),POINT(1.4345726037 7.0883907624),POINT(1.6049428571 6),POINT(1.8713043478 1.3860869565),POINT(1.8756165051 6.6851506239),POINT(1.9943714822 4.6022514071),POINT(2.0600461894 1.2720554273),POINT(2.0949344816 1.4883622029),POINT(2.5137103366 6),POINT(2.5419298093 6.0759498887),POINT(3.1603592893 -775.4271995955),POINT(3.2336465227 -767.0972558089),POINT(3.2667333333 6),POINT(4 1.7237686979),POINT(4 2.9435044208),POINT(4 3.8),POINT(4 4.0774773333),POINT(4 4.7428571429),POINT(5.0642816882 -559.0243444094),POINT(5.0949567997 4.9139481596),POINT(5.2656702765 4.8125362212),POINT(6.4767214716 4.0931141136),POINT(7.0874534584 -329.0674155639),POINT(8.5654958711 2.8522826056),POINT(9.0982599431 -100.5159447848),MULTILINESTRING((-0.7654 0,-0.7654 0,5 3),(0.7984790875 4.8060836502,0.2112296896 4.240994607),(0.2077998615 6,0.5 6),(1.9597001717 6,2.05 6),(3.0067352148 6,3.2727272727 6,5.3446750972 6,5.6400543978 6),(7.8572571429 6,8.571440816 6,8.6 6,8.9996707299 5.9977938904),(8.6 6,189.7654 5,8.9879098883 3.0846331996),(8.5642005867 3.0801439309,7.9856220257 3.0740137973,7.5520651439 3.0694201919),(6.5972990683 3.0593042906,6.0655685493 3.0536705196),(5.3486916977 3.0460750932,5.1538116227 3.0440103072),(5.0094356314 3.0424806202,4.3491041338 3.035484301,3.635536347 3.0279239347),(2.0385111798 3.0110031942,1.2493395518 3.002641793,1 3),(1 3,1.25 3),(2.5384615385 3,3.0269408593 3,3.616216 3,4.3333333333 3),(5.1818181818 3,5.3333333333 3),(5.7143142857 3,6 3,5.8064734649 3.1290176901),(5.4545454545 3.3636363636,5.0064476502 3.6623682332,4.8 3.8,4.7142857143 3.8571428571,4.5789473684 3.9473684211),(4.3333333333 4.1111111111,3.0135311866 4.9909792089),(3.01355465 4.9874955282,4.061692848 4.0205642827),(4.2207880281 3.8737953729,4.4188323829 3.6910949666),(5.2015078274 2.9690591284,5.2944418082 2.8833254246),(5.497296552 2.6961873254,6 2.232432,5.5941944494 2.3519801509),(6 2.232432,5.3110148363 2.4354033546),(5.1599670733 2.47990122,5.0119371724 2.5235100393,4.2246414098 2.7554431721,3.5786749422 2.9457414483),(2.707917162 3.2022620463,2.5755767428 3.241248828),(2.123385696 3.3744618987,1.0795040327 3.6819838693,0.9649694453 3.7157251479,0.938307152 3.7235797173,0.7972370129 3.7651382279),(-0.3237169259 2.7557858007,0.170571916 2.5603603748,0.1992218003 2.5490331601),(0.2145406004 2.5429766142,0.3773402403 2.4786110323),(6.2425713375 -474.4354732514,6.8266054238 -373.9481997708),(8.982721744 -2.9728484549,9 0),(9 0,189.7654 1,8.962933843 2.8915814908),(8.536722474 2.8960405756,8.4084415075 2.8973826696,7.430708887 2.9076118494),(6.5966963737 2.9163374086,6.0978936934 2.9215559542),(5.3099332367 2.9297997102,5.225931835 2.930678545),(5.0099636483 2.9329380354,4.3067976266 2.9402946597,3.5801662007 2.9478967826),(2.1101717708 2.9632760764,1.2569493469 2.9722026125,1 2.9748908537,0.6149864873 2.9789189206,0.4706781499 2.9804286953,0.3895121129 2.981277866),(-1.4 3,-1.3068033885 6.9558869146),(-1.2504328134 9.3486307817,0.3114754098 9.9182295082,0.3751862475 9.4631338933),(0.5800167993 8,0.8524653419 6.0538611394,1.3638480457 4.8544607817,1.4831932773 4.8067226891),(2.7391304348 4.3043478261,3.0189095455 4.1924361818,3.7272727273 3.9090909091),(4.1329380819 3.7468247673,4.3333333333 3.6666666667),(4.9024390244 3.4390243902,5.0077272158 3.3969091137),(5.7778019751 3.08887921,6 3,5.64 2.28),(5.019096693 1.0381933861,5 1),(5 1,5.0192807927 1),(5.1355938277 1,6 1),(6.4545454545 1,6.5680505834 1,6.5886178171 1),(8.3162393162 1,9 1),(4.4685780457 -501.900670073,0.4460055444 -116.1650372164),(-0.6865879576 -7.5575053131,-0.7261514394 -3.763653319),(-0.4848147357 0.1460012823,0.2185007982 0.511968362,1 0.9186179623),(2.3242601182 1.6076907681,2.8377601486 1.874888203,3.0338315695 1.9769130864,3.8285992929 2.3904669024),(4.4545454545 3.2727272727,3.9718874308 3.5140562846),(3.9090909091 3.5454545455,3.4 3.8,3.0202739191 3.9898630405),(2.4124061234 2.180639802,2.9435510802 2.027789135,3.0336635672 2.0018569416,3.7926407442 1.7834416744),(5.789913532 1.2086748923,6.0914294335 1.1219059114,6.2487413165 1.0766353578),(6.4409826695 1.0213129479,6.5720655904 0.983590455,6.5885286684 0.9788527794),(8.1549020264 0.5280884272,8.1821274062 0.5202536216),(8.1776118965 0.4899997067,8.1443064016 0.4970962246),(6.5878957908 0.8287260628,6.5597171564 0.8347301827),(5.0184945033 1.1631238698,5 1.1670645581,3.6468388144 1.4553873323,3.0364682172 1.5854411246),(1.5230208409 1.9079166366,1 2.0193585116,0.2364719009 2.1820461072,0.2152355442 2.1865710118),(0 2.232432,0.2058374298 2.1175524837),(0.2153805064 2.1122264163,1 1.674324),(2.2172202432 0.9949836445,2.228987145 0.9884164425,3.0435512346 0.5338017076,3.1987487661 0.4471847237),(3.2727272727 0.4058967273,4 0,3.4202447638 0.4529428369),(3.2577357849 0.579905516,3.0421060738 0.748369597),(1.5145510415 1.941795834,1 2.343796875,0.4991642495 2.7350826306,0.3765650543 2.8308651675,0.3301406781 2.8671349368),(1 0,1.32 0.384),(1 0,1.6820976352 0.8185171622),(1 0,1.7692307692 0.9230769231),(2.320754717 1.5849056604,3.0307335914 2.4368803097,3.1739130435 2.6086956522),(3.96875 3.5625,4.1847126253 3.8216551503,4.4536082474 4.1443298969,4.4615384615 4.1538461538,4.7040606525 4.444872783),(5.4934139009 5.3920966811,5.8632391605 5.8358869926),(6.0810728025 5.6757087902,6.1818181818 5.2727272727),(6.4814968445 4.0740126218,6.5702479339 3.7190082645,6.5852462189 3.6590151243,6.5995854284 3.6016582865),(6.9375 2.25,7 2,6.8516949153 2.1355932203),(6.5943967506 2.3708372566,6.1283948452 2.7968961415),(5.4671532847 3.401459854,5.0056715124 3.8233860458,4.9761904762 3.8503401361,4.7878103837 4.0225733634,4.5954198473 4.1984732824,4.5035473936 4.2824709544),(2.4636027453 6.1475632043,2.2241035857 6.3665338645,2.1741221724 6.4122311566),(0.3943669748 8.0394359088,0.203482935 8.2139584594),(-0.1752389675 5.1611287259,0.1488190118 6.3478065467),(0.2067083387 6.5597932425,0.286763019 6.8529479238),(0.6 8,0.6060238218 6.1568110873,0.6079474592 5.5682101632,0.6149852779 3.4147551364,0.6156517715 3.2108192282),(0.6246098681 0.4697912,0.6419435163 -4.8340157915),(3.281209938 -783.5596393895,1.029009283 -4.0405309698,1.0156054491 0.598729155),(1.0086593145 3.0028864382,1.0063480799 3.8028380629,1.0062650449 3.8315776758,1.0058459975 3.9766160101),(0.9967859042 5.9935718085,0.6666666667 5.3333333333,0.2108772318 4.4217544636),(0.2070612197 6.3788163409,0.228492202 6.3145233939,0.9685212894 4.0944361319,1 4),(2.0460878081 0.9385495893,2.1914893617 0.7446808511,2.6052344828 0.1930206896,2.9014778325 -0.2019704433),(3.0498391452 -0.3997855269,5 -3),(6.3385518591 -4.7847358121,6.562970133 -5.0839601773),(8 -7,7.2330623306 -2.1682926829),(7.0102742954 -0.7647280611,7 -0.7,6.9839616249 -0.6998503168),(6.5814677242 -0.696093915,5.0273863896 -0.6815899587,5 -0.6813343665,3.0516129644 -0.6631504273),(2.6782119298 -0.6596655439,0.220740609 -0.6367304144),(5 0,5.0240084144 0.0192059633),(6.3855608647 1.1084043555,6.4066720887 1.1252926593,6.5159963134 1.2127485408,6.5897634545 1.2717598932),(8.9743759359 3.1793735737,8.9390415661 5.591578493,8.5454561997 6.1818975107),(6.5714285714 5.8571428571,6.2184057777 5.5747246221,5.5747237599 5.0597790079),(5.0849420849 4.667953668,5.0689655172 4.6551724138,5.0019206729 4.6015365383,4.7710896257 4.4168717006,4.4457831325 4.156626506),(3 3,2.5509103169 3.08091706),(2.3867403315 3.1104972376,1.701754386 3.2339181287,1.1674528302 3.3301886792,0.8122406639 3.3941908714,0.7393077198 3.4073319424,0.6221081322 3.4284489852))) +GEOMETRYCOLLECTION(POINT(-1.3068033885 6.9558869146),POINT(-1.2504328134 9.3486307817),POINT(-0.5326974515 -0.629698715),POINT(-0.3237169259 2.7557858007),POINT(-0.3093463319 2.9885894239),POINT(-0.287077395 3.3493462005),POINT(-0.2722472775 3.5895941041),POINT(-0.2600297177 3.7875185736),POINT(0.170571916 2.5603603748),POINT(0.203482935 8.2139584594),POINT(0.2067083387 6.5597932425),POINT(0.2070612197 6.3788163409),POINT(0.2077998615 6),POINT(0.2108772318 4.4217544636),POINT(0.2112296896 4.240994607),POINT(0.2118212718 3.937598583),POINT(0.2126701994 3.5022215857),POINT(0.213682384 2.983117422),POINT(0.2137312004 2.9580816601),POINT(0.2145406004 2.5429766142),POINT(0.2152355442 2.1865710118),POINT(0.2153805064 2.1122264163),POINT(0.2185007982 0.511968362),POINT(0.2364719009 2.1820461072),POINT(0.3301406781 2.8671349368),POINT(0.3895121129 2.981277866),POINT(0.3943669748 8.0394359088),POINT(0.4375 8),POINT(0.4460055444 -116.1650372164),POINT(0.5720091517 8.0571997712),POINT(0.6149864873 2.9789189206),POINT(0.616399932 2.9818945937),POINT(0.9813981034 6),POINT(1 2.232432),POINT(1.0000224789 5.9922197425),POINT(1.0053012917 4.1651465202),POINT(1.0063480799 3.8028380629),POINT(1.0086593145 3.0028864382),POINT(1.0150805761 0.7803952511),POINT(1.0388693195 3.8833920414),POINT(1.0412371134 3.8762886598),POINT(1.2569493469 2.9722026125),POINT(1.3 3.1),POINT(1.5230208409 1.9079166366),POINT(1.5923914063 4.7630434375),POINT(1.6756969713 1.2972121147),POINT(1.701754386 3.2339181287),POINT(2 3),POINT(2.2832654866 1.3412256626),POINT(2.320754717 1.5849056604),POINT(2.343551285 1.7330833525),POINT(2.3707483564 6),POINT(2.3867403315 3.1104972376),POINT(2.403519712 1.24727517),POINT(2.4124061234 2.180639802),POINT(2.5321325326 2.958861462),POINT(2.5409733635 3.0163268625),POINT(2.5509103169 3.08091706),POINT(2.688755217 1.6595295465),POINT(2.9537572254 5.6994219653),POINT(3 6),POINT(3.0067352148 6),POINT(3.0091004712 5.6488224263),POINT(3.0189095455 4.1924361818),POINT(3.0202739191 3.9898630405),POINT(3.0262101246 3.1084946371),POINT(3.0267962257 3.0214742344),POINT(3.0267964753 3.0214371802),POINT(3.0272528247 2.9536814421),POINT(3.0307335914 2.4368803097),POINT(3.0336635672 2.0018569416),POINT(3.0338315695 1.9769130864),POINT(3.0364682172 1.5854411246),POINT(3.0421060738 0.748369597),POINT(3.0435512346 0.5338017076),POINT(3.0498391452 -0.3997855269),POINT(3.0516129644 -0.6631504273),POINT(3.2281060251 -796.1565697665),POINT(3.5555555556 3.4444444444),POINT(4.0077856225 4.7357388594),POINT(4.1327747778 2.54874325),POINT(4.1739130435 4.5838509317),POINT(4.1847126253 3.8216551503),POINT(4.3686805737 4.0875462842),POINT(4.3801450615 4.1041160492),POINT(4.4285714286 4.1428571429),POINT(4.5760328689 3.546073955),POINT(4.5849056604 3.5660377358),POINT(4.9577039275 4.749244713),POINT(5 1.435992894),POINT(5.0009584955 4.8011501946),POINT(5.0019206729 4.6015365383),POINT(5.0056715124 3.8233860458),POINT(5.0064476502 3.6623682332),POINT(5.0077272158 3.3969091137),POINT(5.0089332078 3.14671358),POINT(5.0094356314 3.0424806202),POINT(5.0096403964 3),POINT(5.0099636483 2.9329380354),POINT(5.0119371724 2.5235100393),POINT(5.0172030836 1.4310422628),POINT(5.0184945033 1.1631238698),POINT(5.019096693 1.0381933861),POINT(5.0273863896 -0.6815899587),POINT(5.0388110212 -3.0517480283),POINT(5.1355938277 1),POINT(5.1538116227 3.0440103072),POINT(5.2857142857 5.1428571429),POINT(5.3953214524 1.0828320372),POINT(5.4117647059 3.2352941176),POINT(5.6615415558 2.9261211333),POINT(5.6666666667 6),POINT(5.750265605 3.0503298338),POINT(5.7901425755 3.1061553595),POINT(6.0655685493 3.0536705196),POINT(6.0978936934 2.9215559542),POINT(6.3076923077 4.7692307692),POINT(6.4333333333 4.2666666667),POINT(6.562970133 -5.0839601773),POINT(6.5814677242 -0.696093915),POINT(6.5878957908 0.8287260628),POINT(6.5885286684 0.9788527794),POINT(6.5897634545 1.2717598932),POINT(6.5943967506 2.3708372566),POINT(6.5966963737 2.9163374086),POINT(6.5972990683 3.0593042906),POINT(6.5995854284 3.6016582865),POINT(6.6111704463 0.8237668508),POINT(6.6666666667 6),POINT(6.8266054238 -373.9481997708),POINT(6.8516949153 2.1355932203),POINT(6.9888956941 1.5910529132),POINT(7.2330623306 -2.1682926829),POINT(7.8572571429 6),POINT(7.9856220257 3.0740137973),POINT(8.1549020264 0.5280884272),POINT(8.2537313433 1),POINT(8.2759395973 6.5861319909),POINT(8.5254046087 2.8202108786),POINT(8.5486538527 2.8388095297),POINT(8.962933843 2.8915814908),POINT(8.982721744 -2.9728484549),POINT(10.0002 -1032.34324),POINT(-0.789426918 2.9936120963),POINT(-0.756650676 3.3096380288),POINT(-0.7065026362 3.6678383128),POINT(-0.7053428345 3.6761226105),POINT(-0.5322427771 2.8382300112),POINT(0.0484052759 -0.6351220403),POINT(0.1074900991 2.2095287096),POINT(0.2358869378 2.5345369799),POINT(0.5022942954 7.6422084936),POINT(0.5912311308 3.4340124089),POINT(0.6191428706 2.1426011824),POINT(0.6231653578 0.9117872439),POINT(0.623782817 0.7228550406),POINT(0.7298834722 3.7849802218),POINT(0.922549506 1.7175497403),POINT(1.0043920789 4.4798381978),POINT(1.0116798512 1.9574351515),POINT(1.0118303293 1.9053525094),POINT(1.0146591821 0.9262458019),POINT(1.1812448804 4.9275020478),POINT(1.3644094599 2.9067716203),POINT(1.3882103518 2.970829341),POINT(1.3990488222 3),POINT(1.4345726037 7.0883907624),POINT(1.6049428571 6),POINT(1.7007312147 1.2832403032),POINT(1.8713043478 1.3860869565),POINT(1.8756165051 6.6851506239),POINT(1.9943714822 4.6022514071),POINT(2.0600461894 1.2720554273),POINT(2.0949344816 1.4883622029),POINT(2.5137103366 6),POINT(2.5419298093 6.0759498887),POINT(3.1603592893 -775.4271995955),POINT(3.2336465227 -767.0972558089),POINT(3.2667333333 6),POINT(4 1.7237686979),POINT(4 2.9435044208),POINT(4 3.8),POINT(4 4.0774773333),POINT(4 4.7428571429),POINT(5.0642816882 -559.0243444094),POINT(5.0949567997 4.9139481596),POINT(5.2656702765 4.8125362212),POINT(6.4767214716 4.0931141136),POINT(7.0874534584 -329.0674155639),POINT(8.5654958711 2.8522826056),POINT(9.0982599431 -100.5159447848),MULTILINESTRING((-0.7654 0,-0.7654 0,5 3),(0.7984790875 4.8060836502,0.2112296896 4.240994607),(0.2077998615 6,0.5 6),(1.9597001717 6,2.05 6),(3.0067352148 6,3.2727272727 6,5.3446750972 6,5.6400543978 6),(7.8572571429 6,8.571440816 6,8.6 6,8.9996707299 5.9977938904),(8.6 6,189.7654 5,8.9879098883 3.0846331996),(8.5642005867 3.0801439309,7.9856220257 3.0740137973,7.5520651439 3.0694201919),(6.5972990683 3.0593042906,6.0655685493 3.0536705196),(5.3486916977 3.0460750932,5.1538116227 3.0440103072),(5.0094356314 3.0424806202,4.3491041338 3.035484301,3.635536347 3.0279239347),(2.0385111798 3.0110031942,1.2493395518 3.002641793,1 3),(1 3,1.25 3),(2.5384615385 3,3.0269408593 3,3.616216 3,4.3333333333 3),(5.1818181818 3,5.3333333333 3),(5.7143142857 3,6 3,5.8064734649 3.1290176901),(5.4545454545 3.3636363636,5.0064476502 3.6623682332,4.8 3.8,4.7142857143 3.8571428571,4.5789473684 3.9473684211),(4.3333333333 4.1111111111,3.0135311866 4.9909792089),(3.01355465 4.9874955282,4.061692848 4.0205642827),(4.2207880281 3.8737953729,4.4188323829 3.6910949666),(5.2015078274 2.9690591284,5.2944418082 2.8833254246),(5.497296552 2.6961873254,6 2.232432,5.5941944494 2.3519801509),(6 2.232432,5.3110148363 2.4354033546),(5.1599670733 2.47990122,5.0119371724 2.5235100393,4.2246414098 2.7554431721,3.5786749422 2.9457414483),(2.707917162 3.2022620463,2.5755767428 3.241248828),(2.123385696 3.3744618987,1.0795040327 3.6819838693,0.9649694453 3.7157251479,0.938307152 3.7235797173,0.7972370129 3.7651382279),(-0.3237169259 2.7557858007,0.170571916 2.5603603748,0.1992218003 2.5490331601),(0.2145406004 2.5429766142,0.3773402403 2.4786110323),(6.2425713375 -474.4354732514,6.8266054238 -373.9481997708),(8.982721744 -2.9728484549,9 0),(9 0,189.7654 1,8.962933843 2.8915814908),(8.536722474 2.8960405756,8.4084415075 2.8973826696,7.430708887 2.9076118494),(6.5966963737 2.9163374086,6.0978936934 2.9215559542),(5.3099332367 2.9297997102,5.225931835 2.930678545),(5.0099636483 2.9329380354,4.3067976266 2.9402946597,3.5801662007 2.9478967826),(2.1101717708 2.9632760764,1.2569493469 2.9722026125,1 2.9748908537,0.6149864873 2.9789189206,0.4706781499 2.9804286953,0.3895121129 2.981277866),(-1.4 3,-1.3068033885 6.9558869146),(-1.2504328134 9.3486307817,0.3114754098 9.9182295082,0.3751862475 9.4631338933),(0.5800167993 8,0.8524653419 6.0538611394,1.3638480457 4.8544607817,1.4831932773 4.8067226891),(2.7391304348 4.3043478261,3.0189095455 4.1924361818,3.7272727273 3.9090909091),(4.1329380819 3.7468247673,4.3333333333 3.6666666667),(4.9024390244 3.4390243902,5.0077272158 3.3969091137),(5.7778019751 3.08887921,6 3,5.64 2.28),(5.019096693 1.0381933861,5 1),(5 1,5.0192807927 1),(5.1355938277 1,6 1),(6.4545454545 1,6.5680505834 1,6.5886178171 1),(8.3162393162 1,9 1),(4.4685780457 -501.900670073,0.4460055444 -116.1650372164),(-0.6865879576 -7.5575053131,-0.7261514394 -3.763653319),(-0.7654 0,-0.7055293318 0.0311534334),(-0.4848147357 0.1460012823,0.2185007982 0.511968362,1 0.9186179623),(2.3242601182 1.6076907681,2.8377601486 1.874888203,3.0338315695 1.9769130864,3.8285992929 2.3904669024),(4.4545454545 3.2727272727,3.9718874308 3.5140562846),(3.9090909091 3.5454545455,3.4 3.8,3.0202739191 3.9898630405),(2.4124061234 2.180639802,2.9435510802 2.027789135,3.0336635672 2.0018569416,3.7926407442 1.7834416744),(5.789913532 1.2086748923,6.0914294335 1.1219059114,6.2487413165 1.0766353578),(6.4409826695 1.0213129479,6.5720655904 0.983590455,6.5885286684 0.9788527794),(8.1549020264 0.5280884272,8.1821274062 0.5202536216),(8.1776118965 0.4899997067,8.1443064016 0.4970962246),(6.5878957908 0.8287260628,6.5597171564 0.8347301827),(5.0184945033 1.1631238698,5 1.1670645581,3.6468388144 1.4553873323,3.0364682172 1.5854411246),(1.5230208409 1.9079166366,1 2.0193585116,0.2364719009 2.1820461072,0.2152355442 2.1865710118),(0 2.232432,0.2058374298 2.1175524837),(0.2153805064 2.1122264163,1 1.674324),(2.2172202432 0.9949836445,2.228987145 0.9884164425,3.0435512346 0.5338017076,3.1987487661 0.4471847237),(3.2727272727 0.4058967273,4 0,3.4202447638 0.4529428369),(3.2577357849 0.579905516,3.0421060738 0.748369597),(1.5145510415 1.941795834,1 2.343796875,0.4991642495 2.7350826306,0.3765650543 2.8308651675,0.3301406781 2.8671349368),(1 0,1.32 0.384),(1 0,1.6820976352 0.8185171622),(1 0,1.7692307692 0.9230769231),(2.320754717 1.5849056604,3.0307335914 2.4368803097,3.1739130435 2.6086956522),(3.96875 3.5625,4.1847126253 3.8216551503,4.4536082474 4.1443298969,4.4615384615 4.1538461538,4.7040606525 4.444872783),(5.4934139009 5.3920966811,5.8632391605 5.8358869926),(6.0810728025 5.6757087902,6.1818181818 5.2727272727),(6.4814968445 4.0740126218,6.5702479339 3.7190082645,6.5852462189 3.6590151243,6.5995854284 3.6016582865),(6.9375 2.25,7 2,6.8516949153 2.1355932203),(6.5943967506 2.3708372566,6.1283948452 2.7968961415),(5.4671532847 3.401459854,5.0056715124 3.8233860458,4.9761904762 3.8503401361,4.7878103837 4.0225733634,4.5954198473 4.1984732824,4.5035473936 4.2824709544),(2.4636027453 6.1475632043,2.2241035857 6.3665338645,2.1741221724 6.4122311566),(0.3943669748 8.0394359088,0.203482935 8.2139584594),(-0.1752389675 5.1611287259,0.1488190118 6.3478065467),(0.2067083387 6.5597932425,0.286763019 6.8529479238),(0.6 8,0.6060238218 6.1568110873,0.6079474592 5.5682101632,0.6149852779 3.4147551364,0.6156517715 3.2108192282),(0.6246098681 0.4697912,0.6419435163 -4.8340157915),(3.281209938 -783.5596393895,1.029009283 -4.0405309698,1.0156054491 0.598729155),(1.0086593145 3.0028864382,1.0063480799 3.8028380629,1.0062650449 3.8315776758,1.0058459975 3.9766160101),(0.9967859042 5.9935718085,0.6666666667 5.3333333333,0.2108772318 4.4217544636),(0.2070612197 6.3788163409,0.228492202 6.3145233939,0.9685212894 4.0944361319,1 4),(2.0460878081 0.9385495893,2.1914893617 0.7446808511,2.6052344828 0.1930206896,2.9014778325 -0.2019704433),(3.0498391452 -0.3997855269,5 -3),(6.3385518591 -4.7847358121,6.562970133 -5.0839601773),(8 -7,7.2330623306 -2.1682926829),(7.0102742954 -0.7647280611,7 -0.7,6.9839616249 -0.6998503168),(6.5814677242 -0.696093915,5.0273863896 -0.6815899587,5 -0.6813343665,3.0516129644 -0.6631504273),(2.6782119298 -0.6596655439,0.220740609 -0.6367304144),(5 0,5.0240084144 0.0192059633),(6.3855608647 1.1084043555,6.4066720887 1.1252926593,6.5159963134 1.2127485408,6.5897634545 1.2717598932),(8.9743759359 3.1793735737,8.9390415661 5.591578493,8.5454561997 6.1818975107),(6.5714285714 5.8571428571,6.2184057777 5.5747246221,5.5747237599 5.0597790079),(5.0849420849 4.667953668,5.0689655172 4.6551724138,5.0019206729 4.6015365383,4.7710896257 4.4168717006,4.4457831325 4.156626506),(3 3,2.5509103169 3.08091706),(2.3867403315 3.1104972376,1.701754386 3.2339181287,1.1674528302 3.3301886792,0.8122406639 3.3941908714,0.7393077198 3.4073319424,0.6221081322 3.4284489852))) SELECT ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB( ST_ASWKB( @@ -2150,7 +2150,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' 'MULTIPOINT(4 2, 2 4, 4 1, 5 -3.9, 10.0002 3, 2.232432 2, 189.7654 -.9, 7 7),' 'POLYGON((8 3, -0.7654 -.0, 10.0002 8, 1 6, 189.7654 4, -1032.3 -GEOMETRYCOLLECTION(MULTIPOINT((-0.3372510562 3.0976906801),(-0.3348537979 2.8339874793),(-0.3198433036 1.1828030804),(-0.3102416127 0.1265978841),(-0.3090101325 -0.008867403),(-0.2338905689 -0.0083585334),(-0.2246031746 0.130952381),(-0.149049619 1.2642557146),(-0.0516800214 2.7247996797),(-0.0220256254 3.1696156193),(0.0006909947 9.6245396709),(0.2291666667 6.9375),(0.4037058684 -0.1384124899),(0.49060531 -0.0034507051),(0.5267424688 0.0526731934),(0.5827047144 -0.1997831013),(0.60428253 0.1730991117),(0.7870372296 -0.0014426372),(0.8790860446 0.0879068463),(0.9253601792 0.6717583871),(0.9794121261 0.1852908655),(0.9868946509 0.1925539653),(1.790031328 2.0146618549),(1.9520445749 2.2662813883),(2.5587058793 1.7182718293),(2.9738176599 3.8531767312),(3.0188456363 6.794925377),(3.0256607305 5.7805341792),(3.0379404331 3.9527645278),(3.049750374 2.1949164443),(4.4726040206 4.1951545898),(4.4953782801 3.598151312),(4.8532261085 6.7720484046),(4.8974296564 5.0336941524),(4.9233692253 4.0135914228),(4.931538865 3.6923111541),(5.3064159905 4.3854053416),(5.5336194665 4.4372463245),(5.8504707834 4.1401883134),(6.2373749654 4.5978221109),(6.3667328678 4.3466931471),(6.5219648855 5.5653082652),(6.6786520256 3.7411488902),(6.7498049725 2.9127827899),(6.8647923932 1.5740935946),(7.607159315 0.7607007175),(7.8090944134 0.5394454786),(8.1841753585 0.8184011678),(8.3146261708 0.5651504833)),LINESTRING(1 8,9 -0.7654),MULTILINESTRING((5 0,2.7597928442 -0.6195528193),(1.7751316411 -0.6086123824,1 -0.342854788),(1 0.099998,6.0142233628 0.6014103081,7.2679974043 0.7267852047),(7.642921243 0.5309959954,6.0145179089 0.4481958259),(-0.6159558539 0.1110530922,-1.0710967784 0.8245253452,1 1.8122450537,2.1656295601 2.368141476,2.232432 2.4),(1 -1032.34324,-1032.34324 -7,-9.425842657 -0.070625999),(1 -1032.34324,-1032.34324 -7,1 0,0.9353243309 0.5820810223),(0.8850980392 1.0341176471,0.8653527873 1.2118249144,0.6658833657 3.0070497086,0.5555555556 4),(4.818759066 8.1275036264,4.8422953497 7.2019127914),(4.8510969412 6.8557803029,4.873901754 5.9589553832),(4.9237148333 4,4.9319889651 3.6746104612,4.9490686504 3.00293262),(4.9754657064 1.9648386975,4.9765189274 1.9234195952,4.9879543333 1.4737093929),(4.9896400953 1.4074149082,4.9971321117 1.1127829329),(6.2526188907 8.7010475563,6.2785792289 8.3988160241),(6.3422319379 7.6577680621,6.381899944 7.1959511886,6.4896227875 5.941836557),(6.6564178718 4,6.6879049135 3.6334263142),(6.7366177905 3.06630861,6.7422095548 3.0012090149),(6.7782311549 2.5818437795,6.8554283335 1.6831104369,6.8562211152 1.6738808338),(6.9220549563 0.9074400241,7 0,7.0019375276 -0.6666867128),(7 0,10.0002 -1032.34324,7.1982283495 -615.2843816966),(3.0686821851 -0.6229848468,3.0599053208 0.6834056165,3.0569597721 1.1218351662),(3.0559864248 1.2667128312,3.0557104295 1.3077932882),(3.0545138695 1.4858950036,3.0454709428 2.831887451,3.0447971013 2.932185243),(3.0443094908 3.0047635149,3.0376230859 4),(3.0262786135 5.6885655113,3.0243303666 5.9785518917,3.0211687728 6.4491386353),(2.0035607296 6.9004235976,2.5175747094 6.3372313303,2.8431823448 5.9804711844),(4.6507175942 4,4.9546723454 3.666964378,5.5612575161 3.002344171),(6.0105540915 2.5100611458,6.1433550877 2.3645544143,6.7760059328 1.6713746996,6.7810676715 1.6658286791),(7.9751498478 0.3575026906,8.9294526862 -0.688103072),(8.7956790426 -0.6866167312,6.0146380279 0.3857133154),(4.4458861584 0.9906018288,3.8150313209 1.2338505237),(3.5832840203 1.3232090022,3.3563815059 1.4106993997),(3.0966996067 1.5108290639,2.1836974544 1.8628697693),(1.8925403056 1.9751358442,1 2.3192867512),(-0.7286285204 3.008390143,1 3.4028110525,1.7958482044 3.5843996177),(2.1194969918 3.6582465128,3.6173 4),(6.0066417008 4.5451757366,8 5,6.007299668 4.2029198672),(5.5 4,4.7987804878 3.7195121951,3.5884518756 3.2353807502,3.0119864612 3.0047945845)),POINT(-9.425842657 -0.070625999),POINT(-1.0710967784 0.8245253452),POINT(-0.6159558539 0.1110530922),POINT(-0.4103840779 0.1215058943),POINT(0.6658833657 3.0070497086),POINT(1 0.099998),POINT(1 0.193220339),POINT(1 2.3192867512),POINT(2.1836974544 1.8628697693),POINT(2.5175747094 6.3372313303),POINT(3.0147408839 7.4058963536),POINT(3.0355143686 4.3138715611),POINT(3.0443094908 3.0047635149),POINT(3.0736043131 5.7280035942),POINT(3.8256403046 4.047536976),POINT(4.637252947 4.0147528773),POINT(4.873901754 5.9589553832),POINT(4.9180340431 4.2234034652),POINT(4.9490686504 3.00293262),POINT(4.9590205789 2.6115618366),POINT(5.0605460553 4.3293052354),POINT(5.5612575161 3.002344171),POINT(5.581905535 2.979720653),POINT(6.0066417008 4.5451757366),POINT(6.007299668 4.2029198672),POINT(6.0105540915 2.5100611458),POINT(6.0142233628 0.6014103081),POINT(6.0145179089 0.4481958259),POINT(6.0146380279 0.3857133154),POINT(6.4896227875 5.941836557),POINT(6.5340770841 5.4242974542),POINT(6.6879049135 3.6334263142),POINT(6.7366177905 3.06630861),POINT(6.7422095548 3.0012090149),POINT(6.868783767 1.5276258252),POINT(6.9007384247 1.5347084266),POINT(6.9220549563 0.9074400241),POINT(7.642921243 0.5309959954),POINT(7.9751498478 0.3575026906),POINT(8.9294526862 -0.688103072)) +GEOMETRYCOLLECTION(MULTIPOINT((-0.3372510562 3.0976906801),(-0.3348537979 2.8339874793),(-0.3198433036 1.1828030804),(-0.3102416127 0.1265978841),(-0.3090101325 -0.008867403),(-0.2338905689 -0.0083585334),(-0.2246031746 0.130952381),(-0.149049619 1.2642557146),(-0.0516800214 2.7247996797),(-0.0220256254 3.1696156193),(0.0006909947 9.6245396709),(0.2291666667 6.9375),(0.4037058684 -0.1384124899),(0.49060531 -0.0034507051),(0.5267424688 0.0526731934),(0.5827047144 -0.1997831013),(0.60428253 0.1730991117),(0.7870372296 -0.0014426372),(0.8790860446 0.0879068463),(0.9253601792 0.6717583871),(0.9794121261 0.1852908655),(0.9868946509 0.1925539653),(1.790031328 2.0146618549),(1.9520445749 2.2662813883),(2.5587058793 1.7182718293),(2.9738176599 3.8531767312),(3.0188456363 6.794925377),(3.0256607305 5.7805341792),(3.0379404331 3.9527645278),(3.049750374 2.1949164443),(4.4726040206 4.1951545898),(4.4953782801 3.598151312),(4.8532261085 6.7720484046),(4.8974296564 5.0336941524),(4.9233692253 4.0135914228),(4.931538865 3.6923111541),(5.3064159905 4.3854053416),(5.5336194665 4.4372463245),(5.8504707834 4.1401883134),(6.2373749654 4.5978221109),(6.3667328678 4.3466931471),(6.5219648855 5.5653082652),(6.6786520256 3.7411488902),(6.7498049725 2.9127827899),(6.8647923932 1.5740935946),(7.607159315 0.7607007175),(7.8090944134 0.5394454786),(8.1841753585 0.8184011678),(8.3146261708 0.5651504833)),LINESTRING(1 8,9 -0.7654),MULTILINESTRING((5 0,2.7597928442 -0.6195528193),(1.7751316411 -0.6086123824,1 -0.342854788),(1 0.099998,6.0142233628 0.6014103081,7.2679974043 0.7267852047),(7.642921243 0.5309959954,6.0145179089 0.4481958259),(-0.6159558539 0.1110530922,-1.0710967784 0.8245253452,1 1.8122450537,2.1656295601 2.368141476,2.232432 2.4),(1 -1032.34324,-1032.34324 -7,-9.425842657 -0.070625999),(1 -1032.34324,-1032.34324 -7,1 0,0.9353243309 0.5820810223),(0.8850980392 1.0341176471,0.8653527873 1.2118249144,0.6658833657 3.0070497086,0.5555555556 4),(4.818759066 8.1275036264,4.8422953497 7.2019127914),(4.8510969412 6.8557803029,4.873901754 5.9589553832),(4.9237148333 4,4.9319889651 3.6746104612,4.9490686504 3.00293262),(4.9754657064 1.9648386975,4.9765189274 1.9234195952,4.9879543333 1.4737093929),(4.9896400953 1.4074149082,4.9971321117 1.1127829329),(6.2526188907 8.7010475563,6.2785792289 8.3988160241),(6.3422319379 7.6577680621,6.381899944 7.1959511886,6.4896227875 5.941836557),(6.6564178718 4,6.6879049135 3.6334263142),(6.7366177905 3.06630861,6.7422095548 3.0012090149),(6.7782311549 2.5818437795,6.8554283335 1.6831104369,6.8562211152 1.6738808338),(6.9220549563 0.9074400241,7 0,7.0019375276 -0.6666867128),(7 0,10.0002 -1032.34324,7.1982283495 -615.2843816966),(3.0686821851 -0.6229848468,3.0599053208 0.6834056165,3.0569597721 1.1218351662),(3.0559864248 1.2667128312,3.0557104295 1.3077932882),(3.0545138695 1.4858950036,3.0454709428 2.831887451,3.0447971013 2.932185243),(3.0443094908 3.0047635149,3.0376230859 4),(3.0262786135 5.6885655113,3.0243303666 5.9785518917,3.0211687728 6.4491386353),(2.0035607296 6.9004235976,2.5175747094 6.3372313303,2.8431823448 5.9804711844),(4.6507175942 4,4.9546723454 3.666964378,5.5612575161 3.002344171),(6.0105540915 2.5100611458,6.1433550877 2.3645544143,6.7760059328 1.6713746996,6.7810676715 1.6658286791),(7.9751498478 0.3575026906,8.9294526862 -0.688103072),(8.7956790426 -0.6866167312,6.0146380279 0.3857133154),(4.4458861584 0.9906018288,3.8150313209 1.2338505237),(3.5832840203 1.3232090022,3.3563815059 1.4106993997),(3.0966996067 1.5108290639,2.1836974544 1.8628697693),(1.8925403056 1.9751358442,1 2.3192867512),(-0.7286285204 3.008390143,1 3.4028110525,1.7958482044 3.5843996177),(2.1194969918 3.6582465128,3.6173 4),(6.0066417008 4.5451757366,8 5,6.007299668 4.2029198672),(5.5 4,4.7987804878 3.7195121951,3.5884518756 3.2353807502,3.0119864612 3.0047945845)),POINT(-9.425842657 -0.070625999),POINT(-1.0710967784 0.8245253452),POINT(-0.6159558539 0.1110530922),POINT(-0.4103840779 0.1215058943),POINT(0.6658833657 3.0070497086),POINT(1 0.099998),POINT(1 0.193220339),POINT(1 2.3192867512),POINT(1.7958482044 3.5843996177),POINT(2.1836974544 1.8628697693),POINT(2.5175747094 6.3372313303),POINT(3.0147408839 7.4058963536),POINT(3.0243303666 5.9785518917),POINT(3.0355143686 4.3138715611),POINT(3.0443094908 3.0047635149),POINT(3.0686821851 -0.6229848468),POINT(3.0736043131 5.7280035942),POINT(3.0966996067 1.5108290639),POINT(3.8256403046 4.047536976),POINT(4.637252947 4.0147528773),POINT(4.9180340431 4.2234034652),POINT(4.9319889651 3.6746104612),POINT(4.9490686504 3.00293262),POINT(4.9590205789 2.6115618366),POINT(4.9896400953 1.4074149082),POINT(5.0605460553 4.3293052354),POINT(5.5612575161 3.002344171),POINT(5.581905535 2.979720653),POINT(6.0066417008 4.5451757366),POINT(6.007299668 4.2029198672),POINT(6.0105540915 2.5100611458),POINT(6.0142233628 0.6014103081),POINT(6.0145179089 0.4481958259),POINT(6.0146380279 0.3857133154),POINT(6.381899944 7.1959511886),POINT(6.4896227875 5.941836557),POINT(6.5340770841 5.4242974542),POINT(6.7366177905 3.06630861),POINT(6.7422095548 3.0012090149),POINT(6.8554283335 1.6831104369),POINT(6.868783767 1.5276258252),POINT(6.9007384247 1.5347084266),POINT(6.9220549563 0.9074400241),POINT(7.642921243 0.5309959954),POINT(7.9751498478 0.3575026906)) SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('MULTILINESTRING((-.4 2, 2.232432 3, 6 9, 8 189.7654, -1032.34324 5.4, 2.232432 9),' '(-1032.34324 3, 8 -1.6),' @@ -2286,7 +2286,7 @@ ST_ASTEXT(ST_INTERSECTION( ST_GEOMFROMWKB(GEOMETRYCOLLECTION( MULTIPOINT(POINT(8,-6), POINT(9,2), POINT(9,1), POINT(-0,6), POINT(8,6), POINT(4,3), POINT(.7,6)), MULTIPOINT(POINT(8,-0.7654), POINT(2,7), POINT(8,-0.7654), POINT(-.0,7), POINT(.0,6), POINT( -GEOMETRYCOLLECTION(MULTILINESTRING((-0.7654 2.232432,3.6737899159 2.0995592838),(3.9273011579 4.5454683022,2.8 4)),POINT(3.6737899159 2.0995592838),POINT(3.9273011579 4.5454683022)) +GEOMETRYCOLLECTION(MULTILINESTRING((-0.7654 2.232432,3.6737899159 2.0995592838),(3.9273011579 4.5454683022,2.8 4)),POINT(3.9273011579 4.5454683022)) ###################################################################################################### # BUG#20408240 : ST_DIFFERENCE : ASSERTION `T1->RESULT_RANGE' FAILED ###################################################################################################### @@ -2497,7 +2497,7 @@ ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), 61958, ST_BUFFER_STRATEGY('join_miter', 199))) -POLYGON((23109 -57472,23303 -57415,23335 -57402,30261 -53760,33786 -51931,33873 -51862,34085 -51750,40592 -46484,43269 -44341,43332 -44266,43526 -44109,49099 -37411,51088 -35047,51130 -34969,51295 -34772,55750 -26574,56943 -24405,56964 -24340,57094 -24100,59921 -15003,60611 -12826,60618 -12761,60699 -12501,61721 -2804,61948 -754,61943 -697,61972 -422,61095 9145,60905 11347,60888 11408,60863 11673,58209 20643,57522 23012,57489 23074,57417 23320,53145 31446,51927 33792,51881 33850,51765 34070,46301 40821,44337 43275,44268 43332,44124 43511,37969 48632,35043 51094,34947 51146,34787 51280,28141 54892,24401 56949,24289 56985,24115 57079,17524 59127,12822 60617,12682 60632,12516 60684,6342 61334,750 61954,594 61941,437 61957,-5014 61457,-11351 60911,-11527 60861,-11658 60848,-16102 59533,-23016 57528,-23021 57526,-23200 57433,-23305 57402,-23337 57389,-27338 55285,-33801 51931,-33960 51803,-34087 51737,-37982 48585,-43284 44341,-43409 44192,-43528 44096,-46944 39991,-51103 35047,-51192 34885,-51297 34759,-54140 29527,-56958 24405,-57007 24252,-57096 24087,-59033 17853,-60626 12826,-60642 12676,-60701 12488,-61439 5483,-61963 754,-61951 622,-61974 409,-61295 -6998,-60920 -11347,-60885 -11468,-60865 -11686,-58677 -19081,-57537 -23012,-57483 -23115,-57419 -23333,-53633 -30533,-51942 -33792,-51878 -33872,-51767 -34083,-46537 -40544,-44352 -43275,-44275 -43339,-44126 -43524,-37748 -48831,-35058 -51094,-34970 -51142,-34789 -51293,-27282 -55372,-24416 -56949,-24331 -56977,-24117 -57092,-16040 -59602,-12837 -60617,-12742 -60627,-12518 -60697,-4188 -61574,-765 -61954,-670 -61946,-439 -61970,7579 -61235,11336 -60911,11440 -60881,11656 -60861,18963 -58699,23001 -57528,23006 -57526,23109 -57472)) +POLYGON((23109 -57472,23303 -57415,23335 -57402,30261 -53760,33786 -51931,33873 -51862,34085 -51750,40592 -46484,43269 -44341,43332 -44266,43526 -44109,49099 -37411,51088 -35047,51130 -34969,51295 -34772,55750 -26574,56943 -24405,56964 -24340,57094 -24100,59921 -15003,60611 -12826,60618 -12761,60699 -12501,61721 -2804,61948 -754,61943 -697,61972 -422,61095 9145,60905 11347,60888 11408,60863 11673,58209 20643,57522 23012,57489 23074,57417 23320,53145 31446,51927 33792,51881 33850,51765 34070,46301 40821,44337 43275,44268 43332,44124 43511,37969 48632,35043 51094,34947 51146,34787 51280,28141 54892,24401 56949,24289 56985,24115 57079,17524 59127,12822 60617,12682 60632,12516 60684,6342 61334,750 61954,594 61940,437 61957,-5014 61457,-11351 60911,-11527 60861,-11658 60848,-16102 59533,-23016 57528,-23021 57526,-23200 57433,-23305 57402,-23337 57389,-27338 55285,-33801 51931,-33960 51803,-34087 51737,-37982 48585,-43284 44341,-43409 44192,-43528 44096,-46944 39991,-51103 35047,-51192 34885,-51297 34759,-54140 29527,-56958 24405,-57007 24252,-57096 24087,-59033 17853,-60626 12826,-60642 12676,-60701 12488,-61439 5483,-61963 754,-61951 622,-61974 409,-61295 -6998,-60920 -11347,-60885 -11468,-60865 -11686,-58677 -19081,-57537 -23012,-57483 -23115,-57419 -23333,-53633 -30533,-51942 -33792,-51878 -33872,-51767 -34083,-46537 -40544,-44352 -43275,-44275 -43339,-44126 -43524,-37748 -48831,-35058 -51094,-34970 -51142,-34789 -51293,-27282 -55372,-24416 -56949,-24331 -56977,-24117 -57092,-16040 -59602,-12837 -60617,-12742 -60627,-12518 -60697,-4188 -61574,-765 -61954,-670 -61946,-439 -61970,7579 -61235,11336 -60911,11440 -60881,11656 -60861,18963 -58699,23001 -57528,23006 -57526,23109 -57472)) SELECT ST_ISVALID( ST_BUFFER( ST_GEOMFROMTEXT('MULTILINESTRING((15 0,1 -18,-17 -13),(-10 -1,-5 -4,-15 4,1 -9,-5 1))'), diff --git a/mysql-test/suite/gis/t/gis_bugs_crashes.test b/mysql-test/suite/gis/t/gis_bugs_crashes.test index b98003f..32d3f90 100644 --- a/mysql-test/suite/gis/t/gis_bugs_crashes.test +++ b/mysql-test/suite/gis/t/gis_bugs_crashes.test @@ -1852,6 +1852,7 @@ SELECT ST_ASTEXT(ST_UNION( --echo # BUG#20379857 : ASSERTION `ENTER_COUNT == 0' FAILED --echo ###################################################################################################### +--replace_numberic_round 5 SELECT ST_ASTEXT(ST_SYMDIFFERENCE( ST_GEOMFROMTEXT('POLYGON((-4 0,7 -8,-5 1,1 9,-9 -7,9 6,-6 -9,-4 0))'), ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(' From 463b52bd76d98d9790117fb8c61c244a81d47174 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 11 May 2016 17:03:18 +1000 Subject: [PATCH 17/17] test: x86 resutls for gis.spatial_{analysis_functions_buffer,op_testingfunc_mix} --- mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result | 2 +- mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result b/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result index ccae697..2399b21 100644 --- a/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result +++ b/mysql-test/suite/gis/r/spatial_analysis_functions_buffer.result @@ -757,7 +757,7 @@ SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5, 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 10))); ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTIPOLYGON(((0 0,2 2,4 0,0 0)),((3 3,3 5,5 5,5 3,3 3))))'), 10, ST_BUFFER_STRATEGY('join_miter', 10)) -POLYGON((-10 4.1421,-24.1421 -10,-10 -10,0 -10,4 -10,5 -10,15 -10,28.1421 -10,15 3.1421,15 5,15 15,5 15,3.1421 15,2 16.1421,0.8579 15,0 15,-7 15,-10 15,-10 5,-10 4.1421)) +POLYGON((-10 4.1421,-24.1421 -10,-10 -10,0 -10,4 -10,5 -10,15 -10,28.1421 -10,15 3.1421,15 5,15 15,5 15,3.1421 15,2 16.1421,0.8579 15,-7 15,-10 15,-10 5,-10 4.1421)) SELECT ST_ASTEXT(ST_BUFFER(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0,5 5,10 10),' 'POLYGON((0 0,0 5,5 5,5 0,0 0)),' 'MULTILINESTRING((0 0,5 5,10 10)),' diff --git a/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result b/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result index f2ece19..339dba2 100644 --- a/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result +++ b/mysql-test/suite/gis/r/spatial_op_testingfunc_mix.result @@ -543,7 +543,7 @@ SELECT ST_ASTEXT(ST_INTERSECTION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTE ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))); ST_ASTEXT(ST_INTERSECTION(ST_SYMDIFFERENCE(ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_elem_horizontal),ST_GEOMFROMTEXT(@star_elem_vertical)), ST_GEOMFROMTEXT(@star_2)),ST_SYMDIFFERENCE(ST_GEOMFROMTEXT(@star_1),ST_GEOMFROMTEXT(@star_2)))) -GEOMETRYCOLLECTION(MULTIPOINT((16.07143 5.35714),(20.45455 2.72727),(22.05645 3.52822)),MULTILINESTRING((-0 15,0 15),(15.22077 4.88961,15.90909 4.54545)),MULTIPOLYGON(((20 2.5,25 0,20.45455 2.72727,20 2.5)),((20 2.5,15.90909 4.54545,15 0,20 2.5)),((25 25,20 15,30 15,25 25)),((11 15,19 15,15 25,11 15)),((23.33333 4.16667,25 0,23.69565 4.34783,23.33333 4.16667)),((0 15,8.87097 9.67742,10.77778 14.44444,10 15,0 15)),((15.90909 4.54545,16.07143 5.35714,8.87097 9.67742,5 0,15 5,15.90909 4.54545)),((17 10,10.77778 14.44445,10.77778 14.44444,17 10)),((40 15,30 15,22 10,23.69565 4.34783,25 5,35 0,32 10,40 15)))) +GEOMETRYCOLLECTION(MULTIPOINT((16.07143 5.35714),(20.45455 2.72727),(22.05645 3.52822)),MULTILINESTRING((-0 15,0 15),(15 5,15.90909 4.54545)),MULTIPOLYGON(((20 2.5,25 0,20.45455 2.72727,20 2.5)),((20 2.5,15.90909 4.54545,15 0,20 2.5)),((25 25,20 15,30 15,25 25)),((11 15,19 15,15 25,11 15)),((23.33333 4.16667,25 0,23.69565 4.34783,23.33333 4.16667)),((0 15,8.87097 9.67742,10.77778 14.44444,10 15,0 15)),((15.90909 4.54545,16.07143 5.35714,8.87097 9.67742,5 0,15 5,15.90909 4.54545)),((17 10,10.77778 14.44445,10.77778 14.44444,17 10)),((40 15,30 15,22 10,23.69565 4.34783,25 5,35 0,32 10,40 15)))) #------------------------------------------------------------------------------------------- # Spatial Operators with ST_INTERSECTION() #-------------------------------------------------------------------------------------------