[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-160-g2851cd1
git at osgeo.org
git at osgeo.org
Tue Apr 27 11:02:23 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 2851cd1908dc138d6a6ec389fdbedc8fc93f5e73 (commit)
from d07fec913e5a0105acd02a653111a5ef32765429 (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 2851cd1908dc138d6a6ec389fdbedc8fc93f5e73
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Apr 27 11:02:15 2021 -0700
Avoid doom loop when sampling a vertex outside the range of a geometry in ST_SetZ(). Closes #4898
diff --git a/raster/rt_core/rt_raster.c b/raster/rt_core/rt_raster.c
index 7ceecba..5e09083 100644
--- a/raster/rt_core/rt_raster.c
+++ b/raster/rt_core/rt_raster.c
@@ -33,6 +33,10 @@
#include <math.h>
+#ifndef NAN
+# define NAN 0.0/0.0
+#endif
+
/**
* Construct a raster with given dimensions.
*
@@ -1675,7 +1679,10 @@ rt_raster_copy_to_geometry(
resample,
&value, &nodata
);
- if (err != ES_NONE) continue;
+
+ if (err != ES_NONE) {
+ value = NAN;
+ }
/* Copy in the raster value */
if (dim == 'z')
-----------------------------------------------------------------------
Summary of changes:
raster/rt_core/rt_raster.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list