mirror of
https://github.com/maplibre/martin.git
synced 2024-12-23 14:53:35 +03:00
c1b65796f6
* All tests and internal code now uses ST_TileEnvelope function * Remove `tile_bbox` * Rename test function sources for clarity - this will be needed in a subsequent PR to add other function tests
20 lines
598 B
SQL
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;
|