From 325ffac2f90b07fcb91c06d69c2fe7e0dd43c055 Mon Sep 17 00:00:00 2001 From: "shiv.prakash1" Date: Tue, 25 Feb 2025 16:34:13 +0530 Subject: [PATCH] changes for terrain area --- stats_generator/utils.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/stats_generator/utils.py b/stats_generator/utils.py index 32187445..199082fb 100644 --- a/stats_generator/utils.py +++ b/stats_generator/utils.py @@ -459,23 +459,17 @@ def create_excel_for_terrain(data, output_file, writer): features = data['features'] for feature in features: - properties = feature['properties'] - hill_slope = properties['hill_slope'] - plain_area = properties['plain_area'] - ridge_area = properties['ridge_area'] - slopy_area = properties['slopy_area'] - valley_area = properties['valley_are'] - + properties = feature['properties'] row = { 'UID': properties['uid'], 'area_in_hac': properties['area_in_ha'], 'terrainCluster_ID': properties['terrainClu'], 'Terrain_Description': terrain_description.get(properties['terrainClu']), - '% of area hill_slope': hill_slope*100, - '% of area plain_area': plain_area*100, - '% of area ridge_area': ridge_area*100, - '% of area slopy_area': slopy_area*100, - '% of area valley_area': valley_area*100, + '% of area hill_slope': properties['hill_slope'], + '% of area plain_area': properties['plain_area'], + '% of area ridge_area': properties['ridge_area'], + '% of area slopy_area': properties['slopy_area'], + '% of area valley_area': properties['valley_are'], } df_data.append(row)