Hi Jim,
the most recent versions of PROJ have introduced many interesting
innovations,
but unfortunately they have also introduced various complications
regarding
the configuration, which can become truly deadly especially on Windows
platforms.
explained in the simplest possible way: PROJ now relies completely on
its own
SQLite DB in which are stored all parameters required for calculating
geodetic
transformations.
if at run time the PROJ library is unable to connect to its geodetic DB
nothing
will work anymore.
any call to PROJ will then simply return this error message:
ST_Transform exception - PROJ reports "proj_create: no database context
specified
All the complications arise from the fact that the rules used by PROJ
to find
its own geodetic DB are quite complex, particularly on Windows where
the risk
of something going wrong is particularly high.
However, things are much better on Linux.
you can find everything explained in detail on this page of the
SpatiaLite Wiki
(look out for the special notes for Windows at the very bottom of the
Wiki page):
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=PROJ.6
Particularly useful SQL functions:
----------------------------------
* PROJ_GetDatabasePath()
this will return the current path where PROJ expects to find its own
geodetic DB; check if it really exists.
* PROJ_SetDatabasePath(somepath)
this will directly tell to PROJ where to find its own geodetic DB
(you are expected to call this before calling any other PROJ
function).
----------------------------------
further complications
=====================
all PROJ geodetic DBs are always named proj.db, but every single
version
of the library strictly depends on its corresponding version of proj.db
WARNING: randomly mixing the library and proj.db versions can prevent
PROJ from working !!!
For example the proj.db required by SpatiaLiteGUI 5.0.0 and
spatialite-tools
5.0.1 are different; you can easily notice it because they have very
different sizes.
final conclusions
========================================================
it's very likely that there are some old settings left in your PC
that are now preventing the PROJ from working correctly.
Check all your configuration and clean all the old settings,
then try to reinstall everything from scratch.
By working methodically (and with a lot of patience) you
should be able to solve the problem.
very last consideration
==========================================================
I just realized that there is a nasty bug on HasProj6() that
always returns ZERO :-P
bye Sandro