Skip to content

Commit

Permalink
geom
Browse files Browse the repository at this point in the history
  • Loading branch information
jairomr authored Sep 10, 2024
1 parent 2e58ed7 commit 070f5b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/database/queries/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function (app) {
{
source: 'lapig',
id: 'restoration',
sql: " SELECT CAST(st_area(st_union(geometry)::geography)/10000 as double precision) as value "
sql: " SELECT CAST(st_area(st_union(geom)::geography)/10000 as double precision) as value "
+ " FROM araticum_restauracao_2024 a "
+ " WHERE " + regionFilter
}
Expand Down Expand Up @@ -84,7 +84,7 @@ module.exports = function (app) {
{
source: 'lapig',
id: 'areaRestorationPerProject',
sql: "SELECT metprinc as label, st_area(st_union(geometry)::geography)/10000 as value from araticum_restauracao_2024 GROUP BY 1 ORDER BY 2 DESC ",
sql: "SELECT metprinc as label, st_area(st_union(geom)::geography)/10000 as value from araticum_restauracao_2024 GROUP BY 1 ORDER BY 2 DESC ",
mantain: true
}
];
Expand All @@ -111,7 +111,7 @@ module.exports = function (app) {
{
source: 'lapig',
id: 'projetos',
sql: "SELECT projeto, fonte, st_area(st_union(geometry)::geography)/10000 as value from araticum_restauracao_2024 GROUP BY 1, 2 ORDER BY 3 DESC ",
sql: "SELECT projeto, fonte, st_area(st_union(geom)::geography)/10000 as value from araticum_restauracao_2024 GROUP BY 1, 2 ORDER BY 3 DESC ",
mantain: true
}
]
Expand Down

0 comments on commit 070f5b1

Please sign in to comment.