mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
52 lines
2.6 KiB
SQL
52 lines
2.6 KiB
SQL
CREATE TABLE points2
|
|
(
|
|
gid SERIAL PRIMARY KEY,
|
|
geom GEOMETRY(POINT, 4326)
|
|
);
|
|
|
|
-- INSERT INTO points2
|
|
-- SELECT generate_series(1, 3) as id,
|
|
-- (ST_DUMP(ST_GENERATEPOINTS(st_transform(st_tileenvelope(18, 235085, 122323), 4326), 3))).geom;
|
|
-- INSERT INTO points2
|
|
-- SELECT generate_series(4, 30) as id,
|
|
-- (ST_DUMP(ST_GENERATEPOINTS(st_transform(st_tileenvelope(0, 0, 0), 4326), 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=points2
|
|
|
|
INSERT INTO points2
|
|
values (1, '0101000020E6100000C8B87C3FE5DA614032D27209ECDA2740'),
|
|
(2, '0101000020E6100000EF84EC96E8DA6140039B96DD6ADA2740'),
|
|
(3, '0101000020E61000009172473AEADA614003D6D83BF0DA2740'),
|
|
(4, '0101000020E61000004AB207C657CC59C0583D8A99C35324C0'),
|
|
(5, '0101000020E61000003EB2523EE2D64CC0065C8FAB1D165340'),
|
|
(6, '0101000020E6100000884A93598E1E634095CDEC2CC2924340'),
|
|
(7, '0101000020E61000005072EC2CB50954C053DDA0E4F3A24DC0'),
|
|
(8, '0101000020E610000002C8849A96EA61C0C2F360AA8D1D54C0'),
|
|
(9, '0101000020E61000002804EB9F63DD5B4038F144E527B434C0'),
|
|
(10, '0101000020E610000000AC1A91908E4840E20DEDEC319337C0'),
|
|
(11, '0101000020E61000001B98DDBF963232C0388FFD8CE1762AC0'),
|
|
(12, '0101000020E6100000921693D3F7555EC0705ADDACECEE3240'),
|
|
(13, '0101000020E61000001845FE176B031640A4CF0AEB2CA605C0'),
|
|
(14, '0101000020E61000001B402E3D15B54540985AAE40CBA4FEBF'),
|
|
(15, '0101000020E610000070A58239111952C0787B42BAB4E723C0'),
|
|
(16, '0101000020E6100000A061B652FF6CFB3F33BAB22F5D485440'),
|
|
(17, '0101000020E610000032080D36EBDE63408AED619E22522F40'),
|
|
(18, '0101000020E61000000DF5DFCD3A4B4DC07AA218AA798350C0'),
|
|
(19, '0101000020E6100000EED1B438549962C092B2ECDF100041C0'),
|
|
(20, '0101000020E6100000962031749463664068AB6A74DEDA52C0'),
|
|
(21, '0101000020E6100000C32AD2DAB5755540FCE27D02A0C134C0'),
|
|
(22, '0101000020E6100000DA915E30698E46400EA1EDE7CD5E5040'),
|
|
(23, '0101000020E610000076DE962776282EC021C892CCA67549C0'),
|
|
(24, '0101000020E6100000169401C09FC165C0FF58934CFCE225C0'),
|
|
(25, '0101000020E610000032EC6B07BBD83A40025879684C523C40'),
|
|
(26, '0101000020E6100000E9DC67BC5E935840951C8BB9074928C0'),
|
|
(27, '0101000020E6100000B73BE9BE2C5358C05669236D996722C0'),
|
|
(28, '0101000020E6100000903882FD245064403F052FF70C8A4F40'),
|
|
(29, '0101000020E6100000CA5D434B9C8F53C002D9B561D3124E40'),
|
|
(30, '0101000020E61000001076C2DDC6956540B0E88CCB964D2A40');
|
|
|
|
CREATE INDEX ON points2 USING GIST (geom);
|
|
CLUSTER points2_geom_idx ON points2;
|