|
@@ -5,13 +5,13 @@
|
|
|
<mapper namespace="com.onemap.analyse.mapper.vector.CreateUtilsDBMapper">
|
|
|
<insert id="bufferTable">
|
|
|
CREATE TABLE "${newTableName}" AS
|
|
|
- SELECT id, public.ST_Buffer(geom::public.geography, #{radius}) AS geom
|
|
|
+ SELECT id, public.ST_Buffer(geom::public.geography, #{radius})::public.geometry AS geom
|
|
|
FROM "${tableName}"
|
|
|
WHERE geom IS NOT NULL
|
|
|
</insert>
|
|
|
<insert id="bufferColumnTable">
|
|
|
CREATE TABLE "${newTableName}" AS
|
|
|
- SELECT id, public.ST_Buffer(geom::public.geography, ${column}) AS geom
|
|
|
+ SELECT id, public.ST_Buffer(geom::public.geography, ${column})::public.geometry AS geom
|
|
|
FROM "${tableName}"
|
|
|
WHERE geom IS NOT NULL
|
|
|
</insert>
|