Skip to content

Commit

Permalink
changes names
Browse files Browse the repository at this point in the history
  • Loading branch information
george-silva committed Aug 22, 2024
1 parent 7adeb45 commit c4d8bfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE OR REPLACE FUNCTION martin_dynamic_project_area(z integer, x integer, y integer, query_params json)
CREATE OR REPLACE FUNCTION martin_project_area_aggregate(z integer, x integer, y integer, query_params json)
RETURNS bytea AS $$
DECLARE
p_mvt bytea;
Expand Down Expand Up @@ -32,7 +32,7 @@ BEGIN
ss.size = p_stand_size
);

SELECT INTO p_mvt ST_AsMVT(tile, 'project_area', 4096, 'geom') FROM (
SELECT INTO p_mvt ST_AsMVT(tile, 'project_area_aggregate', 4096, 'geom') FROM (
SELECT
(query_params->>'project_area_id')::int as "id",
ST_AsMVTGeom(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CREATE OR REPLACE FUNCTION martin_dynamic_project_areas(z integer, x integer, y integer, query_params json)
CREATE OR REPLACE FUNCTION martin_project_areas_by_scenario(z integer, x integer, y integer, query_params json)
RETURNS bytea AS $$
DECLARE
p_mvt bytea;
p_intersecting_area geometry;
p_stand_size varchar;
BEGIN

SELECT INTO p_mvt ST_AsMVT(tile, 'dynamic_project_areas', 4096, 'geom') FROM (
SELECT INTO p_mvt ST_AsMVT(tile, 'project_areas_by_scenario', 4096, 'geom') FROM (

SELECT
pa.id as "id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE OR REPLACE FUNCTION martin_dynamic_stands(z integer, x integer, y integer, query_params json)
CREATE OR REPLACE FUNCTION martin_stands_by_tx_plan(z integer, x integer, y integer, query_params json)
RETURNS bytea AS $$
DECLARE
p_mvt bytea;
Expand Down Expand Up @@ -34,7 +34,7 @@ BEGIN
WHERE tp.id = (query_params->>'treatment_plan_id')::int
);

SELECT INTO p_mvt ST_AsMVT(tile, 'dynamic_stands', 4096, 'geom') FROM (
SELECT INTO p_mvt ST_AsMVT(tile, 'stands_by_tx_plan', 4096, 'geom') FROM (

SELECT
ss.id as "id",
Expand Down

0 comments on commit c4d8bfe

Please sign in to comment.