Skip to content

Commit

Permalink
Add SRID 0 test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Mar 4, 2024
1 parent f9f04c6 commit 3543571
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions testing/pgfs_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);


--=====================================================================

Expand Down

0 comments on commit 3543571

Please sign in to comment.