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
66d00330
Commit
66d00330
authored
Mar 06, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added IsClosed() tests for MultiLineString objects.
Added Centroid(), Area() tests for MultiPolygon objects.
parent
a8c7a083
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/gis.result
mysql-test/r/gis.result
+15
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+5
-0
No files found.
mysql-test/r/gis.result
View file @
66d00330
...
...
@@ -259,6 +259,21 @@ fid AsText(InteriorRingN(g, 1))
108 NULL
109 LINESTRING(10 10,20 10,20 20,10 20,10 10)
110 NULL
SELECT fid, IsClosed(g) FROM mls;
fid IsClosed(g)
114 0
115 0
116 0
SELECT fid, AsText(Centroid(g)) FROM mp;
fid AsText(Centroid(g))
117 POINT(55.588527753042 17.426536064114)
118 POINT(55.588527753042 17.426536064114)
119 POINT(2 2)
SELECT fid, Area(g) FROM mp;
fid Area(g)
117 1684.5
118 1684.5
119 4.5
SELECT fid, NumGeometries(g) from mpt;
fid NumGeometries(g)
111 4
...
...
mysql-test/t/gis.test
View file @
66d00330
...
...
@@ -89,6 +89,11 @@ SELECT fid, AsText(ExteriorRing(g)) FROM p;
SELECT
fid
,
NumInteriorRings
(
g
)
FROM
p
;
SELECT
fid
,
AsText
(
InteriorRingN
(
g
,
1
))
FROM
p
;
SELECT
fid
,
IsClosed
(
g
)
FROM
mls
;
SELECT
fid
,
AsText
(
Centroid
(
g
))
FROM
mp
;
SELECT
fid
,
Area
(
g
)
FROM
mp
;
SELECT
fid
,
NumGeometries
(
g
)
from
mpt
;
SELECT
fid
,
NumGeometries
(
g
)
from
mls
;
SELECT
fid
,
NumGeometries
(
g
)
from
mp
;
...
...
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