MDEV-34276: Implements the function ST_IsValid
The GIS function ST_Simplify takes ad input a geometry and returns 1 if the argument is geometrically valid, 0 if the argument is not geometrically valid. Author: StefanoPetrilli <stefanop_1999@hotmail.it> Co-authored-by: Ahmed Ibrahim <ahmed.ibr.hashim@gmail.com> Co-authored-by: Jon Olav Hauglid <jon.hauglid@oracle.com> Co-authored-by: Erlend Dahl <erlend.dahl@oracle.com> Co-authored-by: Norvald H. Ryeng <norvald.ryeng@oracle.com> Co-authored-by: Menelaos Karavelas <menelaos.karavelas@oracle.com> Co-authored-by: David.Zhao <david.zhao@oracle.com> Co-authored-by: Pavan <pavan.naik@oracle.com>
This commit is contained in:
parent
ba66f8f37b
commit
869b4c243e
@ -1,4 +1,3 @@
|
||||
|
||||
# Copyright (c) 2014, Oracle and/or its affiliates
|
||||
# Copyright (c) 2024, MariaDB Corporation.
|
||||
#
|
||||
|
@ -4284,6 +4284,36 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class Create_func_isvalid : public Create_func_arg1
|
||||
{
|
||||
public:
|
||||
Item *create_1_arg(THD *thd, Item *arg1) override
|
||||
{
|
||||
return new (thd->mem_root) Item_func_isvalid(thd, arg1);
|
||||
}
|
||||
|
||||
static Create_func_isvalid s_singleton;
|
||||
|
||||
protected:
|
||||
Create_func_isvalid() = default;
|
||||
virtual ~Create_func_isvalid() = default;
|
||||
};
|
||||
|
||||
class Create_func_isvalid : public Create_func_arg1
|
||||
{
|
||||
public:
|
||||
Item *create_1_arg(THD *thd, Item *arg1) override
|
||||
{
|
||||
return new (thd->mem_root) Item_func_isvalid(thd, arg1);
|
||||
}
|
||||
|
||||
static Create_func_isvalid s_singleton;
|
||||
|
||||
protected:
|
||||
Create_func_isvalid() = default;
|
||||
virtual ~Create_func_isvalid() = default;
|
||||
};
|
||||
|
||||
class Create_func_isvalid : public Create_func_arg1
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user