|
|
@@ -119,22 +119,14 @@
|
|
|
"${tableNameB}" tb
|
|
|
WHERE public.ST_Intersects(tb.rast, ta.geom)
|
|
|
AND (SELECT (stats).mean
|
|
|
- FROM
|
|
|
+ FROM
|
|
|
(
|
|
|
SELECT
|
|
|
- PUBLIC
|
|
|
- .
|
|
|
- public.ST_SummaryStats(
|
|
|
- PUBLIC
|
|
|
- .
|
|
|
- public.ST_Clip
|
|
|
+ PUBLIC.ST_SummaryStats(
|
|
|
+ PUBLIC.ST_Clip
|
|
|
(
|
|
|
- tb
|
|
|
- .
|
|
|
- rast,
|
|
|
- ta
|
|
|
- .
|
|
|
- geom
|
|
|
+ tb.rast,
|
|
|
+ ta.geom
|
|
|
)) AS stats) AS summary) < #{value};
|
|
|
</insert>
|
|
|
<insert id="getGtBandValue">
|
|
|
@@ -147,19 +139,11 @@
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
|
- PUBLIC
|
|
|
- .
|
|
|
- public.ST_SummaryStats(
|
|
|
- PUBLIC
|
|
|
- .
|
|
|
- public.ST_Clip
|
|
|
+ PUBLIC.ST_SummaryStats(
|
|
|
+ PUBLIC.ST_Clip
|
|
|
(
|
|
|
- tb
|
|
|
- .
|
|
|
- rast,
|
|
|
- ta
|
|
|
- .
|
|
|
- geom
|
|
|
+ tb.rast,
|
|
|
+ ta.geom
|
|
|
)) AS stats) AS summary) > #{value};
|
|
|
</insert>
|
|
|
<insert id="addDemValue">
|