diff --git a/resources/planwise/plpgsql/isochrones.sql b/resources/planwise/plpgsql/isochrones.sql index 79d530505..0c68616dc 100644 --- a/resources/planwise/plpgsql/isochrones.sql +++ b/resources/planwise/plpgsql/isochrones.sql @@ -1,3 +1,6 @@ +CREATE EXTENSION IF NOT EXISTS postgis; +CREATE EXTENSION IF NOT EXISTS pgrouting; + -- find closest node to a point CREATE OR REPLACE FUNCTION closest_node (original geometry(point, 4326)) returns integer as $$ diff --git a/resources/planwise/plpgsql/patches.sql b/resources/planwise/plpgsql/patches.sql index da46f639f..d77a5d4f2 100644 --- a/resources/planwise/plpgsql/patches.sql +++ b/resources/planwise/plpgsql/patches.sql @@ -1,3 +1,6 @@ +CREATE EXTENSION IF NOT EXISTS postgis; +CREATE EXTENSION IF NOT EXISTS pgrouting; + -- Copied from pgRouting and modified -- Original file: src/alpha_shape/sql/alpha_shape.sql -- Original copyright notice follows