Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
PG raster: simplify tests data
- Loading branch information
Showing
9 changed files
with
47 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/testdata/provider/postgresraster/bug_34823_pg_raster.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 14 additions & 8 deletions
22
tests/testdata/provider/postgresraster/raster_3035_untiled_multiple_rows.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
-- | ||
-- in-db float32 untiled raster with multiple rows | ||
-- also used to test temporal capabilities | ||
-- | ||
|
||
CREATE TABLE "public"."raster_3035_untiled_multiple_rows" ("pk" SERIAL PRIMARY KEY, "rast" raster | ||
DROP TABLE IF EXISTS "public"."raster_3035_untiled_multiple_rows"; | ||
|
||
CREATE TABLE "public"."raster_3035_untiled_multiple_rows" ( | ||
"pk" SERIAL PRIMARY KEY, | ||
"rast" raster, | ||
"data" timestamp, | ||
"data_text" varchar | ||
); | ||
INSERT INTO "public"."raster_3035_untiled_multiple_rows" ("rast", "pk") | ||
VALUES ('0100000100000000000000394000000000000039C000000000D9204F41000000008F8B424100000000000000000000000000000000DB0B0000020002004A003C1CC66A610843880B0E436E0A1143BBAD1943'::raster, 1); | ||
INSERT INTO "public"."raster_3035_untiled_multiple_rows" ("rast", "pk") | ||
VALUES ('0100000100000000000000394000000000000039C000000000D9204F41000000008F8B424100000000000000000000000000000000DB0B0000020002004A003C1CC66A610843880B0E436E0A2143BBAD2943'::raster, 2); | ||
|
||
INSERT INTO "public"."raster_3035_untiled_multiple_rows" ("rast", "pk", "data", "data_text") | ||
VALUES ('0100000100000000000000394000000000000039C000000000D9204F41000000008F8B424100000000000000000000000000000000DB0B0000020002004A003C1CC66A610843880B0E436E0A1143BBAD1943'::raster, 1, '2020-04-01', '2020-04-01'); | ||
INSERT INTO "public"."raster_3035_untiled_multiple_rows" ("rast", "pk", "data", "data_text") | ||
VALUES ('0100000100000000000000394000000000000039C000000000D9204F41000000008F8B424100000000000000000000000000000000DB0B0000020002004A003C1CC66A610843880B0E436E0A2143BBAD2943'::raster, 2, '2020-04-05', '2020-04-05'); | ||
-- offset row | ||
INSERT INTO "public"."raster_3035_untiled_multiple_rows" ("rast", "pk") | ||
VALUES ('0100000100000000000000394000000000000039C000000000D9204F41000000008F8B424100000000000000000000000000000000DB0B0000020002004A003C1CC66A610843880B0E436E0A2143BBAD2943'::raster, 3); | ||
INSERT INTO "public"."raster_3035_untiled_multiple_rows" ("rast", "pk", "data", "data_text") | ||
VALUES ('0100000100000000000000394000000000000039C000000000D9204F41000000008F8B424100000000000000000000000000000000DB0B0000020002004A003C1CC66A610843880B0E436E0A2143BBAD0942'::raster, 3, '2020-04-06', '2020-04-06'); | ||
|
||
CREATE INDEX ON "public"."raster_3035_untiled_multiple_rows" USING gist (st_convexhull("rast")); | ||
ANALYZE "public"."raster_3035_untiled_multiple_rows"; | ||
SELECT AddRasterConstraints('public','raster_3035_untiled_multiple_rows','rast',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,TRUE,TRUE,TRUE,TRUE,TRUE); | ||
|
53 changes: 0 additions & 53 deletions
53
tests/testdata/provider/postgresraster/raster_4326_time.sql
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters