martin/tests/fixtures/points_empty_srid_source.sql
Stepan Kuzmin b3401785b2
feat: add default SRID support (#308)
* feat: add default SRID support
2022-02-13 15:43:52 +03:00

20 lines
598 B
SQL

CREATE TABLE points_empty_srid(gid SERIAL PRIMARY KEY, geom GEOMETRY);
INSERT INTO points_empty_srid
SELECT
generate_series(1, 10000) as id,
(
ST_DUMP(
ST_GENERATEPOINTS(
ST_TRANSFORM(
ST_GEOMFROMTEXT('POLYGON ((-179 89, 179 89, 179 -89, -179 -89, -179 89))', 4326),
900913
),
10000
)
)
).geom;
CREATE INDEX ON points_empty_srid USING GIST(geom);
CLUSTER points_empty_srid_geom_idx ON points_empty_srid;