[postgis-devel] Failing check_gdal test

Raúl Marín Rodríguez rmrodriguez at carto.com
Fri Jan 12 02:09:44 PST 2018


Hi there,

>From a long time I've had issues with the `check_gdal` test as it seems to
be
expecting gdal to not be configured if you unset `postgis.gdal_datapath` and
print something about "GDAL_DATA".

I've tested with PG 9.6, 10.1 and 11 and postgis 2.4 and trunk with the same
diff as my machine doesn't fail the configuration test
(rt_util_gdal_configured).

I'm attaching some of the tests I've made. Does anyone have a similar
problem or know how to avoid failing that test (besides manually removing
it)?

Regards,

-- 

*Raúl Marín Rodríguez *carto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20180112/54a224da/attachment.html>
-------------- next part --------------
postgis_reg=# Select postgis_gdal_version();
      postgis_gdal_version
---------------------------------
 GDAL 2.2.3, released 2017/11/20
(1 row)

postgis_reg=# SET postgis.gdal_datapath = '';
SET
postgis_reg=# Select postgis_gdal_version();
      postgis_gdal_version
---------------------------------
 GDAL 2.2.3, released 2017/11/20
(1 row)

postgis_reg=# SET postgis.gdal_datapath = 'invalid';
SET
postgis_reg=# Select postgis_gdal_version();
      postgis_gdal_version
---------------------------------
 GDAL 2.2.3, released 2017/11/20
(1 row)

postgis_reg=# Select postgis_full_version();
                                                                                           postgis_full_version

-------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------
 POSTGIS="2.4.1 r16155" PGSQL="100" GEOS="3.7.0dev-CAPI-1.11.0 a51a06b1" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 2.2.3, released 2017/
11/20" LIBXML="2.9.7" LIBJSON="0.13" LIBPROTOBUF="1.3.0" RASTER
(1 row)

postgis_reg=# Select version();
                                   version
-----------------------------------------------------------------------------
 PostgreSQL 10.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.2.0, 64-bit
(1 row)

postgis_reg=# SET postgis.gdal_datapath = default;
SET
postgis_reg=# Show postgis.gdal_datapath;
 postgis.gdal_datapath
-----------------------

(1 row)

postgis_reg=# Select version();
                                   version
-----------------------------------------------------------------------------
 PostgreSQL 10.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.2.0, 64-bit
(1 row)

postgis_reg=# Select postgis_gdal_version();
      postgis_gdal_version
---------------------------------
 GDAL 2.2.3, released 2017/11/20
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_1_diff
Type: application/octet-stream
Size: 178 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20180112/54a224da/attachment.obj>


More information about the postgis-devel mailing list