Skip to content

Commit 505e3b4

Browse files
committed
add test
1 parent 91ff64d commit 505e3b4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Query a database with geometry types created in duckdb v1.0.0
2+
require spatial
3+
4+
statement ok
5+
attach 'test/data/duckdb_v1_0_0.db' as db;
6+
7+
statement ok
8+
use db
9+
10+
query IIII rowsort
11+
SELECT st_geometrytype(geom), st_astext(geom), st_isvalid(geom), st_area(geom) FROM types;
12+
----
13+
GEOMETRYCOLLECTION GEOMETRYCOLLECTION (POINT (0 0), LINESTRING (0 0, 1 1)) true 0.0
14+
GEOMETRYCOLLECTION GEOMETRYCOLLECTION EMPTY true 0.0
15+
LINESTRING LINESTRING (0 0, 1 1) true 0.0
16+
LINESTRING LINESTRING EMPTY true 0.0
17+
MULTILINESTRING MULTILINESTRING ((0 0, 1 1), (2 2, 3 3)) true 0.0
18+
MULTILINESTRING MULTILINESTRING EMPTY true 0.0
19+
MULTIPOINT MULTIPOINT (0 0, 1 1) true 0.0
20+
MULTIPOINT MULTIPOINT EMPTY true 0.0
21+
MULTIPOLYGON MULTIPOLYGON (((0 0, 1 0, 1 1, 0 1, 0 0)), ((2 2, 3 2, 3 3, 2 3, 2 2))) true 2.0
22+
MULTIPOLYGON MULTIPOLYGON EMPTY true 0.0
23+
POINT POINT (0 0) true 0.0
24+
POINT POINT EMPTY true 0.0
25+
POLYGON POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0)) true 1.0
26+
POLYGON POLYGON EMPTY true 0.0
27+

0 commit comments

Comments
 (0)