Ver Fonte

添加最大最小高程

gushoubang há 7 meses atrás
pai
commit
9e0de5a787

+ 9 - 5
onemap-modules/onemap-analyse/src/main/java/com/onemap/analyse/service/impl/RasterServiceImpl.java

@@ -59,14 +59,15 @@ public class RasterServiceImpl implements IRasterService {
         Map<String, Object> ringMap = new HashMap<>();
         ringMap.put("tableName", tableName);
         ringMap.put("geomWkt", cutFillVo.getGeom());
-        ringMap.put("height", (midHeight + maxHeight) / 2);
-        String midUpGeom = rasterMapper.getDemRing(ringMap);
+
+        // ringMap.put("height", (midHeight + maxHeight) / 2);
+        // String midUpGeom = rasterMapper.getDemRing(ringMap);
 
         ringMap.put("height", midHeight);
         String midGeom = rasterMapper.getDemRing(ringMap);
 
-        ringMap.put("height", (midHeight + minHeight) / 2);
-        String midDownGeom = rasterMapper.getDemRing(ringMap);
+        // ringMap.put("height", (midHeight + minHeight) / 2);
+        // String midDownGeom = rasterMapper.getDemRing(ringMap);
 
         String bottomGeom = cutFillVo.getGeom();
 
@@ -74,7 +75,10 @@ public class RasterServiceImpl implements IRasterService {
 
         resMap.put("fillVolume", fillVolume);
         resMap.put("cutVolume", cutVolume);
-        resMap.put("height", midHeight);
+
+        resMap.put("midHeight", midHeight);
+        resMap.put("maxHeight", maxHeight);
+        resMap.put("minHeight", minHeight);
 
         bottomGeom = analyseUtilsDBMapper.differenceWkt("SRID=4326;" + bottomGeom, midGeom);
         // resMap.put("midUpGeom",midUpGeom);

+ 4 - 1
sql/pgsql/0_init.sql

@@ -69,4 +69,7 @@ END;
 $$ LANGUAGE plpgsql;
 
 -- 20240829
--- base.t_gdbh_*
+-- base.t_gdbh_*
+
+-- 20240906
+-- base.RASTER_DSM_BP_3857