[SCM] PostGIS branch master updated. 3.5.0-417-g8acbf1760
git at osgeo.org
git at osgeo.org
Thu Jul 3 08:49:09 PDT 2025
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 8acbf176099084371012c2652f993b6c840c44fd (commit)
from dde25946a3ec102b180d8e64e295683173758dd1 (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 8acbf176099084371012c2652f993b6c840c44fd
Author: Laurențiu Nicola <lnicola at dend.ro>
Date: Wed Jul 2 16:00:42 2025 +0300
Require GDAL 2.4 for postgis_raster and switch to GDALGetDataTypeSizeBytes
References #5935
References https://git.osgeo.org/gitea/postgis/postgis/pulls/256
for PostGIS 3.6.0
diff --git a/configure.ac b/configure.ac
index db9aaa872..e1439766c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1586,9 +1586,9 @@ if test "x$with_raster" != "xno"; then
LIBGDAL_DEPLIBS_LDFLAGS=""
dnl GDAL version constants, update here
- GDAL_MIN_VERSION=2.0.0
+ GDAL_MIN_VERSION=2.4.0
dnl Compare to POSTGIS_GDAL_VERSION
- GDAL_MIN_VERSION_NUMBER=20000
+ GDAL_MIN_VERSION_NUMBER=20400
AC_ARG_WITH(
[gdalconfig],
diff --git a/raster/rt_core/rt_raster.c b/raster/rt_core/rt_raster.c
index 55ccee6f9..5ef18357b 100644
--- a/raster/rt_core/rt_raster.c
+++ b/raster/rt_core/rt_raster.c
@@ -2402,7 +2402,7 @@ rt_raster_from_gdal_dataset(GDALDatasetH ds) {
/* pixtype */
gdpixtype = GDALGetRasterDataType(gdband);
- RASTER_DEBUGF(4, "gdpixtype, size = %s, %d", GDALGetDataTypeName(gdpixtype), GDALGetDataTypeSize(gdpixtype) / 8);
+ RASTER_DEBUGF(4, "gdpixtype, size = %s, %d", GDALGetDataTypeName(gdpixtype), GDALGetDataTypeSizeBytes(gdpixtype));
pt = rt_util_gdal_datatype_to_pixtype(gdpixtype);
if (pt == PT_END) {
rterror("rt_raster_from_gdal_dataset: Unknown pixel type for GDAL band");
diff --git a/raster/rt_pg/rtpg_gdal.c b/raster/rt_pg/rtpg_gdal.c
index 441d40cfb..09b3f51a1 100644
--- a/raster/rt_pg/rtpg_gdal.c
+++ b/raster/rt_pg/rtpg_gdal.c
@@ -733,7 +733,7 @@ Datum RASTER_InterpolateRaster(PG_FUNCTION_ARGS)
in_band_height = rt_band_get_height(in_band);
in_band_pixtype = rt_band_get_pixtype(in_band);
in_band_gdaltype = rt_util_pixtype_to_gdal_datatype(in_band_pixtype);
- in_band_gdaltype_size = GDALGetDataTypeSize(in_band_gdaltype) / 8;
+ in_band_gdaltype_size = GDALGetDataTypeSizeBytes(in_band_gdaltype);
/* Quickly copy options struct into local memory context, so we */
/* don't have malloc'ed memory lying around */
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 4 ++--
raster/rt_core/rt_raster.c | 2 +-
raster/rt_pg/rtpg_gdal.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list