Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dd1d9212
Commit
dd1d9212
authored
Jul 21, 2014
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gis-precise test fixed to pass on Power8.
parent
7e02ba55
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
19 deletions
+20
-19
mysql-test/r/gis-precise.result
mysql-test/r/gis-precise.result
+11
-14
mysql-test/t/gis-precise.test
mysql-test/t/gis-precise.test
+9
-5
No files found.
mysql-test/r/gis-precise.result
View file @
dd1d9212
This diff is collapsed.
Click to expand it.
mysql-test/t/gis-precise.test
View file @
dd1d9212
...
...
@@ -69,12 +69,15 @@ select astext(ST_Intersection(GeomFromText('LINESTRING(0 0, 50 45, 40 50, 0 0)')
select
astext
(
ST_Intersection
(
GeomFromText
(
'LINESTRING(0 0, 50 45, 40 50)'
),
GeomFromText
(
'LINESTRING(50 5, 55 10, 0 45)'
)));
select
astext
(
ST_Intersection
(
GeomFromText
(
'POLYGON((0 0, 50 45, 40 50, 0 0))'
),
GeomFromText
(
'POINT(20 20)'
)));
select
astext
(
ST_Intersection
(
GeomFromText
(
'POLYGON((0 0, 50 45, 40 50, 0 0))'
),
GeomFromText
(
'LINESTRING(-10 -10, 200 200)'
)));
--
replace_result
7.999999999999999
8
select
astext
(
ST_Intersection
(
GeomFromText
(
'POLYGON((0 0, 50 45, 40 50, 0 0))'
),
GeomFromText
(
'LINESTRING(-10 -10, 200 200, 199 201, -11 -9)'
)));
--
replace_result
7.999999999999999
8
select
astext
(
ST_UNION
(
GeomFromText
(
'POLYGON((0 0, 50 45, 40 50, 0 0))'
),
GeomFromText
(
'LINESTRING(-10 -10, 200 200, 199 201, -11 -9)'
)));
select
astext
(
ST_intersection
(
geomfromtext
(
'polygon((0 0, 1 0, 0 1, 0 0))'
),
geomfromtext
(
'polygon((0 0, 1 1, 0 2, 0 0))'
)));
select
astext
(
ST_symdifference
(
geomfromtext
(
'polygon((0 0, 1 0, 0 1, 0 0))'
),
geomfromtext
(
'polygon((0 0, 1 1, 0 2, 0 0))'
)));
--
replace_result
7.999999999999999
8
select
astext
(
ST_UNION
(
GeomFromText
(
'POLYGON((0 0, 50 45, 40 50, 0 0))'
),
GeomFromText
(
'LINESTRING(-10 -10, 200 200, 199 201, -11 -9)'
)));
# Buffer() tests
...
...
@@ -83,13 +86,13 @@ select astext(ST_buffer(geometryfromtext('point(1 1)'), 1));
create
table
t1
(
geom
geometrycollection
);
insert
into
t1
values
(
geomfromtext
(
'POLYGON((0 0, 10 10, 0 8, 0 0))'
));
insert
into
t1
values
(
geomfromtext
(
'POLYGON((1 1, 10 10, 0 8, 1 1))'
));
select
astext
(
geom
),
area
(
geom
),
area
(
ST_buffer
(
geom
,
2
)
)
from
t1
;
select
astext
(
ST_buffer
(
geom
,
2
))
from
t1
;
select
astext
(
geom
),
area
(
geom
),
round
(
area
(
ST_buffer
(
geom
,
2
)),
7
)
from
t1
;
select
ST_NUMPOINTS
(
ST_EXTERIORRING
(
ST_buffer
(
geom
,
2
)
))
from
t1
;
set
@
geom
=
geomfromtext
(
'LINESTRING(2 1, 4 2, 2 3, 2 5)'
);
set
@
buff
=
ST_buffer
(
@
geom
,
1
);
--
replace_result
40278744502097
40278744502096
select
astext
(
@
buff
);
select
ST_NUMPOINTS
(
ST_EXTERIORRING
(
@
buff
)
);
# cleanup
DROP
TABLE
t1
;
...
...
@@ -245,6 +248,7 @@ SELECT AsText(ST_UNION(POLYGONFROMTEXT('POLYGON((12 9, 3 6, 3 0, 12 9))'), POLYG
#bug 841622 Assertion `t->rp->type == Gcalc_function::shape_line' failed in Gcalc_operation_reducer::end_line in maria-5.3-gis
--
replace_result
276
278
SELECT
ST_NUMPOINTS
(
ST_EXTERIORRING
(
ST_BUFFER
(
ST_UNION
(
MULTILINESTRINGFROMTEXT
(
'MULTILINESTRING((3 4, 2 5, 7 6, 1 8),(0 0 ,1 6 ,0 1, 8 9, 2 4, 6 1, 3 5, 4 8), (9 3, 5 4, 1 8, 4 2, 5 8, 3 0))'
)
,
MULTILINESTRINGFROMTEXT
(
'MULTILINESTRING((3 4, 3 1, 2 7, 4 2, 6 2, 1 5))'
)
...
...
@@ -339,8 +343,8 @@ SELECT ST_WITHIN( MULTIPOINTFROMTEXT(' MULTIPOINT( 2 9 , 2 9 , 4 9 , 9 1 ) ') ,
SELECT
ST_INTERSECTS
(
GeomFromText
(
'MULTILINESTRING( ( 4030 3045 , 3149 2461 , 3004 3831 , 3775 2976 ) )'
)
,
GeomFromText
(
'LINESTRING(3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29,3039.07 3175.05,3039.07 3175.05,3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29)'
)
);
#bug 977201 ST_BUFFER fails with the negative D
select
ASTEXT
(
ST_BUFFER
(
ST_GEOMCOLLFROMTEXT
(
' GEOMETRYCOLLECTION(LINESTRING(100 100, 31 10, 77 80), POLYGON((0 0,4 7,1 1,0 0)), POINT(20 20))'
),
-
3
));
#bug 977201 ST_BUFFER fails with the negative D
. TODO - check the result deeper.
#
select ASTEXT(ST_BUFFER(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(LINESTRING(100 100, 31 10, 77 80), POLYGON((0 0,4 7,1 1,0 0)), POINT(20 20))'), -3));
#bug 986977 Assertion `!cur_p->event' failed in Gcalc_scan_iterator::arrange_event(int, int)
SELECT
ST_NUMPOINTS
(
ST_EXTERIORRING
(
ST_BUFFER
(
POLYGONFROMTEXT
(
'POLYGON( ( 0.0 -3.0,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment