[gdal-dev] report proj4 version to which gdal is linked?

Edzer Pebesma edzer.pebesma at uni-muenster.de
Sat Nov 25 08:49:33 PST 2017



On 11/25/2017 02:47 PM, Even Rouault wrote:
>  
> 
>> Thanks, that would match nicely, as rgdal already has bindings for
> 
>> GDALVersionInfo() but only uses "--version" and "VERSION_NUM" so far; our
> 
>> test for GDAL built with GEOS tests a fake union to detect success or
> 
>> failure.
> 
>  
> 
> Was available through the C++ API with OGRGeometryFactory::haveGEOS()

On the system I work on (Ubuntu 17.04 with ubuntugis-unstable GDAL),
haveGEOS() seems unreliable (giving false, where it is true).

The runtime check R packages rgdal and sf use is simply trying out a
Union: https://github.com/r-spatial/sf/blob/master/src/gdal.cpp#L422-L437

> but I've now exposed it in GDALVersionInfo("BUILD_INFO") per
> 
> https://trac.osgeo.org/gdal/changeset/40832
> 
>  
> 
> Even
> 
>  
> 
> -- 
> 
> Spatialys - Geospatial professional services
> 
> http://www.spatialys.com
> 
> 
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> 

-- 
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48151 Muenster, Germany
Phone: +49 251 8333081


More information about the gdal-dev mailing list