2019-08-29 16:07:05 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
|
|
|
|
|
|
|
#Create required extensions, tables and insert test data
|
2021-01-06 19:06:24 +03:00
|
|
|
|
2019-08-29 16:07:05 +03:00
|
|
|
- type: run_sql
|
|
|
|
args:
|
|
|
|
sql: |
|
|
|
|
CREATE EXTENSION IF NOT EXISTS postgis;
|
|
|
|
CREATE EXTENSION IF NOT EXISTS postgis_topology;
|
2019-12-19 04:32:15 +03:00
|
|
|
DO $$
|
|
|
|
BEGIN
|
|
|
|
IF PostGIS_lib_version() ~ '^3.*' THEN
|
|
|
|
CREATE EXTENSION IF NOT EXISTS postgis_raster;
|
|
|
|
END IF;
|
|
|
|
END$$;
|
2019-08-29 16:07:05 +03:00
|
|
|
|
|
|
|
CREATE TABLE dummy_rast(
|
|
|
|
rid serial primary key,
|
|
|
|
rast raster
|
|
|
|
);
|
|
|
|
INSERT INTO dummy_rast (rast) values
|
2020-03-24 04:48:09 +03:00
|
|
|
(ST_AsRaster(ST_Buffer(ST_GeomFromEWKT('SRID=4326;POINT(1 2)'),2), 5, 5))
|
|
|
|
, (ST_AsRaster(ST_Buffer(ST_GeomFromEWKT('SRID=4326;LINESTRING(0 0, 0.5 1, 1 2, 1.5 3)'), 2), 5, 5))
|
2019-08-29 16:07:05 +03:00
|
|
|
;
|
2021-01-06 19:06:24 +03:00
|
|
|
|
2019-08-29 16:07:05 +03:00
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
name: dummy_rast
|
|
|
|
schema: public
|