Debian Codegraph @

mysql-test/suite/gis/r/st_hausdorff_distance.result

raw
1 SELECT ST_HausdorffDistance(NULL,NULL);
2 ST_HausdorffDistance(NULL,NULL)
3 NULL
4 SELECT ST_HausdorffDistance(NULL,'');
5 ST_HausdorffDistance(NULL,'')
6 NULL
7 DO ST_HausdorffDistance('LINESTRING(0 0, 0 1)');
8 ERROR 42000: Incorrect parameter count in the call to native function 'ST_HausdorffDistance'
9 DO ST_HausdorffDistance('','');
10 ERROR 22023: Invalid GIS data provided to function st_hausdorffdistance.
11 SELECT st_hausdorffdistance(0xffffffff01020000000500000000000000000000000000000000000000000000000000F03F000000000000F03F000000000000F03F00000000000000400000000000000040000000000000F03F00000000000000400000000000000040,0xffffffff01020000000500000000000000000000000000000000000000000000000000F03F000000000000F03F000000000000F03F00000000000000400000000000000040000000000000F03F00000000000000400000000000000040);
12 ERROR SR001: There's no spatial reference system with SRID 4294967295.
13 DO ST_HausdorffDistance
14 (ST_GEOMFROMTEXT('LINESTRING(0 0,1 1,2 1,1 2,2 2)', 4326),
15 ST_GEOMFROMTEXT('LINESTRING(0 1,1 0,1 1,1 2,1 3)', 0));
16 ERROR HY000: Binary geometry function st_hausdorffdistance given two geometries of different srids: 4326 and 0, which should have been identical.
17 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('POINT(0 0)'), ST_GEOMFROMTEXT('POINT(0 1)'));
18 ERROR 22S00: st_hausdorffdistance(POINT, POINT) has not been implemented for Cartesian spatial reference systems.
19 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)'), ST_GEOMFROMTEXT('MULTIPOINT(0 1)'));
20 ERROR 22S00: st_hausdorffdistance(LINESTRING, MULTIPOINT) has not been implemented for Cartesian spatial reference systems.
21 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)'), ST_GEOMFROMTEXT('POLYGON((0 0, 1 0, 1 1, 0 0))'));
22 ERROR 22S00: st_hausdorffdistance(LINESTRING, POLYGON) has not been implemented for Cartesian spatial reference systems.
23 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)'), ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0, 1 0, 1 1, 0 0)))'));
24 ERROR 22S00: st_hausdorffdistance(LINESTRING, MULTIPOLYGON) has not been implemented for Cartesian spatial reference systems.
25 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0, 1 0, 1 1, 0 0)))', 4326), ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)', 4326));
26 ERROR 22S00: st_hausdorffdistance(MULTIPOLYGON, LINESTRING) has not been implemented for geographic spatial reference systems.
27 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)'), ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0, 0 1))'));
28 ERROR 22S00: st_hausdorffdistance(LINESTRING, GEOMCOLLECTION) has not been implemented for Cartesian spatial reference systems.
29 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0, 0 1))'), ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)'));
30 ERROR 22S00: st_hausdorffdistance(GEOMCOLLECTION, LINESTRING) has not been implemented for Cartesian spatial reference systems.
31 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0, 0 1))', 4326), ST_GEOMFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(0 0, 0 1))', 4326));
32 ERROR 22S00: st_hausdorffdistance(GEOMCOLLECTION, GEOMCOLLECTION) has not been implemented for geographic spatial reference systems.
33 DO ST_HausdorffDistance(ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1e308, 1e308 1e308)'), ST_GEOMFROMTEXT('LINESTRING(0 0, 0 1)'));
34 ERROR 22003: Hausdorff_distance value is out of range in 'st_hausdorffdistance'
35 SELECT
36 ROUND(
37 ST_HausdorffDistance
38 (ST_GEOMFROMTEXT('LINESTRING(0 0, 100 0)', 0),
39 ST_GEOMFROMTEXT('LINESTRING(0 0, 50 50, 100 0)', 0)),
40 2
41 ) AS dfd;
42 dfd
43 0
44 SELECT
45 ROUND(
46 ST_HausdorffDistance
47 (ST_GEOMFROMTEXT('LINESTRING(0 0,1 1,2 1,1 2,2 2)', 4326),
48 ST_GEOMFROMTEXT('LINESTRING(0 1,1 0,1 1,1 2,1 3)', 4326),
49 'foot'),
50 2
51 ) AS dfd;
52 dfd
53 362775