martin/tests/fixtures/points.sql
Stepan Kuzmin 8ad3fccd8a fix tests
2018-01-30 12:36:48 +03:00

7 lines
278 B
SQL

create table points(gid serial PRIMARY KEY, geom geometry(GEOMETRY, 4326));
INSERT INTO points
SELECT
generate_series(1, 1000) as id,
(ST_Dump(ST_GeneratePoints(ST_GeomFromText('POLYGON ((-180 90, 180 90, 180 -90, -180 -90, -180 90))', 4326), 1000))).geom;