mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 16:42:35 +00:00
2b3c01bcdf
Closes #3591 Closes https://github.com/postgis/postgis/pull/106 git-svn-id: http://svn.osgeo.org/postgis/trunk@15029 b70326c6-7e19-0410-871a-916f4a2858ee
16 lines
385 B
SQL
16 lines
385 B
SQL
CREATE TABLE "test" (
|
|
"num" numeric
|
|
,
|
|
"the_geog" geography
|
|
);
|
|
|
|
INSERT INTO test (num, the_geog)
|
|
SELECT i,
|
|
CASE
|
|
WHEN i%0.1 = 0.0 THEN NULL
|
|
WHEN i%0.11 = 0 THEN 'SRID=4326;POINTZ EMPTY'::geography
|
|
ELSE
|
|
ST_GeographyFromText('SRID=4326;POINTZ(' || i || ' ' || i || ' ' || i || ')')
|
|
END
|
|
FROM generate_series(-20.0, 80.0, 0.01) i;
|