Ticket #277: unit_test.sql

File unit_test.sql, 1.9 KB (added by colivier, 7 years ago)
Line 
1SELECT ST_AsGML(2, geomFromEWKT('POINT(1e50 1)')); 
2SELECT ST_AsGML(2, geomFromEWKT('POINT(1 1e50)')); 
3SELECT ST_AsGML(2, geomFromEWKT('POINT(1 1 1e50)')); 
4SELECT ST_AsGML(2, geomFromEWKT('POINT(-1e50 1)')); 
5SELECT ST_AsGML(2, geomFromEWKT('POINT(1 -1e50)')); 
6SELECT ST_AsGML(2, geomFromEWKT('POINT(1 1 -1e50)')); 
7SELECT ST_AsGML(3, geomFromEWKT('POINT(1e50 1)')); 
8SELECT ST_AsGML(3, geomFromEWKT('POINT(1 1e50)')); 
9SELECT ST_AsGML(3, geomFromEWKT('POINT(1 1 1e50)')); 
10SELECT ST_AsGML(3, geomFromEWKT('POINT(-1e50 1)')); 
11SELECT ST_AsGML(3, geomFromEWKT('POINT(1 -1e50)')); 
12SELECT ST_AsGML(3, geomFromEWKT('POINT(1 1 -1e50)')); 
13
14SELECT ST_AsKML(geomFromEWKT('SRID=4326;POINT(1e50 1)')); 
15SELECT ST_AsKML(geomFromEWKT('SRID=4326;POINT(1 1e50)')); 
16SELECT ST_AsKML(geomFromEWKT('SRID=4326;POINT(1 1 1e50)')); 
17SELECT ST_AsKML(geomFromEWKT('SRID=4326;POINT(-1e50 1)')); 
18SELECT ST_AsKML(geomFromEWKT('SRID=4326;POINT(1 -1e50)')); 
19SELECT ST_AsKML(geomFromEWKT('SRID=4326;POINT(1 1 -1e50)')); 
20
21SELECT ST_AsGeojson(geomFromEWKT('POINT(1e50 1)')); 
22SELECT ST_AsGeojson(geomFromEWKT('POINT(1 1e50)')); 
23SELECT ST_AsGeojson(geomFromEWKT('POINT(1 1 1e50)')); 
24SELECT ST_AsGeojson(geomFromEWKT('POINT(-1e50 1)')); 
25SELECT ST_AsGeojson(geomFromEWKT('POINT(1 -1e50)')); 
26SELECT ST_AsGeojson(geomFromEWKT('POINT(1 1 -1e50)')); 
27
28SELECT ST_AsSVG(geomFromEWKT('POINT(1e50 1)')); 
29SELECT ST_AsSVG(geomFromEWKT('POINT(1 1e50)')); 
30SELECT ST_AsSVG(geomFromEWKT('POINT(-1e50 1)')); 
31SELECT ST_AsSVG(geomFromEWKT('POINT(1 -1e50)')); 
32SELECT ST_AsSVG(geomFromEWKT('POINT(1e50 1)'), 1); 
33SELECT ST_AsSVG(geomFromEWKT('POINT(1 1e50)'), 1); 
34SELECT ST_AsSVG(geomFromEWKT('POINT(-1e50 1)'), 1); 
35SELECT ST_AsSVG(geomFromEWKT('POINT(1 -1e50)'), 1); 
36SELECT ST_AsSVG(geomFromEWKT('LINESTRING(1e50 1, 1 1)'), 1); 
37SELECT ST_AsSVG(geomFromEWKT('LINESTRING(1 1e50, 1 1)'), 1); 
38SELECT ST_AsSVG(geomFromEWKT('LINESTRING(-1e50 1, 1 1)'), 1); 
39SELECT ST_AsSVG(geomFromEWKT('LINESTRING(1 -1e50, 1 1)'), 1);