[PROJ] using pipeline without proj.db

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon Nov 24 07:14:22 PST 2025


Hi

I am trying to use PROJ in a minimalistic deploy... without proj.db
I only need to do transformations based on a proj-pipeline.

Just something like "+proj=pipeline +step +proj=axisswap +order=2,1 +step
+proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=utm +zone=32
+ellps=WGS84"

I am calling "proj_create(ctx, str)", and I get an error message "Cannot
find proj.db"

First question: Do I need proj.db for that purpose? I would say that not.
The transformation is already defined in the pipeline, I don't need
anything from EPSG. But now I'm not sure.

Second question: if it is not needed, is that a bug or am I doing something
wrong?


Looking at the code of proj_create, I see at the begining:

    // Only connect to proj.db if needed
    if (strstr(text, "proj=") == nullptr || strstr(text, "init=") !=
nullptr) {
        getDBcontextNoException(ctx, __FUNCTION__);
    }

That I assume is not executing getDBcontextNoException. The comment seems
promising for my purpose, but it is failing somewhere. There is a similar
check in the C++ code.

Thanks.
Javier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20251124/d4a11a86/attachment-0001.htm>


More information about the PROJ mailing list