Skip to content

Commit

Permalink
araticum_restauracao_2024
Browse files Browse the repository at this point in the history
  • Loading branch information
jairomr authored Sep 10, 2024
1 parent 2ae8ad8 commit 2e58ed7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/server/database/queries/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ module.exports = function (app) {
{
source: 'lapig',
id: 'restoration',
sql: " SELECT CAST(sum(a.area_ha) as double precision) as value "
+ " FROM araticum_restauracao a "
sql: " SELECT CAST(st_area(st_union(geometry)::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 metodo_padrao as label, SUM(area_ha) as value from araticum_restauracao GROUP BY 1 ORDER BY 2 DESC ",
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 ",
mantain: true
}
];
Expand All @@ -111,7 +111,7 @@ module.exports = function (app) {
{
source: 'lapig',
id: 'projetos',
sql: "SELECT projeto, fonte, SUM(area_ha) as value from araticum_restauracao GROUP BY 1, 2 ORDER BY 3 DESC ",
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 ",
mantain: true
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/server/descriptor/groups/restauracao.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"idLayer": "restauracao_araticum",
"labelLayer": "translate",
"visible": true,
"selectedType": "areas_restauracao_araticum",
"selectedType": "araticum_restauracao_2024",
"types": [
"areas_restauracao_araticum"
"araticum_restauracao_2024"
]
},
{
Expand Down

0 comments on commit 2e58ed7

Please sign in to comment.