Commit 66d00330 authored by unknown's avatar unknown

Added IsClosed() tests for MultiLineString objects.

Added Centroid(), Area() tests for MultiPolygon objects.

parent a8c7a083
...@@ -259,6 +259,21 @@ fid AsText(InteriorRingN(g, 1)) ...@@ -259,6 +259,21 @@ fid AsText(InteriorRingN(g, 1))
108 NULL 108 NULL
109 LINESTRING(10 10,20 10,20 20,10 20,10 10) 109 LINESTRING(10 10,20 10,20 20,10 20,10 10)
110 NULL 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; SELECT fid, NumGeometries(g) from mpt;
fid NumGeometries(g) fid NumGeometries(g)
111 4 111 4
......
...@@ -89,6 +89,11 @@ SELECT fid, AsText(ExteriorRing(g)) FROM p; ...@@ -89,6 +89,11 @@ SELECT fid, AsText(ExteriorRing(g)) FROM p;
SELECT fid, NumInteriorRings(g) FROM p; SELECT fid, NumInteriorRings(g) FROM p;
SELECT fid, AsText(InteriorRingN(g, 1)) 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 mpt;
SELECT fid, NumGeometries(g) from mls; SELECT fid, NumGeometries(g) from mls;
SELECT fid, NumGeometries(g) from mp; SELECT fid, NumGeometries(g) from mp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment