Skip to content

Commit 3543571

Browse files
committed
Add SRID 0 test fixture
1 parent f9f04c6 commit 3543571

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

testing/pgfs_test.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@ SELECT ROW_NUMBER() OVER () AS id,
2828
FROM generate_series(0, 9) AS x(x)
2929
CROSS JOIN generate_series(0, 9) AS y(y);
3030

31+
--=====================================================================
32+
33+
CREATE TABLE pgfs_test.test_srid0
34+
(
35+
id integer primary key,
36+
geom geometry(polygon, 0),
37+
name text
38+
);
39+
40+
-- DROP TABLE pgfs_test.test_srid0;
41+
-- DELETE FROM pgfs_test.test_srid0;
42+
43+
INSERT INTO pgfs_test.test_srid0
44+
SELECT ROW_NUMBER() OVER () AS id,
45+
ST_MakeEnvelope(1.0 + 2 * x, 4.0 + 2 * y,
46+
1.0 + 2 * (x + 1), 4.0 + 2 * (y + 1),
47+
0) AS geom,
48+
x || '_' || y AS name
49+
FROM generate_series(0, 9) AS x(x)
50+
CROSS JOIN generate_series(0, 9) AS y(y);
51+
3152

3253
--=====================================================================
3354

0 commit comments

Comments
 (0)