graphql-engine/server/tests-py/queries/graphql_query/boolexp/raster/setup.yaml

23 lines
612 B
YAML
Raw Normal View History

type: bulk
args:
#Create required extensions, tables and insert test data
- type: run_sql
args:
sql: |
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS postgis_topology;
CREATE TABLE dummy_rast(
rid serial primary key,
rast raster
);
INSERT INTO dummy_rast (rast) values
(ST_AsRaster(ST_Buffer(ST_GeomFromText('SRID=4326;POINT(1 2)'),2), 5, 5))
, (ST_AsRaster(ST_Buffer(ST_GeomFromText('SRID=4326;LINESTRING(0 0, 0.5 1, 1 2, 1.5 3)'), 2), 5, 5))
;
- type: track_table
args:
name: dummy_rast
schema: public