[postgis-tickets] [SCM] PostGIS branch stable-3.4 updated. 3.4.0-20-g9d34261fc
git at osgeo.org
git at osgeo.org
Thu Sep 7 18:04:00 PDT 2023
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, stable-3.4 has been updated
via 9d34261fc58d771997871f4c7edf725d954eb43d (commit)
via b489f8a7990263bd06a549d2c15d5f970aec5543 (commit)
from d79127c514f081a395c4c4c2440f7c6ca9a2e53f (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 9d34261fc58d771997871f4c7edf725d954eb43d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Sep 7 18:03:54 2023 -0700
News item for ST_Contour fix
diff --git a/NEWS b/NEWS
index b905b9d9c..ae4f32b41 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,7 @@ To take advantage of all SFCGAL featurs, SFCGAL 1.4.1+ is needed.
(Sandro Santilli)
- #5479, postgis_full_version() and postgis_gdal_version() sometimes
warn of deprecated SRID: 2163 (Regina Obe)
+ - Include elevation in output of ST_Contour when in polygonal mode (Paul Ramsey)
* Enhancements *
commit b489f8a7990263bd06a549d2c15d5f970aec5543
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Sep 7 13:32:32 2023 -0700
Include min elevation when in polygonize mode for ST_Contour
diff --git a/raster/rt_core/rt_gdal.c b/raster/rt_core/rt_gdal.c
index 1d12d7dcc..95038b256 100644
--- a/raster/rt_core/rt_gdal.c
+++ b/raster/rt_core/rt_gdal.c
@@ -136,6 +136,7 @@ int rt_raster_gdal_contour(
/* For building out options list */
stringbuffer_t sb;
char **papszOptList = NULL;
+ const char* elev_field = polygonize ? "ELEV_FIELD_MIN" : "ELEV_FIELD";
_rti_contour_arg arg;
_rti_contour_arg_init(&arg);
@@ -223,7 +224,8 @@ int rt_raster_gdal_contour(
}
stringbuffer_aprintf(&sb, "ID_FIELD=%d ", 0);
- stringbuffer_aprintf(&sb, "ELEV_FIELD=%d ", 1);
+ stringbuffer_aprintf(&sb, "%s=%d ", elev_field, 1);
+
stringbuffer_aprintf(&sb, "POLYGONIZE=%s ", polygonize ? "YES" : "NO");
papszOptList = CSLTokenizeString(stringbuffer_getstring(&sb));
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
raster/rt_core/rt_gdal.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list