[gdal-dev] report proj4 version to which gdal is linked?
Roger Bivand
Roger.Bivand at nhh.no
Sat Nov 25 04:53:56 PST 2017
On Fri, 24 Nov 2017, Even Rouault wrote:
> On vendredi 24 novembre 2017 22:19:08 CET Roger Bivand wrote:
>> On Fri, 24 Nov 2017, Even Rouault wrote:
>>>> I would have (perhaps) hoped that
>>>> pj_release.c is the runtime version, but mileage may
>>>
>>> vary ...
>>>
>>> It is. I just missed pj_get_release()
>>
>> Thanks, I guess you can see a resoluion. Which gdal header is the most
>> logical to expose this in?
>
> Would probably makes sense to add the version found at build time in
> GDALVersionInfo("BUILD_INFO") in
> https://github.com/OSGeo/gdal/blob/trunk/gdal/gcore/gdal_misc.cpp#L2099
>
> PROJ_VERSION=x.y.z\n
>
> and have a similar GDALVersionInfo("RUNTIME_INFO") for the version found at runtime
> (pj_get_release() / proj_info())
>
> PROJ_VERSION=x.y.z\n
>
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.
Roger
>
>
--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: Roger.Bivand at nhh.no
Editor-in-Chief of The R Journal, https://journal.r-project.org/index.html
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
More information about the gdal-dev
mailing list