Skip to content

Commit

Permalink
🤖 Export view for 19915_fix_agol_view_points
Browse files Browse the repository at this point in the history
  • Loading branch information
Moped View Bot committed Nov 15, 2024
1 parent a80a745 commit 451887c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions moped-database/views/component_arcgis_online_view.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Most recent migration: moped-database/migrations/1729197757695_add_agol_geometry_type/up.sql
-- Most recent migration: moped-database/migrations/1730931541883_update_agol_view_geometry/up.sql

CREATE OR REPLACE VIEW component_arcgis_online_view AS WITH work_types AS (
SELECT
Expand All @@ -25,7 +25,7 @@ comp_geography AS (
SELECT
feature_union.component_id AS project_component_id,
string_agg(DISTINCT feature_union.id::text, ', '::text) AS feature_ids,
st_asgeojson(st_union(array_agg(feature_union.geography)))::json AS geometry,
st_asgeojson(st_multi(st_union(array_agg(feature_union.geography))))::json AS geometry,
st_asgeojson(st_union(array_agg(feature_union.line_geography)))::json AS line_geometry,
string_agg(DISTINCT feature_union.signal_id::text, ', '::text) AS signal_ids,
sum(feature_union.length_feet) AS length_feet_total
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Most recent migration: moped-database/migrations/1729197757695_add_agol_geometry_type/up.sql
-- Most recent migration: moped-database/migrations/1730931541883_update_agol_view_geometry/up.sql

CREATE OR REPLACE VIEW exploded_component_arcgis_online_view AS SELECT
component_arcgis_online_view.project_id,
Expand Down

0 comments on commit 451887c

Please sign in to comment.