From 354357163cdfc6221ae32591b3f69cf40c91de53 Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Mon, 4 Mar 2024 14:26:20 -0800 Subject: [PATCH] Add SRID 0 test fixture --- testing/pgfs_test.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/testing/pgfs_test.sql b/testing/pgfs_test.sql index 2cf80fa6..6e1fa433 100644 --- a/testing/pgfs_test.sql +++ b/testing/pgfs_test.sql @@ -28,6 +28,27 @@ SELECT ROW_NUMBER() OVER () AS id, FROM generate_series(0, 9) AS x(x) CROSS JOIN generate_series(0, 9) AS y(y); +--===================================================================== + +CREATE TABLE pgfs_test.test_srid0 +( + id integer primary key, + geom geometry(polygon, 0), + name text +); + +-- DROP TABLE pgfs_test.test_srid0; +-- DELETE FROM pgfs_test.test_srid0; + +INSERT INTO pgfs_test.test_srid0 +SELECT ROW_NUMBER() OVER () AS id, + ST_MakeEnvelope(1.0 + 2 * x, 4.0 + 2 * y, + 1.0 + 2 * (x + 1), 4.0 + 2 * (y + 1), + 0) AS geom, + x || '_' || y AS name + FROM generate_series(0, 9) AS x(x) + CROSS JOIN generate_series(0, 9) AS y(y); + --=====================================================================