mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
52 lines
2.7 KiB
SQL
52 lines
2.7 KiB
SQL
CREATE TABLE points_empty_srid
|
|
(
|
|
gid SERIAL PRIMARY KEY,
|
|
geom GEOMETRY
|
|
);
|
|
|
|
-- INSERT INTO points_empty_srid
|
|
-- SELECT generate_series(1, 3) as id,
|
|
-- (ST_DUMP(ST_GENERATEPOINTS(ST_TRANSFORM(st_tileenvelope(18, 235085, 122323), 900913), 3))).geom;
|
|
-- INSERT INTO points_empty_srid
|
|
-- SELECT generate_series(4, 30) as id,
|
|
-- (ST_DUMP(ST_GENERATEPOINTS(ST_TRANSFORM(st_tileenvelope(0, 0, 0), 900913), 27))).geom;
|
|
--
|
|
-- To dump the data above, uncomment code the above, comment the INSERT code bellow, and run:
|
|
-- just restart
|
|
-- just pg_dump --data-only --inserts --rows-per-insert=100 --table=points_empty_srid
|
|
|
|
INSERT INTO points_empty_srid
|
|
values (1, '010100002031BF0D00A893BD242C546E4114573D7189453441'),
|
|
(2, '010100002031BF0D008F47208524546E419F1F5DF118463441'),
|
|
(3, '010100002031BF0D00122679C128546E41DF077C57EB453441'),
|
|
(4, '010100002031BF0D00502800BEFF687041B7FA65EF000E71C1'),
|
|
(5, '010100002031BF0D00283DA444BE53354176887245EB6066C1'),
|
|
(6, '010100002031BF0D00679A07B56C4B504168216B067DD65DC1'),
|
|
(7, '010100002031BF0D00B6D9B8B1B70A68C11D3E2837B86C72C1'),
|
|
(8, '010100002031BF0D00BEAFAF46A56B5241523D071D05D96241'),
|
|
(9, '010100002031BF0D0084239A093C4A70417CC6E3A2C8C53B41'),
|
|
(10, '010100002031BF0D004475363F9C6B61C1ACAEC94206C950C1'),
|
|
(11, '010100002031BF0D00B61E5FA4563C71C1166F2110C18E6241'),
|
|
(12, '010100002031BF0D0036BADF2EB3EB56C1F8E5F8E651E971C1'),
|
|
(13, '010100002031BF0D00C48A851B07CE69C1639F032C33EC64C1'),
|
|
(14, '010100002031BF0D00228AE2D877F272417307AA3AEF8757C1'),
|
|
(15, '010100002031BF0D004149C981DB206B4173A89BBB098E6841'),
|
|
(16, '010100002031BF0D00B4DB37CFDA3149C122DBF542798E6B41'),
|
|
(17, '010100002031BF0D00DE8CB588496A50410F332B90ECED68C1'),
|
|
(18, '010100002031BF0D00CEAA1162393E59416AD4838434637041'),
|
|
(19, '010100002031BF0D00C0700EC5080A3141401CDE1EAA703F41'),
|
|
(20, '010100002031BF0D00542CA763BFE33BC19D52D6EA59BB6441'),
|
|
(21, '010100002031BF0D007FB0FCE2289B5F41F6BB98F8F00B4641'),
|
|
(22, '010100002031BF0D0051FF66E42ADD57C1BF7B765208154AC1'),
|
|
(23, '010100002031BF0D001C164D29EA2659C190BE2AA8514D6841'),
|
|
(24, '010100002031BF0D00541CC23D08883841960C8F0EBF4E6BC1'),
|
|
(25, '010100002031BF0D00409FC9B8D50867C10058FAE36ED01941'),
|
|
(26, '010100002031BF0D006375CA2B561E6741C3DBA6C58AB64F41'),
|
|
(27, '010100002031BF0D00E4F260A533D250C1A66FD71A76956041'),
|
|
(28, '010100002031BF0D00005C10F52F3271C1D1D701BD32B37041'),
|
|
(29, '010100002031BF0D00488317ADC4177041E539DBF991A270C1'),
|
|
(30, '010100002031BF0D00E2A0DFFAED4440C15A88E23068CF5EC1');
|
|
|
|
CREATE INDEX ON points_empty_srid USING GIST (geom);
|
|
CLUSTER points_empty_srid_geom_idx ON points_empty_srid;
|