[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-149-g7ba7eb4
git at osgeo.org
git at osgeo.org
Tue Apr 20 16:00:58 PDT 2021
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 7ba7eb4c5a5f9b73198f692c2621e2e136cea3f4 (commit)
from 4f8241765fe8cf3d323cc68ba2642b225bde749b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7ba7eb4c5a5f9b73198f692c2621e2e136cea3f4
Author: Regina Obe <lr at pcorp.us>
Date: Tue Apr 20 18:43:54 2021 -0400
Correct proto defs in docs and put in availability and changed notes. Hopefully makes CI bots happy again.
diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml
index b0f5a45..fc838b9 100644
--- a/doc/reference_raster.xml
+++ b/doc/reference_raster.xml
@@ -4932,6 +4932,7 @@ SELECT x, y, val, ST_AsText(geom)
<paramdef><type>integer </type> <parameter>band</parameter></paramdef>
<paramdef><type>geometry </type> <parameter>pt</parameter></paramdef>
<paramdef choice="opt"><type>boolean </type> <parameter>exclude_nodata_value=true</parameter></paramdef>
+ <paramdef choice="opt"><type>text </type> <parameter>resample='nearest'</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>double precision <function>ST_Value</function></funcdef>
@@ -4957,6 +4958,7 @@ SELECT x, y, val, ST_AsText(geom)
<para>Returns the value of a given band in a given columnx, rowy pixel or at a given geometry point. Band numbers start at 1 and band is assumed to be 1 if not specified.
If <varname>exclude_nodata_value</varname> is set to true, then only non <varname>nodata</varname> pixels are considered. If <varname>exclude_nodata_value</varname> is set to false, then all pixels are considered.</para>
+ <para>Enhanced: 3.2.0 resample optional argument was added.</para>
<para>Enhanced: 2.0.0 exclude_nodata_value optional argument was added.</para>
</refsection>
@@ -5269,7 +5271,7 @@ FROM (
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
- <funcdef>geometry <function>ST_GetValues</function></funcdef>
+ <funcdef>geometry <function>ST_SetZ</function></funcdef>
<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef>
<paramdef choice="opt"><type>text </type> <parameter>resample=nearest</parameter></paramdef>
@@ -5283,6 +5285,8 @@ FROM (
<para>Returns a geometry with the same X/Y coordinates as the input geometry, and values from the raster copied into the Z dimensions using the requested resample algorithm.</para>
<para>The <varname>resample</varname> parameter can be set to "nearest" to copy the values from the cell each vertex falls within, or "bilinear" to use <ulink url="https://en.wikipedia.org/wiki/Bilinear_interpolation">bilinear interpolation</ulink> to calculate a value that takes neighboring cells into account also.</para>
+
+ <para>Availability: 3.2.0</para>
</refsection>
<refsection>
@@ -5342,7 +5346,7 @@ FROM test_raster
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
- <funcdef>geometry <function>ST_GetValues</function></funcdef>
+ <funcdef>geometry <function>ST_SetM</function></funcdef>
<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef>
<paramdef choice="opt"><type>text </type> <parameter>resample=nearest</parameter></paramdef>
@@ -5356,6 +5360,8 @@ FROM test_raster
<para>Returns a geometry with the same X/Y coordinates as the input geometry, and values from the raster copied into the Z dimensions using the requested resample algorithm.</para>
<para>The <varname>resample</varname> parameter can be set to "nearest" to copy the values from the cell each vertex falls within, or "bilinear" to use <ulink url="https://en.wikipedia.org/wiki/Bilinear_interpolation">bilinear interpolation</ulink> to calculate a value that takes neighboring cells into account also.</para>
+
+ <para>Availability: 3.2.0</para>
</refsection>
<refsection>
diff --git a/raster/rt_pg/rtpostgis.sql.in b/raster/rt_pg/rtpostgis.sql.in
index c31e26c..0c72dbc 100644
--- a/raster/rt_pg/rtpostgis.sql.in
+++ b/raster/rt_pg/rtpostgis.sql.in
@@ -4621,6 +4621,7 @@ CREATE OR REPLACE FUNCTION st_value(rast raster, x integer, y integer, exclude_n
AS $$ SELECT st_value($1, 1, $2, $3, $4) $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
+-- Changed: 3.2.0 added resample arg
CREATE OR REPLACE FUNCTION st_value(rast raster, band integer, pt geometry, exclude_nodata_value boolean DEFAULT TRUE, resample text DEFAULT 'nearest')
RETURNS float8
AS 'MODULE_PATHNAME', 'RASTER_getPixelValueResample'
@@ -4631,11 +4632,13 @@ CREATE OR REPLACE FUNCTION st_value(rast raster, pt geometry, exclude_nodata_val
AS $$ SELECT @extschema at .ST_value($1, 1, $2, $3, 'nearest') $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
+-- Availability: 3.2.0 added resample arg
CREATE OR REPLACE FUNCTION st_setz(rast raster, geom geometry, resample text DEFAULT 'nearest', band integer default 1)
RETURNS geometry
AS 'MODULE_PATHNAME', 'RASTER_getGeometryValues'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE;
+-- Availability: 3.2.0 added resample arg
CREATE OR REPLACE FUNCTION st_setm(rast raster, geom geometry, resample text DEFAULT 'nearest', band integer default 1)
RETURNS geometry
AS 'MODULE_PATHNAME', 'RASTER_getGeometryValues'
-----------------------------------------------------------------------
Summary of changes:
doc/reference_raster.xml | 10 ++++++++--
raster/rt_pg/rtpostgis.sql.in | 3 +++
2 files changed, 11 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list