66
77use PhpMyAdmin \DatabaseInterface ;
88use PhpMyAdmin \Util ;
9+ use PhpMyAdmin \Utils \Gis ;
910
1011use function count ;
1112use function explode ;
@@ -280,7 +281,7 @@ private function getGeomWhereClause(
280281 $ where = '' ;
281282
282283 // Get details about the geometry functions
283- $ geom_funcs = Util:: getGISFunctions ($ types , true , false );
284+ $ geom_funcs = Gis:: getFunctions ($ types , true , false );
284285
285286 // If the function takes multiple parameters
286287 if (strpos ($ func_type , 'IS NULL ' ) !== false || strpos ($ func_type , 'IS NOT NULL ' ) !== false ) {
@@ -289,7 +290,7 @@ private function getGeomWhereClause(
289290
290291 if ($ geom_funcs [$ geom_func ]['params ' ] > 1 ) {
291292 // create gis data from the criteria input
292- $ gis_data = Util:: createGISData ($ criteriaValues , $ this ->dbi ->getVersion ());
293+ $ gis_data = Gis:: createData ($ criteriaValues , $ this ->dbi ->getVersion ());
293294
294295 return $ geom_func . '( ' . Util::backquote ($ names )
295296 . ', ' . $ gis_data . ') ' ;
@@ -307,11 +308,11 @@ private function getGeomWhereClause(
307308 ) {
308309 $ where = $ geom_function_applied ;
309310 } elseif (
310- in_array ($ type , Util:: getGISDatatypes ())
311+ in_array ($ type , Gis:: getDataTypes ())
311312 && ! empty ($ criteriaValues )
312313 ) {
313314 // create gis data from the criteria input
314- $ gis_data = Util:: createGISData ($ criteriaValues , $ this ->dbi ->getVersion ());
315+ $ gis_data = Gis:: createData ($ criteriaValues , $ this ->dbi ->getVersion ());
315316 $ where = $ geom_function_applied . ' ' . $ func_type . ' ' . $ gis_data ;
316317 } elseif (strlen ($ criteriaValues ) > 0 ) {
317318 $ where = $ geom_function_applied . ' '
0 commit comments