[postgis-devel] Proj GUCs

Paul Ramsey pramsey at cleverelephant.ca
Tue Jun 20 14:08:23 PDT 2023



> On Jun 20, 2023, at 1:27 PM, Regina Obe <lr at pcorp.us> wrote:
> 
> I like the informational functions a lot :)
> A function that tells you where your proj data is will be a good one too
> As must of my time is spent hunting figuring out where the proj data is that
> postgresql is using is.

Just stuffing the extra info into the proj version string looks like this:

postgis_reg=# select postgis_proj_version();
                                                       postgis_proj_version                                                        
-----------------------------------------------------------------------------------------------------------------------------------
 9.2.1 PROJ_NETWORK=OFF PROJ_URL_ENDPOINT=https://cdn.proj.org PROJ_GRID_DIRECTORY=/Users/pramsey/Library/Application Support/proj
(1 row)

postgis_reg=# select postgis_full_version();
                                                                                                                                           postgis_full_version                                                                                                                                           
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 POSTGIS="3.4.0dev 3.3.0rc2-988-g9ec3f4bc5" PGSQL="150" GEOS="3.12.0dev-CAPI-1.18.0" PROJ="9.2.1 PROJ_NETWORK=OFF PROJ_URL_ENDPOINT=https://cdn.proj.org PROJ_GRID_DIRECTORY=/Users/pramsey/Library/Application Support/proj" LIBXML="2.9.13" LIBJSON="0.16" LIBPROTOBUF="1.4.1" WAGYU="0.5.0 (Internal)"


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20230620/9c815625/attachment.htm>


More information about the postgis-devel mailing list